d03401438c
This patch does three main things: - drop the ultra-verbose output (set -x), adding a new param we can use when calling the healthcheck directly - move away from the "ss" calls and the multiple pipes used to filter its output, using "lsof" and native filtering - rewrite the "ps" call in order to use ps native filters instead of piping through grep These changes should make the healthchecks stronger, and avoid some weird issues due to the pipes, and lower the amount of logs while keeping the important information visible. 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. Change-Id: I137fe3211043b00b553db26b2f5930f98373496d
13 lines
454 B
YAML
13 lines
454 B
YAML
---
|
|
features:
|
|
- |
|
|
This patch moves away from "ss" execs, using lsof instead. This allows
|
|
to drop most of the piping and subshells, making things stronger.
|
|
- |
|
|
Introduce new HEALTHCHECK_DEBUG variable in order to toggle verbosity,
|
|
defaults to 0 (no verbosity). Setting it to 1 will activate -x flag,
|
|
among other things.
|
|
- |
|
|
Push some verbose output to a third descriptor, visible only if we set
|
|
the healthcheck to debug.
|