Bug 730489
Summary: | tracebacks are blocking basic register attempts | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 6 | Reporter: | John Sefler <jsefler> |
Component: | subscription-manager | Assignee: | Bryan Kearney <bkearney> |
Status: | CLOSED ERRATA | QA Contact: | John Sefler <jsefler> |
Severity: | urgent | Docs Contact: | |
Priority: | unspecified | ||
Version: | 6.2 | CC: | cduryee, dgoodwin, jmolet, skallesh, spandey |
Target Milestone: | rc | Keywords: | Regression |
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2011-12-06 17:23:31 UTC | Type: | --- |
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: | 682238 |
Description
John Sefler
2011-08-13 16:25:13 UTC
Here's another attempt to register with a similar traceback when --org is excluded... [root@jsefler-onprem-62server ~]# subscription-manager register --username=testuser1 --password=password global name 'sanitize' is not defined [root@jsefler-onprem-62server ~]# [root@jsefler-onprem-62server ~]# tail -f /var/log/rhsm/rhsm.log 2011-08-13 12:26:15,365 [INFO] @connection.py:335 - Using certificate authentication: key = /etc/pki/consumer/key.pem, cert = /etc/pki/consumer/cert.pem, ca = /etc/rhsm/ca/, insecure = False 2011-08-13 12:26:15,366 [DEBUG] @connection.py:175 - Loading CA PEM certificates from: /etc/rhsm/ca/ 2011-08-13 12:26:15,366 [DEBUG] @connection.py:160 - Loading CA certificate: '/etc/rhsm/ca/fakamai-cp1.pem' 2011-08-13 12:26:15,367 [DEBUG] @connection.py:160 - Loading CA certificate: '/etc/rhsm/ca/jsefler-onprem-62candlepin.pem' 2011-08-13 12:26:15,367 [DEBUG] @connection.py:160 - Loading CA certificate: '/etc/rhsm/ca/redhat-uep.pem' 2011-08-13 12:26:15,368 [DEBUG] @connection.py:160 - Loading CA certificate: '/etc/rhsm/ca/candlepin-stage.pem' 2011-08-13 12:26:15,369 [WARNING] @connection.py:368 - Error fetching supported resources, this UEPConnection is likely not usable: 2011-08-13 12:26:15,369 [ERROR] @connection.py:370 - No such file or directory Traceback (most recent call last): File "/usr/lib/python2.6/site-packages/rhsm/connection.py", line 361, in _load_supported_resources resources_list = self.conn.request_get("/") File "/usr/lib/python2.6/site-packages/rhsm/connection.py", line 237, in request_get return self._request("GET", method) File "/usr/lib/python2.6/site-packages/rhsm/connection.py", line 178, in _request context.load_cert(self.cert_file, keyfile=self.key_file) File "/usr/lib64/python2.6/site-packages/M2Crypto/SSL/Context.py", line 76, in load_cert m2.ssl_ctx_use_cert(self.ctx, certfile) SSLError: No such file or directory 2011-08-13 12:26:15,370 [INFO] @connection.py:347 - Connection Established: host: jsefler-onprem-62candlepin.usersys.redhat.com, port: 8443, handler: /candlepin 2011-08-13 12:26:15,448 [INFO] @connection.py:324 - Using basic authentication as: testuser1 2011-08-13 12:26:15,449 [DEBUG] @connection.py:175 - Loading CA PEM certificates from: /etc/rhsm/ca/ 2011-08-13 12:26:15,449 [DEBUG] @connection.py:160 - Loading CA certificate: '/etc/rhsm/ca/fakamai-cp1.pem' 2011-08-13 12:26:15,450 [DEBUG] @connection.py:160 - Loading CA certificate: '/etc/rhsm/ca/jsefler-onprem-62candlepin.pem' 2011-08-13 12:26:15,450 [DEBUG] @connection.py:160 - Loading CA certificate: '/etc/rhsm/ca/redhat-uep.pem' 2011-08-13 12:26:15,451 [DEBUG] @connection.py:160 - Loading CA certificate: '/etc/rhsm/ca/candlepin-stage.pem' 2011-08-13 12:26:15,451 [DEBUG] @connection.py:196 - Making request: GET /candlepin/ 2011-08-13 12:26:15,530 [DEBUG] @connection.py:203 - Response status: 200 2011-08-13 12:26:15,534 [DEBUG] @connection.py:364 - Server supports the following resources: 2011-08-13 12:26:15,534 [DEBUG] @connection.py:365 - {'serials': '/serials', 'status': '/status', 'owners': '/owners', 'jobs': '/jobs', 'users': '/users', 'consumers': '/consumers', 'subscriptions': '/subscriptions', 'admin': '/admin', 'consumertypes': '/consumertypes', 'statistics/generate': '/statistics/generate', 'content': '/content', 'pools': '/pools', 'products': '/products', 'activation_keys': '/activation_keys', 'atom': '/atom', 'entitlements': '/entitlements', 'events': '/events', 'crl': '/crl', 'rules': '/rules'} 2011-08-13 12:26:15,534 [INFO] @connection.py:347 - Connection Established: host: jsefler-onprem-62candlepin.usersys.redhat.com, port: 8443, handler: /candlepin 2011-08-13 12:26:15,535 [ERROR] @managercli.py:62 - Error during registration: global name 'sanitize' is not defined 2011-08-13 12:26:15,535 [ERROR] @managercli.py:63 - global name 'sanitize' is not defined Traceback (most recent call last): File "/usr/share/rhsm/subscription_manager/managercli.py", line 556, in _do_command owner_key = self._determine_owner_key(admin_cp) File "/usr/share/rhsm/subscription_manager/managercli.py", line 611, in _determine_owner_key owners = cp.getOwnerList(self.username) File "/usr/lib/python2.6/site-packages/rhsm/connection.py", line 448, in getOwnerList method = '/users/%s/owners' % sanitize(username) NameError: global name 'sanitize' is not defined Fixed as part of a different issue that cwelton found (I don't have a BZ for that one, sorry). d42033a9821c2ddaad23d31b58cff5b786c5d318, python-rhsm master 0.96.9+ Reverted the recent patch that was causing registration to fail because too many product certs were on the system. As of git master 6cb4383e037f7ccd610a89e4250f9270467e9a32 registration should work again. This is fixed, all register attempts behave as normal. subscription-manager-0.96.5-1.git.50.eeb90f1.el6.x86_64 subscription-manager-firstboot-0.96.5-1.git.50.eeb90f1.el6.x86_64 python-rhsm-0.96.8-1.git.5.d42033a.el6.noarch subscription-manager-gnome-0.96.5-1.git.50.eeb90f1.el6.x86_64 Moving to VERIFIED. 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-2011-1695.html |