]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commitdiff
Remove legacy config option 'connection_type'
authorZhiteng Huang <zhithuang@ebaysf.com>
Wed, 8 Jan 2014 03:22:25 +0000 (11:22 +0800)
committerZhiteng Huang <zhithuang@ebaysf.com>
Wed, 8 Jan 2014 09:37:27 +0000 (17:37 +0800)
'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

cinder/common/config.py
cinder/tests/api/contrib/test_qos_specs_manage.py
cinder/tests/api/contrib/test_types_extra_specs.py
cinder/tests/api/contrib/test_types_manage.py
cinder/tests/api/contrib/test_volume_type_encryption.py
cinder/tests/conf_fixture.py
cinder/tests/test_backup.py
cinder/tests/test_volume.py
cinder/tests/test_volume_utils.py
etc/cinder/cinder.conf.sample

index d3ce0cb35f8b56934092a1b146d294dc692efc7b..a81bc58187f3b4ad9d2e05cb6ab2609de43424a1 100644 (file)
@@ -56,10 +56,6 @@ def _get_my_ip():
 
 
 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'),
index 310b8b62d712bb293e9818a7850fa53241a509ff..0c3afd7f2c0a0f199adc26bb92b2903a1a2c1654 100644 (file)
@@ -141,8 +141,7 @@ def return_disassociate_all(context, id):
 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
index 1cdc3ab3ece17f6e192b054bf3b073a63fc114fd..ccf29ad949c0c55da81ab28ac9608a848661969f 100644 (file)
@@ -65,8 +65,7 @@ class VolumeTypesExtraSpecsTest(test.TestCase):
 
     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'
index d8e6ef30c39b6e9845570c09a6238e4122af97c5..6be714f22626c8ae1f06bdee55bd20d37b171386 100644 (file)
@@ -64,8 +64,7 @@ def return_volume_types_get_by_name(context, name):
 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"""
index e2d2a1d93573ba5dd89d9957c926ae595ade17b3..96ceb24326a258be2b706dab9c8ce6c2d7d0c681 100644 (file)
@@ -51,8 +51,7 @@ class VolumeTypeEncryptionTest(test.TestCase):
 
     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"""
index 72b5b59a964e7ce898a69dcb2f80531d700e318a..5f88f6348f9fc3369da70171fcec5391045bca68 100644 (file)
@@ -36,7 +36,6 @@ def set_defaults(conf):
     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)
index c8b33779f69cd3859f329482266fb66c95c6052a..310326bd0af32cc0ae459e84575072283511ee6c 100644 (file)
@@ -45,8 +45,7 @@ class BackupTestCase(test.TestCase):
     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'
index 4c50acb5b004c13fff480ed522ab02c9bd2351b1..a27a2250d39ce71f1c598bc055d991067ff1870a 100644 (file)
@@ -92,8 +92,7 @@ class BaseVolumeTestCase(test.TestCase):
     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()
index 727647ff217cb18d652a90ec782c3c36237c135b..60703909260cda8eb4271fea9aec3b57bfd6b454 100644 (file)
@@ -43,8 +43,7 @@ class UsageInfoTestCase(test.TestCase):
 
     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'
index 9b0dc61f386f3ff484aa0a56384ac59d4b2f461a..6a1a5dfbbb7cf8174d8efe189fdcd9ae4438e881 100644 (file)
 # 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