Bug 851974
Summary: | udev rule ordering ignored | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 6 | Reporter: | Marko Myllynen <myllynen> |
Component: | hal | Assignee: | Richard Hughes <rhughes> |
Status: | CLOSED WONTFIX | QA Contact: | Desktop QE <desktop-qa-list> |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 6.3 | CC: | harald, msekleta, salmy, tpelka |
Target Milestone: | rc | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | If docs needed, set a value | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2017-12-06 12:24:27 UTC | Type: | Bug |
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: | 1270825 |
Description
Marko Myllynen
2012-08-27 07:52:50 UTC
Well, there is no guarantee, that after sending to 'socket:@/org/freedesktop/hal/udev_event' the initialization of the etoken device is immediately complete, when your test.sh is run. Maybe your test.sh should be triggered by hal then after the initialization and not by the udev event. (In reply to comment #2) > Well, there is no guarantee, that after sending to > 'socket:@/org/freedesktop/hal/udev_event' the initialization of the etoken > device is immediately complete, when your test.sh is run. Maybe your test.sh > should be triggered by hal then after the initialization and not by the udev > event. This particular case I referred was just an example to illustrate that udev ignoring its own ordering rules is causing issues. I've already created a work around for this particular issue but IMHO udev should be fixed to follow its own rules. Thanks. If I understand this issue correctly: HAL is an asynchronous event-driven mechanism and does not block udev rules execution. The event is delivered to HAL in the proper udev rules order, but executed by HAL at any later time. I don't think you can expect a defined order when udev and HAL hooks are mixed, they are just non synchronized, and this is the expected behaviour. (In reply to comment #4) > If I understand this issue correctly: > > HAL is an asynchronous event-driven mechanism and does not block udev rules > execution. > > The event is delivered to HAL in the proper udev rules order, but executed by > HAL at any later time. No, I don't think this is the case since in the example script there could be even something like "sleep 3600" and HAL still doesn't do anything meanwhile but only instantly after the script exits so it seems clearly indicate that the event is not delivered to HAL in the order manifested by udevadm test. Thanks. This request was not resolved in time for the current release. Red Hat invites you to ask your support representative to propose this request, if still desired, for consideration in the next release of Red Hat Enterprise Linux. (In reply to Marko Myllynen from comment #5) > No, I don't think this is the case since in the example script there could > be even something like "sleep 3600" and HAL still doesn't do anything > meanwhile but only instantly after the script exits so it seems clearly > indicate that the event is not delivered to HAL in the order manifested by > udevadm test. I tried to reproduce this now, but in my case (KVM, in 99-test.rules trigger is addition of block device + running hal from command line with --daemon=no --verbose=yes) I can see from log produced by hal that it is notified about event *before* test script finishes. Reassigning to hal. Red Hat Enterprise Linux 6 is in the Production 3 Phase. During the Production 3 Phase, Critical impact Security Advisories (RHSAs) and selected Urgent Priority Bug Fix Advisories (RHBAs) may be released as they become available. The official life cycle policy can be reviewed here: http://redhat.com/rhel/lifecycle This issue does not meet the inclusion criteria for the Production 3 Phase and will be marked as CLOSED/WONTFIX. If this remains a critical requirement, please contact Red Hat Customer Support to request a re-evaluation of the issue, citing a clear business justification. Note that a strong business justification will be required for re-evaluation. Red Hat Customer Support can be contacted via the Red Hat Customer Portal at the following URL: https://access.redhat.com/ |