Bug 546312 - hald & dbus-daemon stopped in %post of RHEL5 installations
Summary: hald & dbus-daemon stopped in %post of RHEL5 installations
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Spacewalk
Classification: Community
Component: Clients
Version: 0.7
Hardware: All
OS: Linux
urgent
urgent
Target Milestone: ---
Assignee: Miroslav Suchý
QA Contact: Red Hat Satellite QA List
URL:
Whiteboard:
Depends On: 495680 625765
Blocks: space08
TreeView+ depends on / blocked
 
Reported: 2009-12-10 16:19 UTC by Miroslav Suchý
Modified: 2010-08-20 13:58 UTC (History)
14 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of: 495680
Environment:
Last Closed: 2010-02-16 12:56:22 UTC
Embargoed:


Attachments (Terms of Use)

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


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