With cell v2, on initial bring up, discover hosts can't run unless all
the compute nodes have checked in. The documentation says that you
should run ``nova service-list --binary nova-compute`` and see all
your hosts before running discover hosts. This isn't really viable in
a multinode devstack because of how things are brought up in parts.
We can however know that stack.sh will not complete before the compute
node is up by waiting for the compute node to check in before
completing. This happens quite late in the stack.sh run, so shouldn't
add any extra time in most runs.
Cells v1 and Xenserver don't use real hostnames in the service table
(they encode complex data that is hostname like to provide more
topology information than just hostnames). They are exempted from this
check.
Related-Bug: #1708039
Change-Id: I32eb59b9d6c225a3e93992be3a3b9f4b251d7189
(cherry picked from commit c2fe916fc7c6c00cdfa0085e198eaf2ad4d915d1)
Reviewed: https:/ /review. openstack. org/490635 /git.openstack. org/cgit/ openstack- dev/devstack/ commit/ ?id=2c7f377b157 ea174e6a645cc8a c9e95a45f33727
Committed: https:/
Submitter: Jenkins
Branch: stable/ocata
commit 2c7f377b157ea17 4e6a645cc8ac9e9 5a45f33727
Author: Sean Dague <email address hidden>
Date: Fri Jul 28 11:29:18 2017 +0000
Wait for compute service to check in
With cell v2, on initial bring up, discover hosts can't run unless all
the compute nodes have checked in. The documentation says that you
should run ``nova service-list --binary nova-compute`` and see all
your hosts before running discover hosts. This isn't really viable in
a multinode devstack because of how things are brought up in parts.
We can however know that stack.sh will not complete before the compute
node is up by waiting for the compute node to check in before
completing. This happens quite late in the stack.sh run, so shouldn't
add any extra time in most runs.
Cells v1 and Xenserver don't use real hostnames in the service table
(they encode complex data that is hostname like to provide more
topology information than just hostnames). They are exempted from this
check.
Related-Bug: #1708039
Change-Id: I32eb59b9d6c225 a3e93992be3a3b9 f4b251d7189 cdfa0085e198eaf 2ad4d915d1)
(cherry picked from commit c2fe916fc7c6c00