Created attachment 959303[details]
attached ovirt-node.log
Description of problem:
rhevh 7.0 register to Satellite 5.6 failed via TUI.
No such issue for rhevh 6.6 for RHEV 3.5(rhev-hypervisor6-6.6-20141107.0.iso) register to Satellite 5.6.
Seem the issue happens in the follow code of rhn_model.py
----------------
if rhntype == "sam" or cacert.endswith(".pem"):
tx.append(ConfigureSAM())
elif system.is_min_el(7):
tx.append(ConfigureSAM())
else:
tx.append(ConfigureRHNClassic())
changed it into the follow code maybe fixed this bug
if rhntype == "sam" or cacert.endswith(".pem"):
tx.append(ConfigureSAM())
elif system.is_min_el(7) and rhntype == "rhn":
tx.append(ConfigureSAM())
else:
tx.append(ConfigureRHNClassic())
TUI Failed
=============================
Login: ycui
Password: 12345678
Type ( ) RHN (X) Satellite ( ) SAM
URL: https://s1satellite56.rhevm.englab.nay.redhat.com
CA URL: https://s1satellite56.rhevm.englab.nay.redhat.com/pub/RHN-ORG-TRUSTED-SSL-CERT
An error occurred while applying the changes:
Error registering to RHN account.
Version-Release number of selected component (if applicable):
rhev-hypervisor7-7.0-20141119.0.iso
ovirt-node-3.1.0-0.27.20141119git24e087e.el7.noarch
How reproducible:
100%
Steps to Reproduce:
1. Install RHEV-H.
2. Register to satellite via TUI.
Login: ycui
Password: 12345678
Type ( ) RHN (X) Satellite ( ) SAM
URL: https://s1satellite56.rhevm.englab.nay.redhat.com
CA URL: https://s1satellite56.rhevm.englab.nay.redhat.com/pub/RHN-ORG-TRUSTED-SSL-CERT
3. Please refer attachment log for more details.
Actual results:
rhevh 7.0 failed to register to satellite 5.6 via TUI.
Expected results:
rhevh 7.0 register to satellite 5.6 via TUI can successful.
Additional info:
ovirt-node.log
======
2014-11-20 09:39:29,011 INFO Downloading CA cert.....
2014-11-20 09:39:29,095 WARNING File "/etc/rhsm/ca/candlepin-local.pem" had already been persisted
2014-11-20 09:39:29,569 WARNING File "/etc/rhsm/rhsm.conf" had already been persisted
2014-11-20 09:39:29,570 INFO Registering to RHN account.....
2014-11-20 09:39:29,573 WARNING The file "/etc/pki/consumer/cert.pem" is not a persisted element
2014-11-20 09:39:29,575 WARNING The file "/etc/pki/consumer/key.pem" is not a persisted element
2014-11-20 09:39:29,575 INFO ['/usr/sbin/subscription-manager', 'register', '--username', 'ycui', '--password', 'XXXXXXX', '--force', '--autosubscribe']
2014-11-20 09:39:30,283 INFO Captured nothing
2014-11-20 09:39:30,283 INFO An exception during the transaction: Command '['/usr/sbin/subscription-manager', 'register', '--username', 'ycui', '--password', u'12345678', '--force', '--autosubscribe']' returned non-zero exit status 255
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 352, in commit
File "/usr/lib/python2.7/site-packages/ovirt/node/utils/process.py", line 159, in check_output
File "/usr/lib64/python2.7/subprocess.py", line 575, in check_output
CalledProcessError: Command '['/usr/sbin/subscription-manager', 'register', '--username', 'ycui', '--password', u'12345678', '--force', '--autosubscribe']' returned non-zero exit status 255
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/RHEA-2015-0160.html