Running Katello 2.2.1 on a 4 vCPU 16GB RAM VMWare machine. Checking
CPU/Load performance data on the machine during these steps - it is not
ever above 25% CPU and always below 1.0 load avg. Memory utilization is
under 5GB.
The behavior I'm experiencing seems to be similar to these:
https://bugzilla.redhat.com/show_bug.cgi?id=1191711
http://projects.theforeman.org/issues/10152
http://projects.theforeman.org/issues/9264
Content Hosts page worked well when there were 3 RHEL 7 hosts registered.
I added 46 VMWare hosts using VirtWho
I can scroll down through the first 20 hosts where the page grays for
several seconds and then displays 20 additional hosts (40 of 49).
Scrolling down to the end causes the page to gray indefinitely and never
display the last 9 hosts.
The production.log shows the first and second 20 hosts page "Rendered", but
the last 9 hang for several minutes until a 500 error is logged but never
displayed in the browser/page.
ERROR 2015-06-10 08:55:01 pulp_rest #17541] RestClient.get
"https://KATELLOHOST.myorg.org/pulp/api/v2/consumers/15930fd2-ff35-4242-af15-b25c4ab4d2e9/profiles/rpm//",
"Accept"=>"/; q=0.5, application/xml", "Accept-Encoding"=>"gzip,
deflate", "Authorization"=>"OAuth oauth_consumer_key="<trim>",
oauth_nonce="<trim> ", oauth_signature="<trim>",
oauth_signature_method="HMAC-SHA1", oauth_timestamp="<trim>",
oauth_version="1.0"", "accept"=>"application/json",
"content_type"=>"application/json", "pulp-user"=>"myuser-4e572dbb"
>
2015-06-10 08:55:01 [I] Rendered
/opt/rh/ruby193/root/usr/share/gems/gems/katello-2.2.1/app/views/katello/api/v2/systems/index.json.rabl
within katello/api/v2/layouts/collection (121242.7ms)
2015-06-10 08:55:01 [E] exception when talking to a remote client: Request
Timeout RestClient::RequestTimeout: Request Timeout
Body:
/opt/rh/ruby193/root/usr/share/gems/gems/rbovirt-0.0.35/lib/restclient_ext/request.rb:56:in
rescue in transmit' /opt/rh/ruby193/root/usr/share/gems/gems/rbovirt-0.0.35/lib/restclient_ext/request.rb:11:in
transmit'
/opt/rh/ruby193/root/usr/share/gems/gems/rest-client-1.6.7/lib/restclient/request.rb:64:in
execute' /opt/rh/ruby193/root/usr/share/gems/gems/rest-client-1.6.7/lib/restclient/request.rb:33:in
execute'
/opt/rh/ruby193/root/usr/share/gems/gems/rest-client-1.6.7/lib/restclient/resource.rb:51:in
get' /opt/rh/ruby193/root/usr/share/gems/gems/runcible-1.3.1/lib/runcible/base.rb:91:in
get_response'
/opt/rh/ruby193/root/usr/share/gems/gems/runcible-1.3.1/lib/runcible/base.rb:82:in
`call'
<snip>
2015-06-10 08:55:01 [I] Completed 400 Bad Request in 121300ms (Views: 0.4ms
> ActiveRecord: 21.2ms)
The Content Hosts page stays gray.
Searching for a specific host in Content Hosts displays "Loading"
indefinitely even after the error / 400 :
2015-06-10 08:59:19 [I] Processing by
Katello::Api::V2::SystemsController#index as JSON
2015-06-10 08:59:19 [I] Parameters: {"organization_id"=>"1", "page"=>"1",
"search"=>"PARITALHOSTNAME*", "sort_by"=>"name", "sort_order"=>"ASC",
"api_version"=>"v2"}
2015-06-10 08:59:21 [I] Connecting to database specified by database.yml
2015-06-10 08:59:30 [W] Creating scope :completer_scope. Overwriting
existing method Location.completer_scope.
2015-06-10 08:59:30 [W] Creating scope :completer_scope. Overwriting
existing method Organization.completer_scope.
2015-06-10 08:59:58 [I] Client connected.
2015-06-10 08:59:58 [I] Connected to server.
2015-06-10 09:00:08 [I] Connecting to database specified by database.yml
2015-06-10 09:00:09 [I] Connecting to database specified by database.yml
2015-06-10 09:00:18 [W] Creating scope :completer_scope. Overwriting
existing method Location.completer_scope.
2015-06-10 09:00:18 [W] Creating scope :completer_scope. Overwriting
existing method Location.completer_scope.
2015-06-10 09:00:18 [W] Creating scope :completer_scope. Overwriting
existing method Organization.completer_scope.
2015-06-10 09:00:18 [W] Creating scope :completer_scope. Overwriting
existing method Organization.completer_scope.
2015-06-10 09:00:24 [I] Client connected.
2015-06-10 09:00:24 [I] Connected to server.
2015-06-10 09:00:25 [I] Connected to server.
2015-06-10 09:00:26 [I] Client connected.
2015-06-10 09:00:28 [I] Client disconnected.
2015-06-10 09:00:30 [I] Client disconnected.
[ERROR 2015-06-10 09:01:19 pulp_rest #17541] RestClient.get
"https://KATELLOHOST.myorg.org/pulp/api/v2/consumers/15930fd2-ff35-4242-af15-b25c4ab4d2e9/profiles/rpm//",
"Accept"=>"/; q=0.5, application/xml", "Accept-Encoding"=>"gzip,
deflate", "Authorization"=>"OAuth oauth_consumer_key="no",
oauth_nonce="no", oauth_signature="no",
oauth_signature_method="HMAC-SHA1", oauth_timestamp="no",
oauth_version="1.0"", "accept"=>"application/json",
"content_type"=>"application/json", "pulp-user"=>"myusername-4e572dbb"
>
2015-06-10 09:01:19 [I] Rendered
/opt/rh/ruby193/root/usr/share/gems/gems/katello-2.2.1/app/views/katello/api/v2/systems/index.json.rabl
within katello/api/v2/layouts/collection (120190.2ms)
2015-06-10 09:01:19 [E] exception when talking to a remote client: Request
Timeout RestClient::RequestTimeout: Request Timeout
Body:
/opt/rh/ruby193/root/usr/share/gems/gems/rbovirt-0.0.35/lib/restclient_ext/request.rb:56:in
rescue in transmit' /opt/rh/ruby193/root/usr/share/gems/gems/rbovirt-0.0.35/lib/restclient_ext/request.rb:11:in
transmit'
/opt/rh/ruby193/root/usr/share/gems/gems/rest-client-1.6.7/lib/restclient/request.rb:64:in
`execute'
<snip>
2015-06-10 09:01:19 [I] Completed 400 Bad Request in 120243ms (Views: 0.3ms
> ActiveRecord: 0.0ms)
It looks like the error is with pulp, but I don't know where to start to
correct it.