Use official service type name for cinder
Correct the default service type name used to discover cinder, so that the official name is used instead of a legacy alias. This follows the global change being made in multiple projects such as glance. Change-Id: Iffcb7eb57ac8ac091cee038cf0ebc3a0965672b3 Signed-off-by: Takashi Kajinami <kajinamit@oss.nttdata.com>
This commit is contained in:
1 parent
4b1d7b2bce
commit
49463a05bc
3 files changed
+8
-3
No files matched your search
@@ -20,7 +20,7 @@ from ceilometer import keystone_client
|
||||
|
||||
SERVICE_OPTS = [
|
||||
cfg.StrOpt('cinder',
|
||||
default='volumev3',
|
||||
default='block-storage',
|
||||
help='Cinder service type.'),
|
||||
]
|
||||
|
||||
|
||||
@@ -34,7 +34,7 @@ class TestCinderClient(base.BaseTestCase):
|
||||
group='service_credentials',
|
||||
region_name='RegionOne',
|
||||
interface='publicURL')
|
||||
self.conf.config(group='service_types', cinder='volumev3')
|
||||
self.conf.config(group='service_types', cinder='block-storage')
|
||||
|
||||
self.mock_get_session = self.useFixture(fixtures.MockPatch(
|
||||
'ceilometer.keystone_client.get_session'))
|
||||
@@ -48,7 +48,7 @@ class TestCinderClient(base.BaseTestCase):
|
||||
oslo_conf=self.CONF,
|
||||
region_name='RegionOne',
|
||||
block_storage_interface='publicURL',
|
||||
service_types={'volumev3'})
|
||||
service_types={'block-storage'})
|
||||
|
||||
def test_list_volumes_returns_volumes(self):
|
||||
result = self.client.list_volumes(search_opts={'all_projects': True})
|
||||
|
||||
@@ -0,0 +1,5 @@
|
||||
---
|
||||
upgrade:
|
||||
- |
|
||||
The ``[service_types] cinder`` option now defaults to ``block-storage``,
|
||||
which is the official and authorized service type name for cinder.
|
||||
Reference in new issue
Block a user