From 76ab6a4161d5674d90ecb3e34d352458b542b8fb Mon Sep 17 00:00:00 2001 From: Andy Ning Date: Wed, 11 Jul 2018 14:38:46 -0400 Subject: [PATCH] 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 --- .../controllerconfig/controllerconfig/regionconfig.py | 1 + 1 file changed, 1 insertion(+) diff --git a/controllerconfig/controllerconfig/controllerconfig/regionconfig.py b/controllerconfig/controllerconfig/controllerconfig/regionconfig.py index 421bdbe513..e7a7fb1c03 100755 --- a/controllerconfig/controllerconfig/controllerconfig/regionconfig.py +++ b/controllerconfig/controllerconfig/controllerconfig/regionconfig.py @@ -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)