Quobyte Driver Exception Cleanup

Clean up deprecated vendor specific exception code in Quobyte Cinder Driver.
Removes superfluous exceptions, uses standard Cinder exceptions instead.

Change-Id: I3225915a5f90ae22093d3c590fb04fbf28fc2573
Implements: blueprint qb-drv-exception-cleanup
This commit is contained in:
Silvan Kaiser
2014-12-23 17:35:46 +01:00
parent 7588e834b4
commit 522c640bc3
2 changed files with 1 additions and 10 deletions

View File

@@ -822,15 +822,6 @@ class NetAppDriverException(VolumeDriverException):
message = _("NetApp Cinder Driver exception.")
# Quobyte USP
class QuobyteException(VolumeDriverException):
message = _("Unknown Quobyte exception")
class QuobyteVolumeNotMounted(NotFound):
message = _("No mounted Quobyte volumes found")
class EMCVnxCLICmdError(VolumeBackendAPIException):
def __init__(self, cmd=None, rc=None, out='',
log_as_error=True, **kwargs):

View File

@@ -424,7 +424,7 @@ class QuobyteDriver(remotefs_drv.RemoteFSSnapDriver):
msg = _LE("The mount %(mount_path)s is not a valid"
" Quobyte USP volume. Error: %(exc)s") \
% {'mount_path': mount_path, 'exc': exc}
raise exception.QuobyteException(msg)
raise exception.VolumeDriverException(msg)
if not os.access(mount_path, os.W_OK | os.X_OK):
LOG.warn(_LW("Volume is not writable. Please broaden the file"
" permissions. Mount: %s"), mount_path)