]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commitdiff
Fix HNAS driver initialization
authorErlon R. Cruz <erlon.cruz@fit-tecnologia.org.br>
Thu, 27 Nov 2014 18:45:10 +0000 (16:45 -0200)
committerErlon R. Cruz <erlon.cruz@fit-tecnologia.org.br>
Thu, 18 Dec 2014 13:44:57 +0000 (11:44 -0200)
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

index fcb71eed708b4115d955f1f3c3875dd89ab5276f..adb30427831aa99a473dcc9fda5e4ce5ea4f7588 100644 (file)
@@ -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'])