When deploying an Overcloud on auto discovered nodes nova errors with host not mapped to any cell

Bug #1742179 reported by Dmitry Tantsur
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
tripleo
Fix Released
High
Dmitry Tantsur

Bug Description

When using auto discovered hosts the deployment will fail with:

"Message: Host 'undercloud-2.osp.rh' is not mapped to any cell, Code: 400"

Running as root 'nova-manage cell_v2 discover_hosts --verbose' fixes the issue.

Initially reported as https://bugzilla.redhat.com/show_bug.cgi?id=1532703

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to instack-undercloud (master)

Fix proposed to branch: master
Review: https://review.openstack.org/532231

Changed in tripleo:
status: Triaged → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to tripleo-common (master)

Fix proposed to branch: master
Review: https://review.openstack.org/532495

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on instack-undercloud (master)

Change abandoned by Dmitry Tantsur (<email address hidden>) on branch: master
Review: https://review.openstack.org/532231
Reason: Let's try https://review.openstack.org/#/c/532495/ instead

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to tripleo-common (master)

Reviewed: https://review.openstack.org/532495
Committed: https://git.openstack.org/cgit/openstack/tripleo-common/commit/?id=09e70b4b2c34abd83a73bb1a1c85c3c3b8449706
Submitter: Zuul
Branch: master

commit 09e70b4b2c34abd83a73bb1a1c85c3c3b8449706
Author: Dmitry Tantsur <email address hidden>
Date: Wed Jan 10 12:16:29 2018 +0100

    Discover nova hosts in cells right before deployment

    This is required by nova to be able to use new ironic nodes. Currently,
    we run it after each enroll. However, it does not get run for nodes
    that are auto-discovered or enrolled manually. Doing another run
    right before deployment guarantees that all nodes are known to nova.

    Change-Id: I7adb12800d5107b041689a5eaeed882b3695291b
    Closes-Bug: #1742179

Changed in tripleo:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to tripleo-common (stable/pike)

Fix proposed to branch: stable/pike
Review: https://review.openstack.org/534328

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to tripleo-common (stable/pike)

Reviewed: https://review.openstack.org/534328
Committed: https://git.openstack.org/cgit/openstack/tripleo-common/commit/?id=4485f27b55e7f07a4a58b4543be6cf2efa5378d1
Submitter: Zuul
Branch: stable/pike

commit 4485f27b55e7f07a4a58b4543be6cf2efa5378d1
Author: Dmitry Tantsur <email address hidden>
Date: Wed Jan 10 12:16:29 2018 +0100

    Discover nova hosts in cells right before deployment

    This is required by nova to be able to use new ironic nodes. Currently,
    we run it after each enroll. However, it does not get run for nodes
    that are auto-discovered or enrolled manually. Doing another run
    right before deployment guarantees that all nodes are known to nova.

    Conflicts:
     workbooks/deployment.yaml

    Change-Id: I7adb12800d5107b041689a5eaeed882b3695291b
    Closes-Bug: #1742179
    (cherry picked from commit 09e70b4b2c34abd83a73bb1a1c85c3c3b8449706)

tags: added: in-stable-pike
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/tripleo-common 8.4.0

This issue was fixed in the openstack/tripleo-common 8.4.0 release.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/tripleo-common 7.6.9

This issue was fixed in the openstack/tripleo-common 7.6.9 release.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix proposed to tripleo-common (master)

Related fix proposed to branch: master
Review: https://review.opendev.org/681944

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix merged to tripleo-common (master)

Reviewed: https://review.opendev.org/681944
Committed: https://git.openstack.org/cgit/openstack/tripleo-common/commit/?id=8a8f6e6e847b8b1a2098c47ca8d0f3b842785082
Submitter: Zuul
Branch: master

commit 8a8f6e6e847b8b1a2098c47ca8d0f3b842785082
Author: Steve Baker <email address hidden>
Date: Fri Sep 13 10:17:40 2019 +1200

    Ignore failure calling cell_v2_discover_hosts from deployment

    This will fail when there is no nova database configured, as for a
    nova-less undercloud. This call to cell_v2_discover_hosts was added to
    make sure any recent auto-discovered hosts are mapped to a cell, so I
    think ignoring all errors is acceptable in this case.

    Related-Bug: #1742179
    Change-Id: I77727bbee996d123aea442a76810dcee8e957a8f
    Blueprint: nova-less-deploy

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.