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/501371 /git.openstack. org/cgit/ openstack- dev/devstack/ commit/ ?id=cfe00779818 b270cd008047b05 a415fec8c8eccd
Committed: https:/
Submitter: Jenkins
Branch: stable/pike
commit cfe00779818b270 cd008047b05a415 fec8c8eccd
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