Bug 761489 - rhnreg_ks exits with 1 when rhn-virtualization-host installed and libvirtd not running
Summary: rhnreg_ks exits with 1 when rhn-virtualization-host installed and libvirtd no...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: rhn-client-tools
Version: 5.8
Hardware: Unspecified
OS: Unspecified
unspecified
low
Target Milestone: rc
: ---
Assignee: Stephen Herr
QA Contact: Martin Korbel
URL:
Whiteboard:
Depends On: 714903
Blocks: 839776 839791
TreeView+ depends on / blocked
 
Reported: 2011-12-08 12:27 UTC by Jan Hutař
Modified: 2013-01-08 07:45 UTC (History)
4 users (show)

Fixed In Version: rhn-client-tools-0.4.20-78.el5
Doc Type: Bug Fix
Doc Text:
Clone Of: 714903
: 839776 (view as bug list)
Environment:
Last Closed: 2013-01-08 07:45:00 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2013:0104 0 normal SHIPPED_LIVE rhn-client-tools bug fix and enhancement update 2013-01-07 15:26:13 UTC

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


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