Bug 845827
Summary: | Error while checking server version: No such file or directory | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 5 | Reporter: | John Sefler <jsefler> |
Component: | subscription-manager | Assignee: | Adrian Likins <alikins> |
Status: | CLOSED ERRATA | QA Contact: | Entitlement Bugs <entitlement-bugs> |
Severity: | urgent | Docs Contact: | |
Priority: | unspecified | ||
Version: | 5.9 | CC: | alikins, awood, skallesh |
Target Milestone: | rc | Keywords: | Regression |
Target Release: | 5.9 | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: |
No documentation needed.
|
Story Points: | --- |
Clone Of: | Environment: | ||
Last Closed: | 2013-01-08 03:58:19 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: | 771748 |
Description
John Sefler
2012-08-05 12:24:30 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. commit 0cd4a5682bc4b573811c582039308ff0607149af Refs: subscription-manager-1.0.12-1-11-g0cd4a56 Author: Adrian Likins <alikins> AuthorDate: Mon Aug 6 11:34:13 2012 -0400 Commit: Adrian Likins <alikins> CommitDate: Mon Aug 6 11:34:13 2012 -0400 845827: Split server version checkout out to avoid errors The changes to populate server and client versions in the logs were causing errors in cases where network errors were being poorly handled. Part of the reason for this was that a call to the server /status was happening very early, and there was not error handling setup for that. Another cause is that /status for a deleted consumer, or invalid consumer will fail. This splits the client version info (python-rhsm and susbcription-manager rpm versions) and the server version info into two seperate calls. This way we can log the client version even in cases of no server info, and handle server errors better, or skip in it cases where it doesn't make sense. Also, use mocking more liberally in some of the test cases as above changing exposed some odd behaviour with the version related stubs. Marking verified!! RPM version: [root@dhcp201-115 pki]# rpm -qa | grep subscription-manager subscription-manager-1.0.13-1.git.14.28f8917.el5 subscription-manager-firstboot-1.0.13-1.git.14.28f8917.el5 subscription-manager-migration-data-1.11.2.3-1.git.0.861f9ba.el5 subscription-manager-migration-1.0.13-1.git.14.28f8917.el5 subscription-manager-gui-1.0.13-1.git.14.28f8917.el5 [root@dhcp201-115 pki]# subscription-manager register --org=admin Username: admin Password: The system has been registered with id: c88d81ec-89f0-4740-9839-a3d7c708a6cc [root@dhcp201-115 pki]# subscription-manager config --server.insecure=1 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 |