Description of problem: ceilometer-ipmi-agent logs to /var/log/ceilometer inside the container . Version-Release number of selected component (if applicable): All How reproducible: Always Steps to Reproduce: 1. Enable ceilometer 2. 3. Actual results: /var/log/ceilometer in the container will never be log rotated Expected results: it should be Additional info: [1] https://review.opendev.org/c/openstack/tripleo-heat-templates/+/833095
Cherry-pick to victoria still pending
Cherry pick to train merged now. Linked here and moving status to POST.
This fixes a bug, the user impact would be that this component would log to the correct file.
log file ceilometer-polling.log created in /var/log/containers/ceilometer volume mount present ----------------------- "Name": "ceilometer_agent_ipmi", "Source": "/var/lib/config-data/puppet-generated/ceilometer", "Source": "/var/lib/kolla/config_files/ceilometer-agent-ipmi.json", "Source": "/var/log/containers/ceilometer", "Destination": "/var/log/ceilometer", "User": "ceilometer", "HOME=/var/lib/ceilometer" "Image": "undercloud-0.ctlplane.redhat.local:8787/rh-osbs/rhosp16-openstack-ceilometer-ipmi:16.1_20220907.1", "com.redhat.component": "openstack-ceilometer-ipmi-container", "config_data": "{\"environment\": {\"KOLLA_CONFIG_STRATEGY\": \"COPY_ALWAYS\", \"TRIPLEO_CONFIG_HASH\": \"354e121a6f9a7b1c6daca502f8fc9046\"}, \"healthcheck\": {\"test\": \"/openstack/healthcheck\"}, \"image\": \"undercloud-0.ctlplane.redhat.local:8787/rh-osbs/rhosp16-openstack-ceilometer-ipmi:16.1_20220907.1\", \"net\": \"host\", \"privileged\": false, \"restart\": \"always\", \"volumes\": [\"/etc/hosts:/etc/hosts:ro\", \"/etc/localtime:/etc/localtime:ro\", \"/etc/pki/ca-trust/extracted:/etc/pki/ca-trust/extracted:ro\", \"/etc/pki/ca-trust/source/anchors:/etc/pki/ca-trust/source/anchors:ro\", \"/etc/pki/tls/certs/ca-bundle.crt:/etc/pki/tls/certs/ca-bundle.crt:ro\", \"/etc/pki/tls/certs/ca-bundle.trust.crt:/etc/pki/tls/certs/ca-bundle.trust.crt:ro\", \"/etc/pki/tls/cert.pem:/etc/pki/tls/cert.pem:ro\", \"/dev/log:/dev/log\", \"/etc/puppet:/etc/puppet:ro\", \"/var/lib/kolla/config_files/ceilometer-agent-ipmi.json:/var/lib/kolla/config_files/config.json:ro\", \"/var/lib/config-data/puppet-generated/ceilometer:/var/lib/kolla/config_files/src:ro\", \"/var/log/containers/ceilometer:/var/log/ceilometer:z\"]}",
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory (Moderate: Red Hat OpenStack 16.1.9 (openstack-tripleo-heat-templates) security update), and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHSA-2022:8796