Bug 676377 - rhsm-compliance-icon's status can be a day out of sync
Summary: rhsm-compliance-icon's status can be a day out of sync
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: subscription-manager
Version: 6.1
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: rc
: ---
Assignee: Chris Duryee
QA Contact: John Sefler
URL:
Whiteboard:
Depends On:
Blocks: 568421
TreeView+ depends on / blocked
 
Reported: 2011-02-09 17:00 UTC by John Sefler
Modified: 2011-05-19 13:39 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-05-19 13:39:45 UTC
Target Upstream Version:


Attachments (Terms of Use)
Am I compliant or not? (436.32 KB, image/png)
2011-02-09 17:00 UTC, John Sefler
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHEA-2011:0611 0 normal SHIPPED_LIVE new package: subscription-manager 2011-05-18 17:56:21 UTC

Description John Sefler 2011-02-09 17:00:45 UTC
Created attachment 477860 [details]
Am I compliant or not?

Description of problem:
While rhsm-compliance-icon is running with its default --check-period (once-a-day), it is easy to run subscription-manager cli/gui and autosubscribe yourself into compliance.  Yet the rhsm-compliance-icon remains in a non-compliant state.  

See attached screenshot.

This situation is confusing for the user who will not have the patience or knowledge that if they just wait one day, the rhsm-compliance-icon will disappear.  Yes... I know clicking it will zap it out of site, but that's not such a great usability feature either.

Changing the default --check-period to something smaller (like 5 seconds) would be a quick fix, but it's not too elegant.

It would be nicer if...
<jbowes> the client apps (the cli/gui) might also have to be smart enough to tell this daemon to recheck, so it can emit compliance change signals right after they've done something


Version-Release number of selected component (if applicable):
[root@jsefler-betastage-1 ~]# rpm -qa | grep subscription-manager
subscription-manager-firstboot-0.93.19-1.el6.x86_64
subscription-manager-0.93.19-1.el6.x86_64
subscription-manager-gnome-0.93.19-1.el6.x86_64


How reproducible:


Steps to Reproduce:
1.
2.
3.
  
Actual results:


Expected results:


Additional info:
Related bug: https://bugzilla.redhat.com/show_bug.cgi?id=642705

Comment 2 John Sefler 2011-02-15 15:03:08 UTC
Another related bug: https://bugzilla.redhat.com/show_bug.cgi?id=642816

Comment 6 John Sefler 2011-03-08 22:12:26 UTC
[root@jsefler-onprem03 bug629670]# rpm -qa | grep subscription-manager
subscription-manager-gnome-0.95.4-1.git.0.1fb5ee4.el6.x86_64
subscription-manager-firstboot-0.95.4-1.git.0.1fb5ee4.el6.x86_64
subscription-manager-0.95.4-1.git.0.1fb5ee4.el6.x86_64

Testing transition from compliance to non-compliance with a single subscribable product configured, the following is a summary of my test case results:

GUI---------------------------------
subscription-manager-gui subscribe
  PASS

subscription-manager-gui unsubscribe
  PASS

subscription-manager-gui register with autosubscribe
  PASS

subscription-manager-gui unregister
  PASS

CLI---------------------------------
subscription-manager subscribe --auto
  PASS

subscription-manager unsubscribe --all
  PASS

subscription-manager subscribe --pool=
  PASS

subscription-manager unsubscribe --serial=
  PASS

subscription-manager unsubscribe --serial=
  PASS

subscription-manager register --autosubscribe
  FAIL

subscription-manager unregister
  FAIL


moving back to ASSIGNED to fix the cli cases for register and unregister

Comment 7 Chris Duryee 2011-03-10 19:13:29 UTC
master ee42888 0.96.2+

rhel6 0.95.5+ 4721154845145a82ec9e00260d64817abf11cf93

Comment 8 John Sefler 2011-03-10 21:12:31 UTC
Verifying Version...
[root@jsefler-onprem03 bug629670]# rpm -qa | grep subscription-manager
subscription-manager-0.95.4-1.git.4.4721154.el6.x86_64
subscription-manager-firstboot-0.95.4-1.git.4.4721154.el6.x86_64
subscription-manager-gnome-0.95.4-1.git.4.4721154.el6.x86_64
[root@jsefler-onprem03 pki]# rpm -q subscription-manager --changelog | grep 676377
- 676377: rhsm-compliance-icon's status can be a day out of sync

The two failed cases in comment #6 are now passing:

subscription-manager register --autosubscribe
  PASS

subscription-manager unregister
  PASS

moving to VERIFIED

Comment 9 errata-xmlrpc 2011-05-19 13:39:45 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHEA-2011-0611.html


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