Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
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 1245261

Summary: subscription-manager is not talking to dbus
Product: Red Hat Enterprise Linux 7 Reporter: Sean Toner <stoner>
Component: subscription-managerAssignee: candlepin-bugs
Status: CLOSED DUPLICATE QA Contact: John Sefler <jsefler>
Severity: high Docs Contact:
Priority: unspecified    
Version: 7.2CC: alikins
Target Milestone: rcKeywords: Regression
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: subscription-manager-1.15.9-5 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-08-14 16:12:21 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: 1246123    
Attachments:
Description Flags
Shows that the GUI isn't updating none

Description Sean Toner 2015-07-21 15:05:36 UTC
Created attachment 1054430 [details]
Shows that the GUI isn't updating

Description of problem:
=======================

From the subscription-manager, I first registered a system then did `subscription-manager attach --auto`.  I then brought up the subscription-manager-gui.  The installed product showed up green as shown in the first screenshot.  Then from the subscription-manager CLI, I did a subscription-manager remove --all.  The GUI should have reflected the change by going to a red icon through a dbus signal, but it did not.  Only by closing the GUI and reopening did I see the red icon.

This also can occur in reverse.  If you already have the GUI open, from the CLI subman, you can do `subscription-manager attach --auto`, and you will not see the icon for the product turn green.


Version-Release number of selected component (if applicable):
=============================================================

subscription-manager-1.15.6-1.el7.x86_64
subscription-manager-gui-1.15.6-1.el7.x86_64

How reproducible:
=================

Always


Steps to Reproduce:
===================
1. subscription-manager register
2. subscription-manager attach --auto
3. (in separate console) subscription-manager-gui
4. subscription-manager remove --all

Actual results:
===============

The GUI is not updated with the correct icon color to indicate that the subscription has been removed (or added)


Expected results:
=================

The icons should change to their respective color (green or red) when the product has been attached or removed even if the command to attach or remove is run from the subscription-manager CLI.  This indicates that the GUI is not receiving dbus signals.


Additional info:

Comment 1 Sean Toner 2015-08-11 13:56:57 UTC
I am finding that this is breaking additional tests, for example after subscribing all products, because the status of the products is not updated, if a user goes to System->Repositories it will show up as empty

Comment 3 Adrian Likins 2015-08-14 16:12:21 UTC
I think this is a dupe of https://bugzilla.redhat.com/show_bug.cgi?id=1240553
(in the sense that the fix is the same change, even if the behavior is slightly different).

in master:

commit 6857d9ce2f1251c5aaf2e47570680c1cdd7ae0a6
Author: Adrian Likins <alikins>
Date:   Fri Aug 7 11:33:40 2015 -0400

    1240553: Fix detection of cert dir changes
    
    The timeout that called the file monitor objects was
    not returning True, so it would run once, and then be
    removed from the event loop sources. Now it returns
    True forever.
    
    This fixes issues where changes to certificate directories
    (/etc/pki/entitlement/ for ex) were not being noticed by the
    gui. This included changes by running the cli command at the
    same time, or using the "Import cert" dialog to import an
    entitlement certificate.

*** This bug has been marked as a duplicate of bug 1240553 ***