Bug 909467 - Subscription Manager should check on supported arch when calculating 'status'
Summary: Subscription Manager should check on supported arch when calculating 'status'
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Candlepin
Classification: Community
Component: candlepin
Version: 0.9
Hardware: All
OS: Unspecified
unspecified
medium
Target Milestone: ---
: ---
Assignee: John Sefler
QA Contact: Katello QA List
URL:
Whiteboard:
Depends On:
Blocks: rhsm-rhel510 rhsm-rhel70 rhsm-2013
TreeView+ depends on / blocked
 
Reported: 2013-02-08 20:51 UTC by Amanda Carter
Modified: 2015-05-14 14:53 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-10-01 13:50:37 UTC
Embargoed:


Attachments (Terms of Use)
"Partially Subscribed" status is misleading for a product whose arch does not match the system. (51.48 KB, image/png)
2013-04-10 16:11 UTC, John Sefler
no flags Details
Status Details on My Subscriptions tab explains the reason why the installed product is 'Partially Installed" (62.24 KB, image/png)
2013-06-07 19:04 UTC, John Sefler
no flags Details

Description Amanda Carter 2013-02-08 20:51:46 UTC
Subscriptions carry a list of supported arches on them. These are used to choose 'matching' subscriptions when listing subscriptions but we do not use them to calculate status (red/yellow/green). We should compare the list of arches to the arch on the machine and return a status of yellow to the user if it does not match with the existing status message 'This system does not match subscription limits.'.

This behavior is pending verification from the BU.

Comment 2 Carter Kozak 2013-04-09 20:54:11 UTC
commit 180367de922e0250ca7984060d378a5baa999511
Author: Carter Kozak <ckozak>
Date:   Wed Apr 3 15:44:40 2013 -0400

    909467: Now checks stacked entitlements.  Added tests

commit 6c4fe801c9ddf6d87b9399fdd7cae29133762723
Author: Carter Kozak <ckozak>
Date:   Mon Apr 1 14:52:32 2013 -0400

    909467: warning on architecture mismatch

Comment 3 John Sefler 2013-04-10 16:11:25 UTC
Created attachment 733777 [details]
"Partially Subscribed" status is misleading for a product whose arch does not match the system.

With the implementation from comment 2, an installed product color of yellow now has more than one meaning.  "Partially Subscribed" is misleading when the reason for the yellow status is really that the product's supported arch(es) does not include the system's arch.

Including mreid on this bug for design considerations of another status string - something like "Unmatched Arch".

Comment 4 Michael Stead 2013-04-25 14:48:33 UTC
Will this not be addressed when reasons are visible in the client?

Comment 5 Michael Stead 2013-04-25 14:49:38 UTC
You are still partially subscribed (yellow) and the reason is the unmatched arch.

Comment 6 Carter Kozak 2013-04-25 14:50:25 UTC
The status will remain as is, but we are adding new status details to clarify.

Ex:
Product Name:   Awesome OS for ppc64 Bits
Product ID:     100000000000003
Version:        3.11
Arch:           ppc64
Status:         Partially Subscribed
Status Details: Awesome OS for ppc64 covers architecture ppc64 but the system
                is x86_64.
Starts:         
Ends:

Note: This has not been merged yet.

Comment 7 Bryan Kearney 2013-06-05 12:23:01 UTC
in the current errata.

Comment 8 Bryan Kearney 2013-06-05 12:23:16 UTC
in the current errata.

Comment 9 John Sefler 2013-06-07 19:04:39 UTC
Created attachment 758299 [details]
Status Details on My Subscriptions tab explains the reason why the installed product is 'Partially Installed"

[root@jsefler-5 ~]# rpm -q subscription-manager-gui
subscription-manager-gui-1.8.10-1.el5


[root@jsefler-5 ~]# subscription-manager list --installed
+-------------------------------------------+
    Installed Product Status
+-------------------------------------------+
Product Name:   Awesome OS for S390X Bits
Product ID:     100000000000000
Version:        3.11
Arch:           s390x
Status:         Partially Subscribed
Status Details: Covers architecture s390x but the system is x86_64.
Starts:         
Ends:      


Using the CLI as demonstrated above, the new Status Details explains why the installed product is not fully compliant.

See the attached screenshot which shows in the GUI that My Installed Software providing for the "Partially Subscribed" product is where the user will find the Status Details explaining the reason for the non-fully compliant status "Covers architecture s390x but the system is x86_64."

Moving to VERIFIED


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