Bug 1591244 - Please add anaconda related logs to the Beaker
Summary: Please add anaconda related logs to the Beaker
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Beaker
Classification: Retired
Component: general
Version: develop
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: 25.6
Assignee: Matt Tyson 🤬
QA Contact: Dan Callaghan
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-06-14 11:23 UTC by Jiri Hladky
Modified: 2018-09-03 23:31 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-09-03 23:31:30 UTC
Embargoed:


Attachments (Terms of Use)
Screenshot of logs for RHEL-8 installation (131.75 KB, image/png)
2018-07-25 21:08 UTC, Jiri Hladky
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Beaker Project Gerrit 6212 0 None None None 2018-07-20 00:04:35 UTC
Red Hat Bugzilla 1589832 1 None None None 2021-01-20 06:05:38 UTC

Internal Links: 1589832

Description Jiri Hladky 2018-06-14 11:23:37 UTC
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

Comment 1 Roman Joost 2018-06-15 02:54:42 UTC
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.

Comment 2 Roman Joost 2018-07-25 02:55:19 UTC
This can now be tested on https://beaker-devel.app.eng.bos.redhat.com/ with Beaker 25.6.git.1.a00ec9068

Comment 3 Jiri Hladky 2018-07-25 21:06:54 UTC
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

Comment 4 Jiri Hladky 2018-07-25 21:08:03 UTC
Created attachment 1470557 [details]
Screenshot of logs for RHEL-8 installation

https://beaker-devel.app.eng.bos.redhat.com/jobs/14932

Comment 5 Dan Callaghan 2018-08-01 04:56:44 UTC
(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.

Comment 6 Dan Callaghan 2018-08-01 05:14:47 UTC
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.

Comment 7 Jiri Hladky 2018-08-06 15:45:44 UTC
My mistake - I'm sorry about that. Everything is fine. 

Thanks!
Jirka

Comment 8 Roman Joost 2018-09-03 23:31:30 UTC
This has been released with Beaker 25.6.

Release Notes: https://beaker-project.org/docs/whats-new/release-25.html#beaker-25-6


Note You need to log in before you can comment on or make changes to this bug.