Workaround bad cinder defaults

key_manager/backend default value is 'barbican'.
While castellan resolves this to a class using stevedore,
cinder loads it tries to load it directly.
So it fails if the value of backend is not set to a full class.

Change-Id: Ia8417bbdac3f515e42d1ed760110a63ae14f8f00
Partial-Bug: #1721037
This commit is contained in:
Jean-Philippe Evrard 2017-10-05 12:48:56 +00:00
parent 384e1ba690
commit 9ad69a9e9d

View File

@ -127,7 +127,13 @@ hmac_keys = {{ cinder_profiler_hmac_key }}
auth_endpoint = {{ keystone_service_internaluri }}/v3 auth_endpoint = {{ keystone_service_internaluri }}/v3
[key_manager] [key_manager]
api_class = castellan.key_manager.barbican_key_manager.BarbicanKeyManager backend = castellan.key_manager.barbican_key_manager.BarbicanKeyManager
{% else %}
{# WORKAROUND KEY MANAGER DEFAULT STRING ISSUE #}
{# See also: https://bugs.launchpad.net/cinder/+bug/1721236 #}
{# And: https://review.openstack.org/#/c/468252/ #}
[key_manager]
backend = cinder.keymgr.conf_key_mgr.ConfKeyManager
{% endif %} {% endif %}
[keystone_authtoken] [keystone_authtoken]