]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Fix broken solidfire create-snapshot
authorJohn Griffith <john.griffith@solidfire.com>
Thu, 3 Oct 2013 21:54:20 +0000 (15:54 -0600)
committerJohn Griffith <john.griffith@solidfire.com>
Thu, 3 Oct 2013 22:43:10 +0000 (16:43 -0600)
commit3cd27defb1c820ceadd8bbc6bfd5a405a7376cdb
tree3c1caab9f982cd5c067027a54438763854812790
parentf84af779e3e5d6089488d853b16896e616bf5fe3
Fix broken solidfire create-snapshot

A previous change to enable secifying size for cloned volumes
created introduced a bug that breaks the ability to create-snapshots
when using the SolidFire driver
(CID: I5628c7fa922780d6b0601e2daa79310a61085edc).

The problem is that we use a shared method in the SF driver for both
create-clone and create-snapshot, the added change only considers the
clone case and does a get ref['size'] but in the case of snapshots
this needs to be ref['volume_size'].

Change-Id: I50603b3ac43f2c3c7e7811ec34de078a268519f7
Closes-Bug: 1234970
cinder/tests/test_solidfire.py
cinder/volume/drivers/solidfire.py