summaryrefslogtreecommitdiffstats
path: root/nova/api
diff options
context:
space:
mode:
authorJohannes Erdfelt <johannes.erdfelt@rackspace.com>2011-11-17 16:17:50 +0000
committerJohannes Erdfelt <johannes.erdfelt@rackspace.com>2011-12-02 15:58:58 +0000
commitc25f7e7e832472ea2b5801d041cbf126333b1aaa (patch)
tree03e671a832e88cda64c186dc0dcdf653e6d20ce0 /nova/api
parentab215c42a2a31c8b4a6aa455911535183ab931af (diff)
downloadnova-c25f7e7e832472ea2b5801d041cbf126333b1aaa.tar.gz
nova-c25f7e7e832472ea2b5801d041cbf126333b1aaa.tar.xz
nova-c25f7e7e832472ea2b5801d041cbf126333b1aaa.zip
Implement resize down for XenAPI
This patch implements resizing an instance to a smaller disk. It implements this by copying the VDI and running e2resize, before transferring to the new host. Change-Id: Ic901a59cb6cdb79605c70528cf85064d8335ee2f
Diffstat (limited to 'nova/api')
-rw-r--r--nova/api/openstack/v2/servers.py3
1 files changed, 0 insertions, 3 deletions
diff --git a/nova/api/openstack/v2/servers.py b/nova/api/openstack/v2/servers.py
index 5066633be..f41ed9467 100644
--- a/nova/api/openstack/v2/servers.py
+++ b/nova/api/openstack/v2/servers.py
@@ -679,9 +679,6 @@ class Controller(wsgi.Controller):
except exception.CannotResizeToSameSize:
msg = _("Resize requires a change in size.")
raise exc.HTTPBadRequest(explanation=msg)
- except exception.CannotResizeToSmallerSize:
- msg = _("Resizing to a smaller size is not supported.")
- raise exc.HTTPBadRequest(explanation=msg)
return webob.Response(status_int=202)