cadvisor container fails to deploy when using podman

Bug #2064531 reported by Will Szumski
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
kolla-ansible
In Progress
Undecided
Unassigned

Bug Description

Hitting this after enabling prometheus:

```
RUNNING HANDLER [prometheus : Restart prometheus-cadvisor container] ********************************************************************************************************
fatal: [controller0]: FAILED! => {"changed": true, "msg": "'Traceback (most recent call last):\\n File \"/tmp/ansible_kolla_container_payload_tqzzkphf/ansible_kolla_container_payload.zip/ansible/modules/kolla_container.py\", line 425, in main\\n File \"/tmp/ansible_kolla_container_payload_tqzzkphf/ansible_kolla_container_payload.zip/ansible/module_utils/kolla_podman_worker.py\", line 511, in recreate_or_restart_container\\n self.start_container()\\n File \"/tmp/ansible_kolla_container_payload_tqzzkphf/ansible_kolla_container_payload.zip/ansible/module_utils/kolla_podman_worker.py\", line 534, in start_container\\n self.create_container()\\n File \"/tmp/ansible_kolla_container_payload_tqzzkphf/ansible_kolla_container_payload.zip/ansible/module_utils/kolla_podman_worker.py\", line 497, in create_container\\n container = self.pc.containers.create(**args)\\n File \"/opt/kayobe/venvs/kolla-ansible/lib64/python3.9/site-packages/podman/domain/containers_create.py\", line 354, in create\\n response.raise_for_status(not_found=ImageNotFound)\\n File \"/opt/kayobe/venvs/kolla-ansible/lib64/python3.9/site-packages/podman/api/client.py\", line 75, in raise_for_status\\n raise APIError(cause, response=self._response, explanation=message)\\npodman.errors.exceptions.APIError: 500 Server Error: Internal Server Error (statfs /var/lib/docker: no such file or directory)\\n'"}

```

Seems like we are always mounting /var/lib/docker even on a podman deployment. There is support in cadvisor for podman:

https://github.com/google/cadvisor/pull/3021

but I've not investigated whether we have a new enough version. We certainly may need to change the /var/lib/docker bind mount.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to kolla-ansible (master)
Changed in kolla-ansible:
status: New → In Progress
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.