Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
For bugs related to Red Hat Enterprise Linux 5 product line. The current stable release is 5.10. For Red Hat Enterprise Linux 6 and above, please visit Red Hat JIRA https://issues.redhat.com/secure/CreateIssue!default.jspa?pid=12332745 to report new issues.

Bug 500577

Summary: haldaemon starts too late during init to be used by other services
Product: Red Hat Enterprise Linux 5 Reporter: Daniel Berrangé <berrange>
Component: halAssignee: Richard Hughes <rhughes>
Status: CLOSED ERRATA QA Contact: desktop-bugs <desktop-bugs>
Severity: medium Docs Contact:
Priority: low    
Version: 5.4CC: rhughes, xen-maint
Target Milestone: beta   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2009-09-02 11:25:20 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:
Attachments:
Description Flags
patch to match fedora none

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