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 1200882 - Wrong installed product status is displayed when a unmapped_guests_only pool is attached
Summary: Wrong installed product status is displayed when a unmapped_guests_only pool ...
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: subscription-manager
Version: 6.7
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: candlepin-bugs
QA Contact: John Sefler
URL:
Whiteboard:
Depends On:
Blocks: rhsm-rhel67
TreeView+ depends on / blocked
 
Reported: 2015-03-11 15:04 UTC by Rehana
Modified: 2015-05-15 19:06 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-03-16 13:31:47 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Rehana 2015-03-11 15:04:06 UTC
Description of problem:


Version-Release number of selected component (if applicable):
# subscription-manager version
server type: Red Hat Subscription Management
subscription management server: 0.9.46-1
subscription management rules: 5.14
subscription-manager: 1.14.1-1.el6
python-rhsm: 1.14.1-1.el6


How reproducible:
always

Steps to Reproduce:
1.Register and auto-attach guest machine
2.

# subscription-manager list --consumed
+-------------------------------------------+
   Consumed Subscriptions
+-------------------------------------------+
Subscription Name:   Awesome OS Virtual Datacenter
Provides:            Awesome OS Server Bits
SKU:                 awesomeos-virt-datacenter
Contract:            1
Account:             12331131231
Serial:              6975432568663614122
Pool ID:             ff8080814c074718014c0747bb061ab2
Provides Management: No
Active:              True
Quantity Used:       1
Service Level:       
Service Type:        
Status Details:      Guest has not been reported on any host and is using a temporary unmapped guest subscription.
Subscription Type:   Standard
Starts:              03/11/2015
Ends:                03/12/2015
System Type:         Virtual

3. 
# subscription-manager list --installed

+-------------------------------------------+
    Installed Product Status
+-------------------------------------------+
Product Name:   Awesome OS Server Bits
Product ID:     37060
Version:        6.1
Arch:           ALL
Status:         Subscribed -->> wrong status
Status Details: 
Starts:         03/11/2015
Ends:           03/10/2016

# subscription-manager status
+-------------------------------------------+
   System Status Details
+-------------------------------------------+
Overall Status: Insufficient

Awesome OS Virtual Datacenter:
- Guest has not been reported on any host and is using a temporary unmapped guest subscription.


Actual results:
Observed that installed product status is set to "subscribed" , this used to be "Partially subscribed" when 24hr temporary pool is attached


Expected results:
Installed product status should be set to "Partially subscribed"

Additional info:

Comment 1 John Sefler 2015-03-11 15:19:17 UTC
(In reply to Rehana from comment #0)

> 3. 
> # subscription-manager list --installed
> 
> +-------------------------------------------+
>     Installed Product Status
> +-------------------------------------------+
> Product Name:   Awesome OS Server Bits
> Product ID:     37060
> Version:        6.1
> Arch:           ALL
> Status:         Subscribed -->> wrong status
> Status Details: 
> Starts:         03/11/2015
> Ends:           03/10/2016

Wrong status *and* wrong end date.

Expected the Start-End date of the installed product to reflect the current period of continuous coverage.  In this case it should have matched the consumed unmapped_guests_only entitlement...
Starts:              03/11/2015
Ends:                03/12/2015

Comment 2 John Sefler 2015-03-11 15:42:26 UTC
(In reply to Rehana from comment #0)

It appears that when run against candlepin version 0.9.45-1...
The installed product status correctly shows "Partially Subscribed", but
The installed product Starts-Ends date was wrong, and
The consumed subscription erroneously shows "Subscription is current"

It appears that when run against candlepin version 0.9.46-1...
The installed product status erroneously shows "Subscribed", and
The installed product Starts-Ends date is still wrong, and 
The consumed subscription correctly shows "Guest has not been reported on any host and is using a temporary unmapped guest subscription."

Comment 3 Devan Goodwin 2015-03-13 18:55:21 UTC
Ok several of these are related to a decision we made.

If the installed product comes back as "partial", the server believes it needs more entitlements and thus will always try to find it more. This is the source of the bugs where entitlements were repeatedly re-added on every auto-attach or healing request.

We looked into this and determined that this product is not *actually* partial, you can't add anything more to it to improve the situation. 

To correct this we utilized an option available in the rules where the reason given is not applicable to any given installed product (also used when we have no installed product but a partial stack), but it is specific to the entitlement in use. (and will show up correctly in the GUI on that entitlement)

So in our minds this is correct, the installed product is green, it's fully covered, there's nothing you can do to help it. The system itself is yellow, because you're unmapped and using a temp sub. This yellow status shows for the overall system in GUI, and on the entitlement in question.

Does this seem sufficient?


Also lets leave the date range discussion for https://bugzilla.redhat.com/show_bug.cgi?id=1199443 and keep this one focused on the status.

Comment 4 Devan Goodwin 2015-03-16 13:31:47 UTC
Closing as notabug after today's discussions. We'll handle the date range in the other bug.


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