Some containers doesn't have the "default" user set to root (which is
good). This lead to healthcheck_port() function to return a message
because the non-root user isn't allowed to call "ss" command as itself.
Ensuring we're running the healthchecks as root will also allow to stop
duplicating some commands, making them faster and smaller for the
system.
This was discovered and discussed on Red Hat bugzilla first, then ported
to Launchpad.
This patch is the port of I2e49d4dd5b385237f4f79929c70365424f6fa22d to
tripleo-ansible "container-manage" role.
Reviewed: https:/ /review. opendev. org/706360 /git.openstack. org/cgit/ openstack/ tripleo- ansible/ commit/ ?id=ae0f7d25988 938c1e55e6cc4a3 3eec9b22f38d1e
Committed: https:/
Submitter: Zuul
Branch: stable/train
commit ae0f7d25988938c 1e55e6cc4a33eec 9b22f38d1e
Author: Cédric Jeanneret <email address hidden>
Date: Wed Jan 22 16:19:03 2020 +0100
Execute healthchecks as root
Some containers doesn't have the "default" user set to root (which is
good). This lead to healthcheck_port() function to return a message
because the non-root user isn't allowed to call "ss" command as itself.
Ensuring we're running the healthchecks as root will also allow to stop
duplicating some commands, making them faster and smaller for the
system.
This was discovered and discussed on Red Hat bugzilla first, then ported
to Launchpad.
This patch is the port of I2e49d4dd5b3852 37f4f79929c7036 5424f6fa22d to
tripleo-ansible "container-manage" role.
Change-Id: I0e6883cd86157b 73f18ab63f96f63 3a8a05e82bf /bugzilla. redhat. com/show_ bug.cgi? id=1778881 cccc1b46bd9a620 3f486d72c1)
Related-Bug: 1860569
Related: https:/
(cherry picked from commit 21787448dee4029