commit de6f82008dfa3f1f0eb222dbd6152fc80c378c4f
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.
Reviewed: https:/ /review. openstack. org/615204 /git.openstack. org/cgit/ openstack/ tripleo- common/ commit/ ?id=de6f82008df a3f1f0eb222dbd6 152fc80c378c4f
Committed: https:/
Submitter: Zuul
Branch: master
commit de6f82008dfa3f1 f0eb222dbd6152f c80c378c4f
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
Closes-Bug: #1801365