Description of problem: We have recently had trouble to identify why installation of RHEL-8 is failing in Beaker. After discussing the issue with the Anaconda team we have identified missing Anaconda logs in Beaker. Please refer to BZ1589832 - Add information about failing repos to the log Could you please add following logs for the installation task to Beaker? RHEL 6 & 7: yum.log RHEL 8: dnf.librepo.log hawkey.log lvm.log All log files are produced by Anaconda and are stored in /tmp directory. Thanks a lot! Jirka
I had a quick look in our source and it doesn't seem that we're watching any of these files. If I'm not mistaken, it should be a fairly easy addition to our scripts to add these logs.
This can now be tested on https://beaker-devel.app.eng.bos.redhat.com/ with Beaker 25.6.git.1.a00ec9068
Hmm, I don't see the new logs. Could you please check this job https://beaker-devel.app.eng.bos.redhat.com/jobs/14932 I will also post here a screenshot. I don't see any of these logs: dnf.librepo.log hawkey.log lvm.log Thanks Jirka
Created attachment 1470557 [details] Screenshot of logs for RHEL-8 installation https://beaker-devel.app.eng.bos.redhat.com/jobs/14932
(In reply to Jiri Hladky from comment #4) You are looking in the wrong place. Those are the logs from /distribution/install which collects a random grab-bag of hardware info and some RHEL5 era Anaconda logs. (If you are interested in what it actually does, and the new replacement task I wrote instead, have a look at bug 1188539.) All the installation logs collected by Anamon are shown on the Installation tab. In your recipe I see that it has indeed successfully collected dnf.librepo.log, hawkey.log, and lvm.log in addition to all the other usual Anaconda logs. I have also confirmed that yum.log appears on RHEL6, for example: https://beaker-devel.app.eng.bos.redhat.com/recipes/25163#installation However, yum.log is missing from RHEL7 recipes. I need to check if Anaconda actually produces that or if the name is perhaps different.
On RHEL7 there is no /tmp/yum.log. There is a 0-byte file at /tmp/yum.root/tmp/yum.log. Running lsof on the anaconda-yum process while it is running shows that the only log files it has open are /mnt/sysimage/tmp/yum.log and /tmp/rpm-script.log. At the end of the installation /mnt/sysimage/tmp/yum.log is 0 bytes, nothing was written to it. In /tmp/rpm-script.log I just see a sequential list of package installations, basically the same as what Anaconda prints to the console: warning: filesystem-3.2-25.el7.x86_64: Header V3 RSA/SHA256 Signature, key ID fd431d51: NOKEY libgcc-4.8.5-28.el7.x86_64 (1/601) 1:grub2-common-2.02-0.65.el7_4.2.noarch (2/601) redhat-release-server-7.5-8.el7.x86_64 (3/601) setup-2.8.71-9.el7.noarch (4/601) [...] so I don't see any value in that. Comparing against RHEL6, I see that yum.log on RHEL6 has Python logging messages from yum, but on RHEL7 these already appear in the packaging.log which Beaker was already collecting. I didn't see packaging.log in the lsof output of the anaconda-yum process while I was watching it, so I assume that on RHEL7 the yum messages are somehow passed back to the main Anaconda process which logs them to packaging.log. Therefore I think we are already collecting everything that was requested in this bug.
My mistake - I'm sorry about that. Everything is fine. Thanks! Jirka
This has been released with Beaker 25.6. Release Notes: https://beaker-project.org/docs/whats-new/release-25.html#beaker-25-6