]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Fix HNAS iSCSI driver error on LUN creation
authorErlon R. Cruz <erlon.cruz@fit-tecnologia.org.br>
Wed, 11 Mar 2015 14:30:28 +0000 (11:30 -0300)
committerErlon R. Cruz <erlon.cruz@fit-tecnologia.org.br>
Thu, 12 Mar 2015 10:57:59 +0000 (07:57 -0300)
commitef27c6beb7410d7007b867b8895178245fe4b7a4
treec31724dfae5690c7223873aaa0abd36d4faa98a5
parenta4c111feb5e90ba8d17153e4d297a842b6a9d9f0
Fix HNAS iSCSI driver error on LUN creation

If chap_enabled is 'False', in the first initialization of the driver (before
the target is created on HNAS) the driver fails to create volumes. This patch
fix that by returning the right value when 'get_targetiqn' is called in this
situation.

Change-Id: I899717c0e7e4ff800cecc8ffa6e3a81a47e96e9f
Closes-Bug: #1430782
cinder/tests/test_hds_hnas_backend.py
cinder/volume/drivers/hds/hnas_backend.py