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)
Reviewed: https:/ /review. openstack. org/72020 /git.openstack. org/cgit/ openstack/ nova/commit/ ?id=aa7f5506c9b 1d99643ee03bd6b c420957e2479b5
Committed: https:/
Submitter: Jenkins
Branch: stable/havana
commit aa7f5506c9b1d99 643ee03bd6bc420 957e2479b5
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: Ic85b0ffd4f1c34 f10d07b1a198eaa d2030803d6f 264cab3e3b3d1d8 0aaa3fdbc4)
Closes-bug: #1243193
(cherry picked from commit 9ceee09594cd35c
Conflicts:
nova/ virt/vmwareapi/ vm_util. py virt/vmwareapi/ vmops.py
nova/
Change-Id: I6b9febbfe4e4e6 ecf5d31a2b09a43 19b07696f9c