This patch addresses the issue where lun id's values are larger
than 255 and are being kept as integers. This causes the volume and
search paths to be malformed and volumes can't be found. This patch
adds two functions to linuxscsi.py to process the lun id's; they can
process both a single lun id and a list of them. If a lun id has a
value larger than 255 it is converted to hex. This patch also modifies
the necessary unit tests and adds ones to cover the new main function.
Reviewed: https:/ /review. openstack. org/277606 /git.openstack. org/cgit/ openstack/ os-brick/ commit/ ?id=82cdb40f870 c958da6ab6ef447 b35be2eaec5c8d
Committed: https:/
Submitter: Jenkins
Branch: master
commit 82cdb40f870c958 da6ab6ef447b35b e2eaec5c8d
Author: Jenkins <email address hidden>
Date: Thu Feb 11 17:22:19 2016 +0000
Lun id's > 255 should be converted to hex
This patch addresses the issue where lun id's values are larger
than 255 and are being kept as integers. This causes the volume and
search paths to be malformed and volumes can't be found. This patch
adds two functions to linuxscsi.py to process the lun id's; they can
process both a single lun id and a list of them. If a lun id has a
value larger than 255 it is converted to hex. This patch also modifies
the necessary unit tests and adds ones to cover the new main function.
Change-Id: Ib0b2f239a81522 75de9ea66fa99a2 86dfbe53d57
Closes-bug: #1493350