]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Multipath commands with error messages in stdout fail to parse
authorPatrick East <patrick.east@purestorage.com>
Tue, 14 Oct 2014 22:45:38 +0000 (15:45 -0700)
committerPatrick East <patrick.east@purestorage.com>
Wed, 15 Oct 2014 20:47:28 +0000 (13:47 -0700)
commit0b84027204d94e7b314bce505e59aa0c336af43c
treeee535b4419158202c3787d2332da368285cebafc
parent83d7bd0cb75b80cb2f2bfcbf4e7172329f3e6926
Multipath commands with error messages in stdout fail to parse

This change fixes an issue in find_multipath_device() where the command
output of ‘multipath -l <device>’ would sometimes fail to be parsed if
there were error messages in the stdout string in addition to the
expected output. We will now strip out the error messages before we
attempt to parse the lines.

Change-Id: I3d48debc7d64f6a891ac37d4c2c5ebddfb5b00b0
Closes-Bug: #1380742
cinder/brick/initiator/linuxscsi.py
cinder/tests/brick/test_brick_linuxscsi.py