Comment 2 for bug 1801365

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to tripleo-common (master)

Reviewed: https://review.openstack.org/615204
Committed: https://git.openstack.org/cgit/openstack/tripleo-common/commit/?id=de6f82008dfa3f1f0eb222dbd6152fc80c378c4f
Submitter: Zuul
Branch: master

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.

     ()[root@undercloud-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: Id493b3d0088e44c831b138b4526681694481d0eb
    Closes-Bug: #1801365