VMware: resize operates on orig VM and not clone

Bug #1295381 reported by Eric Brown
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Fix Released
High
Sidharth Surana

Bug Description

The resize operation when using the VCenter driver ends up resizing the original VM and not the newly cloned VM.

To recreate:
1) create a new VM from horizon using default debian image. I use a flavor of nano.
2) wait for it to complete and go active
3) click on resize and choose a flavor larger than what you used originally. i then usually choose a flavor of small.
4) wait for horizon to prompt you to confirm or revert the migration.
5) Switch over to vSphere Web Client. Notice two VMs for your newly created instance. One with a UUID name and the other with a UUID-orig name. "-orig" indicating the original.
6) Notice the original has be resized (cpu and mem are increased, disk is not, but that's a separate bug) and not the new clone. This is problem #1.
7) Now hit confirm in horizon. It works, but the logs contain a warning: "The attempted operation cannot be performed in the current state (Powered on).". I suspect its attempting to destroy the orig VM, but the orig was the VM resized and powered on, so it fails. This is problem #2.
Results in a leaked VM.

Eric Brown (ericwb)
Changed in nova:
assignee: nobody → Sidharth Surana (ssurana)
description: updated
Revision history for this message
Tracy Jones (tjones-i) wrote :

this looks like a regression to me

tags: added: icehouse-rc-potential
Changed in nova:
importance: Undecided → High
milestone: none → icehouse-rc1
Revision history for this message
Sabari Murugesan (smurugesan) wrote :

This affects migration as well, in a sense, because the orig VM is powered-on. so confirm_migration is not able to delete the orig-vm.

Changed in nova:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to nova (master)

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

Tracy Jones (tjones-i)
tags: added: icehouse-rc1-potential
removed: icehouse-rc-potential
tags: added: icehouse-rc-potential
removed: icehouse-rc1-potential
tags: removed: icehouse-rc-potential
Mark McLoughlin (markmc)
tags: added: icehouse-rc-potential
tags: removed: icehouse-rc-potential
Revision history for this message
Russell Bryant (russellb) wrote :

This is currently blocking icehouse-rc1. Since we don't have word for when to expect vmware CI to be back up, we're going to move forward with RC1 and potentially pick this back up if we have to do an RC2 later.

Changed in nova:
milestone: icehouse-rc1 → none
tags: added: icehouse-rc-potential
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to nova (master)

Reviewed: https://review.openstack.org/82264
Committed: https://git.openstack.org/cgit/openstack/nova/commit/?id=91ddf85abb8a516cfa2da346b393aa7234660f6c
Submitter: Jenkins
Branch: master

commit 91ddf85abb8a516cfa2da346b393aa7234660f6c
Author: Sidharth Surana <email address hidden>
Date: Fri Mar 21 17:03:40 2014 -0700

    VMware: Fixes the instance resize problem

    The fix includes separating out methods for
    associating/disassociating a vsphere vm from the
    openstack instance. Modifying the resize workflow
    to use the above mentioned methods.

    Closes-Bug: #1295381

    Change-Id: I92acdd5cd00f739d504738413d3b63a2e17f2866

Changed in nova:
status: In Progress → Fix Committed
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to nova (milestone-proposed)

Fix proposed to branch: milestone-proposed
Review: https://review.openstack.org/85740

Changed in nova:
milestone: none → icehouse-rc2
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to nova (milestone-proposed)

Reviewed: https://review.openstack.org/85740
Committed: https://git.openstack.org/cgit/openstack/nova/commit/?id=b6e14a58b37811312f344402e3003d439c0ccc71
Submitter: Jenkins
Branch: milestone-proposed

commit b6e14a58b37811312f344402e3003d439c0ccc71
Author: Sidharth Surana <email address hidden>
Date: Fri Mar 21 17:03:40 2014 -0700

    VMware: Fixes the instance resize problem

    The fix includes separating out methods for
    associating/disassociating a vsphere vm from the
    openstack instance. Modifying the resize workflow
    to use the above mentioned methods.

    Closes-Bug: #1295381

    Change-Id: I92acdd5cd00f739d504738413d3b63a2e17f2866
    (cherry picked from commit 91ddf85abb8a516cfa2da346b393aa7234660f6c)

Changed in nova:
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in nova:
milestone: icehouse-rc2 → 2014.1
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.