Description of problem:
Timeout when trying to list the VMs in a RHEV compute resource.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Add a RHEV compute resource with a large number of VMs
2. Try to view the list of VMs in the RHEV compute resource
- Web ui displays "There was an error listing VMs: Request Timeout".
- /var/log/foreman/production.log shows the request is timing out after 60 seconds:
2015-12-29 09:29:00 [D] RestClient.get "https://rhevm.example.com/api/datacenters/f4f8fd40-452c-4042-8152-4d5dc84a764c", "Accept"=>"application/xml", "Accept-Encoding"=>"gzip, deflate", "Authorization"=>"Basic xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx", "Content-Type"=>"application/xml"
2015-12-29 09:29:00 [D] # => 200 OK | application/xml 379 bytes
2015-12-29 09:29:00 [D] RestClient.get "https://rhevm.example.com/api/vms?search=datacenter%3DRHEV-DC", "Accept"=>"application/xml; detail=disks; detail=nics; detail=hosts", "Accept-Encoding"=>"gzip, deflate", "Authorization"=>"Basic xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx", "Content-Type"=>"application/xml"
2015-12-29 09:30:01 [W] Error has occurred while listing VMs on RHEV-DC (RHEV): Request Timeout
The VMs are listed.
rbovirt seems to be inheriting the default timeout from Net::HTTP .
In file /usr/share/ruby/net/http.rb:
630 # Creates a new Net::HTTP object for the specified server address,
631 # without opening the TCP connection or initializing the HTTP session.
633 def initialize(address, port = nil)
645 @read_timeout = 60
Created redmine issue http://projects.theforeman.org/issues/13091 from this bug
Related pull request in rbovirt: https://github.com/abenari/rbovirt/pull/102
Eric, this patch will need cherry-pick in both Foreman core and RbOvirt gem. Do you want me to clone the BZ for RbOvirt, or a message here is enough?
QA NOTE: Script to generate VMs: https://github.com/lzap/bin-public/blob/master/create-ovirt-vms
Separate issue for the rbovirt update would be preferred for our tooling since it is designed to pickup atomic changes (and ideally changesets) which sometimes occur when Packaging issues are created in Redmine but are more rare.
Upstream bug assigned to firstname.lastname@example.org
Moving to POST since upstream bug http://projects.theforeman.org/issues/13091 has been closed
Applied in changeset commit:fbd765f1a9430e51b64006b88c0773da0419c4d6.
a) Created a RHEV compute Resource by adding the above link.
b) Had selected a data center called "dc_scale_fake" which had 9.9k vm's
c) Moved to the VM's tab and listed the vm's, clicking the next button started showing up the new VM's.
VERIFIED with sat62-snap8.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.