lib/beaker/hypervisor/vmpooler.rb in beaker-vmpooler-1.3.0 vs lib/beaker/hypervisor/vmpooler.rb in beaker-vmpooler-1.3.1
- old
+ new
@@ -167,10 +167,10 @@
@logger.debug "Failed vmpooler provision: #{e.class} : #{e.message}"
if waited <= @options[:timeout].to_i
@logger.debug("Retrying provision for vmpooler host after waiting #{wait} second(s)")
sleep wait
waited += wait
- last_wait, wait = wait, last_wait + wait
+ last_wait, wait = wait, [last_wait + wait, 15].min + rand(5)
retry
end
report_and_raise(@logger, e, 'Vmpooler.provision')
end