Bug 848409 - Error while checking server version: No such file or directory
Summary: Error while checking server version: No such file or directory
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: subscription-manager
Version: 5.9
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Bryan Kearney
QA Contact: Entitlement Bugs
URL:
Whiteboard:
Depends On:
Blocks: 771748
TreeView+ depends on / blocked
 
Reported: 2012-08-15 14:02 UTC by John Sefler
Modified: 2013-01-10 09:48 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-01-08 03:59:03 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2013:0033 0 normal SHIPPED_LIVE subscription-manager bug fix and enhancement update 2013-01-08 08:38:27 UTC

Description John Sefler 2012-08-15 14:02:55 UTC
Description of problem:
see below

Version-Release number of selected component (if applicable):
see below

How reproducible:


Steps to Reproduce:
[root@jsefler-59server ~]# subscription-manager unregister
This system is currently not registered.
[root@jsefler-59server ~]# subscription-manager clean
All local data removed
[root@jsefler-59server ~]# subscription-manager version
Error while checking server version: No such file or directory
remote entitlement server: Unknown
remote entitlement server type: Unknown
subscription-manager: 1.0.13-1.git.27.2a76fe7.el5
python-rhsm: 1.0.5-1.git.1.1ce0910.el5

  
Actual results:
see above

Expected results:
DID NOT EXPECT:
Error while checking server version: No such file or directory


Additional info:
[root@jsefler-59server ~]# tail -f /var/log/rhsm/rhsm.log
2012-08-15 09:58:06,787 [DEBUG]  @profile.py:95 - Loading current RPM profile.
2012-08-15 09:58:07,011 [DEBUG]  @managercli.py:250 - Client Versions: {'subscription manager': '1.0.13-1.git.27.2a76fe7.el5', 'python-rhsm': '1.0.5-1.git.1.1ce0910.el5'} 
2012-08-15 09:58:07,012 [INFO]  @connection.py:498 - Using certificate authentication: key = /etc/pki/consumer/key.pem, cert = /etc/pki/consumer/cert.pem, ca = /etc/rhsm/ca/, insecure = False
2012-08-15 09:58:07,012 [INFO]  @connection.py:511 - Connection Built: host: jsefler-f14-candlepin.usersys.redhat.com, port: 8443, handler: /candlepin
2012-08-15 09:58:07,013 [DEBUG]  @managercli.py:257 - Server Versions: Not registered, unable to check server version
2012-08-15 09:58:07,014 [DEBUG]  @connection.py:323 - Loading CA PEM certificates from: /etc/rhsm/ca/
2012-08-15 09:58:07,014 [DEBUG]  @connection.py:305 - Loading CA certificate: '/etc/rhsm/ca/candlepin-stage.pem'
2012-08-15 09:58:07,014 [DEBUG]  @connection.py:305 - Loading CA certificate: '/etc/rhsm/ca/jsefler-f14-candlepin.pem'
2012-08-15 09:58:07,015 [DEBUG]  @connection.py:305 - Loading CA certificate: '/etc/rhsm/ca/redhat-uep.pem'
2012-08-15 09:58:07,016 [ERROR]  @utils.py:316 - No such file or directory
Traceback (most recent call last):
  File "/usr/share/rhsm/subscription_manager/utils.py", line 305, in get_server_versions
    if cp.supports_resource("status"):
  File "/usr/lib64/python2.4/site-packages/rhsm/connection.py", line 538, in supports_resource
    self._load_supported_resources()
  File "/usr/lib64/python2.4/site-packages/rhsm/connection.py", line 525, in _load_supported_resources
    resources_list = self.conn.request_get("/")
  File "/usr/lib64/python2.4/site-packages/rhsm/connection.py", line 400, in request_get
    return self._request("GET", method)
  File "/usr/lib64/python2.4/site-packages/rhsm/connection.py", line 326, in _request
    context.load_cert(self.cert_file, keyfile=self.key_file)
  File "/usr/lib64/python2.4/site-packages/M2Crypto/SSL/Context.py", line 74, in load_cert
    m2.ssl_ctx_use_cert(self.ctx, certfile)
SSLError: No such file or directory

Comment 1 John Sefler 2012-08-15 14:05:09 UTC
Note that error goes away after registering...

[root@jsefler-59server ~]# subscription-manager register --username testuser1 --org admin
Password: 
The system has been registered with id: d502f498-e3ef-4960-84a2-e43ce07e9627 
[root@jsefler-59server ~]# subscription-manager version
remote entitlement server: 0.7.6-1
remote entitlement server type: subscription management service
subscription-manager: 1.0.13-1.git.27.2a76fe7.el5
python-rhsm: 1.0.5-1.git.1.1ce0910.el5

Comment 2 RHEL Program Management 2012-08-15 14:17:39 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 3 Bryan Kearney 2012-08-16 20:24:14 UTC
fixed in master at 6266cfc553941ad3668d4bdd26e94362e7536740

Comment 4 Shwetha Kallesh 2012-08-17 11:22:42 UTC
Marking verified!!

[root@dhcp201-115 ~]# rpm -qa | grep subscription-manager
subscription-manager-firstboot-1.0.13-1.git.45.5cb55c8.el5
subscription-manager-1.0.13-1.git.45.5cb55c8.el5
subscription-manager-migration-data-1.11.2.3-1.git.0.861f9ba.el5
subscription-manager-gui-1.0.13-1.git.45.5cb55c8.el5
subscription-manager-migration-1.0.13-1.git.45.5cb55c8.el5


[root@dhcp201-115 ~]# subscription-manager unregister
System has been un-registered.
[root@dhcp201-115 ~]# subscription-manager clean
All local data removed
[root@dhcp201-115 ~]# subscription-manager version
registered to: Unknown
server type: Unknown
subscription-manager: 1.0.13-1.git.45.5cb55c8.el5
python-rhsm: 1.0.5-1.git.1.1ce0910.el5

Comment 6 errata-xmlrpc 2013-01-08 03:59:03 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-0033.html


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