Error attaching NetApp iSCSI volume to Hyper-V compute node
Bug #1368637 reported by
Luis Fernández Álvarez
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Invalid
|
Low
|
Unassigned |
Bug Description
If you try to attach a NetApp iSCSI volume to a Hyper-V compute host, the request is not performed due to a type missmatch in the following line:
"if device.ScsiLun == target_lun:"
'device.ScsiLun' returned by WMI is an 'integer', while 'target_lun' reported by the Cinder NetApp iSCSI driver is an 'unicode' string.
I'm not sure if this should be also reported to Cinder. Is there any specification on the Cinder side that specifies the expected data type for that field?
Changed in nova: | |
status: | New → Confirmed |
importance: | Undecided → Low |
To post a comment you must log in.
The IBM Storwize driver had the same issue and they ended up submitting this patch, performing a cast on the LUN: https:/ /github. com/openstack/ cinder/ commit/ 861e93a671f4ca4 a7d8b08b05055ba b9b9e141f8
The base volume driver does a few conversions to int on the LUN. Also, the docstring examples have the LUNs appearing to be integers so IMO, this should be changed in the NetApp driver as well in order to have consistency.
Sure, another way to do it would be to simply modify the Hyper-v driver to be agnostic about that LUN variable type, but I’d rather go on fixing this on Cinder.