Bug 546312

Summary: hald & dbus-daemon stopped in %post of RHEL5 installations
Product: [Community] Spacewalk Reporter: Miroslav Suchý <msuchy>
Component: ClientsAssignee: Miroslav Suchý <msuchy>
Status: CLOSED CURRENTRELEASE QA Contact: Red Hat Satellite QA List <satqe-list>
Severity: urgent Docs Contact:
Priority: urgent    
Version: 0.7CC: atodorov, cperry, degts, dmach, jhutar, jpazdziora, justdave, mmatsuya, msuchy, psklenar, riek, rlerch, ssalevan, tao
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: 495680 Environment:
Last Closed: 2010-02-16 12:56:22 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: 495680, 625765    
Bug Blocks: 543511    

Description Miroslav Suchý 2009-12-10 16:19:58 UTC
+++ This bug was initially created as a clone of Bug #495680 +++

>> Under %post section of RHEL5 installation haldaemon and messagebus service is stopped. 
Later after reboot these services are running. But under %post they are stopped.
If we add commands to start (/etc/init.d/messagebus start;/etc/init.d/haldaemon start) it in %post then they get started. But they are not running by default.

rhnreg_ks has the below code which fetches the information and decides whether the system is fully virt or para virt or a physical host system

..snip ..
    bus = dbus.SystemBus()
           device_obj = \
               bus.get_object('org.freedesktop.Hal',
                              '/org/freedesktop/Hal/devices/computer')
           device = dbus.Interface(device_obj, 'org.freedesktop.Hal.Device')
           vendor = device.GetPropertyString('smbios.bios.vendor')
..snip ..

As messagebus and haldaemon are stopped in post , rhnreg_ks is unable to get the required information and hence the system is treated as a host system.

Comment 1 Miroslav Suchý 2009-12-14 16:17:37 UTC
I switched the code which are required for run of rhnreg_ks to use python-dmidecode and  use the data from dmidecode. It does work even without hald and dbus.

Commits:
975651d53abbe77b402e0d25e03ecb4c81a40ca9
3f7cb87a0956eb3ad433b709bb753fffd990beea

Note: there may be also some other queries which may be flipped from hal to smbios, but I do not see reasons for such task right now.

Comment 2 Miroslav Suchý 2009-12-15 09:27:09 UTC
Some small fixes in commit 4347495358bc4e38d7d35ee86f1e3ade10897ad3

Comment 3 Jan Pazdziora 2010-01-25 13:54:09 UTC
More fixes, for bug 494679: Spacewalk master 346bc39ccef8d5eb2849f77c6e9c4d30aed79d97.

Comment 4 Michael Mráka 2010-02-16 12:59:42 UTC
Spacewalk 0.8 has been released