search for: find_capable_host

Displaying 4 results from an estimated 4 matches for "find_capable_host".

2010 Sep 01
1
[PATCH 2/2] Adding the ability to select a Host to start a VM [2/2]
.../src/task-omatic/taskomatic.rb +++ b/src/task-omatic/taskomatic.rb @@ -355,11 +355,10 @@ class TaskOmatic end end - if task.args + if task.args && !task.args.blank? db_host = db_vm.vm_resource_pool.get_hardware_pool.hosts.find(task.args) - else - db_host = find_capable_host(db_vm) end + db_host ||= find_capable_host(db_vm) node = @qmfc.object(:class => "node", 'hostname' => db_host.hostname) -- 1.7.2.2
2010 Aug 26
1
[PATCH] Adding the ability to select a Host to start a VM
...b/src/task-omatic/taskomatic.rb index 31c38e3..8e80115 100755 --- a/src/task-omatic/taskomatic.rb +++ b/src/task-omatic/taskomatic.rb @@ -354,7 +354,12 @@ class TaskOmatic raise "Virtual machine is currently paused, cannot start, must resume." end end - db_host = find_capable_host(db_vm) + + if task.args + db_host = db_vm.vm_resource_pool.get_hardware_pool.hosts.find(task.args) + else + db_host = find_capable_host(db_vm) + end node = @qmfc.object(:class => "node", 'hostname' => db_host.hostname) -- 1.7.2.1
2010 Sep 21
1
[PATCH] Check cpus capacity, not real cores.
Hi, is there a good reason why taskomatic check the number of real cores in the find_capable_host ? It prevents to use the full capacity of multithreading Signed-off-by: Arthur Clement <aclement at linagora.com> --- src/task-omatic/taskomatic.rb | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/src/task-omatic/taskomatic.rb b/src/task-omatic/taskomatic.rb index...
2009 Nov 04
4
[PATCH server] Update daemons to use new QMF.
...find_vm(task, false) - vm = @session.object(:class => "domain", 'uuid' => db_vm.uuid) + vm = @qmfc.object(:class => "domain", 'uuid' => db_vm.uuid) if vm case vm.state @@ -351,7 +356,7 @@ class TaskOmatic end db_host = find_capable_host(db_vm) - node = @session.object(:class => "node", 'hostname' => db_host.hostname) + node = @qmfc.object(:class => "node", 'hostname' => db_host.hostname) raise "Unable to find host #{db_host.hostname} to create VM on." unless...