Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1330515 - Traceback on the terminal when used CTRL+C to kill the subscription-manager-gui application
Traceback on the terminal when used CTRL+C to kill the subscription-manager-g...
Status: CLOSED ERRATA
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: subscription-manager (Show other bugs)
7.2
Unspecified Unspecified
high Severity low
: rc
: ---
Assigned To: Chris Snyder
John Sefler
: Regression, Triaged
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2016-04-26 07:56 EDT by Rehana
Modified: 2016-11-03 16:28 EDT (History)
7 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2016-11-03 16:28:35 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)


External Trackers
Tracker ID Priority Status Summary Last Updated
Github candlepin/subscription-manager/pull/1479 None None None 2016-09-06 10:38 EDT
Github RedHatQE/rhsm-qe/pull/605 None None None 2016-09-27 07:18 EDT
Red Hat Product Errata RHSA-2016:2592 normal SHIPPED_LIVE Moderate: subscription-manager security, bug fix, and enhancement update 2016-11-03 08:10:42 EDT

  None (edit)
Description Rehana 2016-04-26 07:56:37 EDT
Description of problem:


Version-Release number of selected component (if applicable):
subscription-manager: 1.17.5-1.git.0.9f499d8.el7
python-rhsm: 1.17.1-1.git.1.323232f.el7


How reproducible:
3/3

Steps to Reproduce:
1.Launch subscription-manager-gui from terminal
2.Once the GUI is running, Press CTRL+C on the terminal
3.

Actual results:
Observed a traceback on the terminal 
# subscription-manager-gui
^C

# Traceback (most recent call last):
  File "/usr/share/rhsm/subscription_manager/gui/managergui.py", line 275, in _on_cert_check_timer
    def _on_cert_check_timer(self):
KeyboardInterrupt

Expected results:
No Traceback

Additional info:
This appears to be a regression , as this is (CTRL+C to kill subscription-manager GUI application from terminal ) is working fine on rhel72 having the packages:
subscription-manager: 1.15.9-15.el7
python-rhsm: 1.15.4-5.el7
Comment 2 Chris Snyder 2016-06-15 14:23:14 EDT
I do not believe this is a regression as it appears for me on RHEL 7.2 using the versions listed in the original report.

The locations of the file where the traceback occurs has changed but aside from that the traceback I get from the older and the newer versions of subscription-manager are identical.


Note: This is still definitely a bug, but I'm suggesting that we remove the Regression keyword.

Rehana can you please retest this using the old version of subscription-manager on RHEL 7.2.

It took a few seconds after running the subscription-manager-gui command to trigger the traceback on CTRL+C (if I pressed CTRL+C quickly after launch I did not see the traceback on either version of subman).


Thanks!
Comment 3 Rehana 2016-06-16 06:51:48 EDT
(In reply to Chris Snyder from comment #2)
> I do not believe this is a regression as it appears for me on RHEL 7.2 using
> the versions listed in the original report.
> 
> The locations of the file where the traceback occurs has changed but aside
> from that the traceback I get from the older and the newer versions of
> subscription-manager are identical.
> 
> 
> Note: This is still definitely a bug, but I'm suggesting that we remove the
> Regression keyword.
> 
> Rehana can you please retest this using the old version of
> subscription-manager on RHEL 7.2.
> 
> It took a few seconds after running the subscription-manager-gui command to
> trigger the traceback on CTRL+C (if I pressed CTRL+C quickly after launch I
> did not see the traceback on either version of subman).
> 
> 
> Thanks!

Thanks Chris for the details, Retested on rhel72 machine and i can reproduce the failure in RHEL72 (few seconds after running the subscription-manager-gui) . I agree with your observations and the keyword "Regression" can be removed

thanks,
Rehana
Comment 4 John Sefler 2016-09-06 11:55:32 EDT
This was actually a regression between RHEL71 and RHEL72.

It worked here on RHEL71....

[root@jsefler-rhel7 ~]# rpm -q subscription-manager-gui
subscription-manager-gui-1.13.22-1.el7.x86_64
[root@jsefler-rhel7 ~]# subscription-manager-gui 
^C
User interrupted process.
[root@jsefler-rhel7 ~]# 

and started failing here on RHEL72...

[root@jsefler-rhel7 ~]# rpm -q subscription-manager-gui 
subscription-manager-gui-1.15.9-15.el7.x86_64
[root@jsefler-rhel7 ~]# subscription-manager-gui 

** (subscription-manager-gui:6975): WARNING **: Couldn't connect to accessibility bus: Failed to connect to socket /tmp/dbus-WxTh6RPGpA: Connection refused
^CTraceback (most recent call last):
  File "/usr/share/rhsm/subscription_manager/gui/managergui.py", line 267, in _on_cert_check_timer
    def _on_cert_check_timer(self):
KeyboardInterrupt
Comment 6 Rehana 2016-09-08 02:48:39 EDT
Retested on ,

subscription-manager-1.17.14-1.el7.x86_64
subscription-manager-gui-1.17.14-1.el7.x86_64
subscription-manager-migration-data-2.0.31-1.el7.noarch
subscription-manager-migration-1.17.14-1.el7.x86_64
subscription-manager-initial-setup-addon-1.17.14-1.el7.x86_64
python-rhsm-certificates-1.17.9-1.el7.x86_64
python-rhsm-1.17.9-1.el7.x86_64


No Trace back is seen on the terminal after using CTRL + C on the terminal. subscription-manager  GUI application was closed.  No errors seen in rhsm.log

[root@localhost ~]# subscription-manager-gui 
^C
[root@localhost ~]# 


marking as Verified!!
Comment 7 Jan Stavel 2016-09-27 07:18:35 EDT
I have written a test for this behaviour. Everything works. Thanks!
Comment 9 errata-xmlrpc 2016-11-03 16:28:35 EDT
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/RHSA-2016-2592.html

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