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:
Reviewed: https:/ /review. opendev. org/749554 /git.openstack. org/cgit/ openstack/ tripleo- common/ commit/ ?id=0e83acbbde1 fa9d2f01fa56033 5258c9693a27f9
Committed: https:/
Submitter: Zuul
Branch: stable/train
commit 0e83acbbde1fa9d 2f01fa560335258 c9693a27f9
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 d03401438c22e59 d4f51cedfd0af6d 7d48328d45
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 _DEBUG= 1 ./openstack/ healthcheck DEBUG=1" <container> /openstack/ healthcheck
HEALTHCHECK
or
podman -u root -e "HEALTHCHECK_
and enjoy a nice debug output.
Closes-Bug: #1893972 c857afef13680b0 5aba77fc8de
Change-Id: Ia15bca89261fec