ensure that we add the bare cinder endpoint

When there is a cinderv2 or cinderv3 endpoint, we should
enable the bare cinder bits in the tempest config.
This commit is contained in:
Chris MacNaughton
2020-07-03 14:44:08 +02:00
parent 6f5bd1c4b9
commit 37dfa53baf

View File

@@ -235,6 +235,9 @@ def get_tempest_context():
'cinder': add_cinder_config,
'keystone': add_keystone_config}
ctxt['enabled_services'] = get_service_list(keystone_session)
if set(['cinderv2', 'cinderv3']) \
.intersection(set(ctxt['enabled_services'])):
ctxt['enabled_services'].append('cinder')
ctxt['disabled_services'] = list(
set(TEMPEST_SVC_LIST) - set(ctxt['enabled_services']))
add_application_ips(ctxt)