Bug 1177609
Summary: | Content View index page takes a long time to list | ||||||
---|---|---|---|---|---|---|---|
Product: | Red Hat Satellite | Reporter: | Peter Vreman <peter.vreman> | ||||
Component: | API | Assignee: | Walden Raines <walden> | ||||
Status: | CLOSED ERRATA | QA Contact: | jaudet | ||||
Severity: | high | Docs Contact: | |||||
Priority: | high | ||||||
Version: | 6.0.8 | CC: | bbuckingham, cwelton, hklein, jmontleo, walden | ||||
Target Milestone: | Unspecified | Keywords: | Triaged | ||||
Target Release: | Unused | ||||||
Hardware: | Unspecified | ||||||
OS: | Unspecified | ||||||
URL: | http://projects.theforeman.org/issues/9564 | ||||||
Whiteboard: | |||||||
Fixed In Version: | Doc Type: | Bug Fix | |||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | |||||||
: | 1197722 (view as bug list) | Environment: | |||||
Last Closed: | 2015-08-12 05:21:07 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: | 1122832, 1197722 | ||||||
Attachments: |
|
Description
Peter Vreman
2014-12-29 12:18:54 UTC
Since this issue was entered in Red Hat Bugzilla, the release flag has been set to ? to ensure that it is properly evaluated for this release. This also affects the Content View dropdown boxes at the following locations: - Activation Key - Associate with Content View - Composite Content View - Add Content View Updating version to 6.0.8, as it is still not resolved, even with BZ1161636 (slow Content View Versions listing) fixed Created redmine issue http://projects.theforeman.org/issues/9564 from this bug Moving to POST since upstream bug http://projects.theforeman.org/issues/9564 has been closed ------------- Walden Raines Applied in changeset commit:katello|726b9c4f1b34635311074ac9a618d6231633e3b7. Confirmed that the patch works: # time curl -K /opt/hoici/etc/sat6/curl-hoici.conf -H 'Content-Type: application/json' -d '{"per_page":9999}' -XGET https://localhost/katello/api/v2/organizations/4/content_views > p1.json real 0m2.512s user 0m0.184s sys 0m0.051s # ls -l p1.json -rw-r--r-- 1 root root 90979 Mar 2 11:33 p1.json # cat p1.json | jq .results[].id | wc -l 34 # cat p1.json | jq .results[].puppet_modules[].id | wc -l 275 # cat p1.json | jq .results[].repositories[] | grep sync_plan | wc -l 0 The patch is missing the content_counts for the repositories for the UI to display --- /opt/rh/ruby193/root/usr/share/gems/gems/katello-1.5.0/app/views/katello/api/v2/content_views/_content_view.json.rabl +++ /opt/rh/ruby193/root/usr/share/gems/gems/katello-1.5.0/app/views/katello/api/v2/content_views/_content_view.json.rabl @@ -23,7 +23,12 @@ end child :repositories => :repositories do - extends 'katello/api/v2/repositories/show' + attributes :id, :name, :label, :content_type + node :content_counts do |repo| + if repo.respond_to?(:pulp_repo_facts) + repo.pulp_repo_facts['content_unit_counts'] + end + end end child :puppet_modules => :puppet_modules do (In reply to Peter Vreman from comment #9) > The patch is missing the content_counts for the repositories for the UI to > display > > --- > /opt/rh/ruby193/root/usr/share/gems/gems/katello-1.5.0/app/views/katello/api/ > v2/content_views/_content_view.json.rabl > +++ > /opt/rh/ruby193/root/usr/share/gems/gems/katello-1.5.0/app/views/katello/api/ > v2/content_views/_content_view.json.rabl > @@ -23,7 +23,12 @@ > end > > child :repositories => :repositories do > - extends 'katello/api/v2/repositories/show' > + attributes :id, :name, :label, :content_type > + node :content_counts do |repo| > + if repo.respond_to?(:pulp_repo_facts) > + repo.pulp_repo_facts['content_unit_counts'] > + end > + end > end > > child :puppet_modules => :puppet_modules do I have created a new bug for this issue: bug #1197836 Tested against Satellite-6.1.0-RHEL-6-20150311.1. Server had four cores and six gigs of ram. Followed test procedure, except only uploaded seventeen puppet modules instead of fifty. Test result: $ time curl -k -H 'Content-Type: application/json' --user …:… -d '{"per_page":9999}' -XGET https://localhost/katello/api/v2/organizations/331/content_views > /dev/null % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 74658 0 74658 0 17 91078 20 --:--:-- --:--:-- --:--:-- 106k real 0m0.830s user 0m0.049s sys 0m0.067s Created attachment 1001508 [details]
Script for populating server with content.
This bug is slated to be released with Satellite 6.1. 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://access.redhat.com/errata/RHSA-2015:1592 |