class GlanceConnectionFailed(CinderException):
- message = _("Connection to glance failed") + ": %(reason)s"
+ message = _("Connection to glance failed: %(reason)s")
class NotAuthorized(CinderException):
class InvalidSnapshot(Invalid):
- message = _("Invalid snapshot") + ": %(reason)s"
+ message = _("Invalid snapshot: %(reason)s")
class InvalidSourceVolume(Invalid):
class InvalidInput(Invalid):
- message = _("Invalid input received") + ": %(reason)s"
+ message = _("Invalid input received: %(reason)s")
class InvalidVolumeType(Invalid):
- message = _("Invalid volume type") + ": %(reason)s"
+ message = _("Invalid volume type: %(reason)s")
class InvalidVolume(Invalid):
- message = _("Invalid volume") + ": %(reason)s"
+ message = _("Invalid volume: %(reason)s")
class InvalidContentType(Invalid):
class InvalidHost(Invalid):
- message = _("Invalid host") + ": %(reason)s"
+ message = _("Invalid host: %(reason)s")
# Cannot be templated as the error syntax varies.
class InvalidAuthKey(Invalid):
- message = _("Invalid auth key") + ": %(reason)s"
+ message = _("Invalid auth key: %(reason)s")
class ServiceUnavailable(Invalid):
class InvalidVolumeMetadata(Invalid):
- message = _("Invalid metadata") + ": %(reason)s"
+ message = _("Invalid metadata: %(reason)s")
class InvalidVolumeMetadataSize(Invalid):
- message = _("Invalid metadata size") + ": %(reason)s"
+ message = _("Invalid metadata size: %(reason)s")
class SnapshotMetadataNotFound(NotFound):
class InvalidSnapshotMetadata(Invalid):
- message = _("Invalid metadata") + ": %(reason)s"
+ message = _("Invalid metadata: %(reason)s")
class InvalidSnapshotMetadataSize(Invalid):
- message = _("Invalid metadata size") + ": %(reason)s"
+ message = _("Invalid metadata size: %(reason)s")
class VolumeTypeNotFound(NotFound):
class MigrationError(CinderException):
- message = _("Migration error") + ": %(reason)s"
+ message = _("Migration error: %(reason)s")
class MalformedRequestBody(CinderException):
class QuotaError(CinderException):
- message = _("Quota exceeded") + ": code=%(code)s"
+ message = _("Quota exceeded: code=%(code)s")
code = 413
headers = {'Retry-After': 0}
safe = True
class SwiftConnectionFailed(CinderException):
- message = _("Connection to swift failed") + ": %(reason)s"
+ message = _("Connection to swift failed: %(reason)s")
class TransferNotFound(NotFound):
class VolumeMigrationFailed(CinderException):
- message = _("Volume migration failed") + ": %(reason)s"
+ message = _("Volume migration failed: %(reason)s")
class ProtocolNotSupported(CinderException):
class SSHInjectionThreat(CinderException):
- message = _("SSH command injection detected") + ": %(command)s"
+ message = _("SSH command injection detected: %(command)s")
class CoraidException(CinderException):
class InvalidQoSSpecs(Invalid):
- message = _("Invalid qos specs") + ": %(reason)s"
+ message = _("Invalid qos specs: %(reason)s")
class QoSSpecsInUse(CinderException):