Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 548208

Summary: Channel->Packages->Add performance issue: "Select All" packages is slow (sometimes times out)
Product: Red Hat Satellite 5 Reporter: Xixi <xdmoon>
Component: ServerAssignee: Justin Sherrill <jsherril>
Status: CLOSED ERRATA QA Contact: Petr Sklenar <psklenar>
Severity: high Docs Contact:
Priority: urgent    
Version: 530CC: cperry, psklenar, tao, xdmoon
Target Milestone: ---Keywords: Regression
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-01-08 10:02:31 UTC Type: ---
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: 512844, 518256    

Description Xixi 2009-12-16 22:04:54 UTC
Description of problem:
After a recent upgrade from RHN Satellite 5.0.x to 5.3.0, customer encountered some performance related problems w/r/t adding packages to child channels (and deletion, but that's a separate BZ) - specifically, "Select All" takes forever to return (see steps below)

A process that would normally take about 10 minutes prior to the upgrade now takes on the order of 1.5 hours or more!

Version-Release number of selected component (if applicable):
Red Hat Network (RHN) Satellite 5.3.0

How reproducible:
Always.

Steps to Reproduce:
1. have a satellite with base channel A, then child channel B with ~6100 pkgs and child channel C with none.
2. select "Channels" from the top RHN bar
3. select "Manage Software Channels" on menu at left
4. select channel C
5. select "Packages" from list at top
6. select "Add Packages"
7. under the "Add Packages" title bar, select child channel B from the "Channels" pulldown and click "View Packages"
8. after the screen refreshes, click on "Select All" at bottom of page
click on "Add Packages" at bottom of page.   <<<===== THIS IS WHERE IT TAKES 1.5 HRS (RH 3 + RHEL 4/5) *****

Actual results:
"Select all" takes 1.5 hrs for customer, and in internal reproducer the page times out with Internal Server Error.

Expected results:
Action completes fast and no internal server error.

Additional info:
There is already a bugfix for this as part of Bug 512844 - in other words, the fix for this bug makes it possible to test Bug 512844.  But since they're separate bugs, splitting this one out and making sure it's covered in QA independently, as well as track customer issue.

Comment 2 Justin Sherrill 2009-12-16 22:53:50 UTC
This was fixed in commit 914db78b3a4f2a805e16914f62660bb7438ec11b.

Already onQa

Comment 8 errata-xmlrpc 2010-01-08 10:02:31 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHBA-2010-0021.html