]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
GlusterFS: Copy snap from correct source file
authorEric Harney <eharney@redhat.com>
Mon, 9 Sep 2013 22:47:00 +0000 (18:47 -0400)
committerGerrit Code Review <review@openstack.org>
Fri, 20 Sep 2013 18:07:09 +0000 (18:07 +0000)
commit867b131e09a43ba7ed36267dcdec751abd652f14
treeb5ca4f045af21c1b6ebfe53307476d1eae7c2338
parentf8ac42460dca22f83a59097530f73b282129cc2b
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
Change-Id: Ib829ca1a6812b61845f3b2eb9c5507779fa6ec15
cinder/tests/test_glusterfs.py
cinder/volume/drivers/glusterfs.py