linuxscsi get_device_size needs strip()

Bug #1535913 reported by Walt Boring
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
os-brick
Fix Released
Medium
Walt Boring

Bug Description

linuxscsi.get_device_size() doesn't work if the exec output includes a newline at the end of the device size.

Have to add a strip()

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to os-brick (master)

Fix proposed to branch: master
Review: https://review.openstack.org/269922

Changed in os-brick:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to os-brick (master)

Reviewed: https://review.openstack.org/269922
Committed: https://git.openstack.org/cgit/openstack/os-brick/commit/?id=40d95d8e00962e0c88e817b8be5d9694c6cf017b
Submitter: Jenkins
Branch: master

commit 40d95d8e00962e0c88e817b8be5d9694c6cf017b
Author: Walter A. Boring IV <email address hidden>
Date: Tue Jan 19 07:23:03 2016 -0800

    Fix get_device_size with newlines

    This patch adds strip() call to the return value
    of the blockdevice call to fetch the size. Sometimes we get a newline
    after the size value.

    Change-Id: I5917c0ad1a94b9d8ca6a41b278f9156193198a1d
    Closes-Bug: #1535913

Changed in os-brick:
status: In Progress → Fix Released
Revision history for this message
Doug Hellmann (doug-hellmann) wrote : Fix included in openstack/os-brick 1.0.0

This issue was fixed in the openstack/os-brick 1.0.0 release.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.