Bug 743189

Summary: org.freedesktop.DBus.Error.FileNotFound : while registering rhel61 node using subscription-manager
Product: Red Hat Enterprise Linux 6 Reporter: Sachin Ghai <sghai>
Component: subscription-managerAssignee: Bryan Kearney <bkearney>
Status: CLOSED ERRATA QA Contact: Entitlement Bugs <entitlement-bugs>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.1CC: jsefler, katello-qa-list, treydock
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-06-20 13:03:34 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Bug Depends On:    
Bug Blocks: 738066, 756082    

Description Sachin Ghai 2011-10-04 06:46:31 UTC
Description of problem:
I'm using katello server and trying to register a rhel61 node using subscription manager.

Node is registered successfully, however getting following "file not found" error:

[root@dhcp201-195 ~]# subscription-manager register --username=admin --password=admin --org=sghai_org --environment=testing
The system has been registered with id: ba853c2a-5e36-4850-9378-3e637552e4b2 
org.freedesktop.DBus.Error.FileNotFound: Failed to connect to socket /var/run/dbus/system_bus_socket: No such file or directory


[root@dhcp201-195 ~]# subscription-manager unregister
org.freedesktop.DBus.Error.FileNotFound: Failed to connect to socket /var/run/dbus/system_bus_socket: No such file or directory 


Version-Release number of selected component (if applicable):
[root@dhcp201-195 ~]# rpm -qa | grep rhsm
python-rhsm-0.96.12-1.el6.noarch

[root@dhcp201-195 ~]# rpm -qa | grep subscription-manager
subscription-manager-0.96.9-1.el6.x86_64
[root@dhcp201-195 ~]# 


[root@dhcp201-195 ~]# rpm -qa | grep dbus
dbus-libs-1.2.24-4.el6_0.x86_64
dbus-python-0.83.0-6.1.el6.x86_64
dbus-1.2.24-4.el6_0.x86_64
dbus-glib-0.86-5.el6.x86_64
[root@dhcp201-195 ~]# 


How reproducible:
always

Steps to Reproduce:
1.
2.
3.
  
Actual results:
org.freedesktop.DBus.Error.FileNotFound: Failed to connect to socket /var/run/dbus/system_bus_socket: No such file or directory 

Expected results:
subscription-manager tool should not raise any error while performing register/unregister or any other operation.

Additional info:

Comment 4 Trey Dockendorf 2011-11-30 17:34:36 UTC
I have noticed this using the Minimal install option from the RedHat 6.1 DVD.

Comment 8 John Sefler 2012-03-09 19:35:48 UTC
I just did a "Minimal" install of /rel-eng/RHEL6.3-20120307.8/6.3/Server/x86_64/

[root@jsefler-r63-server-minimal ~]# tail -5 /root/anaconda-ks.cfg

%packages
@core
@server-policy
%end



[root@jsefler-r63-server-minimal ~]# rpm -qa | grep subscription-manager
subscription-manager-0.99.9-1.el6.x86_64
[root@jsefler-r63-server-minimal ~]# rpm -qa | grep dbus
dbus-libs-1.2.24-5.el6_1.x86_64
dbus-glib-0.86-5.el6.x86_64
dbus-python-0.83.0-6.1.el6.x86_64


[root@jsefler-r63-server-minimal ~]# ls /var/run/dbus/system_bus_socket
ls: cannot access /var/run/dbus/system_bus_socket: No such file or directory


[root@jsefler-r63-server-minimal ~]# subscription-manager register --username qa
Password: 
The system has been registered with id: 57fa07a3-8a88-400e-979c-043c1ecd4e29 
[root@jsefler-r63-server-minimal ~]# subscription-manager unregister
System has been un-registered.
[root@jsefler-r63-server-minimal ~]# 


No org.freedesktop.DBus.Error was encountered during a register and unregister on a "Minimal" install of rhel63 server.

Moving to VERIFIED

Comment 10 errata-xmlrpc 2012-06-20 13:03:34 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

http://rhn.redhat.com/errata/RHBA-2012-0804.html