live migration doesn't work for VMs in rescued state
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Confirmed
|
Medium
|
Unassigned |
Bug Description
I'd expect live-migration to migrate instances in rescued state as they're online VMs anyway, as opposed to those that are shutoff or suspended. However, I see that it's currently disabled in the compute API.
nova live-migration --block-migrate b32b0eb4-
ERROR: Cannot 'os-migrateLive' while instance is in vm_state rescued (HTTP 409) (Request-ID: req-5eea8f1c-
This is stopped by this decorator:
@check_
def live_migrate(self, context, instance, block_migration,
However, there are more to it than fixing the decorator.
Should we treat this as a feature or bugfix?
Changed in nova: | |
assignee: | nobody → Loganathan Parthipan (parthipan) |
tags: | added: compute |
Changed in nova: | |
status: | New → Confirmed |
Changed in nova: | |
assignee: | nobody → Matthew Gilliard (matthew-gilliard-u) |
Changed in nova: | |
status: | Confirmed → In Progress |
tags: | added: live-migrate |
summary: |
- live migration doesn't work for VMs in paused or rescued states + live migration doesn't work for VMs in rescued state |
description: | updated |
Changed in nova: | |
assignee: | Matthew Gilliard (matthew-gilliard-u) → nobody |
Changed in nova: | |
status: | In Progress → Confirmed |
tags: |
added: live-migration removed: live-migrate |
Changed in nova: | |
assignee: | nobody → lvmxh (shaohef) |
Changed in nova: | |
assignee: | lvmxh (shaohef) → nobody |
Changed in nova: | |
assignee: | nobody → Sujitha (sujitha-neti) |
Changed in nova: | |
assignee: | nobody → stgleb (gstepanov) |
For paused VMs this is certainly a bug - there's no reason to restrict this for paused VMs.
For rescued VMs, it is a little more complicated, but again the VM is "active" from the POV of the user so I'd expect migrate to be allowe & o succeed.