]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Fix HNAS iSCSI driver attachment
authorAdriano Rosso <adriano.rosso@fit-tecnologia.org.br>
Wed, 24 Feb 2016 13:13:38 +0000 (10:13 -0300)
committerAdriano Rosso <adriano.rosso@fit-tecnologia.org.br>
Wed, 24 Feb 2016 17:40:45 +0000 (14:40 -0300)
commitf376d32eab55fec740dbab5a3d1cb770af8d94d2
tree2d30ad13b9ededff316c5e2346e6e4c46cfdf5af
parent44e307eb5e199a094a5fbc3030c9d45e9bb69acf
Fix HNAS iSCSI driver attachment

Currently, the HNAS iSCSI driver returns the logical unit number
related to the iSCSI target as a string while initializing the
connection.
This is breaking the attachment feature because os-brick expects
a numeric type.
This patch converts the LUN from string to int in order to solve
this problem.

Change-Id: I33958a93a6261b7d77e4becafa3efd5180e5d091
Closes-Bug: 1549375
cinder/tests/unit/test_hitachi_hnas_iscsi.py
cinder/volume/drivers/hitachi/hnas_iscsi.py