Bug 182645

Summary: 05-udev-early rules needs updating
Product: [Fedora] Fedora Reporter: David Zeuthen <davidz>
Component: udevAssignee: Harald Hoyer <harald>
Status: CLOSED RAWHIDE QA Contact:
Severity: high Docs Contact:
Priority: medium    
Version: rawhideCC: andreas.bierfert, kernel-maint, mclasen
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2006-03-01 16:30:51 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 150222    

Description David Zeuthen 2006-02-23 20:39:50 UTC
I'm using

 Kernel 2.6.15-1.1975_FC5
 udev 084-4

It seems this kernel no longer export 'bus' symlinks in sysfs but we didn't
update udev to wait for other files. Result we send the hotplug further up the
stack before the files we need are ready. This means hald pukes on my USB stick

15:36:34.027 [E] util.c:463: Cannot open
'/sys/devices/pci0000:00/0000:00:1d.1/usb2/2-2/2-2:1.0/host12/target12:0:0/12:0:0:0/model'
15:36:34.028 [E] util.c:463: Cannot open
'/sys/devices/pci0000:00/0000:00:1d.1/usb2/2-2/2-2:1.0/host12/target12:0:0/12:0:0:0/vendor'
15:36:34.029 [E] util.c:322: Cannot open
'/sys/devices/pci0000:00/0000:00:1d.1/usb2/2-2/2-2:1.0/host12/target12:0:0/12:0:0:0/type'

Of course, extra points for fixing the kernel to not send out events before all
sysfs files are actually ready. But I'll settle for some updated udev rules instead.

I'm marking this is a FC5 Blocker as it breaks hotplugging USB sticks. I'm also
marking this as high priority.

Thanks.

Comment 1 David Zeuthen 2006-02-23 20:44:42 UTC
Adding kernel folks as this is probably due to kernel ABI 'breakage'

Comment 2 David Zeuthen 2006-02-23 21:24:43 UTC
Reverting back to udev-084-1.1 made things work for me.

Comment 3 David Zeuthen 2006-02-23 21:40:37 UTC
Changing summary to something more appropriate.

Comment 4 Sammy 2006-02-23 23:06:13 UTC
I am seeing the same thing on old kernel FC5test2 kernel on two machines.
Going back to the FC5test2 udev fixes it. It is breaking some scsi stuff
too in addition to usb mouse.

Comment 6 Harald Hoyer 2006-02-24 07:32:32 UTC
> Reverting back to udev-084-1.1 made things work for me.

Hmm....

* Tue Jan 24 2006 Harald Hoyer <harald> - 078-7
- put WAIT_FOR_SYSFS rules in 05-udev-early.rules


Comment 7 Harald Hoyer 2006-02-24 07:36:59 UTC
Diff from udev-084-1.1 to current udev... This means we have to wait for usb
devices, too, which fails on some devices.

-ACTION=="add", DEVPATH=="/devices/*", ENV{PHYSDEVBUS}=="?*", WAIT_FOR_SYSFS="b
us"
+ACTION=="add", DEVPATH=="/devices/*", DEVPATH!="*usb*", ENV{PHYSDEVBUS}=="?*",
 WAIT_FOR_SYSFS="bus"


Comment 8 Harald Hoyer 2006-02-24 07:40:42 UTC
> It is breaking some scsi stuff too in addition to usb mouse.

Details please!

Comment 10 Harald Hoyer 2006-02-24 14:04:24 UTC
on the other side, there is bug #182723

Comment 11 Harald Hoyer 2006-02-24 16:04:29 UTC
and bug #182674