Bug 838942
| Summary: | Make cli and gui check for releasever support in the same way | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 5 | Reporter: | James Bowes <jbowes> |
| Component: | subscription-manager | Assignee: | Bryan Kearney <bkearney> |
| Status: | CLOSED ERRATA | QA Contact: | Entitlement Bugs <entitlement-bugs> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 5.9 | CC: | bkearney, jsefler |
| 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-01-08 03:56:53 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
James Bowes
2012-07-10 13:29:36 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. Fixed in master, df821ca Verifying Version...
[root@jsefler-rhel59 ~]# rpm -q subscription-manager subscription-manager-gui
subscription-manager-1.0.23-1.el5
subscription-manager-gui-1.0.23-1.el5
Strategy...
To verify this bug, I am simply going to exercise the CLI release module and the GUI release system configuration and watch the rhsm.log to make sure they make a call to the same Restful API.... I expect to find a GET request on the consumer uuid since this is where the system's releaseVer is stored.
Using the CLI...
[root@jsefler-59server ~]# subscription-manager release
Release not set
[root@jsefler-59server ~]# tail -f /var/log/rhsm/rhsm.log
2012-10-17 16:58:57,337 [DEBUG] @profile.py:95 - Loading current RPM profile.
2012-10-17 16:58:57,565 [INFO] @managercli.py:252 - Client Versions: {'python-rhsm': '1.0.10-1.git.0.76d7802.el5', 'subscription-manager': '1.0.23-1.git.0.1ff072c.el5'}
2012-10-17 16:58:57,566 [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-10-17 16:58:57,566 [INFO] @connection.py:511 - Connection Built: host: jsefler-f14-candlepin.usersys.redhat.com, port: 8443, handler: /candlepin
2012-10-17 16:58:57,567 [INFO] @connection.py:508 - Using no auth
2012-10-17 16:58:57,567 [INFO] @connection.py:511 - Connection Built: host: jsefler-f14-candlepin.usersys.redhat.com, port: 8443, handler: /candlepin
2012-10-17 16:58:57,568 [DEBUG] @connection.py:323 - Loading CA PEM certificates from: /etc/rhsm/ca/
2012-10-17 16:58:57,568 [DEBUG] @connection.py:305 - Loading CA certificate: '/etc/rhsm/ca/candlepin-stage.pem'
2012-10-17 16:58:57,569 [DEBUG] @connection.py:305 - Loading CA certificate: '/etc/rhsm/ca/jsefler-f14-candlepin.pem'
2012-10-17 16:58:57,569 [DEBUG] @connection.py:305 - Loading CA certificate: '/etc/rhsm/ca/redhat-uep.pem'
2012-10-17 16:58:57,570 [DEBUG] @connection.py:344 - Making request: GET /candlepin/
2012-10-17 16:58:57,654 [DEBUG] @connection.py:357 - Response status: 200
2012-10-17 16:58:57,657 [DEBUG] @connection.py:528 - Server supports the following resources:
2012-10-17 16:58:57,657 [DEBUG] @connection.py:529 - {'': '/', 'hypervisors': '/hypervisors', 'serials': '/serials', 'consumers': '/consumers', 'migrations': '/migrations', 'content': '/content', 'entitlements': '/entitlements', 'statistics/generate': '/statistics/generate', 'status': '/status', 'jobs': '/jobs', 'users': '/users', 'subscriptions': '/subscriptions', 'rules': '/rules', 'consumertypes': '/consumertypes', 'activation_keys': '/activation_keys', 'atom': '/atom', 'owners': '/owners', 'roles': '/roles', 'admin': '/admin', 'events': '/events', 'products': '/products', 'pools': '/pools', 'crl': '/crl'}
2012-10-17 16:58:57,659 [DEBUG] @connection.py:323 - Loading CA PEM certificates from: /etc/rhsm/ca/
2012-10-17 16:58:57,660 [DEBUG] @connection.py:305 - Loading CA certificate: '/etc/rhsm/ca/candlepin-stage.pem'
2012-10-17 16:58:57,661 [DEBUG] @connection.py:305 - Loading CA certificate: '/etc/rhsm/ca/jsefler-f14-candlepin.pem'
2012-10-17 16:58:57,663 [DEBUG] @connection.py:305 - Loading CA certificate: '/etc/rhsm/ca/redhat-uep.pem'
2012-10-17 16:58:57,664 [DEBUG] @connection.py:344 - Making request: GET /candlepin/status
2012-10-17 16:58:57,679 [DEBUG] @connection.py:357 - Response status: 200
2012-10-17 16:58:57,746 [DEBUG] @connection.py:323 - Loading CA PEM certificates from: /etc/rhsm/ca/
2012-10-17 16:58:57,746 [DEBUG] @connection.py:305 - Loading CA certificate: '/etc/rhsm/ca/candlepin-stage.pem'
2012-10-17 16:58:57,746 [DEBUG] @connection.py:305 - Loading CA certificate: '/etc/rhsm/ca/jsefler-f14-candlepin.pem'
2012-10-17 16:58:57,747 [DEBUG] @connection.py:305 - Loading CA certificate: '/etc/rhsm/ca/redhat-uep.pem'
2012-10-17 16:58:57,747 [DEBUG] @connection.py:344 - Making request: GET /candlepin/status
2012-10-17 16:58:57,772 [DEBUG] @connection.py:357 - Response status: 200
2012-10-17 16:58:57,775 [INFO] @managercli.py:263 - Server Versions: {'candlepin': '0.7.16-1', 'server-type': 'subscription management service'}
2012-10-17 16:58:57,776 [DEBUG] @connection.py:164 - ContectConnection
2012-10-17 16:58:57,784 [DEBUG] @connection.py:323 - Loading CA PEM certificates from: /etc/rhsm/ca/
2012-10-17 16:58:57,784 [DEBUG] @connection.py:305 - Loading CA certificate: '/etc/rhsm/ca/candlepin-stage.pem'
2012-10-17 16:58:57,785 [DEBUG] @connection.py:305 - Loading CA certificate: '/etc/rhsm/ca/jsefler-f14-candlepin.pem'
2012-10-17 16:58:57,785 [DEBUG] @connection.py:305 - Loading CA certificate: '/etc/rhsm/ca/redhat-uep.pem'
2012-10-17 16:58:57,786 [DEBUG] @connection.py:344 - Making request: GET /candlepin/consumers/daaf3005-a470-4376-85ec-d106aa5ab5af
2012-10-17 16:58:57,943 [DEBUG] @connection.py:357 - Response status: 200
Using the GUI...
[root@jsefler-59server ~]# subscription-manager-gui &
and then I clicked the System / Preferences
[root@jsefler-59server ~]# tail -f /var/log/rhsm/rhsm.log
2012-10-17 17:01:23,119 [DEBUG] @connection.py:323 - Loading CA PEM certificates from: /etc/rhsm/ca/
2012-10-17 17:01:23,120 [DEBUG] @connection.py:305 - Loading CA certificate: '/etc/rhsm/ca/candlepin-stage.pem'
2012-10-17 17:01:23,121 [DEBUG] @connection.py:305 - Loading CA certificate: '/etc/rhsm/ca/jsefler-f14-candlepin.pem'
2012-10-17 17:01:23,122 [DEBUG] @connection.py:305 - Loading CA certificate: '/etc/rhsm/ca/redhat-uep.pem'
2012-10-17 17:01:23,125 [DEBUG] @connection.py:344 - Making request: GET /candlepin/consumers/daaf3005-a470-4376-85ec-d106aa5ab5af
2012-10-17 17:01:23,326 [DEBUG] @connection.py:357 - Response status: 200
2012-10-17 17:01:23,432 [DEBUG] @cert_sorter.py:106 - Sorting product and entitlement cert status for: 2012-10-17 21:01:23.431709+00:00
2012-10-17 17:01:23,432 [DEBUG] @cert_sorter.py:160 - Installed product IDs: ['69']
2012-10-17 17:01:23,433 [DEBUG] @cert_sorter.py:113 - valid entitled products: []
2012-10-17 17:01:23,433 [DEBUG] @cert_sorter.py:114 - expired entitled products: []
2012-10-17 17:01:23,433 [DEBUG] @cert_sorter.py:115 - partially entitled products: []
2012-10-17 17:01:23,433 [DEBUG] @cert_sorter.py:116 - unentitled products: ['69']
2012-10-17 17:01:23,433 [DEBUG] @cert_sorter.py:117 - future products: []
2012-10-17 17:01:23,433 [DEBUG] @cert_sorter.py:118 - partial stacks: []
2012-10-17 17:01:23,434 [DEBUG] @cert_sorter.py:119 - valid stacks: []
2012-10-17 17:01:23,434 [DEBUG] @cert_sorter.py:106 - Sorting product and entitlement cert status for: 2012-10-17 21:01:23.434281+00:00
2012-10-17 17:01:23,434 [DEBUG] @cert_sorter.py:160 - Installed product IDs: ['69']
2012-10-17 17:01:23,434 [DEBUG] @cert_sorter.py:113 - valid entitled products: []
2012-10-17 17:01:23,434 [DEBUG] @cert_sorter.py:114 - expired entitled products: []
2012-10-17 17:01:23,435 [DEBUG] @cert_sorter.py:115 - partially entitled products: []
2012-10-17 17:01:23,435 [DEBUG] @cert_sorter.py:116 - unentitled products: ['69']
2012-10-17 17:01:23,435 [DEBUG] @cert_sorter.py:117 - future products: []
2012-10-17 17:01:23,435 [DEBUG] @cert_sorter.py:118 - partial stacks: []
2012-10-17 17:01:23,435 [DEBUG] @cert_sorter.py:119 - valid stacks: []
2012-10-17 17:01:23,437 [DEBUG] @connection.py:323 - Loading CA PEM certificates from: /etc/rhsm/ca/
2012-10-17 17:01:23,437 [DEBUG] @connection.py:305 - Loading CA certificate: '/etc/rhsm/ca/candlepin-stage.pem'
2012-10-17 17:01:23,438 [DEBUG] @connection.py:305 - Loading CA certificate: '/etc/rhsm/ca/jsefler-f14-candlepin.pem'
2012-10-17 17:01:23,438 [DEBUG] @connection.py:305 - Loading CA certificate: '/etc/rhsm/ca/redhat-uep.pem'
2012-10-17 17:01:23,439 [DEBUG] @connection.py:344 - Making request: GET /candlepin/owners/admin/servicelevels
2012-10-17 17:01:23,530 [DEBUG] @connection.py:357 - Response status: 200
2012-10-17 17:01:23,534 [INFO] @preferences.py:139 - SLA changed to:
2012-10-17 17:01:23,534 [DEBUG] @connection.py:323 - Loading CA PEM certificates from: /etc/rhsm/ca/
2012-10-17 17:01:23,535 [DEBUG] @connection.py:305 - Loading CA certificate: '/etc/rhsm/ca/candlepin-stage.pem'
2012-10-17 17:01:23,535 [DEBUG] @connection.py:305 - Loading CA certificate: '/etc/rhsm/ca/jsefler-f14-candlepin.pem'
2012-10-17 17:01:23,535 [DEBUG] @connection.py:305 - Loading CA certificate: '/etc/rhsm/ca/redhat-uep.pem'
2012-10-17 17:01:23,537 [DEBUG] @connection.py:344 - Making request: PUT /candlepin/consumers/daaf3005-a470-4376-85ec-d106aa5ab5af
2012-10-17 17:01:23,679 [DEBUG] @connection.py:357 - Response status: 204
VERIFIED: Both CLI and GUI made the following api call during a release inquiry...
Making request: GET /candlepin/consumers/daaf3005-a470-4376-85ec-d106aa5ab5af
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 |