RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 813224 - Auto subscribe in GUI is failed with dry-run error
Summary: Auto subscribe in GUI is failed with dry-run error
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: subscription-manager
Version: 6.3
Hardware: Unspecified
OS: Unspecified
urgent
urgent
Target Milestone: rc
: ---
Assignee: Bryan Kearney
QA Contact: IDM QE LIST
URL:
Whiteboard:
Depends On:
Blocks: 738066
TreeView+ depends on / blocked
 
Reported: 2012-04-17 09:26 UTC by yu zheng
Modified: 2012-06-20 13:09 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-06-20 13:09:23 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2012:0804 0 normal SHIPPED_LIVE subscription-manager bug fix and enhancement update 2012-06-19 19:51:31 UTC

Description yu zheng 2012-04-17 09:26:00 UTC
Description of problem:
Auto subscribe in GUI is failed with network error. The SLA dry-run result could not be got. 

Version-Release number of selected component (if applicable):
subscription-manager-0.99.14-1.el6.x86_64
python-rhsm-0.99.8-1.el6.noarch

How reproducible:
always

Steps to Reproduce:
1.Open subscription-manager GUI
# subscription-manager-gui
2.Click "Register" button, register and autosubscribe with account stage_test_12
  
Actual results:
A "network error" dialog pops up. System is registered and not subscribed.

Expected results:
System is registered and auto subscribed.

Additional info:
1.Error message in rhsm.log
2012-04-17 17:07:41,477 [DEBUG]  @connection.py:329 - Making request: GET /subscription/consumers/d8aaf6e6-f6d5-455a-a4a8-f2629eb53e61/entitlements/dry-run?service_level=PREMIUM
2012-04-17 17:07:42,909 [DEBUG]  @connection.py:343 - Response status: 405
2012-04-17 17:07:42,909 [ERROR]  @connection.py:360 - No JSON object could be decoded
Traceback (most recent call last):
  File "/usr/lib/python2.6/site-packages/rhsm/connection.py", line 358, in validateResponse
    parsed = json.loads(response['content'])
  File "/usr/lib64/python2.6/site-packages/simplejson/__init__.py", line 307, in loads
    return _default_decoder.decode(s)
  File "/usr/lib64/python2.6/site-packages/simplejson/decoder.py", line 335, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib64/python2.6/site-packages/simplejson/decoder.py", line 353, in raw_decode
    raise ValueError("No JSON object could be decoded")
ValueError: No JSON object could be decoded
2012-04-17 17:07:42,910 [ERROR]  @connection.py:361 - Response: {'content': '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"\n       "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">\n<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">\n<head>\n  <meta http-equiv="content-type" content="text/html;charset=UTF-8" />\n  <title>405 Method Not Allowed</title>\n  <link href="/clonepin/stylesheets/scaffold.css?1334240527" media="screen" rel="stylesheet" type="text/css" />\n  <link href="/clonepin/stylesheets/errorpage.css?1334240527" media="screen" rel="stylesheet" type="text/css" />\n</head>\n<body>\n\n  <div class="dialog">\n    <h1>Method Not Allowed</h1>\n    <p>\n      The requested method GET is not allowed for the URL /candlepin/consumers/d8aaf6e6-f6d5-455a-a4a8-f2629eb53e61/entitlements/dry-run.\n    </p>\n  </div>\n\n\n\n</body>\n</html>\n', 'status': 405, 'candlepin_version': None}

2.Try to do dry-run
# curl -k --cert /etc/pki/consumer/cert.pem --key /etc/pki/consumer/key.pem https://subscription.rhn.stage.redhat.com/subscription/consumers/a95a92bf-bb96-4b7c-ad0f-8f6b75164dee/entitlements/dry-run?service_level=Premium
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
       "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
  <meta http-equiv="content-type" content="text/html;charset=UTF-8" />
  <title>405 Method Not Allowed</title>
  <link href="/clonepin/stylesheets/scaffold.css?1334240527" media="screen" rel="stylesheet" type="text/css" />
  <link href="/clonepin/stylesheets/errorpage.css?1334240527" media="screen" rel="stylesheet" type="text/css" />
</head>
<body>

  <div class="dialog">
    <h1>Method Not Allowed</h1>
    <p>
      The requested method GET is not allowed for the URL /candlepin/consumers/a95a92bf-bb96-4b7c-ad0f-8f6b75164dee/entitlements/dry-run.
    </p>
  </div>
</body>
</html>

Comment 5 yu zheng 2012-04-18 02:58:45 UTC
Verifying...
1.Register and autosubscribe in GUI is succeed.
2.Register by skipping auto subscription selection, then do auto subscribe is succeed.
3.Curl command of SLA dry-run could get the subscription info successfully.
# curl -k --cert /etc/pki/consumer/cert.pem --key /etc/pki/consumer/key.pem https://subscription.rhn.stage.redhat.com/subscription/consumers/c723ea9a-f96d-41e0-a051-e2f2f4b66fc8/entitlements/dry-run?service_level=PREMIUM|python -mjson.tool
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
101  3561    0  3561    0     0   1010      0 --:--:--  0:00:03 --:--:--  1382
[
    {
        "pool": {
            "accountNumber": "1540170", 
            "activeSubscription": true, 
            "attributes": [
......

Please move this bug to ON_QA. Thanks.

Comment 6 Keqin Hong 2012-04-18 11:37:42 UTC
Move to verified as per comment 5.

Comment 8 errata-xmlrpc 2012-06-20 13:09:23 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-2012-0804.html


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