suspending a paused instance
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Opinion
|
Wishlist
|
Loganathan Parthipan |
Bug Description
Is there a compelling reason why we don't support suspending a paused instance? At the moment we only allow 'active' and 'rescued' states to be suspended.
In compute/api:
@check_
Trying to suspend a paused instance results in:
nova suspend b10f8175-
ERROR: Cannot 'suspend' while instance is in vm_state paused (HTTP 409) (Request-ID: req-7349d554-
I haven't tested with other hypervisors, but as far as libvirt/kvm is concerned it suspends (virsh managedsave) both states ('running', 'paused') and resumes (virsh start) a suspended instance to the pre-suspended state.
A use-case for this is to be able to quickly pause a bunch of instances for security reasons and then suspend one of them conveniently using the API rather than virsh. Taking a suspicious vm to ‘active’ state so that it can be suspended doesn’t seem like a good idea.
description: | updated |
description: | updated |
description: | updated |
Changed in nova: | |
assignee: | nobody → Loganathan Parthipan (parthipan) |
Changed in nova: | |
status: | Triaged → Opinion |
Seems like a reasonable relaxation of the state checking in the compute manager.
It would be good to see if this causes issues on other hypervisors, I guess not.