If instance was migrated while was in shutdown state, nova disallow start before resize-confirm

Bug #1460577 reported by George Shuklin on 2015-06-01
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Medium
Unassigned

Bug Description

Steps to reproduce:
1. Create instance
2. Shutdown instance
3. Perform resize
4. Try to start instance.

Expected behaviour: instance starts in resize_confirm state
Actual behaviour: ERROR (Conflict): Instance d0e9bc6b-0544-410f-ba96-b0b78ce18828 in vm_state resized. Cannot start while the instance is in this state. (HTTP 409)

Rationale:

If tenant is resizing running instance, he can log into instance after reboot and see if resize was successful or not. If tenant stopped instance before resize, he has no ability to check if instance resized successfully or not before confirming migration.

Proposed solution: Allow to start instance in the state 'resize_confirm + stopped'.

(Btw: I'd like to allow to stop/start instances in resize_confirm state, because tenant may wish to reboot/stop/start instance few times before deciding that migration was successful).

tags: added: compute live-migration resize
jichenjc (jichenjc) on 2015-07-03
Changed in nova:
status: New → Confirmed
importance: Undecided → Medium
jichenjc (jichenjc) wrote :

I think we should allow this operation
actually, we power_on the VM if the old instance is not stopped
https://github.com/openstack/nova/blob/master/nova/compute/manager.py#L3734

but if it's poweroff by user then we won't have chance to power on it again?

Changed in nova:
assignee: nobody → jichenjc (jichenjc)

Fix proposed to branch: master
Review: https://review.openstack.org/200165

Changed in nova:
status: Confirmed → In Progress

Change abandoned by jichenjc (<email address hidden>) on branch: master
Review: https://review.openstack.org/200165
Reason: wrong direction

tags: removed: live-migration
Changed in nova:
assignee: jichenjc (jichenjc) → nobody
status: In Progress → Confirmed
Vijay (vjgblogs) on 2016-08-26
Changed in nova:
assignee: nobody → Vijay (vjgblogs)
status: Confirmed → In Progress
Nazeema Begum (nazeema123) wrote :

Is anyone still working on this bug...!if not i would like to work on it

George Shuklin (george-shuklin) wrote :

I think it is abandoned. Feel free to take.

Sean Dague (sdague) wrote :

There are no currently open reviews on this bug, changing
the status back to the previous state and unassigning. If
there are active reviews related to this bug, please include
links in comments.

Changed in nova:
status: In Progress → Confirmed
assignee: Vijay (vjgblogs) → nobody
description: updated
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers