diff options
| author | Chuck Short <chuck.short@canonical.com> | 2012-08-28 19:00:49 -0500 |
|---|---|---|
| committer | Gerrit Code Review <review@openstack.org> | 2012-09-04 23:18:08 +0000 |
| commit | 66f6a9edce3ccd624aba5d2a6bf3362901ed57f7 (patch) | |
| tree | c5e961a0a7aaef72de28c07d3851dacd73d741c4 /nova/exception.py | |
| parent | 51f5b8c28e37af4ab7c86e5b4ed8a3be0460fe32 (diff) | |
Fix creation of iscsi targets
Previously when creating iscsi volumes, we were using
tgt-admin -e -c <config file> --update volume-id
Unfortunately the side affect of this is that tgt-admin
removed other volumes that wasnt connected to an iscsi
connector. Which is obvlously not what we want.
In order to fix this we create the targets.conf for the
volume but we call tgt-admin --update icssi qualified name.
We also set the tid in the configuration file now as well.
Fixes LP: #1038062
Change-Id: I23719390fbfaea5b55389a5c8ebaa8966cc283a8
Signed-off-by: Chuck Short <chuck.short@canonical.com>
Diffstat (limited to 'nova/exception.py')
| -rw-r--r-- | nova/exception.py | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/nova/exception.py b/nova/exception.py index 6a418af33..cd1eabc9d 100644 --- a/nova/exception.py +++ b/nova/exception.py @@ -425,6 +425,10 @@ class VirtDriverNotFound(NotFound): message = _("Could not find driver for connection_type %(name)s") +class PersistentVolumeFileNotFound(NotFound): + message = _("Volume %(volume_id)s persistence file could not be found.") + + class VolumeNotFound(NotFound): message = _("Volume %(volume_id)s could not be found.") @@ -470,6 +474,14 @@ class ISCSITargetNotFoundForVolume(NotFound): message = _("No target id found for volume %(volume_id)s.") +class ISCSITargetCreateFailed(NovaException): + message = _("Failed to create iscsi target for volume %(volume_id)s.") + + +class ISCSITargetRemoveFailed(NovaException): + message = _("Failed to remove iscsi target for volume %(volume_id)s.") + + class DiskNotFound(NotFound): message = _("No disk at %(location)s") |
