Bug 959124
| Summary: | When "Compliant status" of the system set to "Insufficient" , the GUI continues to display the Compliant status as "Green" | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | Red Hat Enterprise Linux 5 | Reporter: | Rehana <redakkan> | ||||||
| Component: | subscription-manager | Assignee: | Carter Kozak <ckozak> | ||||||
| Status: | CLOSED ERRATA | QA Contact: | IDM QE LIST <seceng-idm-qe-list> | ||||||
| Severity: | unspecified | Docs Contact: | |||||||
| Priority: | unspecified | ||||||||
| Version: | 5.10 | CC: | bkearney, ckozak, fsharath, jesusr, jgalipea, jmolet, jsefler, skallesh, spandey | ||||||
| Target Milestone: | rc | ||||||||
| Target Release: | --- | ||||||||
| Hardware: | Unspecified | ||||||||
| OS: | Unspecified | ||||||||
| Whiteboard: | |||||||||
| Fixed In Version: | Doc Type: | Bug Fix | |||||||
| Doc Text: |
No description necessary
|
Story Points: | --- | ||||||
| Clone Of: | Environment: | ||||||||
| Last Closed: | 2013-09-30 23:07:34 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 | ||||||||
| Attachments: |
|
||||||||
Created attachment 743085 [details]
gui-installed
Created attachment 743086 [details]
gui_consumed
It was designed to behave that way for subscriptions that will cause a problem when installed. The same thing happens if you attach a partial stack (installed or not). Hi Carter,
Earlier the "Compliance" status of the machine was calculated based on "status" of installed subscriptions in a system, Can you plesase confirm is it now changed to consider "attached Subscriptions" to set the "compliance status of the machine" ?
I have one more observation, which i feel is in-line with this bug i have logged
1) system Cores value is set to 5. (5*2 socket=10 cores)
installed products
[root@hp-dl360g4-01 product]# subscription-manager list --installed
+-------------------------------------------+
Installed Product Status
+-------------------------------------------+
Product Name: Multi-Attribute Limited Product
Product ID: 900
Version: 1.0
Arch: x86_64
Status: Partially Subscribed ---> Partially subscribed due to
insufficient coverage
Status Details: Only covers 8 of 20 cores.
Starts:
Ends:
Product Name: RAM Limiting Product
Product ID: 801
Version: 1.0
Arch: x86_64
Status: Subscribed
Status Details:
Starts: 05/01/2013
Ends: 05/01/2014
Product Name: Core Limiting Product
Product ID: 806
Version: 1.0
Arch: x86_64
Status: Subscribed
Status Details:
Starts: 05/01/2013
Ends: 05/01/2014
2) consumed products
[root@hp-dl360g4-01 facts]# subscription-manager list --consumed
+-------------------------------------------+
Consumed Subscriptions
+-------------------------------------------+
Subscription Name: Cores Package (26 cores)
Provides: Core Limiting Product
SKU: cores-26
Contract: 169
Account: 12331131231
Serial Number: 6450680879713716916
Pool ID: 8ac6a30b3e63c090013e63c16e4304b5
Active: True
Quantity Used: 1
Service Level:
Service Type:
Status Details:
Starts: 05/01/2013
Ends: 05/01/2014
Subscription Name: Multi-Attribute (multi-entitlement only) (8 cores, 4GB)
Provides: Multi-Attribute Limited Product
SKU: non-stacked-8core4ram-multiattr
Contract: 223
Account: 12331131231
Serial Number: 3733668873545557841
Pool ID: 8ac6a30b3e63c090013e63c16acf0375
Active: True
Quantity Used: 1
Service Level: Premium
Service Type: Level 3
Status Details: Only covers 8 of 20 cores.
Starts: 05/01/2013
Ends: 05/01/2014
Subscription Name: RAM Limiting Package (8GB)
Provides: RAM Limiting Product
SKU: ram-8gb
Contract: 144
Account: 12331131231
Serial Number: 3446582758580473936
Pool ID: 8ac6a30b3e63c090013e63c16f9c052b
Active: True
Quantity Used: 1
Service Level:
Service Type:
Status Details:
Starts: 05/01/2013
Ends: 05/01/2014
3)status
[root@hp-dl360g4-01 product]# subscription-manager list --status
+-------------------------------------------+
System Status Details
+-------------------------------------------+
Overall Status: Insufficient
Multi-Attribute (multi-entitlement only) (8 cores, 4GB): Only covers 8 of 20 cores.
4) Set auto heal to 5 min, after 5 mins
[root@hp-dl360g4-01 facts]# subscription-manager list --installed | more
+-------------------------------------------+
Installed Product Status
+-------------------------------------------+
Product Name: Multi-Attribute Limited Product
Product ID: 900
Version: 1.0
Arch: x86_64
Status: Subscribed ----> changed to subscribed due to the subscription
"Multi-Attribute (non-stackable) (24 cores, 6
sockets, 8GB RAM)" added by auto heal
Status Details: Only covers 8 of 20 cores.--> but error continued to display
Starts: 05/01/2013
Ends: 05/01/2014
Product Name: RAM Limiting Product
Product ID: 801
Version: 1.0
Arch: x86_64
Status: Subscribed
Status Details:
Starts: 05/01/2013
Ends: 05/01/2014
Product Name: Core Limiting Product
Product ID: 806
Version: 1.0
Arch: x86_64
Status: Subscribed
Status Details:
Starts: 05/01/2013
Ends: 05/01/2014
5)[root@hp-dl360g4-01 product]# subscription-manager list --consumed
+-------------------------------------------+
Consumed Subscriptions
+-------------------------------------------+
Subscription Name: Cores Package (26 cores)
Provides: Core Limiting Product
SKU: cores-26
Contract: 169
Account: 12331131231
Serial Number: 6450680879713716916
Pool ID: 8ac6a30b3e63c090013e63c16e4304b5
Active: True
Quantity Used: 1
Service Level:
Service Type:
Status Details:
Starts: 05/01/2013
Ends: 05/01/2014
Subscription Name: Multi-Attribute (non-stackable) (24 cores, 6 sockets, 8GB RAM) ---> newly added subscription by autoheal
Provides: Multi-Attribute Limited Product
SKU: non-stacked-multiattr
Contract: 217
Account: 12331131231
Serial Number: 3310372853710925933
Pool ID: 8ac6a30b3e63c090013e63c16b760396
Active: True
Quantity Used: 1
Service Level: Super
Service Type: Level 3
Status Details:
Starts: 05/01/2013
Ends: 05/01/2014
Subscription Name: Multi-Attribute (multi-entitlement only) (8 cores, 4GB)
Provides: Multi-Attribute Limited Product --> old subscrption
SKU: non-stacked-8core4ram-multiattr
Contract: 223
Account: 12331131231
Serial Number: 3733668873545557841
Pool ID: 8ac6a30b3e63c090013e63c16acf0375
Active: True
Quantity Used: 1
Service Level: Premium
Service Type: Level 3
Status Details: Only covers 8 of 20 cores.
Starts: 05/01/2013
Ends: 05/01/2014
Subscription Name: RAM Limiting Package (8GB)
Provides: RAM Limiting Product
SKU: ram-8gb
Contract: 144
Account: 12331131231
Serial Number: 3446582758580473936
Pool ID: 8ac6a30b3e63c090013e63c16f9c052b
Active: True
Quantity Used: 1
Service Level:
Service Type:
Status Details:
Starts: 05/01/2013
Ends: 05/01/2014
though the system is fully compliant, it displayed "Insufficient" due to the initailly attached subscription
[root@hp-dl360g4-01 product]# subscription-manager list --status
+-------------------------------------------+
System Status Details
+-------------------------------------------+
Overall Status: Insufficient
Multi-Attribute (multi-entitlement only) (8 cores, 4GB): Only covers 8 of 20 cores.
In both of these above observation, it is observed that, in CLI when the status was "partial", [root@hp-dl360g4-01 product]# subscription-manager list --status +-------------------------------------------+ System Status Details +-------------------------------------------+ Overall Status: Insufficient Awesome OS for S390: Covers architecture s390 but the system is i686. curl -k -u admin:admin --request GET https://10.70.35.139:8443/candlepin/consumers/81765952-5b54-46c0-9a28-ed8aea7a6000/compliance | python -mjson.tool | grep status % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 3421 0 3421 0 0 43103 0 --:--:-- --:--:-- --:--:-- 98k "status": "partial" the GUI displayed the system's compliant status as"Green"(PFA:GUI_consumed.png,GUI_installed.png) expected result : GUI should be display the system compliant status as "Yellow" I've got a pull request for the second part (reasons on products that should be valid). I think the problem there is that a partial stack provides the product, as well as a full entitlement. I'll take a look at how the GUI color is calculated. I cannot reproduce the compliance status insufficient while the gui is green. If I attach a subscription with an arch mismatch, the GUI turns yellow. More information would be helpful. commit ab0cefe92ea6f579d5bcc4cd8e83403568911d31
Author: ckozak <ckozak>
Date: Tue May 7 13:12:32 2013 -0400
959124: Consistant system status between CLI and GUI
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. Retested; Observation 1 --> Inconsistancy between the CLI and GUI status --> has been *resolved*, CLI and GUI displays the same status details when an unsupported Arch subscription is attached Obeservation 2 (comment 4) --> Resolved 1) even if a partial subscription is attached to fully subscribed product, "status details" was not listed for the fully compliant product, listed only in the list --consumed,list -- status list and not in list --installed [root@hp-bl460cgen8-01 ~]# subscription-manager list --installed +-------------------------------------------+ Installed Product Status +-------------------------------------------+ Product Name: Shared Storage Bits Product ID: 37067 Version: 1.0 Arch: ALL Status: Subscribed Status Details: Starts: 05/12/2013 Ends: 05/12/2014 Product Name: Awesome OS Server Bits Product ID: 37060 Version: 6.1 Arch: ALL Status: Subscribed Status Details: Starts: 05/12/2013 Ends: 05/12/2014 Product Name: Core Limiting Product Product ID: 806 Version: 1.0 Arch: x86_64 Status: Partially Subscribed Status Details: Only covers 8 of 20 cores. Starts: Ends: [root@hp-bl460cgen8-01 ~]# subscription-manager list --consumed +-------------------------------------------+ Consumed Subscriptions +-------------------------------------------+ Subscription Name: Stackable Cores Package (8 cores) Provides: Core Limiting Product SKU: cores-8-stackable Contract: 175 Account: 12331131231 Serial Number: 8744260158847626632 Pool ID: 8ac6a30b3e9c9a9c013e9c9b799c04a9 Active: True Quantity Used: 1 Service Level: Service Type: Status Details: Only covers 8 of 20 cores. Starts: 05/12/2013 Ends: 05/12/2014 Subscription Name: Awesome OS Server Bundled (2 Sockets, Standard Support) Provides: Clustering Bits Awesome OS Server Bits Load Balancing Bits Large File Support Bits Shared Storage Bits Management Bits SKU: awesomeos-server-2-socket-std Contract: 36 Account: 12331131231 Serial Number: 78397930735581677 Pool ID: 8ac6a30b3e9c9a9c013e9c9b800906fe Active: True Quantity Used: 1 Service Level: Standard Service Type: L1-L3 Status Details: Starts: 05/12/2013 Ends: 05/12/2014 [root@hp-bl460cgen8-01 ~]# subscription-manager list --status +-------------------------------------------+ System Status Details +-------------------------------------------+ Overall Status: Insufficient Stackable Cores Package (8 cores): - Only covers 8 of 20 cores. After auto heal [root@hp-bl460cgen8-01 ~]# subscription-manager list --installed +-------------------------------------------+ Installed Product Status +-------------------------------------------+ Product Name: Shared Storage Bits Product ID: 37067 Version: 1.0 Arch: ALL Status: Subscribed Status Details: Starts: 05/12/2013 Ends: 05/12/2014 Product Name: Awesome OS Server Bits Product ID: 37060 Version: 6.1 Arch: ALL Status: Subscribed Status Details: Starts: 05/12/2013 Ends: 05/12/2014 Product Name: Core Limiting Product Product ID: 806 Version: 1.0 Arch: x86_64 Status: Subscribed Status Details: ---> No error Starts: 05/12/2013 Ends: 05/12/2014 [root@hp-bl460cgen8-01 ~]# subscription-manager list --consumed +-------------------------------------------+ Consumed Subscriptions +-------------------------------------------+ Subscription Name: Cores Package (26 cores) ---> new subscription Provides: Core Limiting Product SKU: cores-26 Contract: 168 Account: 12331131231 Serial Number: 6954680131331313164 Pool ID: 8ac6a30b3e9c9a9c013e9c9b7a0e04ce Active: True Quantity Used: 1 Service Level: Service Type: Status Details: Starts: 05/12/2013 Ends: 05/12/2014 Subscription Name: Stackable Cores Package (8 cores) Provides: Core Limiting Product SKU: cores-8-stackable Contract: 175 Account: 12331131231 Serial Number: 8744260158847626632 Pool ID: 8ac6a30b3e9c9a9c013e9c9b799c04a9 Active: True Quantity Used: 1 Service Level: Service Type: Status Details: Only covers 8 of 20 cores. Starts: 05/12/2013 Ends: 05/12/2014 Subscription Name: Awesome OS Server Bundled (2 Sockets, Standard Support) Provides: Clustering Bits Awesome OS Server Bits Load Balancing Bits Large File Support Bits Shared Storage Bits Management Bits SKU: awesomeos-server-2-socket-std Contract: 36 Account: 12331131231 Serial Number: 78397930735581677 Pool ID: 8ac6a30b3e9c9a9c013e9c9b800906fe Active: True Quantity Used: 1 Service Level: Standard Service Type: L1-L3 Status Details: Starts: 05/12/2013 Ends: 05/12/2014 [root@hp-bl460cgen8-01 ~]# subscription-manager list --status +-------------------------------------------+ System Status Details +-------------------------------------------+ Overall Status: Insufficient Stackable Cores Package (8 cores): - Only covers 8 of 20 cores. Hence moving the bug to "Verified" on [root@hp-bl460cgen8-01 ~]# subscription-manager version server type: Red Hat Subscription Management subscription management server: 0.8.7-1 subscription-manager: 1.8.7-1.el5 python-rhsm: 1.8.10-1.el5 [root@hp-bl460cgen8-01 ~]# rpm -qa | grep subscr subscription-manager-gui-1.8.7-1.el5 subscription-manager-1.8.7-1.el5 subscription-manager-firstboot-1.8.7-1.el5 subscription-manager-migration-1.8.7-1.el5 subscription-manager-migration-data-1.11.2.7-1.el5 subscription-manager-debuginfo-1.8.7-1.el5 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 |
Description of problem: Observed that adding a partial subscription (which doesnot have a prodcut id in the system) to a fully compliant system changes the CLI system compliant status to "Partial"/"Insufficient" in CLI but the GUI continues to show "Green" Version-Release number of selected component (if applicable): [root@hp-dl360g4-01 product]# rpm -qa | grep subscrip subscription-manager-migration-1.8.6-1.git.27.f8647f0.el5 subscription-manager-1.8.6-1.git.27.f8647f0.el5 subscription-manager-gui-1.8.6-1.git.27.f8647f0.el5 subscription-manager-firstboot-1.8.6-1.git.27.f8647f0.el5 subscription-manager-migration-data-1.11.2.7-1.git.0.1dfd00e.el5 How reproducible: 100% Steps to Reproduce: 1.Register a client to candlepin 2.Make the system fully compliant by attaching enough subscription to cover all the installed products [root@hp-dl360g4-01 product]# subscription-manager list --installed +-------------------------------------------+ Installed Product Status +-------------------------------------------+ Product Name: RAM Limiting Product Product ID: 801 Version: 1.0 Arch: x86_64 Status: Subscribed Status Details: Starts: 05/01/2013 Ends: 05/01/2014 Product Name: Core Limiting Product Product ID: 806 Version: 1.0 Arch: x86_64 Status: Subscribed Status Details: Starts: 05/01/2013 Ends: 05/01/2014 [root@hp-dl360g4-01 product]# subscription-manager list --status +-------------------------------------------+ System Status Details +-------------------------------------------+ Overall Status: Current curl -- curl -k -u admin:admin --request GET https://10.70.35.139:8443/candlepin/consumers/81765952-5b54-46c0-9a28-ed8aea7a6000/compliance | python -mjson.tool | grep status % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 3217 0 3217 0 0 43097 0 --:--:-- --:--:-- --:--:-- 112k "status": "valid" 3.Now attach arch mismatch subscription to the system(say "Awesome OS for S390", make sure this subscription doesnot have a matched installed product) [root@hp-dl360g4-01 product]# subscription-manager attach --pool 8ac6a30b3e63c090013e63c173fc06cf Successfully attached a subscription for: Awesome OS for S390 [root@hp-dl360g4-01 product]# subscription-manager list --status +-------------------------------------------+ System Status Details +-------------------------------------------+ Overall Status: Insufficient Awesome OS for S390: Covers architecture s390 but the system is i686. curl -k -u admin:admin --request GET https://10.70.35.139:8443/candlepin/consumers/81765952-5b54-46c0-9a28-ed8aea7a6000/compliance | python -mjson.tool | grep status % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 3421 0 3421 0 0 43103 0 --:--:-- --:--:-- --:--:-- 98k "status": "partial" Actual results: Observed that the CLI compliance status marked the system to insufficent,but the GUI continued to show the system as 'fully compliant" (PFA:GUI.png,gui_consumed.png) Expected results: The system should be compliant if all "installed" products are fully subscribed Additional info: