From: Erlon R. Cruz Date: Thu, 27 Nov 2014 18:45:10 +0000 (-0200) Subject: Fix HNAS driver initialization X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=2d86d870f6fe49f17b9c891d9d402b0b308f3e30;p=openstack-build%2Fcinder-build.git Fix HNAS driver initialization In iSCSI driver, when CHAP authentication is enabled, the driver would throw an error message in the attempt to create the first volume after the driver initialization. This is fixed by passing the right value to set_targetsecret. Closes-Bug: #1402773 Change-Id: I554a67a2e19edb2e09c12febc339522719dfbe00 --- diff --git a/cinder/volume/drivers/hds/iscsi.py b/cinder/volume/drivers/hds/iscsi.py index fcb71eed7..adb304278 100644 --- a/cinder/volume/drivers/hds/iscsi.py +++ b/cinder/volume/drivers/hds/iscsi.py @@ -232,7 +232,7 @@ class HDSISCSIDriver(driver.ISCSIDriver): self.config['mgmt_ip0'], self.config['username'], self.config['password'], - svc['iscsi_target'], + 'cinder-' + label, svc['hdp'], svc['iscsi_secret'])