Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1233145

Summary: [6.7_3.5.4] Shown Error registering to RHN account after register rhevh into rhevm3.5 and then register it into RHN
Product: Red Hat Enterprise Virtualization Manager Reporter: haiyang,dong <hadong>
Component: rhev-hypervisorAssignee: Fabian Deutsch <fdeutsch>
Status: CLOSED ERRATA QA Contact: Virtualization Bugs <virt-bugs>
Severity: urgent Docs Contact:
Priority: high    
Version: 3.5.0CC: borgan, cshao, dgross, dyordano, ecohen, fdeutsch, gklein, gouyang, huiwa, juwu, leiwang, lsurette, pstehlik, rbarry, ycui, yeylon
Target Milestone: ---Keywords: TestOnly, ZStream
Target Release: 3.5.4Flags: fdeutsch: Triaged+
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: node
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-09-03 17:09:29 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Node RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description haiyang,dong 2015-06-18 10:22:02 UTC
Description of problem:
After register rhevh into rhevm3.5 and then register it into RHN will fail
with the follow error info:
2015-06-16 07:39:59,664       INFO Registering to RHN account.....
2015-06-16 07:39:59,666       INFO Successfully unpersisted file "/etc/sysconfig/rhn/systemid"
2015-06-16 07:39:59,667       INFO Successfully unpersisted file "/etc/sysconfig/rhn/up2date"
2015-06-16 07:40:21,011       INFO File "/etc/sysconfig/rhn/up2date" successfully persisted
2015-06-16 07:40:21,014       INFO File "/etc/sysconfig/rhn/systemid" successfully persisted
2015-06-16 07:40:21,014       INFO System None sucessfully registered to None
2015-06-16 07:40:21,014      ERROR Failed to call: ['/usr/sbin/rhnreg_ks', '--username', 'qa', '--password', 'XXXXXXX', '--novirtinfo', '--norhnsd', '--nopackages', '--force']
Traceback (most recent call last):
  File "/usr/lib/python2.6/site-packages/ovirt/node/setup/rhn/rhn_model.py", line 202, in commit
  File "/usr/share/rhn/virtualization/support.py", line 82, in refresh
TypeError: poll_through_vdsm() takes exactly 1 argument (0 given)
2015-06-16 07:40:21,015       INFO Captured nothing
2015-06-16 07:40:21,016       INFO An exception during the transaction: Error registering to RHN account
Traceback (most recent call last):
  File "/usr/lib/python2.6/site-packages/ovirt/node/ui/__init__.py", line 949, in __run_transaction
  File "/usr/lib/python2.6/site-packages/ovirt/node/plugins.py", line 188, in dry_or
  File "/usr/lib/python2.6/site-packages/ovirt/node/ui/__init__.py", line 949, in <lambda>
  File "/usr/lib/python2.6/site-packages/ovirt/node/setup/rhn/rhn_model.py", line 211, in commit
RuntimeError: Error registering to RHN account

Version-Release number of selected component (if applicable):
rhev-hypervisor6-6.7-20150609.0
ovirt-node-3.2.3-3.el6.noarch


How reproducible:
100%
QA Whiteboard:
Not regression bug

Steps to Reproduce:
1. Install rhev-hypervisor6-6.7-20150609.0 and configure network
2. Register rhevh6.7 to rhevm3.5
3. Then Register rhevh6.7 to rhn

Actual results:
After step3, it will show "RuntimeError: Error registering to RHN account" info

Expected results:
After step3, Register rhevh6.7 to rhn success.

Additional info:
...

Comment 1 Fabian Deutsch 2015-06-19 06:49:36 UTC
Lowering priority, because - even if bad - it does not break an existing setup.

Comment 2 Ryan Barry 2015-06-20 13:47:43 UTC
This strongly appears to also be a bug with rhn-virtualization-host itself, since that's where the traceback originates.

I'm reassigning this to the correct component.

Comment 3 Dimitar Yordanov 2015-06-24 17:08:14 UTC
Hi All, 

  It seem the problem is that the rhn-virtualization-host version used is very old: rhn-virtualization-host-5.4.34-4.el6sat.noarch.rpm.
  The current one and the one used in the previous version of  rhev-hypervisor is rhn-virtualization-host-5.4.54-2.el6sat.noarch.rpm.

Comment 5 Fabian Deutsch 2015-06-26 14:30:20 UTC
Hey Dimitra,

yes that analysis looks correct. I'm now pulling in the new package to see if this is fixing our problem.
Thanks!

Comment 12 haiyang,dong 2015-07-09 08:24:07 UTC
According to Comment 9, verified this bug on rhevh-6.7-20150707.0.el6ev.iso

Comment 14 Dylan Gross 2015-08-07 14:24:27 UTC
Is it likely that this same problem exists in rhevh-7.1 hypervisors?

My customer reports that he has no problem registering rhevh-7.0 hypervisors to his Satellite 5.7, but two rhevh-7.1 hypervisors throw a very similar traceback in the logs.

2015-08-06 20:30:15,948       INFO Captured nothing
2015-08-06 20:30:15,948       INFO An exception during the transaction: Error registering to RHN account
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/ovirt/node/ui/__init__.py", line 949, in __run_transaction
  File "/usr/lib/python2.7/site-packages/ovirt/node/plugins.py", line 188, in dry_or
  File "/usr/lib/python2.7/site-packages/ovirt/node/ui/__init__.py", line 949, in <lambda>
  File "/usr/lib/python2.7/site-packages/ovirt/node/setup/rhn/rhn_model.py", line 211, in commit
RuntimeError: Error registering to RHN account

Comment 18 errata-xmlrpc 2015-09-03 17:09:29 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.

https://rhn.redhat.com/errata/RHSA-2015-1713.html