Verify config support cinder on subpath

verify-config should support cinder running on a subpath.
Currently it doesn't because it strips the entire path from the
identity endpoint in the catalog when calculating the
unversioned endpoint. The fix is to only strip off the last part of
the path.

Change-Id: Ie8a0eeab1bf31887d6f37cf155b2d161ddfb172d
This commit is contained in:
Ivan Kolodyazhny
2017-06-12 18:54:18 +03:00
parent c45d4dd071
commit b24f90449b

View File

@@ -97,8 +97,9 @@ def _get_api_versions(os, service):
'keystone': os.identity_client,
'cinder': os.volumes_client,
}
if service != 'keystone':
# Since keystone may be listening on a path, do not remove the path.
if service != 'keystone' and service != 'cinder':
# Since keystone and cinder may be listening on a path,
# do not remove the path.
client_dict[service].skip_path()
endpoint = _get_unversioned_endpoint(client_dict[service].base_url)