Bug 761478

Summary: system.entitlements_valid should be valid when viewing facts via GUI after subscribing a subscription
Product: Red Hat Enterprise Linux 5 Reporter: Suyuan Li <suli>
Component: subscription-managerAssignee: John Sefler <jsefler>
Status: CLOSED ERRATA QA Contact: Entitlement Bugs <entitlement-bugs>
Severity: high Docs Contact:
Priority: medium    
Version: 5.8CC: awood, bkearney, jmolet, jsefler, khong, wpoteat
Target Milestone: beta   
Target Release: 5.8   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
No description necessary
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-02-21 06:43:46 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Bug Depends On:    
Bug Blocks: 715031, 772956    
Attachments:
Description Flags
Demonstration that the facts values in the GUI can be out of sync with the CLI
none
facts list in GUI keeps system.entitlements_valid in sync with CLI none

Description Suyuan Li 2011-12-08 12:03:04 UTC
Description of problem:
system.entitlements_valid is invalid when viewing facts via GUI after subscribing the system to a subscription


Version-Release number of selected component (if applicable):
# rpm -qa | grep subscription
subscription-manager-0.98.5-1.el5
subscription-manager-firstboot-0.98.5-1.el5
subscription-manager-gnome-0.98.5-1.el5
# rpm -qa | grep python-rhsm
python-rhsm-0.98.3-1.el5


How reproducible:
always

Steps to Reproduce:
1. subscription-manager-gui
    click "Register System"
    Input <rhlogin> <pwd> <system_name>, and click register
2. subscribe to one available subscription.
3. click "View System Facts" icon, open "system" attribute, check the value of system.entitlements_valid.
  
Actual results:
  The result shows system.entitlements_valid: invalid
  attachement will show the value shown in GUI and CLI.

Expected results:
  The result shoud show system.entitlements_valid: valid

Additional info:
  The result will show: "system.entitlements_valid: valid" after re-run subscription-manager-gui.

Comment 2 John Sefler 2011-12-14 16:00:40 UTC
Created attachment 546779 [details]
Demonstration that the facts values in the GUI can be out of sync with the CLI

This screenshot demonstrates the descrepancy.
Circled green values are correct.
Circled red value is out of sync.

Comment 5 Alex Wood 2011-12-20 21:12:34 UTC
Committed 4b2b7a20cd397499bc34e4c27f35a1fb28761a4a 

Available in versions 0.99.2+

Comment 6 John Sefler 2011-12-21 18:04:05 UTC
Was also committed to RHEL5.8 branch...
	Revision: 4f81890f5e7f1660a58c2fb2c6f97265d1664c91

Comment 7 John Sefler 2011-12-21 18:32:57 UTC
Created attachment 549067 [details]
facts list in GUI keeps system.entitlements_valid in sync with CLI

Verifying Version...
[root@jsefler-onprem-5server ~]# rpm -qa | grep subscription-manager
subscription-manager-gnome-0.98.9-1.git.3.4f81890.el5_7
subscription-manager-firstboot-0.98.9-1.git.3.4f81890.el5_7
subscription-manager-migration-0.98.9-1.git.3.4f81890.el5_7
subscription-manager-0.98.9-1.git.3.4f81890.el5_7
[root@jsefler-onprem-5server ~]# 

Verified that as the fact value of system.entitlements_valid changes with the subscribe and unsubscribe of subscriptions via the GUI, opening the facts GUI dialog will show the same up-to-date value as reported in the CLI.

Note: The facts dialog must be closed and re-opened if changing entitlements outside the GUI (e.g. using the CLI to subscribe/unsubscribe) to see the most up-to-date facts value for system.entitlements_valid.  This behavior is reasonable in my opinion.

moving to VERIFIED

Comment 8 William Poteat 2012-01-23 15:50:57 UTC
    Technical note added. If any revisions are required, please edit the "Technical Notes" field
    accordingly. All revisions will be proofread by the Engineering Content Services team.
    
    New Contents:
No description necessary

Comment 9 errata-xmlrpc 2012-02-21 06:43:46 UTC
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-2012-0154.html