Bug 1059809

Summary: subscription manager gui temporarily unresponsive while attaching or removing subscriptions
Product: Red Hat Enterprise Linux 7 Reporter: Carter Kozak <ckozak>
Component: subscription-managerAssignee: John Sefler <jsefler>
Status: CLOSED CURRENTRELEASE QA Contact: John Sefler <jsefler>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 7.0CC: bkearney
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-06-13 12:37:53 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: 863175    
Attachments:
Description Flags
New "Attaching subscriptions" progress bar that preceeds "Searching for subscriptions." progress bar.
none
A new "Removing subscription." progress bar provides feedback avoiding ugly freezes. none

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.