components/openstack/cinder/patches/06-no-san-remote.patch
branchs11u3-sru
changeset 4937 8f0976d7e40e
parent 4936 79af241b4834
child 4939 f77b7f85081b
--- a/components/openstack/cinder/patches/06-no-san-remote.patch	Fri Oct 09 09:55:13 2015 -0700
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,30 +0,0 @@
-This internal-only patch is to prevent Cinder's SanDriver from
-attempting to use the Paramiko-based routines until the latter is
-integrated into Solaris. It also provides a specific error in the case
-where san_is_local=false is defined in the configuration and a driver
-is specified that attempts to use that configuration (which implies,
-again, an attempt to use Paramiko).
-
---- cinder-2014.2.2/cinder/volume/drivers/san/san.py.~1~	2015-02-05 08:03:26.000000000 -0800
-+++ cinder-2014.2.2/cinder/volume/drivers/san/san.py	2015-04-22 00:54:38.481125902 -0700
-@@ -29,7 +29,6 @@ from cinder.i18n import _
- from cinder.openstack.common import excutils
- from cinder.openstack.common import log as logging
- from cinder.openstack.common import processutils
--from cinder import ssh_utils
- from cinder import utils
- from cinder.volume import driver
- 
-@@ -165,10 +164,8 @@ class SanDriver(driver.VolumeDriver):
-     def check_for_setup_error(self):
-         """Returns an error if prerequisites aren't met."""
-         if not self.run_local:
--            if not (self.configuration.san_password or
--                    self.configuration.san_private_key):
--                raise exception.InvalidInput(
--                    reason=_('Specify san_password or san_private_key'))
-+            raise exception.InvalidInput(
-+                reason=_("san_is_local=false is not currently supported."))
- 
-         # The san_ip must always be set, because we use it for the target
-         if not self.configuration.san_ip: