From 66f6a9edce3ccd624aba5d2a6bf3362901ed57f7 Mon Sep 17 00:00:00 2001 From: Chuck Short Date: Tue, 28 Aug 2012 19:00:49 -0500 Subject: Fix creation of iscsi targets Previously when creating iscsi volumes, we were using tgt-admin -e -c --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 --- nova/exception.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'nova/exception.py') 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") -- cgit