RFE: Ensure persistent logging is enabled

Bug #2055299 reported by Will Szumski
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
kayobe
In Progress
Wishlist
Will Szumski

Bug Description

On Redhat distros (at least when using images built with DIB) the journal is only stored in memory. This makes it hard to debug issues where the host rebooted.

As a side note this seems to be required when using podman as a container engine (although arguably that ould be seen as kolla-ansible bug):

```
    RUNNING HANDLER [common : Restart fluentd container] ************************************************************************************************************************
    fatal: [controller0]: FAILED! => {"changed": true, "msg": "'Traceback (most recent call last):\\n File \"/tmp/ansible_kolla_container_payload_e4l_x66e/ansible_kolla_container_payload.zip/ansible/modules/kolla_container.py\", line 425, in main\\n File \"/tmp/ansible_kolla_container_payload_e4l_x66e/ansible_kolla_container_payload.zip/ansible/module_utils/kolla_podman_worker.py\", line 510, in recreate_or_restart_container\\n self.start_container()\\n File \"/tmp/ansible_kolla_container_payload_e4l_x66e/ansible_kolla_container_payload.zip/ansible/module_utils/kolla_podman_worker.py\", line 533, in start_container\\n self.create_container()\\n File \"/tmp/ansible_kolla_container_payload_e4l_x66e/ansible_kolla_container_payload.zip/ansible/module_utils/kolla_podman_worker.py\", line 496, 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 353, 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/log/journal: no such file or directory)\\n'"}

```

Changed in kayobe:
status: New → In Progress
Will Szumski (willjs)
Changed in kayobe:
importance: Undecided → Medium
importance: Medium → Wishlist
Revision history for this message
Maksim Malchuk (mmalchuk) wrote :

Fix proposed to branch: master
Review: https://review.opendev.org/c/openstack/kayobe/+/909685

Changed in kayobe:
assignee: nobody → Will Szumski (willjs)
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.