diff options
| author | Jenkins <jenkins@review.openstack.org> | 2012-09-07 20:59:40 +0000 |
|---|---|---|
| committer | Gerrit Code Review <review@openstack.org> | 2012-09-07 20:59:40 +0000 |
| commit | 7741ac15e6304776488dde29fff4e84e96378269 (patch) | |
| tree | af10c39a25347870a38c86facdbd371e277fe22e /nova/exception.py | |
| parent | 7c1681bb5ca655f4b846ce1a9c18509f79519d94 (diff) | |
| parent | 3379e821f715d6c63af3f0e96d276ca3f3ff24ca (diff) | |
Merge "Use volume driver specific exceptions"
Diffstat (limited to 'nova/exception.py')
| -rw-r--r-- | nova/exception.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/nova/exception.py b/nova/exception.py index e4d212ca6..1f51a08b5 100644 --- a/nova/exception.py +++ b/nova/exception.py @@ -230,6 +230,10 @@ class VolumeUnattached(Invalid): message = _("Volume %(volume_id)s is not attached to anything") +class VolumeAttached(Invalid): + message = _("Volume %(volume_id)s is still attached, detach volume first.") + + class InvalidKeypair(Invalid): message = _("Keypair data is invalid") @@ -1022,7 +1026,7 @@ class VolumeTypeCreateFailed(NovaException): class VolumeBackendAPIException(NovaException): message = _("Bad or unexpected response from the storage volume " - "backend API: data=%(data)s") + "backend API: %(data)s") class InstanceTypeCreateFailed(NovaException): |
