Bug 707325 - Problem with a SKU for RHSM
Summary: Problem with a SKU for RHSM
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Candlepin
Classification: Community
Component: candlepin
Version: 0.5
Hardware: x86_64
OS: Linux
unspecified
high
Target Milestone: ---
: ---
Assignee: Bryan Kearney
QA Contact: John Sefler
URL:
Whiteboard:
Depends On:
Blocks: 568421
TreeView+ depends on / blocked
 
Reported: 2011-05-24 17:05 UTC by Scott Spurrier
Modified: 2018-11-14 12:21 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-05-31 16:35:48 UTC


Attachments (Terms of Use)

Description Scott Spurrier 2011-05-24 17:05:02 UTC
Customer is having trouble with the new Subscription Manager in RHEL 6.1.  They have plenty of entitlements but attempts to register systems with Subscription Manager fail (detailed error below).  

There appears to be a problem with the below SKU.  
SYS0037RW / MCT0352F3RN


ERROR:
2011-05-23 15:33:27,215 [DEBUG] __init__() @certlib.py:649 - valid entitled products: []
2011-05-23 15:33:27,216 [DEBUG] __init__() @certlib.py:650 - expired entitled products: []
2011-05-23 15:33:38,181 [INFO] __init__() @connection.py:298 - Using certificate authentication: key = /etc/pki/consumer/key.pem, cert = /etc/pki/consumer/cert.pem, ca = /etc/rhsm/ca/, insecure = False
2011-05-23 15:33:38,182 [INFO] __init__() @connection.py:301 - Connection Established: host: subscription.rhn.redhat.com, port: 443, handler: /subscription
2011-05-23 15:33:38,296 [INFO] __init__() @connection.py:287 - Using basic authentication as: disneyfa
2011-05-23 15:33:38,296 [INFO] __init__() @connection.py:301 - Connection Established: host: subscription.rhn.redhat.com, port: 443, handler: /subscription
2011-05-23 15:33:38,444 [DEBUG] __init__() @certlib.py:640 - Sorting product and entitlement cert status for: 2011-05-23 15:33:38.444534
2011-05-23 15:33:38,448 [DEBUG] _populate_all_products() @certlib.py:658 - Installed product IDs: ['71']
2011-05-23 15:33:38,448 [DEBUG] __init__() @certlib.py:649 - valid entitled products: []
2011-05-23 15:33:38,448 [DEBUG] __init__() @certlib.py:650 - expired entitled products: []
2011-05-23 15:33:38,449 [INFO] _request() @connection.py:147 - loading ca pem certificates from: /etc/rhsm/ca/
2011-05-23 15:33:38,450 [INFO] _load_ca_certificates() @connection.py:134 - loading ca certificate '/etc/rhsm/ca/redhat-uep.pem'
2011-05-23 15:33:38,450 [INFO] _load_ca_certificates() @connection.py:134 - loading ca certificate '/etc/rhsm/ca/candlepin-stage.pem'
2011-05-23 15:33:38,451 [INFO] _load_ca_certificates() @connection.py:134 - loading ca certificate '/etc/rhsm/ca/fakamai-cp1.pem'
2011-05-23 15:33:38,451 [INFO] _request() @connection.py:149 - work in insecure mode ?:False
2011-05-23 15:33:39,821 [INFO] _request() @connection.py:177 - status code: 200
2011-05-23 15:33:39,824 [INFO] persist_consumer_cert() @managerlib.py:81 - Consumer created: {'consumer_name': 'alana', 'uuid': 'a8c6163d-1221-494f-9a85-236092a6cac2'}
2011-05-23 15:33:43,005 [DEBUG] reload() @managergui.py:167 - Loading consumer info from identity certificates.
2011-05-23 15:33:43,008 [DEBUG] __init__() @certlib.py:640 - Sorting product and entitlement cert status for: 2011-05-23 15:33:43.008207
2011-05-23 15:33:43,011 [DEBUG] _populate_all_products() @certlib.py:658 - Installed product IDs: ['71']
2011-05-23 15:33:43,011 [DEBUG] __init__() @certlib.py:649 - valid entitled products: []
2011-05-23 15:33:43,011 [DEBUG] __init__() @certlib.py:650 - expired entitled products: []
2011-05-23 15:33:43,030 [INFO] _request() @connection.py:147 - loading ca pem certificates from: /etc/rhsm/ca/
2011-05-23 15:33:43,030 [INFO] _load_ca_certificates() @connection.py:134 - loading ca certificate '/etc/rhsm/ca/redhat-uep.pem'
2011-05-23 15:33:43,031 [INFO] _load_ca_certificates() @connection.py:134 - loading ca certificate '/etc/rhsm/ca/candlepin-stage.pem'
2011-05-23 15:33:43,031 [INFO] _load_ca_certificates() @connection.py:134 - loading ca certificate '/etc/rhsm/ca/fakamai-cp1.pem'
2011-05-23 15:33:43,032 [INFO] _request() @connection.py:149 - work in insecure mode ?:False
2011-05-23 15:33:43,307 [INFO] _request() @connection.py:177 - status code: 200
2011-05-23 15:33:48,754 [INFO] __init__() @connection.py:298 - Using certificate authentication: key = /etc/pki/consumer/key.pem, cert = /etc/pki/consumer/cert.pem, ca = /etc/rhsm/ca/, insecure = False
2011-05-23 15:33:48,754 [INFO] __init__() @connection.py:301 - Connection Established: host: subscription.rhn.redhat.com, port: 443, handler: /subscription
2011-05-23 15:33:48,908 [DEBUG] __init__() @certlib.py:640 - Sorting product and entitlement cert status for: 2011-05-23 15:33:48.908004
2011-05-23 15:33:48,911 [DEBUG] _populate_all_products() @certlib.py:658 - Installed product IDs: ['71']
2011-05-23 15:33:48,911 [DEBUG] __init__() @certlib.py:649 - valid entitled products: []
2011-05-23 15:33:48,911 [DEBUG] __init__() @certlib.py:650 - expired entitled products: []
2011-05-23 15:33:48,916 [INFO] _request() @connection.py:147 - loading ca pem certificates from: /etc/rhsm/ca/
2011-05-23 15:33:48,916 [INFO] _load_ca_certificates() @connection.py:134 - loading ca certificate '/etc/rhsm/ca/redhat-uep.pem'
2011-05-23 15:33:48,917 [INFO] _load_ca_certificates() @connection.py:134 - loading ca certificate '/etc/rhsm/ca/candlepin-stage.pem'
2011-05-23 15:33:48,918 [INFO] _load_ca_certificates() @connection.py:134 - loading ca certificate '/etc/rhsm/ca/fakamai-cp1.pem'
2011-05-23 15:33:48,918 [INFO] _request() @connection.py:149 - work in insecure mode ?:False
2011-05-23 15:33:49,350 [INFO] _request() @connection.py:177 - status code: 500
2011-05-23 15:33:49,351 [ERROR] autosubscribe() @managercli.py:88 - Runtime Error No entitlements for products: [71] at org.fedoraproject.candlepin.controller.CandlepinPoolManager.entitleByProducts:378
Traceback (most recent call last):
  File "/usr/share/rhsm/managercli.py", line 77, in autosubscribe
    ents = cp.bindByProduct(consumer, products.values())
  File "/usr/lib/python2.6/site-packages/rhsm/connection.py", line 397, in bindByProduct
    return self.conn.request_post(method)
  File "/usr/lib/python2.6/site-packages/rhsm/connection.py", line 203, in request_post
    return self._request("POST", method, params)
  File "/usr/lib/python2.6/site-packages/rhsm/connection.py", line 178, in _request
    self.validateResponse(result)
  File "/usr/lib/python2.6/site-packages/rhsm/connection.py", line 197, in validateResponse
    parsed['displayMessage'])
RestlibException: Runtime Error No entitlements for products: [71] at org.fedoraproject.candlepin.controller.CandlepinPoolManager.entitleByProducts:378
2011-05-23 15:33:49,352 [WARNING] autosubscribe() @managercli.py:90 - Warning: Unable to auto subscribe to Red Hat Enterprise Linux 6 Workstation
2011-05-23 15:33:49,355 [INFO] _request() @connection.py:147 - loading ca pem certificates from: /etc/rhsm/ca/
2011-05-23 15:33:49,355 [INFO] _load_ca_certificates() @connection.py:134 - loading ca certificate '/etc/rhsm/ca/redhat-uep.pem'
2011-05-23 15:33:49,356 [INFO] _load_ca_certificates() @connection.py:134 - loading ca certificate '/etc/rhsm/ca/candlepin-stage.pem'
2011-05-23 15:33:49,357 [INFO] _load_ca_certificates() @connection.py:134 - loading ca certificate '/etc/rhsm/ca/fakamai-cp1.pem'
2011-05-23 15:33:49,357 [INFO] _request() @connection.py:149 - work in insecure mode ?:False
2011-05-23 15:33:49,623 [INFO] _request() @connection.py:177 - status code: 200
2011-05-23 15:33:49,624 [INFO] perform() @certlib.py:116 - certs updated:
Total updates: 0
Found (local) serial# []
Expected (UEP) serial# []
Added (new)
  <NONE>
Deleted (rogue):
  <NONE>
Expired (not deleted):
  <NONE>
Expired (deleted):
  <NONE>

Comment 1 Andrius Benokraitis 2011-05-24 17:11:02 UTC
Just to confirm the bits are the RHEL 6.1 GA bits and not the 6.1 Beta bits, correct Scott?

Comment 4 Amanda Carter 2011-05-24 18:58:08 UTC
Scott, here's the low down...

The sku the customer has (SVC0037RW) is very old... we don't use it anymore. However, this order was booked back in 2009, with a start date of 2011, so they still have it. 

Because of that, it wasn't mapped to content, which I've now requested be done. The other problem is, because we don't use it anymore, I don't have a good way to verify that fixed the problem. Would you feel comfortable asking the customer to regen & replace their cert and try again? I'm not 100% sure that will solve it, but their current cert doesn't have any products or content sets associated to it, so it's certainly not helping matters.

Comment 23 Bryan Kearney 2011-05-25 19:53:28 UTC
ok.. will keep looking.

Comment 38 Bryan Kearney 2011-05-31 16:35:48 UTC
Further investigation has shown that the client is using product name to compare the products. This is why the entitlement for

"Red Hat Enterprise Linux Workstation" is not matching the product named
"Red Hat Enterprise Linux 6 Workstation". 

BZ709412 has been opened to track this issue. Given that most of the work in this bug related to the back end data side I am going to categorize it that way and close out the bug. Anyone interested in the client fix should follow 709412.


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