commit d6829c180ea0056a166a3132832701f6b50f5679
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: I96d179f2a58e5948c8ba6c9ae618daad7b8d4c86
Closes-bug: 1269915
(cherry picked from commit 861e93a671f4ca4a7d8b08b05055bab9b9e141f8)
Reviewed: https:/ /review. openstack. org/91931 /git.openstack. org/cgit/ openstack/ cinder/ commit/ ?id=d6829c180ea 0056a166a313283 2701f6b50f5679
Committed: https:/
Submitter: Jenkins
Branch: stable/icehouse
commit d6829c180ea0056 a166a3132832701 f6b50f5679
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 a7d8b08b05055ba b9b9e141f8)
Closes-bug: 1269915
(cherry picked from commit 861e93a671f4ca4