Currently, we use VM.snapshot for resize, which fails if we have a
volume attached to the VM, which does not support snapshots. This change
uses VDI.snapshot instead, for all VDIs that are not attached by nova.
Also needed for xenapi: detaching and reattaching volumes during
migrations and reverting of migrations.
Reviewed: https:/ /review. openstack. org/14758 github. com/openstack/ nova/commit/ d5888f19c378751 1b352e7d54ce2ee 923ed13ae8
Committed: http://
Submitter: Jenkins
Branch: stable/folsom
commit d5888f19c378751 1b352e7d54ce2ee 923ed13ae8
Author: Renuka Apte <email address hidden>
Date: Tue Sep 4 23:02:16 2012 -0700
xenapi: Refactor snapshots during resize
Currently, we use VM.snapshot for resize, which fails if we have a
volume attached to the VM, which does not support snapshots. This change
uses VDI.snapshot instead, for all VDIs that are not attached by nova.
Also needed for xenapi: detaching and reattaching volumes during
migrations and reverting of migrations.
Fixes Bug #1028092
Change-Id: I3e2973747135a9 c33de194e385376 20c397bb87e 20b594a2ed1b32c d29fe6adbc)
(cherry picked from commit 359527501604ea7