]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Check for non-default volume name template.
authorJohn Griffith <john.griffith@solidfire.com>
Sun, 20 Jan 2013 22:52:52 +0000 (22:52 +0000)
committerjohn-griffith <john.griffith@solidfire.com>
Thu, 24 Jan 2013 05:58:32 +0000 (22:58 -0700)
commitf02c575b4b28b69cade6c1c06dd772c62754fc9c
treebd4d6ac332ba0ca6a0b6add553cf0a46aff88610
parent6cfe5f2a6d99c9fff9386794149b273bd2442bd1
Check for non-default volume name template.

The iscsi delete methods in iscsi.py had hard-coded volume names
'volume-%s'.

If a user configured volume_name_template to
something other than default the result is failure to remove
the iscsi_target.

volume create worked appropriately and created the correct name
in the DB, so the persistence files were the only thing affected
or named incorrectly.

Fixes bug: 1101071

Change-Id: Id5575874b2cebd9b3509d739cb92abf06c503c4e
cinder/volume/iscsi.py