There is a case where `multipathd show status` should fail, yet it
doesn't exit with an error code. Instead it returns 0. Error is printed
to stdout as "error receiving packet".
This means that enforce will not work as expected.
But that patch is missing in some packages, so this patch adds a
workaround to detect the error base on the stdout of the multipathd show
status command.
Reviewed: https:/ /review. openstack. org/597607 /git.openstack. org/cgit/ openstack/ os-brick/ commit/ ?id=028af871de8 a3f45f4cc8342e9 2d5586a7058e5a
Committed: https:/
Submitter: Zuul
Branch: master
commit 028af871de8a3f4 5f4cc8342e92d55 86a7058e5a
Author: Gorka Eguileor <email address hidden>
Date: Wed Aug 29 19:16:58 2018 +0200
Improve detection of multipathd running
There is a case where `multipathd show status` should fail, yet it
doesn't exit with an error code. Instead it returns 0. Error is printed
to stdout as "error receiving packet".
This means that enforce will not work as expected.
The multipathd error got fixed here: /www.redhat. com/archives/ dm-devel/ 2015-March/ msg00136. html
https:/
But that patch is missing in some packages, so this patch adds a
workaround to detect the error base on the stdout of the multipathd show
status command.
Closes-Bug: #1789699 e53b0b1744ab36f 56464cd2135
Change-Id: I1cb29782541e3f