Bug 906875

Summary: ERROR: can not find RHNS CA file: /usr/share/rhn/RHN-ORG-TRUSTED-SSL-CERT
Product: Red Hat Enterprise Linux 7 Reporter: John Sefler <jsefler>
Component: rhn-client-toolsAssignee: Milan Zázrivec <mzazrivec>
Status: CLOSED NOTABUG QA Contact: Red Hat Satellite QA List <satqe-list>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 7.0   
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-02-02 08:59:22 UTC Type: Bug
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:    
Bug Blocks: 863175    

Description John Sefler 2013-02-01 18:31:32 UTC
Description of problem:
Failing to register to RHN on rhel7 


Version-Release number of selected component (if applicable):
[root@jsefler-7 ~]# rpm -q --whatprovides /usr/sbin/rhnreg_ks
rhn-setup-1.8.27-8.el7.noarch


How reproducible:


Steps to Reproduce:
[root@jsefler-7 ~]# rhnreg_ks --serverUrl=https://xmlrpc.rhn.code.stage.redhat.com/XMLRPC --username=qa --password=redhatqa --profilename=rhsm-automation.jsefler-r70-server.usersys.redhat.com --force --norhnsd --nohardware --nopackages --novirtinfo
An error has occurred:
ERROR: can not find RHNS CA file: /usr/share/rhn/RHN-ORG-TRUSTED-SSL-CERT
See /var/log/up2date for more information


Actual results:


Expected results:


Additional info:
[Fri Feb  1 13:28:14 2013] up2date ERROR: can not find RHNS CA file: /usr/share/rhn/RHN-ORG-TRUSTED-SSL-CERT
[Fri Feb  1 13:28:14 2013] up2date 
Traceback (most recent call last):
  File "/usr/sbin/rhnreg_ks", line 218, in <module>
    cli.run()
  File "/usr/share/rhn/up2date_client/rhncli.py", line 96, in run
    sys.exit(self.main() or 0)
  File "/usr/sbin/rhnreg_ks", line 90, in main
    rhnreg.getCaps()
  File "/usr/share/rhn/up2date_client/rhnreg.py", line 237, in getCaps
    s = rhnserver.RhnServer()
  File "/usr/share/rhn/up2date_client/rhnserver.py", line 167, in __init__
    self._server = rpcServer.getServer(serverOverride=serverOverride)
  File "/usr/share/rhn/up2date_client/rpcServer.py", line 171, in getServer
    raise up2dateErrors.SSLCertificateFileNotFound(msg)
<class 'up2date_client.up2dateErrors.SSLCertificateFileNotFound'>: ERROR: can not find RHNS CA file: /usr/share/rhn/RHN-ORG-TRUSTED-SSL-CERT

Comment 1 Milan Zázrivec 2013-02-02 08:59:22 UTC
With RHEL-7 (and beyond), you will not be able to register your system
to RHN Classic (as in it's not supported).

Yes, the path "/usr/share/rhn/RHN-ORG-TRUSTED-SSL-CERT" does not exist
by default, but will become valid once you copy over CA certificate from
your RHN Satellite -- which in fact is the only supported environment
for "classic" registration of a RHEL-7 system.