summaryrefslogtreecommitdiff
path: root/nova/api/openstack/compute
diff options
context:
space:
mode:
authorAmit Uniyal <auniyal@redhat.com>2022-08-04 13:42:14 +0000
committerAmit Uniyal <auniyal@redhat.com>2022-11-29 14:09:53 +0000
commitc8d5397b0a671fddfa9b9c27bc7790a439a18caf (patch)
treeb00dabe1b8c2a2181c127d16d9e894a99762476e /nova/api/openstack/compute
parent50802572dcb5958d3843799092a41688742a096d (diff)
downloadnova-c8d5397b0a671fddfa9b9c27bc7790a439a18caf.tar.gz
Adds check for VM snapshot fail while quiesce
Added check if quiesce fails because libvirt fails to connect with qemu guest agent inside instance Closes-Bug: #1980720 Change-Id: I134a4060ace2678f76ae3606bf117c07194a8d92
Diffstat (limited to 'nova/api/openstack/compute')
-rw-r--r--nova/api/openstack/compute/servers.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/nova/api/openstack/compute/servers.py b/nova/api/openstack/compute/servers.py
index 6a9bf1fa92..946d5a7042 100644
--- a/nova/api/openstack/compute/servers.py
+++ b/nova/api/openstack/compute/servers.py
@@ -1353,6 +1353,8 @@ class ServersController(wsgi.Controller):
except exception.InstanceInvalidState as state_error:
common.raise_http_conflict_for_instance_invalid_state(state_error,
'createImage', id)
+ except exception.InstanceQuiesceFailed as err:
+ raise exc.HTTPConflict(explanation=err.format_message())
except exception.Invalid as err:
raise exc.HTTPBadRequest(explanation=err.format_message())
except exception.OverQuota as e: