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 1059809 - subscription manager gui temporarily unresponsive while attaching or removing subscriptions
Summary: subscription manager gui temporarily unresponsive while attaching or removing...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: subscription-manager
Version: 7.0
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: John Sefler
QA Contact: John Sefler
URL:
Whiteboard:
Depends On:
Blocks: rhsm-rhel70
TreeView+ depends on / blocked
 
Reported: 2014-01-30 17:30 UTC by Carter Kozak
Modified: 2014-09-15 00:09 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-06-13 12:37:53 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
New "Attaching subscriptions" progress bar that preceeds "Searching for subscriptions." progress bar. (55.40 KB, image/png)
2014-02-03 22:56 UTC, John Sefler
no flags Details
A new "Removing subscription." progress bar provides feedback avoiding ugly freezes. (45.46 KB, image/png)
2014-02-03 23:03 UTC, John Sefler
no flags Details

Description Carter Kozak 2014-01-30 17:30:18 UTC
Description of problem:

When I attach or remove a subscription in subscription-manager-gui, the gui hangs while doing network activity.
The window can hang for as long as 15 seconds in some cases, and my window manager pops up a window asking if I would like to kill the process.

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

Any recent version, I'm using:

[root@ckozak-desktop ckozak]# subscription-manager version
server type: Red Hat Subscription Management
subscription management server: 0.9.2-1
subscription-manager: 1.10.10-1.git.27.fbec05b.fc19
python-rhsm: 1.10.9-1.git.1.4663b02.fc19


How reproducible:

Register to the production server
hostname = subscription.rhn.redhat.com

Attach a subscription.  When attach is clicked, the window will freeze and not redraw for a few seconds.  Eventually a progress bar will pop up to refresh available subscriptions.

Also, removing subscriptions will cause a gui lockup.  After the gui redraws, the list of remaining attached entitlements goes blank for a moment before it is repopulated.

Most noticeable against production, or any slow subscription server.

Comment 1 Carter Kozak 2014-02-03 18:35:01 UTC
commit 5093763d7b3170052e8df0e825e72731c185bc2a
Author: ckozak <ckozak>
Date:   Tue Jan 28 11:52:57 2014 -0500

    1059809: Cache pool types to avoid unnecessary api calls

commit 5b173fa4ab27335197f0085ce7e3018fc4909d90
Author: ckozak <ckozak>
Date:   Fri Jan 24 10:46:35 2014 -0500

    1059809 Improve attach and remove performance add progress bar
    
    Fix places where we could throw exceptions from the progress bar
    
    If execution ended right away, it would take place before the
    progress bar started, so the bar would continue forever. Now
    we start the bar before spinning off threads.
    
    If the bar was manually closed, pulse would still try to run
    and cause a traceback.  Checking if the bar is still there
    before attempting to pulse.  If it is not, the loop will
    end.
    
    Fix problems that arise by closing progress bar windows
    
    Also use the same progress window for attaching subscriptions
    and updating subscriptions.  The progress pulse is more
    continuous this way

Comment 3 John Sefler 2014-02-03 22:56:51 UTC
Created attachment 858874 [details]
New "Attaching subscriptions" progress bar that preceeds "Searching for subscriptions."  progress bar.

Verifying Version...
[root@jsefler-7 ~]# subscription-manager version
server type: Red Hat Subscription Management
subscription management server: Unknown
subscription-manager: 1.10.12-1.el7
python-rhsm: 1.10.12-1.el7

As indicated in comment 0, the window freeze behavior was most noticeible when attaching subscriptions from the production server subscription.rhn.redhat.com

An additional progressbar dialog is now displayed during the former freeze time giving the user a more pleasant user experience with positive feedback that the program is "Attaching subscription.  Please wait.".  Once the initial few seconds have succeded, then the dialog changes state into a "Searching for subscriptions. Please wait." message.  See the attached screenshot showing 1 then 2.

Comment 4 John Sefler 2014-02-03 23:03:50 UTC
Created attachment 858875 [details]
A new "Removing subscription." progress bar provides feedback avoiding ugly freezes.

Also new when removing subscriptions is a new "Removing subscription." progress bar that provides a more pleasant user experience during a time consuming network delay.

The was also most noticeable against the production subscription.rhn.redhat.com server.

Comment 5 Ludek Smid 2014-06-13 12:37:53 UTC
This request was resolved in Red Hat Enterprise Linux 7.0.

Contact your manager or support representative in case you have further questions about the request.


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