Bug 909467

Summary: Subscription Manager should check on supported arch when calculating 'status'
Product: [Community] Candlepin Reporter: Amanda Carter <acarter>
Component: candlepinAssignee: John Sefler <jsefler>
Status: CLOSED CURRENTRELEASE QA Contact: Katello QA List <katello-qa-list>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 0.9CC: bkearney, ckozak, jsefler, mstead, redakkan
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-10-01 13:50:37 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: 840995, 863175, 920191    
Attachments:
Description Flags
"Partially Subscribed" status is misleading for a product whose arch does not match the system.
none
Status Details on My Subscriptions tab explains the reason why the installed product is 'Partially Installed" none

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