Bug 1200882
| Summary: | Wrong installed product status is displayed when a unmapped_guests_only pool is attached | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 6 | Reporter: | Rehana <redakkan> |
| Component: | subscription-manager | Assignee: | candlepin-bugs |
| Status: | CLOSED NOTABUG | QA Contact: | John Sefler <jsefler> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 6.7 | CC: | dgoodwin, redakkan |
| Target Milestone: | rc | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2015-03-16 13:31:47 UTC | Type: | Bug |
| 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: | 1125249 | ||
(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 (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." 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. Closing as notabug after today's discussions. We'll handle the date range in the other bug. |
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: