Bug 1069429

Summary: VMware: delete vm snapshot after nova snapshot
Product: Red Hat OpenStack Reporter: Tracy Jones <tjones>
Component: openstack-novaAssignee: Matthew Booth <mbooth>
Status: CLOSED ERRATA QA Contact: Jaroslav Henner <jhenner>
Severity: high Docs Contact:
Priority: high    
Version: 4.0CC: breeler, hartsocks, jhenner, mbooth, ndipanov, sgordon, xqueralt, yeylon
Target Milestone: z4Keywords: ZStream
Target Release: 4.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: openstack-nova-2013.2.3-2.el6ost Doc Type: Bug Fix
Doc Text:
Cause: nova was creating a temporary VMware snapshot during a nova snapshot, but not deleting it on completion. Consequence: VMware guests could end up with a large number of unnecessary snapshots. Fix: The temporary VMware snapshot is now deleted on completion of the nova snapshot operation. Result: VMware guests no longer end up with unnecessary snapshots when taking a nova snapshot.
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-05-29 20:35:11 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1055536    

Description Tracy Jones 2014-02-25 02:17:21 UTC
https://review.openstack.org/#/c/57376/

Comment 2 Jaroslav Henner 2014-04-07 10:00:54 UTC
I presume that when snapshotting, some temporary snapshot is created in the ESXi, which then gets uploaded to glance, so I should check whether it is not left after I do have the complete snapshot in Glance. Right?

Comment 4 Jaroslav Henner 2014-04-17 17:58:52 UTC
After snapshotting a fresh VM completes, there is no Snapshot file, checking:

/vmfs/volumes/52ced87d-d0fa9d20-ae0d-001b2177e266 # ls 5333299c-bb91-4fd7-b33a-448f401fdad8/
5333299c-bb91-4fd7-b33a-448f401fdad8-b115e487.vswp
5333299c-bb91-4fd7-b33a-448f401fdad8-delta.vmdk
5333299c-bb91-4fd7-b33a-448f401fdad8.nvram
5333299c-bb91-4fd7-b33a-448f401fdad8.vmdk
5333299c-bb91-4fd7-b33a-448f401fdad8.vmsd
5333299c-bb91-4fd7-b33a-448f401fdad8.vmx
5333299c-bb91-4fd7-b33a-448f401fdad8.vmx.lck
5333299c-bb91-4fd7-b33a-448f401fdad8.vmxf
5333299c-bb91-4fd7-b33a-448f401fdad8.vmx~
vmware.log
vmx-5333299c-bb91-4fd7-b33a-448f401fdad8-2971001991-1.vswp

There are no snapshots when using the web client either.

Comment 6 errata-xmlrpc 2014-05-29 20:35:11 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

http://rhn.redhat.com/errata/RHSA-2014-0578.html