Bug 1166110 - rhevh 7.0: Failed to register to satellite 5.6 via TUI
Summary: rhevh 7.0: Failed to register to satellite 5.6 via TUI
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Virtualization Manager
Classification: Red Hat
Component: ovirt-node
Version: 3.5.0
Hardware: Unspecified
OS: Unspecified
urgent
medium
Target Milestone: ---
: 3.5.0
Assignee: Ryan Barry
QA Contact: Virtualization Bugs
URL:
Whiteboard: node
Depends On:
Blocks: rhevh-7.0
TreeView+ depends on / blocked
 
Reported: 2014-11-20 11:58 UTC by haiyang,dong
Modified: 2016-02-10 20:05 UTC (History)
13 users (show)

Fixed In Version: rhev-hypervisor6-6.6-20141218.0.iso rhev-hypervisor7-7.0-20141218.0.iso
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-02-11 21:06:12 UTC
oVirt Team: Node
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
attached ovirt-node.log (54.63 KB, text/plain)
2014-11-20 11:58 UTC, haiyang,dong
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHEA-2015:0160 0 normal SHIPPED_LIVE ovirt-node bug fix and enhancement update 2015-02-12 01:34:52 UTC
oVirt gerrit 35484 0 master MERGED Don't catch satellite with subscription-manager Never
oVirt gerrit 35567 0 ovirt-3.5 MERGED Don't catch satellite with subscription-manager Never

Description haiyang,dong 2014-11-20 11:58:40 UTC
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

Comment 5 haiyang,dong 2015-01-16 04:20:48 UTC
Test version:
rhevh-7.0-20150114.0.el7ev.iso
ovirt-node-3.2.1-4.el7.noarch


Test Steps:
1. Install RHEV-H.
2. Register to satellite 5.6 via TUI.
Login:    admin
Password: redhat
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

Test result:
rhevh 7.0 register to satellite 5.6 via TUI success. so this bug has been fixed, change the status into "VERIFIED".

Comment 7 errata-xmlrpc 2015-02-11 21:06:12 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/RHEA-2015-0160.html


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