mirror of
https://github.com/puppetlabs/vmpooler.git
synced 2026-01-26 01:58:41 -05:00
(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:
parent
c5d0850dd1
commit
7b9b178861
2 changed files with 3 additions and 9 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue