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.
Bug 1282814 - udev events are reordered relative to kernel uevents
Summary: udev events are reordered relative to kernel uevents
Keywords:
Status: CLOSED INSUFFICIENT_DATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: systemd
Version: 7.2
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: systemd-maint
QA Contact: qe-baseos-daemons
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-11-17 14:10 UTC by Marius Vollmer
Modified: 2016-02-02 14:09 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-02-02 14:09:57 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
udevadm monitor (19.71 KB, text/plain)
2015-11-17 14:10 UTC, Marius Vollmer
no flags Details

Description Marius Vollmer 2015-11-17 14:10:47 UTC
Created attachment 1095496 [details]
udevadm monitor

Description of problem:

During the check-storage-mdraid test of Cockpit, a existing partition disappears from the knowledge of storaged.  A "udevadm trigger" or restart of storaged brings it back.

The reason seems to be that storaged receives a "remove" udev event for that partition and nothing after that.  The reason for _that_ seems to be that something reorders events so that a pair of "remove/add" kernel uevents arrives as a "add/remove" udev events at the application.

Attached is a "udev monitor" log for a run of check-storage-mdraid.  The test essentially 

 - creates a mdraid device
 - mucks around a bit with it
 - creates a gpt partition table on it with parted
 - creates a 20 MB partition on it with parted
 - creates a partition with parted that fills the rest of the device

At this point, storaged has received a "remove" event for the first partition.

Version-Release number of selected component (if applicable):
systemd-219-11.el7.x86_64

How reproducible:
Always with the exact images that I am using.  Very sporadically with other images.



Here is the interesting part of the log:

KERNEL[114.740468] change   /devices/virtual/block/md127 (block)
KERNEL[114.742033] add      /devices/virtual/block/md127/md127p1 (block)
UDEV  [114.745086] remove   /devices/virtual/block/md127/md127p1 (block)
KERNEL[114.762729] remove   /devices/virtual/block/md127/md127p1 (block)   <- kernel remove
KERNEL[114.762999] add      /devices/virtual/block/md127/md127p1 (block)   <- kernel add
KERNEL[114.763589] add      /devices/virtual/block/md127/md127p2 (block)
KERNEL[114.777821] change   /devices/virtual/block/md127 (block)
UDEV  [114.793438] change   /devices/virtual/block/md127 (block)
UDEV  [114.813974] add      /devices/virtual/block/md127/md127p1 (block)
UDEV  [114.819050] add      /devices/virtual/block/md127/md127p1 (block)   <- udev add
UDEV  [114.842078] remove   /devices/virtual/block/md127/md127p1 (block)   <- udev remove
UDEV  [114.849552] add      /devices/virtual/block/md127/md127p2 (block)
UDEV  [114.879320] change   /devices/virtual/block/md127 (block)
KERNEL[115.050059] change   /devices/virtual/block/md127/md127p2 (block)

Comment 2 Marius Vollmer 2015-11-18 10:00:44 UTC
As I found out later, the virtual machine had some unexpected CPU and I/O load on it while this was happening (mkdumprd was running).

Comment 3 Harald Hoyer 2015-12-14 15:17:21 UTC
Could you please run udevadm monitor with the "-p" flag, so that we can see the sequence numbers?

Comment 4 Marius Vollmer 2016-02-02 14:09:57 UTC
This has last happened on 27 Nov 2015, so I guess it has been fixed by some update or other.


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