qdrouterd healthcheck is failing all the time.

Bug #1899625 reported by Sofer Athlan-Guyot
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
tripleo
In Progress
High
Sofer Athlan-Guyot

Bug Description

Hi,

doing a deployment of 3ctl/1cpt during deployment I've got that failure:

[zuul@centos-8-chem-reproducer-openstack-0000000263 ~]$ sudo /usr/bin/podman healthcheck run metrics_qdr
unhealthy

sudo /usr/bin/podman inspect 62fd5af8afeb3592a79fb602227e45f235c624a551dcbff6fce5a6dfcc859c1d | jq '.[]|.Config.Healthcheck.Test'
[
  "CMD-SHELL",
  "/openstack/healthcheck"
]

and:
           "Healthcheck": {
                "Status": "unhealthy",
                "FailingStreak": 5,
                "Log": [
                    {
                        "Start": "2020-10-13T12:01:24.50568851Z",
                        "End": "2020-10-13T12:01:24.79928977Z",
                        "ExitCode": 1,
                        "Output": ""
                    },

running the command:
sudo /usr/bin/podman exec -u0 -ti 62fd5af8afeb3592a79fb602227e45f235c624a551dcbff6fce5a6dfcc859c1d /openstack/healthcheck
Error: exec failed: container_linux.go:349: starting container process caused "exec: \"/openstack/healthcheck\": permission denied": OCI runtime permission denied error

sudo /usr/bin/podman exec -u0 -ti 62fd5af8afeb3592a79fb602227e45f235c624a551dcbff6fce5a6dfcc859c1d ls -lrth /openstack/healthcheck
lrwxrwxrwx. 1 root root 57 Oct 5 16:32 /openstack/healthcheck -> /usr/share/openstack-tripleo-common/healthcheck/qdrouterd

sudo /usr/bin/podman exec -u0 -ti 62fd5af8afeb3592a79fb602227e45f235c624a551dcbff6fce5a6dfcc859c1d ls -lrth /usr/share/openstack-tripleo-common/healthcheck/qdrouterd
-rw-r--r--. 1 root root 1.2K Aug 13 06:34 /usr/share/openstack-tripleo-common/healthcheck/qdrouterd

the permission are not corrects.

Adding x to the perm and it's working:

[zuul@centos-8-chem-reproducer-openstack-0000000263 ~]$ sudo /usr/bin/podman exec -u0 -ti 62fd5af8afeb3592a79fb602227e45f235c624a551dcbff6fce5a6dfcc859c1d chmod a+x /usr/share/openstack-tripleo-common/healthcheck/qdrouterd
[zuul@centos-8-chem-reproducer-openstack-0000000263 ~]$ sudo /usr/bin/podman exec -u0 -ti 62fd5af8afeb3592a79fb602227e45f235c624a551dcbff6fce5a6dfcc859c1d /openstack/healthcheck
Connections
  id host container role dir security authentication tenant
  ==================================================================================================================
  1427 192.168.24.5:55952 c1318ded-38f2-4411-9ae8-b5b30cd7a08f normal in no-security no-auth

Changed in tripleo:
assignee: nobody → Sofer Athlan-Guyot (sofer-athlan-guyot)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to tripleo-common (master)

Fix proposed to branch: master
Review: https://review.opendev.org/757845

Changed in tripleo:
status: Triaged → In Progress
Revision history for this message
Sofer Athlan-Guyot (sofer-athlan-guyot) wrote :

This should be backported to train.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.