Bug 2154906

Summary: Better debugging for DUD
Product: Red Hat Enterprise Linux 9 Reporter: Jiri Konecny <jkonecny>
Component: anacondaAssignee: Anaconda Maintenance Team <anaconda-maint-list>
Status: CLOSED ERRATA QA Contact: Release Test Team <release-test-team-automation>
Severity: low Docs Contact:
Priority: unspecified    
Version: 9.1CC: anaconda-maint-list, jstodola, release-test-team-automation, rvykydal, vslavik
Target Milestone: rcKeywords: Triaged
Target Release: ---Flags: pm-rhel: mirror+
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: anaconda-34.25.3.2-1.el9 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 2154904 Environment:
Last Closed: 2023-11-07 08:31:56 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Jiri Konecny 2022-12-19 14:57:48 UTC
+++ This bug was initially created as a clone of Bug #2154904 +++

Description of problem:
Currently the DUD logging is not enough to track what is happening but mainly it also log debug outputs only to journal which is not helpful much in case of freezes during boot.

Let's backport improvement in Dracut DUD code debugging to RHEL.

Upstream PR: https://github.com/rhinstaller/anaconda/pull/4149

Comment 2 Jiri Konecny 2023-04-28 14:20:06 UTC
PR: https://github.com/rhinstaller/anaconda/pull/4722

Comment 3 Jan Stodola 2023-05-18 12:06:57 UTC
There is an unexpected message printed on the console: "leaving the driver_updates script" - should be printed only when debugging is enabled.

...
[  OK  ] Reached target Basic System.
[    5.177903] dracut-initqueue[1337]: Examining /dev/sr1
[    5.182882] dracut-initqueue[1338]: mount: /media/DD-1: WARNING: source write
-protected, mounted read-only.
[    5.190734] dracut-initqueue[1337]: Extracting: kmod-redhat-e1000e
[    7.749154] dracut-initqueue[1337]: leaving the driver_updates script
[    7.789214] dracut-initqueue[1371]: Warning: Can't get kickstart from /dev/sr
1:/ks.cfg
[  OK  ] Finished dracut initqueue hook.
[  OK  ] Reached target Preparation for Remote File Systems.
...

Tested with anaconda-34.25.3.1-1.el9.
Moving back to ASSIGNED.

Comment 8 Jiri Konecny 2023-05-19 10:19:38 UTC
Fix PR: https://github.com/rhinstaller/anaconda/pull/4776

Comment 9 Jan Stodola 2023-06-07 15:19:47 UTC
Retested with anaconda-34.25.3.2-1.el9, the unexpected message is no longer printed when debugging is not enabled:

...
[    5.460273] loop2: detected capacity change from 0 to 67108864
[    5.548130] dracut-initqueue[1338]: Examining /dev/sr1
[    5.553573] dracut-initqueue[1339]: mount: /media/DD-1: WARNING: source write-protected, mounted read-only.
[    5.559433] dracut-initqueue[1338]: Extracting: kmod-redhat-e1000e
[    8.007579] e1000e: loading out-of-tree module taints kernel.
[    8.007670] e1000e: module verification failed: signature and/or required key missing - tainting kernel
[    8.010444] e1000e: DRIVERDISK: e1000e loaded
[    8.010445] e1000e: Intel(R) PRO/1000 Network Driver
[    8.010445] e1000e: Copyright(c) 1999 - 2015 Intel Corporation.
[    7.969555] dracut-initqueue[1359]: Warning: Can't get kickstart from /dev/sr1:/ks.cfg
[  OK  ] Finished dracut initqueue hook.
...

Marking as Verified:Tested

Comment 12 Jan Stodola 2023-06-13 11:39:18 UTC
Checked that anaconda-34.25.3.2-1.el9 is in nightly compose RHEL-9.3.0-20230613.0

Moving to VERIFIED

Comment 14 errata-xmlrpc 2023-11-07 08:31:56 UTC
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 (anaconda bug fix and enhancement 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/RHBA-2023:6414