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:
libguestfs builds in RHEL 6.1 are currently failing due to the failure of test inotify_add_watch_0. Note that no code change or patches have been added since the last successful build, so the failure is presumably down a behavioural change of some dependent component. Top guesses would be: kvm, kernel or glibc.
The test fails in brew, and on my RHEL 6.1 KVM guest. I'm not able to test it on bare metal.
Example failure output:
1/ 1 test_inotify_add_watch_0
libguestfs: trace: available "inotify"
libguestfs: trace: available = 0
libguestfs: trace: blockdev_setrw "/dev/sda"
libguestfs: trace: blockdev_setrw = 0
libguestfs: trace: umount_all
libguestfs: trace: umount_all = 0
libguestfs: trace: lvm_remove_all
libguestfs: trace: lvm_remove_all = 0
libguestfs: trace: mount_options "" "/dev/sdb1" "/"
libguestfs: trace: mount_options = 0
libguestfs: trace: mkdir "/inotify_add_watch"
libguestfs: trace: mkdir = 0
libguestfs: trace: inotify_init 0
libguestfs: trace: inotify_init = 0
libguestfs: trace: inotify_add_watch "/inotify_add_watch" 1073741823
libguestfs: trace: inotify_add_watch = 1
libguestfs: trace: touch "/inotify_add_watch/a"
libguestfs: trace: touch = 0
libguestfs: trace: touch "/inotify_add_watch/b"
libguestfs: trace: touch = 0
libguestfs: trace: inotify_files
libguestfs: trace: inotify_files = [""]
test_inotify_add_watch_0: short list returned from command
test_inotify_add_watch_0 FAILED
Version-Release number of selected component (if applicable):
libguestfs-1.7.17-12.el6
Minimal testcase with guestfish:
$ dd if=/dev/zero of=test.img bs=1M count=10
$ guestfish -a test.img
><fs> run
open /dev/kvm: No such file or directory
Could not initialize KVM, will disable KVM support
Using CPU model "cpu64-rhel6"
><fs> mkfs ext2 /dev/vda
><fs> mount /dev/vda /
><fs> inotify-init 0
><fs> mkdir /inotify_add_watch
><fs> inotify-add-watch /inotify_add_watch 1073741823
1
><fs> touch /inotify_add_watch/a
><fs> touch /inotify_add_watch/b
><fs> inotify-files
><fs> quit
This same test succeeds with libguestfs-1.8.1-1.fc14 in F14.