Bug 761489

Summary: rhnreg_ks exits with 1 when rhn-virtualization-host installed and libvirtd not running
Product: Red Hat Enterprise Linux 5 Reporter: Jan Hutař <jhutar>
Component: rhn-client-toolsAssignee: Stephen Herr <sherr>
Status: CLOSED ERRATA QA Contact: Martin Korbel <mkorbel>
Severity: low Docs Contact:
Priority: unspecified    
Version: 5.8CC: jpazdziora, mkollar, mkorbel, tlestach
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: rhn-client-tools-0.4.20-78.el5 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: 714903
: 839776 (view as bug list) Environment:
Last Closed: 2013-01-08 07:45:00 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: 714903    
Bug Blocks: 839776, 839791    

Comment 1 Matej Kollar 2012-01-04 11:01:42 UTC
There is also a side effect, that traceback appears in /var/log/up2date:

Traceback (most recent call last):
  File "/usr/sbin/rhnreg_ks", line 227, in ?
    cli.run()
  File "/usr/share/rhn/up2date_client/rhncli.py", line 66, in run
    sys.exit(self.main() or 0)
  File "/usr/sbin/rhnreg_ks", line 178, in main
    rhnreg.sendVirtInfo(systemId)
  File "/usr/share/rhn/up2date_client/rhnreg.py", line 674, in sendVirtInfo
    support.refresh()
  File "/usr/share/rhn/virtualization/support.py", line 51, in refresh
    if _is_host_domain():
  File "/usr/share/rhn/virtualization/support.py", line 161, in _is_host_domain
    conn = libvirt.open(None)
  File "/usr/lib64/python2.4/site-packages/libvirt.py", line 169, in open
    if ret is None:raise libvirtError('virConnectOpen() failed')

Comment 2 Jan Hutař 2012-01-18 12:59:09 UTC
Looks like this is not an issue with rhn-virtualization-host-5.4.14-8.el5sat.

Comment 3 Jan Hutař 2012-01-24 09:29:32 UTC
Package rhn-virtualization-host-5.4.14-8.el5sat do *not* fix issue with rhn-profile-sync which still returns 0 even after it is unable to update virtualization profile.

Comment 5 RHEL Program Management 2012-04-02 10:51:44 UTC
This request was evaluated by Red Hat Product Management for inclusion
in a Red Hat Enterprise Linux release.  Product Management has
requested further review of this request by Red Hat Engineering, for
potential inclusion in a Red Hat Enterprise Linux release for currently
deployed products.  This request is not yet committed for inclusion in
a release.

Comment 6 Stephen Herr 2012-07-12 19:53:53 UTC
Confirmed that latest rhn-virtualization-host package makes rhnreg_ks exit with exit status 0 and that rhn-profile-sync still exits with exit status 0 even though it should not (see discussion in bug 714903).

Comment 7 Stephen Herr 2012-07-12 20:50:52 UTC
Committed as 208756.

Note that this requires rhn-virtualization-host-5.4.34-3 which will be released with Sat 5.5.

Comment 13 errata-xmlrpc 2013-01-08 07:45:00 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-2013-0104.html