summaryrefslogtreecommitdiffstats
path: root/nova/exception.py
diff options
context:
space:
mode:
authorJohn Garbutt <john.garbutt@rackspace.com>2013-06-06 12:48:49 +0100
committerGerrit Code Review <review@openstack.org>2013-06-12 14:40:52 +0000
commit1cf78d34830b684a311f0c78d98b2eb189fc4a5c (patch)
treebc0c08142da3021b62166f2d8c012dba08a729cd /nova/exception.py
parent4461f20bd6187ec02e00cd862d754df38523f9ef (diff)
downloadnova-1cf78d34830b684a311f0c78d98b2eb189fc4a5c.tar.gz
nova-1cf78d34830b684a311f0c78d98b2eb189fc4a5c.tar.xz
nova-1cf78d34830b684a311f0c78d98b2eb189fc4a5c.zip
xenapi: remove auto_disk_config check during resize
This check was introduced by the following change: 7c5c8a743c21733120c85fdefb84b4357f5848d0 This is an alternative fix to ensure resize down is not processed if the disk cannot be resized. Note the failure now registers an instance action and does not leave the VM in an error state. In addition, this keeps the behavior that a failure to resize up and instance during spawn will not cause the operation to fail and put the VM into error. fixes bug 1188135 fixes bug 1187934 fixes bug 1081225 Change-Id: I5b3dfdc7fcda26c55702dde6cdf191beee0c818c
Diffstat (limited to 'nova/exception.py')
-rw-r--r--nova/exception.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/nova/exception.py b/nova/exception.py
index d8ad08131..68cf1f991 100644
--- a/nova/exception.py
+++ b/nova/exception.py
@@ -964,6 +964,10 @@ class ResizeError(NovaException):
message = _("Resize error: %(reason)s")
+class CannotResizeDisk(NovaException):
+ message = _("Server disk was unable to be resized because: %(reason)s")
+
+
class InstanceTypeMemoryTooSmall(NovaException):
message = _("Instance type's memory is too small for requested image.")