8.4.z test build: https://brewweb.engineering.redhat.com/brew/taskinfo?taskID=43282798 8.5.z test build: https://brewweb.engineering.redhat.com/brew/taskinfo?taskID=43282811 includes update to rng-tools v6.14 @b2b7934e + udevadm fix + pwck fix
[CI] [GATING] [DONE] rng-tools-6.14-5.git.b2b7934e.el8_4 passed gating because all required tests passed rng-tools-6.14-5.git.b2b7934e.el8_4 successfully moved from rhel-8.4.0-z-gate into rhel-8.4.0-z-candidate task: https://brewweb.engineering.redhat.com/brew/taskinfo?taskID=43645817 build: https://brewweb.engineering.redhat.com/brew/buildinfo?buildID=1918400 osci: https://dashboard.osci.redhat.com/#/artifact/brew-build/aid/43645817
the test plan is similar as in the bz1975554, since the issue is very similar: 0) OPTIONAL: check that the current (6.14-4 and earlier) version of rng-tools has udevadm call in its service files: # grep udevadm /usr/lib/systemd/system/rngd* /usr/lib/systemd/system/rngd-wake-threshold.service:ExecStart=/bin/sh -c "... udevadm trigger --sysname-match=hw_random --settle" 1) grab the package from brew, see task url above in #c3. 2) install (or update if previous version was present): # dnf -y install rng-tools*rpm 3) verify that all rngd service files DO NOT contain "udevadm" line: # grep udevadm /usr/lib/systemd/system/rngd* <empty> 6) OPTIONAL: clean up # dnf -y erase rng-tools # rm -f rng-tools*rpm
Looks good for the fixed RPM: RHEL-8.4.0-updates-20211026.0 with rng-tools-6.8-4.el8_4.x86_64 # grep udevadm /usr/lib/systemd/system/rngd* /usr/lib/systemd/system/rngd-wake-threshold.service:ExecStart=/bin/sh -c "PSIZE=$(cat /proc/sys/kernel/random/poolsize); let THRESH=$PSIZE*3/4; echo $THRESH>/proc/sys/kernel/random/write_wakeup_threshold; udevadm trigger --sysname-match=hw_random --settle" # grep Condition /usr/lib/systemd/system/rngd* /usr/lib/systemd/system/rngd.service:ConditionVirtualization=!container Fixed version: # rpm2cpio < rng-tools-6.14-5.git.b2b7934e.el8_4.x86_64.rpm | cpio -icdumv (...) 281 blocks # grep udevadm usr/lib/systemd/system/rngd* # grep Condition usr/lib/systemd/system/rngd* usr/lib/systemd/system/rngd.service:ConditionVirtualization=!container usr/lib/systemd/system/rngd-wake-threshold.service:ConditionVirtualization=!container On the other hand, this is what I got on RHEL-9.0.0-20220310.d.3: # rpm -q rng-tools rng-tools-6.14-2.git.b2b7934e.el9.x86_64 # grep udevadm /usr/lib/systemd/system/rngd* /usr/lib/systemd/system/rngd-wake-threshold.service:ExecStart=/bin/sh -c "PSIZE=$(cat /proc/sys/kernel/random/poolsize); let THRESH=$PSIZE*3/4; echo $THRESH>/proc/sys/kernel/random/write_wakeup_threshold; udevadm trigger --sysname-match=hw_random --settle" Do we want to backport this fix to RHEL9 as well? Not sure if we already have a request for that, could not find any.
(In reply to Vilém Maršík from comment #6) > Do we want to backport this fix to RHEL9 as well? Not sure if we already > have a request for that, could not find any. Hi, Vilem, yes, unfortunately this issue is present in RHEL-8.6.z/8.7.0 and -9.0.z/9.1.0. I'm planning to bring this fix (and couple of others) to RHEL-8.6/7 via bz2053160 and to 9.0/1 via its clone which yet has to be created. Thanks for noticing!
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 (rng-tools 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-2022:4826