Bug 920975 - Wrong subscribe status with autosubscribe option.
Summary: Wrong subscribe status with autosubscribe option.
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: subscription-manager
Version: 5.10
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: beta
: 5.10
Assignee: Devan Goodwin
QA Contact: IDM QE LIST
URL:
Whiteboard:
Depends On:
Blocks: rhsm-rhel510 rhsm-2013
TreeView+ depends on / blocked
 
Reported: 2013-03-13 08:39 UTC by spandey
Modified: 2015-04-23 23:57 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
No description necessary
Clone Of:
Environment:
Last Closed: 2013-09-30 22:59:31 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2013:1332 0 normal SHIPPED_LIVE subscription-manager bug fix and enhancement update 2013-09-30 22:49:24 UTC

Description spandey 2013-03-13 08:39:58 UTC
Description of problem:


Version-Release number of selected component (if applicable):


How reproducible:


Prerequisites : 
Rhel6.4 with following subscription-manager rpm .

subscription-manager-migration-data-1.12.2.6-1.git.0.171d4c3.el6.noarch
subscription-manager-migration-1.8.4-1.git.24.36ea5ff.el6.x86_64
subscription-manager-gui-1.8.4-1.git.24.36ea5ff.el6.x86_64
subscription-manager-1.8.4-1.git.24.36ea5ff.el6.x86_64
subscription-manager-firstboot-1.8.4-1.git.24.36ea5ff.el6.x86_64

steps to Repro : 

Place “Ram based subscription” product cert in product location(801.pem)
Register client to onpremises candlepin using autosubscribe option. 

Actual Result : 
[root@dhcp201-164 sm]# subscription-manager register --u testuser1 --password password --org admin --autosubscribe
The system has been registered with id: 864905b3-9459-4339-92a6-a87d295c6309 
Installed Product Current Status:
Product Name: RAM Limiting Product
Status:       Unknown <==================  This should be “Subscribed”

[root@dhcp201-164 sm]# subscription-manager list --install
+-------------------------------------------+
    Installed Product Status
+-------------------------------------------+
Product Name: RAM Limiting Product
Product ID:   801
Version:      1.0
Arch:         x86_64
Status:       Subscribed
Starts:       03/13/2013
Ends:         03/13/2014

Comment 1 Devan Goodwin 2013-03-18 12:15:02 UTC
Fixed in subscription-manager.git master: 2949e35f4faf28535fb9ad8a225e2421b5691daa

Will appear in 1.8.5.

Comment 2 RHEL Program Management 2013-04-09 20:00:51 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.

Comment 3 John Sefler 2013-04-12 22:01:21 UTC
Verifying Version....
[root@jsefler-f14-candlepin candlepin]# git show-ref | grep master
10bc5f9576fc9168c357db9e7877343a01a48155 refs/heads/master
[root@jsefler-5 ~]# subscription-manager version
server type: This system is currently not registered.
subscription management server: 0.8.2-1
subscription-manager: 1.8.5-1.el5
python-rhsm: 1.8.8-1.el5

[root@jsefler-5 ~]# subscription-manager list --installed
+-------------------------------------------+
    Installed Product Status
+-------------------------------------------+
Product Name: RAM Limiting Product
Product ID:   801
Version:      1.0
Arch:         x86_64
Status:       Unknown
Starts:       
Ends:         

[root@jsefler-5 ~]# subscription-manager register --u testuser1 --password password --org admin --autosubscribe
The system has been registered with id: a14dd0b7-462e-445b-a53a-7bd914295f08 
Installed Product Current Status:
Product Name: RAM Limiting Product
Status:       Subscribed

[root@jsefler-5 ~]# subscription-manager list --installed
+-------------------------------------------+
    Installed Product Status
+-------------------------------------------+
Product Name: RAM Limiting Product
Product ID:   801
Version:      1.0
Arch:         x86_64
Status:       Subscribed
Starts:       04/08/2013
Ends:         04/08/2014

[root@jsefler-5 ~]# 


VERIFIED: The status feedback during register with autosubscribe and the status listed afterwards properly display "Subscribed".  With the new server-side compliance calculations, the installed product status is now "Unknown" when the system is not registered.

Comment 5 errata-xmlrpc 2013-09-30 22:59:31 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-2013-1332.html


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