commit fa7bceb5dad887a7c68ff6f234ac779dee760f6f
Author: Jose Luis Franco Arza <email address hidden>
Date: Fri Nov 2 15:52:59 2018 +0100
Omit grep process in nova_api healthcheck.
Currently, the nova_api healthcheck uses the output
from the ps -ef command passing it to grep looking
for the nova_metadata process. However, the way it's
done currently would print out the grep commmand itself
which would cause a false negative.
This patch uses pgrep intead, which does not create a
grep process that could match the string, plus it
provides a clearer idea on what we are trying to match.
Change-Id: Id493b3d0088e44c831b138b4526681694481d0eb
Closes-Bug: #1801365
(cherry picked from commit de6f82008dfa3f1f0eb222dbd6152fc80c378c4f)
Reviewed: https:/ /review. openstack. org/618524 /git.openstack. org/cgit/ openstack/ tripleo- common/ commit/ ?id=fa7bceb5dad 887a7c68ff6f234 ac779dee760f6f
Committed: https:/
Submitter: Zuul
Branch: stable/rocky
commit fa7bceb5dad887a 7c68ff6f234ac77 9dee760f6f
Author: Jose Luis Franco Arza <email address hidden>
Date: Fri Nov 2 15:52:59 2018 +0100
Omit grep process in nova_api healthcheck.
Currently, the nova_api healthcheck uses the output
from the ps -ef command passing it to grep looking
for the nova_metadata process. However, the way it's
done currently would print out the grep commmand itself
which would cause a false negative.
() [root@underclou d-0 /]# ps -ef | grep nova-metadata
root 10979 8969 0 10:53 ? 00:00:00
grep --color=auto nova-metadata
This patch uses pgrep intead, which does not create a
grep process that could match the string, plus it
provides a clearer idea on what we are trying to match.
Change-Id: Id493b3d0088e44 c831b138b452668 1694481d0eb f0eb222dbd6152f c80c378c4f)
Closes-Bug: #1801365
(cherry picked from commit de6f82008dfa3f1