This patch moves an exception from cinder.exception
into brick.exception to fix an import in remotefs.
Fixes Bug #
1221309
Change-Id: I9b060c1e1129b3fe30145227712d0234e0f42504
class ISCSITargetAttachFailed(BrickException):
message = _("Failed to attach iSCSI target for volume %(volume_id)s.")
+
+
+class ProtocolNotSupported(BrickException):
+ message = _("Connect to volume via protocol %(protocol)s not supported.")
from oslo.config import cfg
-from cinder import exception
+from cinder.brick import exception
from cinder.openstack.common.gettextutils import _
from cinder.openstack.common import log as logging
from cinder.openstack.common import processutils as putils
message = _("Volume migration failed") + ": %(reason)s"
-class ProtocolNotSupported(CinderException):
- message = _("Connect to volume via protocol %(protocol)s not supported.")
-
-
class SSHInjectionThreat(CinderException):
message = _("SSH command injection detected") + ": %(command)s"