(MAINT) Remove Ping Check on Running VMs

Prior to this commit, a running VM could fail a ping check and be
destroyed. This causes issues when network hiccups occur or the machine
is performing a reboot.

A VM that is in a ready state will now be destroyed when handed back or
it hits the lifetime TTL.
This commit is contained in:
Colin 2015-10-02 13:02:38 -07:00
parent c5d0850dd1
commit 7b9b178861
2 changed files with 3 additions and 9 deletions

View file

@ -149,12 +149,6 @@ module Vmpooler
if host
queue_from, queue_to = 'running', 'completed'
# Check that VM is powered on
if (host.runtime) &&
(host.runtime.powerState != 'poweredOn')
move_vm_queue(pool, vm, queue_from, queue_to, 'appears to be powered off or dead')
end
# Check that VM is within defined lifetime
checkouttime = $redis.hget('vmpooler__active__' + pool, vm)
if checkouttime