Project

General

Profile

Actions

Bug #27175

open

"Content Views" page results in 2 requests to "/content_views"

Added by Ian Ballou about 5 years ago. Updated over 4 years ago.

Status:
New
Priority:
High
Assignee:
Category:
Web UI
Target version:
Difficulty:
Triaged:
Yes
Fixed in Releases:
Found in Releases:

Description

Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1702461

Description of problem:

In Katello 3.10, when going from the "All Hosts" to the "Content Views" page it is slow, taking close to 9 seconds to load 2 entries. There are also two calls made to the same endpoint, which you can see from http and production.log

66.187.232.65 - - [23/Apr/2019:15:52:02 -0400] "GET /content_views HTTP/1.1" 200 4299 "https://<url>/hosts" "Mozilla/5.0 (X11; Fedora; Linux x86_64; rv:65.0) Gecko/20100101 Firefox/65.0"
66.187.232.65 - - [23/Apr/2019:15:52:03 -0400] "GET /content_views HTTP/1.1" 200 4302 "https://<url>/hosts" "Mozilla/5.0 (X11; Fedora; Linux x86_64; rv:65.0) Gecko/20100101 Firefox/65.0"

2019-04-23T15:52:02 [I|app|] Started GET "/content_views" for <addr> at 2019-04-23 15:52:02 -0400
2019-04-23T15:52:02 [I|app|d3fd7803] Processing by Bastion::BastionController#index as HTML
2019-04-23T15:52:02 [I|app|d3fd7803] Parameters: {"bastion_page"=>"content_views"}
2019-04-23T15:52:02 [I|app|d3fd7803] Current user set to admin (admin)
2019-04-23T15:52:02 [I|app|d3fd7803] Rendering /opt/theforeman/tfm/root/usr/share/gems/gems/bastion-6.1.16/app/views/bastion/layouts/application.html.erb
2019-04-23T15:52:02 [I|app|d3fd7803] Rendering /opt/theforeman/tfm/root/usr/share/gems/gems/bastion-6.1.16/app/views/bastion/layouts/assets.html.erb
2019-04-23T15:52:03 [I|app|d3fd7803] Rendering layouts/base.html.erb
2019-04-23T15:52:03 [I|app|d3fd7803] Rendered layouts/base.html.erb (29.2ms)
2019-04-23T15:52:03 [I|app|d3fd7803] Rendered /opt/theforeman/tfm/root/usr/share/gems/gems/bastion-6.1.16/app/views/bastion/layouts/assets.html.erb (67.3ms)
2019-04-23T15:52:03 [I|app|d3fd7803] Rendered /opt/theforeman/tfm/root/usr/share/gems/gems/bastion-6.1.16/app/views/bastion/layouts/application.html.erb (68.3ms)
2019-04-23T15:52:03 [I|app|d3fd7803] Completed 200 OK in 80ms (Views: 64.7ms | ActiveRecord: 6.4ms)
2019-04-23T15:52:03 [I|app|] Started GET "/content_views" for <addr> at 2019-04-23 15:52:03 -0400
2019-04-23T15:52:03 [I|app|b675e33b] Processing by Bastion::BastionController#index as HTML
2019-04-23T15:52:03 [I|app|b675e33b] Parameters: {"bastion_page"=>"content_views"}
2019-04-23T15:52:03 [I|app|b675e33b] Current user set to admin (admin)
2019-04-23T15:52:03 [I|app|b675e33b] Rendering /opt/theforeman/tfm/root/usr/share/gems/gems/bastion-6.1.16/app/views/bastion/layouts/application.html.erb
2019-04-23T15:52:03 [I|app|b675e33b] Rendering /opt/theforeman/tfm/root/usr/share/gems/gems/bastion-6.1.16/app/views/bastion/layouts/assets.html.erb
2019-04-23T15:52:03 [I|app|b675e33b] Rendering layouts/base.html.erb
2019-04-23T15:52:03 [I|app|b675e33b] Rendered layouts/base.html.erb (25.8ms)
2019-04-23T15:52:03 [I|app|b675e33b] Rendered /opt/theforeman/tfm/root/usr/share/gems/gems/bastion-6.1.16/app/views/bastion/layouts/assets.html.erb (58.6ms)
2019-04-23T15:52:03 [I|app|b675e33b] Rendered /opt/theforeman/tfm/root/usr/share/gems/gems/bastion-6.1.16/app/views/bastion/layouts/application.html.erb (59.3ms)
2019-04-23T15:52:03 [I|app|b675e33b] Completed 200 OK in 71ms (Views: 56.7ms | ActiveRecord: 5.3ms)

NOTE:
This doesn't happen when refreshing the Content View page, it seems you must be on the "All Hosts" page beforehand.

Actions #1

Updated by Ian Ballou about 5 years ago

  • Subject changed from "Content Views" page results in 2 requests to "/content_views" to "Content Views" page results in 2 requests to "/content_views"
  • Assignee set to Ian Ballou
  • Found in Releases Katello 3.10.0 added
Actions #2

Updated by Ian Ballou about 5 years ago

This bug appears to happen not only from the "All Hosts" page, but also during other scenarios in the UI as well, such as:
- Between "All Hosts" and "Dashboard"
- Between "Content Views" and "All Hosts"
- From "Subscriptions" to "Content Views"
- Between "All Hosts" and "About"

There are more scenarios that cause the double GET bug, but not enough to be a solid pattern yet.

This bug also occurs in vanilla Foreman 1.23.0-0.11.develop.20190627122344git1095927.el7.

Actions #4

Updated by Ian Ballou almost 5 years ago

  • Category changed from Content Views to Web UI
Actions #5

Updated by Chris Roberts almost 5 years ago

  • Target version set to Katello Backlog
  • Triaged changed from No to Yes
Actions

Also available in: Atom PDF