2017-08-01 21:56:47.845 | + ./post-stack.sh:main:8 : /opt/stack/old/devstack/tools/discover_hosts.sh
2017-08-01 21:56:50.142 | /usr/local/lib/python2.7/dist-packages/pymysql/cursors.py:166: Warning: (3090, u"Changing sql mode 'NO_AUTO_CREATE_USER' is deprecated. It will be removed in a future release.")
2017-08-01 21:56:50.142 | result = self._query(query)
2017-08-01 21:56:50.268 | Found 2 cell mappings.
2017-08-01 21:56:50.268 | Skipping cell0 since it does not contain hosts.
2017-08-01 21:56:50.268 | Getting compute nodes from cell: b2890c36-f40c-4272-9fa9-3da7d8ec9b0f
2017-08-01 21:56:50.268 | 2017-08-01 21:56:50.268 19869 DEBUG oslo_concurrency.lockutils [req-22c8b9d6-d020-457c-9c18-868bc468a067 - -] Lock "b2890c36-f40c-4272-9fa9-3da7d8ec9b0f" acquired by "nova.context.get_or_set_cached_cell_and_set_connections" :: waited 0.000s inner /usr/local/lib/python2.7/dist-packages/oslo_concurrency/lockutils.py:270
2017-08-01 21:56:50.269 | 2017-08-01 21:56:50.269 19869 DEBUG oslo_concurrency.lockutils [req-22c8b9d6-d020-457c-9c18-868bc468a067 - -] Lock "b2890c36-f40c-4272-9fa9-3da7d8ec9b0f" released by "nova.context.get_or_set_cached_cell_and_set_connections" :: held 0.001s inner /usr/local/lib/python2.7/dist-packages/oslo_concurrency/lockutils.py:282
2017-08-01 21:56:50.357 | Found 1 computes in cell: b2890c36-f40c-4272-9fa9-3da7d8ec9b0f
2017-08-01 21:56:50.357 | Checking host mapping for compute host 'ubuntu-xenial-2-node-osic-cloud1-disk-10201108': 2365307a-c87d-4545-aff9-c8762a087954
So that discovers ubuntu-xenial-2-node-osic-cloud1-disk-10201108 which is the first compute node, but it doesn't discover the subnode compute node, which is created at 2017-08-01 21:56:50.543 - which is 3 seconds after discover_hosts runs.
Oh here is the discover_hosts call:
http:// logs.openstack. org/54/ 489754/ 3/check/ gate-grenade- dsvm-neutron- multinode- ubuntu- xenial/ 7e19ce3/ logs/grenade. sh.txt. gz#_2017- 08-01_21_ 56_47_845
2017-08-01 21:56:47.845 | + ./post- stack.sh: main:8 : /opt/stack/ old/devstack/ tools/discover_ hosts.sh lib/python2. 7/dist- packages/ pymysql/ cursors. py:166: Warning: (3090, u"Changing sql mode 'NO_AUTO_ CREATE_ USER' is deprecated. It will be removed in a future release.") f40c-4272- 9fa9-3da7d8ec9b 0f y.lockutils [req-22c8b9d6- d020-457c- 9c18-868bc468a0 67 - -] Lock "b2890c36- f40c-4272- 9fa9-3da7d8ec9b 0f" acquired by "nova.context. get_or_ set_cached_ cell_and_ set_connections " :: waited 0.000s inner /usr/local/ lib/python2. 7/dist- packages/ oslo_concurrenc y/lockutils. py:270 y.lockutils [req-22c8b9d6- d020-457c- 9c18-868bc468a0 67 - -] Lock "b2890c36- f40c-4272- 9fa9-3da7d8ec9b 0f" released by "nova.context. get_or_ set_cached_ cell_and_ set_connections " :: held 0.001s inner /usr/local/ lib/python2. 7/dist- packages/ oslo_concurrenc y/lockutils. py:282 f40c-4272- 9fa9-3da7d8ec9b 0f xenial- 2-node- osic-cloud1- disk-10201108' : 2365307a- c87d-4545- aff9-c8762a0879 54
2017-08-01 21:56:50.142 | /usr/local/
2017-08-01 21:56:50.142 | result = self._query(query)
2017-08-01 21:56:50.268 | Found 2 cell mappings.
2017-08-01 21:56:50.268 | Skipping cell0 since it does not contain hosts.
2017-08-01 21:56:50.268 | Getting compute nodes from cell: b2890c36-
2017-08-01 21:56:50.268 | 2017-08-01 21:56:50.268 19869 DEBUG oslo_concurrenc
2017-08-01 21:56:50.269 | 2017-08-01 21:56:50.269 19869 DEBUG oslo_concurrenc
2017-08-01 21:56:50.357 | Found 1 computes in cell: b2890c36-
2017-08-01 21:56:50.357 | Checking host mapping for compute host 'ubuntu-
So that discovers ubuntu- xenial- 2-node- osic-cloud1- disk-10201108 which is the first compute node, but it doesn't discover the subnode compute node, which is created at 2017-08-01 21:56:50.543 - which is 3 seconds after discover_hosts runs.