Support multi-region discovery of Nova cells

In a multi-region environment, each region is being deployed separately.
Cell discovery, however, would sometimes fail due to it picking a region
different than the one being deployed. Most likely, an internal endpoint
for region A will not be visible from region B. Furthermore, it is not
very useful to discover hosts on a region you're not modifying.

This changes the check to only run against nova compute services located
in the region being deployed.

Change-Id: I21eb1164c2f67098b81edbd5cc106472663b92cb
This commit is contained in:
Jason 2019-02-08 15:40:07 -06:00 committed by Jason Anderson
parent 114521ccba
commit 328e14253d
No known key found for this signature in database
GPG Key ID: 9207452BF63947DD
1 changed files with 1 additions and 0 deletions

View File

@ -10,6 +10,7 @@
--os-username {{ openstack_auth.username }}
--os-password {{ keystone_admin_password }}
--os-user-domain-name {{ openstack_auth.domain_name }}
--os-region-name {{ openstack_region_name }}
compute service list -f json --service nova-compute
register: nova_compute_services
changed_when: false