]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Fixed inconsistency in iqn
authorWalter A. Boring IV <walter.boring@hp.com>
Tue, 21 Jan 2014 19:54:15 +0000 (11:54 -0800)
committerWalter A. Boring IV <walter.boring@hp.com>
Tue, 21 Jan 2014 19:58:55 +0000 (11:58 -0800)
commit28b8ecc15d874644952bb74539c61becaf5f7d20
tree9c2aa983aa8daf09ddbf28c60f4d9490b27f1d2d
parentf67050b501c458f16953538dfb270f74d2fe49cb
Fixed inconsistency in iqn

Brick's TargetAdmin classes have a
default value set in __init__ for
iscsi_target_prefix.   The unit test was changing
the value returned for the internal _get_target,
but wasn't changing the CONF.iscsi_target_prefix to
match.  So the default value in the __init__ was
being used and hence the differences.

This patch sets the configuration's iscsi_target_prefix
which alters the values passed into the driver.  This
also makes the tests consistent between the iqn of the volume
at create time and delete time.

Closes-Bug: #1271249
Change-Id: Ie3308cf68adcbdff6057ea795af1299dded82e14
cinder/tests/test_iscsi.py