RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1046132 - rhsm-icon pops up at annoying times
Summary: rhsm-icon pops up at annoying times
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: subscription-manager
Version: 6.6
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: rc
: 6.7
Assignee: vritant
QA Contact: Shwetha Kallesh
URL:
Whiteboard:
Depends On:
Blocks: rhsm-rhel68
TreeView+ depends on / blocked
 
Reported: 2013-12-23 19:20 UTC by J.C. Molet
Modified: 2016-05-10 20:35 UTC (History)
10 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-05-10 20:35:32 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2016:0797 0 normal SHIPPED_LIVE python-rhsm and subscription-manager bug fix and enhancement update 2017-01-06 16:31:50 UTC

Description J.C. Molet 2013-12-23 19:20:22 UTC
Description of problem:
I open subscription manager gui on a fresh install of RHEL, and decide I need to register.  So I click the register button and as I am typing my user name rhsm-icon wakes up with "you should register to receive updates".  Thank you rhsm-icon, what a timely reminder!  Thank you for reminding me to do what I am literally doing right now.  With the fast pace of the internet and media these days I have a hard time keeping a train of thought for more than 1.5 seconds.  I don't know what I would do if it weren't for you.

Version-Release number of selected component (if applicable):
subscription-manager-gui-1.10.9-1.git.1.ebf6be6.el7.x86_64
python-rhsm-1.10.9-1.git.0.e05ee04.el7.x86_64

How reproducible:
always

Steps to Reproduce:
1.  Install a new rhel system
2.  Fire up subscription manager gui
3.  have rhsm-icon remind you what is currently on screen.

Actual results:
rhsm-icon activates when the gui is running

Expected results:
rhsm-icon activates only when the gui is not running on the same desktop

Additional info:

Comment 1 Adrian Likins 2014-01-14 17:29:38 UTC
I suspect not only is the icon not checking if the gui is running, but starting the gui is triggering the icon to pop up.

Not sure what the best way to prevent that is. dbus-fu of some sort I suppose...

Comment 2 Bryan Kearney 2014-03-19 20:50:56 UTC
Moving bugs from 7.0 to 7.1

Comment 4 Chris Snyder 2014-07-18 15:51:46 UTC
as of commit: eaae6e0fae36dece8c985fe6904e560a882289c6

Rhsm-icon now tracks the time and content of the last displayed status. The icon will no longer pop up with the same message repeatedly with in the length of time set by the -c option (defaults to one day). However, the icon will still display with the gui on screen. 

This has the effect of making the icon less annoying but still useful. As such I believe this to be a solution to this bug.

Comment 5 Bryan Kearney 2014-07-30 19:23:56 UTC
Acking 7.1

Comment 7 J.C. Molet 2014-11-03 16:27:18 UTC
Upon further review (and outside complaints) this once every 24 hour solution isn't sufficient, as people are now saying the icon never pops up.  I suggest we revert this change in master and talk with project managers/UI people/customers what behavior they actually want - which I would imagine lies somewhere between popping up for every single event and once a day.  A hard wait doesn't seem to be sufficient and the solution probably needs some higher level of logic when to appear.

Please revert the commit in comment 4 until we have a better solution.

Comment 8 Devan Goodwin 2014-11-04 17:44:32 UTC
I have reverted the change and submitted a PR.

Deferring to 6.7.

Comment 10 Devan Goodwin 2014-11-21 16:09:40 UTC
Something definitely needs to be done. Adding devel ack.

Comment 11 qianzhan 2015-04-07 07:25:34 UTC
When testing with RHEL-6.7-20150401.0 and SAM-1.4.1-RHEL-6-20141113.0, I met this issue:
[root@dhcp-128-51 ~]# subscription-manager version
server type: Red Hat Subscription Management
subscription management server: 1.4.3.28-1.el6sam_splice-Headpin
subscription management rules: Unknown
subscription-manager: 1.14.1-1.el6
python-rhsm: 1.14.1-1.el6

Steps:
1. Auto-attach and close subscription-manager-gui.
2. Remove all subscriptions in CLI, and the rhsm-icon prompts.
3. When clicking the 'Manage My Subscriptions' button, the gui is opened, but the rhsm-icon prompts again.

Comment 13 Alex Wood 2015-10-14 21:03:44 UTC
In my opinion, the solution is to make a change in rhsm_icon.c to detect if the GUI is running via the com.redhat.SubscriptionManagerGUI bus.  I think that approach should be feasible.

Comment 14 vritant 2016-01-08 22:28:26 UTC
(In reply to Alex Wood from comment #13)
> In my opinion, the solution is to make a change in rhsm_icon.c to detect if
> the GUI is running via the com.redhat.SubscriptionManagerGUI bus.  I think
> that approach should be feasible.

rhsm_icon.c is run by a process ( rhsmd ) owned by a non-root user, while Subscription Manager GUI, at least as of today, is run by root. this makes that approach in-feasible

Comment 16 vritant 2016-01-13 16:44:32 UTC
The proposed fix does NOT meet the requirement of never displaying the pop up icon when subscription manager GUI is already running - that is not trivially feasible and is probably a WONTFIX.

However, the fix ensures that RHSM icon will pop up only when there is a change in status, and only once for every status change, for example upon registration, un-registration, etc. Prior to this fix, there was a pop up every time the GUI was started, so from that perspective RHSM Icon behavior should be far less annoying now.

Comment 20 Shwetha Kallesh 2016-01-20 12:17:59 UTC
Marking verified as rhsm-icon pops up only when there is a change in status when GUI is open and only once and last for about half a minute or probably less than that.

[root@hp-dl320egen8-01 ~]# subscription-manager version
server type: Red Hat Subscription Management
subscription management server: 0.9.51.14-1
subscription management rules: 5.15.1
subscription-manager: 1.16.8-1.el6
python-rhsm: 1.16.6-1.el6

Comment 22 errata-xmlrpc 2016-05-10 20:35:32 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.

https://rhn.redhat.com/errata/RHBA-2016-0797.html


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