mirror of
https://github.com/puppetlabs/vmpooler.git
synced 2026-01-26 18:08:42 -05:00
Update find_least_used_compatible_host to specify pool
This commit updates find_least_used_compatible_host method to specify the pool name when evaluating a VM for migration. Without this change VM migration fails with a wrong number of arguments error. Pool_manager test references are updated to reflect the change.
This commit is contained in:
parent
e5d2844fcc
commit
c750657c6f
2 changed files with 3 additions and 3 deletions
|
|
@ -490,7 +490,7 @@ module Vmpooler
|
|||
return
|
||||
else
|
||||
$redis.sadd('vmpooler__migration', vm_name)
|
||||
host_name = provider.find_least_used_compatible_host(vm_name)
|
||||
host_name = provider.find_least_used_compatible_host(pool_name, vm_name)
|
||||
if host_name == parent_host_name
|
||||
$logger.log('s', "[ ] [#{pool_name}] No migration required for '#{vm_name}' running on #{parent_host_name}")
|
||||
else
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue