commit 861e93a671f4ca4a7d8b08b05055bab9b9e141f8
Author: Jay S. Bryant <email address hidden>
Date: Thu May 1 17:13:25 2014 -0500
Ensure that lun_id is an int
The map_vol_to_host function was treating the lun number
as a string rather than an int. This was causing attempts
to mount storwize_svc volumes to Hyper-V nodes to fail as they
were checking an integer type against a unicode type which
would fail.
This change casts result_lun to an integer after the value has
gone through the ssh injection attack check. This way Hyper-V
is able to verify if the found LUN is the target LUN, enabling
mount of storwize_svc volumes to Hyper-V.
Reviewed: https:/ /review. openstack. org/91696 /git.openstack. org/cgit/ openstack/ cinder/ commit/ ?id=861e93a671f 4ca4a7d8b08b050 55bab9b9e141f8
Committed: https:/
Submitter: Jenkins
Branch: master
commit 861e93a671f4ca4 a7d8b08b05055ba b9b9e141f8
Author: Jay S. Bryant <email address hidden>
Date: Thu May 1 17:13:25 2014 -0500
Ensure that lun_id is an int
The map_vol_to_host function was treating the lun number
as a string rather than an int. This was causing attempts
to mount storwize_svc volumes to Hyper-V nodes to fail as they
were checking an integer type against a unicode type which
would fail.
This change casts result_lun to an integer after the value has
gone through the ssh injection attack check. This way Hyper-V
is able to verify if the found LUN is the target LUN, enabling
mount of storwize_svc volumes to Hyper-V.
Change-Id: I96d179f2a58e59 48c8ba6c9ae618d aad7b8d4c86
Closes-bug: 1269915