'connection_type' is a legacy config option originated from Nova.
Nova used this option to specify underlying virtualization type for
compute service and had deprecated it (with 'compute_driver') in
Folsom and had it removed in later release. In Cinder Folsom release,
the XenSMDriver in Cinder used this config option to verify the target
hypervisor but in Grizzly XenSMDriver has been renamed and refactored
and no longer used this config. Therefore, this option is dead for
a long time, and should be removed.
Change-Id: I4d72f31302fa813df42e71224151148a9c4a76c7
core_opts = [
- cfg.StrOpt('connection_type',
- default=None,
- help='Virtualization api connection type : libvirt, xenapi, '
- 'or fake'),
cfg.StrOpt('api_paste_config',
default="api-paste.ini",
help='File name for the paste.deploy config for cinder-api'),
class QoSSpecManageApiTest(test.TestCase):
def setUp(self):
super(QoSSpecManageApiTest, self).setUp()
- self.flags(connection_type='fake',
- host='fake',
+ self.flags(host='fake',
notification_driver=[test_notifier.__name__])
self.controller = qos_specs_manage.QoSSpecsController()
#reset notifier drivers left over from other api/contrib tests
def setUp(self):
super(VolumeTypesExtraSpecsTest, self).setUp()
- self.flags(connection_type='fake',
- host='fake',
+ self.flags(host='fake',
notification_driver=[test_notifier.__name__])
self.stubs.Set(cinder.db, 'volume_type_get', volume_type_get)
self.api_path = '/v2/fake/os-volume-types/1/extra_specs'
class VolumeTypesManageApiTest(test.TestCase):
def setUp(self):
super(VolumeTypesManageApiTest, self).setUp()
- self.flags(connection_type='fake',
- host='fake',
+ self.flags(host='fake',
notification_driver=[test_notifier.__name__])
self.controller = types_manage.VolumeTypesManageController()
"""to reset notifier drivers left over from other api/contrib tests"""
def setUp(self):
super(VolumeTypeEncryptionTest, self).setUp()
- self.flags(connection_type='fake',
- host='fake',
+ self.flags(host='fake',
notification_driver=[test_notifier.__name__])
self.api_path = '/v2/fake/os-volume-types/1/encryption'
"""to reset notifier drivers left over from other api/contrib tests"""
conf.set_default('volume_driver',
'cinder.tests.fake_driver.FakeISCSIDriver')
conf.set_default('iscsi_helper', 'fake')
- conf.set_default('connection_type', 'fake')
conf.set_default('fake_rabbit', True)
conf.set_default('rpc_backend', 'cinder.openstack.common.rpc.impl_fake')
conf.set_default('iscsi_num_targets', 8)
def setUp(self):
super(BackupTestCase, self).setUp()
vol_tmpdir = tempfile.mkdtemp()
- self.flags(connection_type='fake',
- volumes_dir=vol_tmpdir)
+ self.flags(volumes_dir=vol_tmpdir)
self.backup_mgr = \
importutils.import_object(CONF.backup_manager)
self.backup_mgr.host = 'testhost'
def setUp(self):
super(BaseVolumeTestCase, self).setUp()
vol_tmpdir = tempfile.mkdtemp()
- self.flags(connection_type='fake',
- volumes_dir=vol_tmpdir,
+ self.flags(volumes_dir=vol_tmpdir,
notification_driver=[test_notifier.__name__])
self.volume = importutils.import_object(CONF.volume_manager)
self.context = context.get_admin_context()
def setUp(self):
super(UsageInfoTestCase, self).setUp()
- self.flags(connection_type='fake',
- host='fake',
+ self.flags(host='fake',
notification_driver=[test_notifier.__name__])
self.volume = importutils.import_object(CONF.volume_manager)
self.user_id = 'fake'
# Options defined in cinder.common.config
#
-# Virtualization api connection type : libvirt, xenapi, or
-# fake (string value)
-#connection_type=<None>
-
# File name for the paste.deploy config for cinder-api (string
# value)
#api_paste_config=api-paste.ini