Comment 2 for bug 1893972

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

Reviewed: https://review.opendev.org/749554
Committed: https://git.openstack.org/cgit/openstack/tripleo-common/commit/?id=0e83acbbde1fa9d2f01fa560335258c9693a27f9
Submitter: Zuul
Branch: stable/train

commit 0e83acbbde1fa9d2f01fa560335258c9693a27f9
Author: Alex Schultz <email address hidden>
Date: Wed Sep 2 10:40:31 2020 -0600

    [TRAIN-Only] Add healthcheck debug flag

    This is a partial cherry-pick of d03401438c22e59d4f51cedfd0af6d7d48328d45
    due the other changes in that commit included more complex changes
    which needed further patches to address issues.

    This change adds a HEALTHCHECK_DEBUG environment variable to the
    common health check script to allow a user to enable debug verbosity
    when executing a health check. By default this will be off which should
    reduce the amount of logging generated by the container healthchecks.

    In order to get verbose mode when running the healthcheck directly, you
    can do as follow:

    podman exec -u root -ti <container> bash
    HEALTHCHECK_DEBUG=1 ./openstack/healthcheck
    or
    podman -u root -e "HEALTHCHECK_DEBUG=1" <container> /openstack/healthcheck

    and enjoy a nice debug output.

    Closes-Bug: #1893972
    Change-Id: Ia15bca89261fecc857afef13680b05aba77fc8de