The GlusterFS driver's copy_volume_from_snapshot was previously
not parsing the snapshot information to determine which backing
file to copy from, instead copying from the active file at all
times. This would result in the wrong data being supplied when
a volume is cloned from a snapshot.
Add a test for the copy_volume_from_snapshot method.
Reviewed: https:/ /review. openstack. org/46763 github. com/openstack/ cinder/ commit/ 867b131e09a43ba 7ed36267dcdec75 1abd652f14
Committed: http://
Submitter: Jenkins
Branch: master
commit 867b131e09a43ba 7ed36267dcdec75 1abd652f14
Author: Eric Harney <email address hidden>
Date: Mon Sep 9 18:47:00 2013 -0400
GlusterFS: Copy snap from correct source file
The GlusterFS driver's copy_volume_ from_snapshot was previously
not parsing the snapshot information to determine which backing
file to copy from, instead copying from the active file at all
times. This would result in the wrong data being supplied when
a volume is cloned from a snapshot.
Add a test for the copy_volume_ from_snapshot method.
Closes-Bug: #1222907 1845f3b2eb9c550 7779fa6ec15
Change-Id: Ib829ca1a6812b6