Description of problem:
Ironic-inspector logs are not saved to the ramdisk even when configured to do so. I don't see a copy of these logs at /shared/log/ironic-inspector/ramdisk in ironic-inspector container.
Version-Release number of selected component (if applicable):
This problem exists in the latest 4.6 and 4.5.4
Steps to Reproduce:
1.Deploy target OCP image (dev-scripts or baremetal). Keep bootstrap VM (export OPENSHIFT_INSTALL_PRESERVE_BOOTSTRAP=y)
2. Log in to the the container from the bootstrap (sudo podman exec -it ironic-inspector bash). the logs directory structure was a little different and empty:
3. Observe /shared/log/ironic-inspector/ramdisk is missing.
4. Observe ramdisk warning log messages from the bootstrap: sudo podman logs ironic-inspector | grep ramdisk
2020-07-27 22:03:01.470 1 DEBUG ironic_inspector.process [-] [node: 2735e0d6-d981-4ec4-949e-0d9d9e63c321 state processing MAC 00:89:2f:4f:41:2f] Running post-processing hook ramdisk_error _run_post_hooks /usr/lib/python3.6/site-packages/ironic_inspector/process.py:268
2020-07-27 22:03:01.886 1 WARNING ironic_inspector.plugins.extra_hardware [-] [node: 2735e0d6-d981-4ec4-949e-0d9d9e63c321 state processing MAC 00:89:2f:4f:41:2f] No extra hardware information was received from the ramdisk
2020-07-27 22:03:01.899 1 WARNING ironic_inspector.process [-] [node: 2735e0d6-d981-4ec4-949e-0d9d9e63c321 MAC 00:89:2f:4f:41:2f] No logs were passed by the ramdisk
/shared/log/ironic-inspector/ramdisk is missing.
/shared/log/ironic-inspector/ramdisk should store collected logs.
Fix has merged.
Changing Status until patch merges downstream to https://github.com/openshift/ironic-image.
[core@localhost ~]$ sudo podman exec -it ironic-inspector bash
[root@localhost /]# ls /shared/log/ironic-inspector/ramdisk/
Client Version: 4.6.0-0.nightly-2020-08-22-221008
Server Version: 4.6.0-0.nightly-2020-08-22-221008
Kubernetes Version: v1.19.0-rc.2+3e083ac-dirty
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 (OpenShift Container Platform 4.6 GA Images), and where to find the updated
files, follow the link below.
If the solution does not work for you, open a new bug report.