Comment 7 for bug 1269915

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to cinder (master)

Reviewed: https://review.openstack.org/91696
Committed: https://git.openstack.org/cgit/openstack/cinder/commit/?id=861e93a671f4ca4a7d8b08b05055bab9b9e141f8
Submitter: Jenkins
Branch: master

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.

    Change-Id: I96d179f2a58e5948c8ba6c9ae618daad7b8d4c86
    Closes-bug: 1269915