Fix multi-region deployment config_region failure

When configure secondary region with config_region, the command failed
with "expected Nova public url mis-matching existing public url". The
root cause is that the service_id used to retrieve the existing url is
not initialized with correct service_name and service_type (Nova), so
that the returned url is incorrect. The patch fixed this by initializing
service_id properly.

Story: 200291
Task: 23005

Change-Id: Id96cc01f22ab8adf32335f4a4843417a5adb807b
Signed-off-by: Andy Ning <andy.ning@windriver.com>
This commit is contained in:
Andy Ning 2018-07-11 14:38:46 -04:00
parent 8100a90b5c
commit 76ab6a4161
1 changed files with 1 additions and 0 deletions

View File

@ -434,6 +434,7 @@ def validate_region_one_keystone_config(region_config, token, api_url, users,
endpoint[SERVICE_NAME])
service_type = cutils.get_service(region_config, 'REGION_2_SERVICES',
endpoint[SERVICE_TYPE])
service_id = services.get_service_id(service_name, service_type)
expected_public_url = endpoint[PUBLIC_URL].format(public_address)