Bug 500577 - haldaemon starts too late during init to be used by other services
Summary: haldaemon starts too late during init to be used by other services
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: hal
Version: 5.4
Hardware: All
OS: Linux
low
medium
Target Milestone: beta
: ---
Assignee: Richard Hughes
QA Contact: desktop-bugs@redhat.com
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2009-05-13 11:16 UTC by Daniel Berrangé
Modified: 2009-09-02 11:25 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2009-09-02 11:25:20 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
patch to match fedora (510 bytes, patch)
2009-05-13 15:05 UTC, Richard Hughes
no flags Details | Diff


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2009:1359 0 normal SHIPPED_LIVE hal bug fix and enhancement update 2009-09-01 10:53:48 UTC

Description Daniel Berrangé 2009-05-13 11:16:24 UTC
Description of problem:
In RHEL5 the haldaemon initscript is set to start at position "98". This makes it hard for other services to use HAL, because it only leaves 1 single position left for all other services requiring HAL. 

In RHEL this breaks libvirt's hardware device management APIs, because libvirt starts at position 97 and is then unable to commnunicate with HAL.

In Fedora HAL is starting at a much more sensible position '26'. This needs to be done in RHEL too. 

Version-Release number of selected component (if applicable):
hal-0.5.8.1-38.el5
libvirt-0.6.3-2.el5

How reproducible:
Always

Steps to Reproduce:
1. chkconfig libvirtd on
2. chkconfig haldaemon on
3. shutdown -r now
4. wait for it to reboot and finish init
5. virsh nodedev-list 
  
Actual results:
# virsh nodedev-list --tree
error: Failed to count node devices
error: this function is not supported by the hypervisor: virNodeNumOfDevices
# service libvirtrd restart
# virsh nodedev-list --tree
computer
  |
  +-pci_1013_b8
  +-pci_10ec_8139
  |   |
  |   +-net_00_16_3e_09_f5_eb
  |     
  +-pci_10ec_8139_0
  |   |
  |   +-net_00_16_3e_09_f4_eb
  |     
  +-pci_10ec_8139_1
  |   |
  |   +-net_00_16_3e_09_f3_eb
  |     
  +-pci_10ec_8139_2
  |   |
.... etc...


Expected results:
# virsh nodedev-list works immediately following completion of boot. 

Additional info:

Comment 4 Richard Hughes 2009-05-13 15:05:14 UTC
Created attachment 343782 [details]
patch to match fedora

Comment 11 errata-xmlrpc 2009-09-02 11:25:20 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHBA-2009-1359.html


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