Service check in nova_cell_v2_discover_host.py to use internal API

e0e885b8ca moved the cellv2 discovery from
control plane to compute services. In case the computes won't have access
to the external API the service check will fail. This switch the service
check to use the internal endpoint.

Change-Id: I234db0866fb6f1adefdcf7a2b2a82412e443b7c9
Closes-bug: 1812632
This commit is contained in:
Martin Schuppert 2019-01-21 15:12:04 +01:00
parent 52e273e653
commit cde4134d55
2 changed files with 9 additions and 0 deletions

View File

@ -61,6 +61,8 @@ for i in range(retries):
service_list = subprocess.check_output([
'openstack',
'-q',
'--os-interface',
'internal',
'compute',
'service',
'list',

View File

@ -0,0 +1,7 @@
---
fixes:
- |
e0e885b8ca3332e0815c537a32c564cac81f7f7e moved the cellv2 discovery from
control plane to compute services. In case the computes won't have access
to the external API this task will fail. Switch nova_cell_v2_discover_host.py
to use internal api.