From 2d86d870f6fe49f17b9c891d9d402b0b308f3e30 Mon Sep 17 00:00:00 2001 From: "Erlon R. Cruz" Date: Thu, 27 Nov 2014 16:45:10 -0200 Subject: [PATCH] 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 --- cinder/volume/drivers/hds/iscsi.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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']) -- 2.45.2