Note: This bug is displayed in read-only format because
the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Description of problem:
I initially created a "RHEL for Edge Commit" image and exported it through a HTTP server.
I then created an empty blueprint (as required to create a "RHEL for Edge Installer (.iso)" image) and started creating the image.
After some time, rng-tools gets installed, post-installation script executed, which triggers a "udevadm trigger --sysname-match=hw_random --settle" command.
The latter never ends, causing the image build to hang forever:
~~~
# pstree -pa 57978
bwrap,57978 --cap-add CAP_MAC_ADMIN --chdir / --die-with-parent --new-session --setenv PATH /usr/sbin:/usr/bin ...
└─bwrap,57979 --cap-add CAP_MAC_ADMIN --chdir / --die-with-parent --new-session --setenv PATH ...
└─org.osbuild.rhe,57980 /run/osbuild/lib/runners/org.osbuild.rhel84 /run/osbuild/bin/org.osbuild.rpm
└─org.osbuild.rpm,57985 /run/osbuild/bin/org.osbuild.rpm
└─rpm,57995 --verbose --root /run/osbuild/tree --excludedocs --define _pkgverify_level none ...
└─sh,58689 /var/tmp/rpm-tmp.TkaJ0r 1
└─udevadm,58691 trigger --sysname-match=hw_random --settle
~~~
~~~
# rpm -q --scripts rng-tools
preinstall scriptlet (using /bin/sh):
getent passwd rngd >/dev/null || useradd -r -M -d /var/lib/rngd -s /sbin/nologin -c "Random Number Generator Daemon" rngd
postinstall scriptlet (using /bin/sh):
if [ $1 -eq 1 ] ; then
# Initial installation
systemctl --no-reload preset rngd.service rngd-wake-threshold.service &>/dev/null || :
fi
udevadm trigger --sysname-match=hw_random --settle
[...]
~~~
Collecting a core shows udevadm is waiting forever on notify socket:
~~~
(gdb) bt
#0 0x00007f9c7894f0bb in epoll_wait () from target:/lib64/libc.so.6
#1 0x000055e6ba7f7ea8 in adm_trigger ()
#2 0x000055e6ba7f356a in main ()
~~~
Version-Release number of selected component (if applicable):
osbuild-composer-28.6-1.el8_4.x86_64
How reproducible:
Always, see above
Additional info:
If I kill udevadm, the image continues to build successfully.
Comment 1Christian Kellner
2021-10-18 15:46:22 UTC
This was a bug in the rng-tools package (https://bugzilla.redhat.com/show_bug.cgi?id=1975554) that we have worked-around in osbuild. The work-around landed in osbuild 30, which is RHEL 8.5 but not 8.4, I am afraid.
Description of problem: I initially created a "RHEL for Edge Commit" image and exported it through a HTTP server. I then created an empty blueprint (as required to create a "RHEL for Edge Installer (.iso)" image) and started creating the image. After some time, rng-tools gets installed, post-installation script executed, which triggers a "udevadm trigger --sysname-match=hw_random --settle" command. The latter never ends, causing the image build to hang forever: ~~~ # pstree -pa 57978 bwrap,57978 --cap-add CAP_MAC_ADMIN --chdir / --die-with-parent --new-session --setenv PATH /usr/sbin:/usr/bin ... └─bwrap,57979 --cap-add CAP_MAC_ADMIN --chdir / --die-with-parent --new-session --setenv PATH ... └─org.osbuild.rhe,57980 /run/osbuild/lib/runners/org.osbuild.rhel84 /run/osbuild/bin/org.osbuild.rpm └─org.osbuild.rpm,57985 /run/osbuild/bin/org.osbuild.rpm └─rpm,57995 --verbose --root /run/osbuild/tree --excludedocs --define _pkgverify_level none ... └─sh,58689 /var/tmp/rpm-tmp.TkaJ0r 1 └─udevadm,58691 trigger --sysname-match=hw_random --settle ~~~ ~~~ # rpm -q --scripts rng-tools preinstall scriptlet (using /bin/sh): getent passwd rngd >/dev/null || useradd -r -M -d /var/lib/rngd -s /sbin/nologin -c "Random Number Generator Daemon" rngd postinstall scriptlet (using /bin/sh): if [ $1 -eq 1 ] ; then # Initial installation systemctl --no-reload preset rngd.service rngd-wake-threshold.service &>/dev/null || : fi udevadm trigger --sysname-match=hw_random --settle [...] ~~~ Collecting a core shows udevadm is waiting forever on notify socket: ~~~ (gdb) bt #0 0x00007f9c7894f0bb in epoll_wait () from target:/lib64/libc.so.6 #1 0x000055e6ba7f7ea8 in adm_trigger () #2 0x000055e6ba7f356a in main () ~~~ Version-Release number of selected component (if applicable): osbuild-composer-28.6-1.el8_4.x86_64 How reproducible: Always, see above Additional info: If I kill udevadm, the image continues to build successfully.