VMware: snapshot backs up wrong disk when instance is attached to volume

Bug #1243193 reported by Kartik Bommepally
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Fix Released
High
Gary Kotton
Havana
Fix Released
High
Tracy Jones
VMwareAPI-Team
In Progress
Medium
Unassigned

Bug Description

When a volume is attached to an instance and we backup the instance or try to create an image from it, the volume's disk is being backed up and not the instance's primary disk.

More info: https://communities.vmware.com/community/vmtn/openstack/blog/2013/08/28/introducing-vova-an-easy-way-to-try-out-openstack-on-vsphere#comment-29775

Changed in nova:
assignee: nobody → Gary Kotton (garyk)
Gary Kotton (garyk)
Changed in nova:
status: New → Confirmed
importance: Undecided → High
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/53648

Changed in nova:
status: Confirmed → In Progress
Gary Kotton (garyk)
tags: added: havana-backport-potential
Changed in nova:
milestone: none → icehouse-2
Tracy Jones (tjones-i)
Changed in openstack-vmwareapi-team:
importance: Undecided → High
Tracy Jones (tjones-i)
Changed in openstack-vmwareapi-team:
status: New → In Progress
Thierry Carrez (ttx)
Changed in nova:
milestone: icehouse-2 → icehouse-3
dan wendlandt (danwent)
Changed in openstack-vmwareapi-team:
importance: High → Medium
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to nova (master)

Reviewed: https://review.openstack.org/53648
Committed: https://git.openstack.org/cgit/openstack/nova/commit/?id=9ceee09594cd35c264cab3e3b3d1d80aaa3fdbc4
Submitter: Jenkins
Branch: master

commit 9ceee09594cd35c264cab3e3b3d1d80aaa3fdbc4
Author: Gary Kotton <email address hidden>
Date: Thu Oct 24 06:59:36 2013 -0700

    VMware: fix image snapshot with attached volume

    A snapshot of a instance with an attached volume will result in
    the wrong volume being uploaded to glance. The reason for this
    are as follows:
    1. the last image in the list of images would be exported
    2. the base image would not be exported but the first found

    The same happens with a VM rescue if there is a cinder volume
    attached.

    The solution is to search for an image that contains the instance
    UUID.

    Change-Id: Ic85b0ffd4f1c34f10d07b1a198eaad2030803d6f
    Closes-bug: #1243193

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

Fix proposed to branch: stable/havana
Review: https://review.openstack.org/72020

Thierry Carrez (ttx)
Changed in nova:
status: Fix Committed → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to nova (stable/havana)

Reviewed: https://review.openstack.org/72020
Committed: https://git.openstack.org/cgit/openstack/nova/commit/?id=aa7f5506c9b1d99643ee03bd6bc420957e2479b5
Submitter: Jenkins
Branch: stable/havana

commit aa7f5506c9b1d99643ee03bd6bc420957e2479b5
Author: Gary Kotton <email address hidden>
Date: Thu Oct 24 06:59:36 2013 -0700

    VMware: fix image snapshot with attached volume

    A snapshot of a instance with an attached volume will result in
    the wrong volume being uploaded to glance. The reason for this
    are as follows:
    1. the last image in the list of images would be exported
    2. the base image would not be exported but the first found

    The same happens with a VM rescue if there is a cinder volume
    attached.

    The solution is to search for an image that contains the instance
    UUID.

    Change-Id: Ic85b0ffd4f1c34f10d07b1a198eaad2030803d6f
    Closes-bug: #1243193
    (cherry picked from commit 9ceee09594cd35c264cab3e3b3d1d80aaa3fdbc4)

    Conflicts:

     nova/virt/vmwareapi/vm_util.py
     nova/virt/vmwareapi/vmops.py

    Change-Id: I6b9febbfe4e4e6ecf5d31a2b09a4319b07696f9c

tags: added: in-stable-havana
Thierry Carrez (ttx)
Changed in nova:
milestone: icehouse-3 → 2014.1
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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