search for: qmf_vm

Displaying 5 results from an estimated 5 matches for "qmf_vm".

2009 Nov 13
1
[PATCH server] Replace the occurence of the type @qmfc.object(Qmf::Query.new(:class => "xxx", 'key' => search_key)) for @qmfc.object(Qmf::Query.new(:class => "xxx"), 'key' => search_key) else the search on the key is not functionnal.
...rb index 686ad71..da11bfa 100755 --- a/src/db-omatic/db_omatic.rb +++ b/src/db-omatic/db_omatic.rb @@ -198,7 +198,7 @@ class DbOmatic < Qmf::ConsoleHandler if state == Vm::STATE_STOPPED @logger.info "VM has moved to stopped, clearing VM attributes." - qmf_vm = @qmfc.object(Qmf::Query.new(:class => "domain", 'uuid' => vm.uuid)) + qmf_vm = @qmfc.object(Qmf::Query.new(:class => "domain"), 'uuid' => vm.uuid) if qmf_vm @logger.info "Deleting VM #{vm.description}.&q...
2009 Aug 07
1
[PATCH server] Fixed db-omatic to update the host for a running vm when the object_props callback is fired.
...e set_vm_stopped(vm) end end + # If we are running, update the node that the domain is running on + elsif state == Vm::STATE_RUNNING + @logger.info "VM is running, determine the node it is running on" + qmf_vm = @session.object(:class => "domain", 'uuid' => vm.uuid) + if qmf_vm + qmf_host = @session.object(:class => "node", :object_id => qmf_vm.node) + db_host = Host.find(:first, :conditions => ['hostname = ?', qm...
2009 Nov 04
4
[PATCH server] Update daemons to use new QMF.
...s('qpidd') - Thread.new do while true do sleep(3600) @@ -195,7 +198,7 @@ class DbOmatic < Qpid::Qmf::Console if state == Vm::STATE_STOPPED @logger.info "VM has moved to stopped, clearing VM attributes." - qmf_vm = @session.object(:class => "domain", 'uuid' => vm.uuid) + qmf_vm = @qmfc.object(Qmf::Query.new(:class => "domain", 'uuid' => vm.uuid)) if qmf_vm @logger.info "Deleting VM #{vm.description}."...
2009 Jun 25
2
[PATCH] Fix dbomatic state changes.
...ate = Vm::STATE_STOPPED + end + def update_domain_state(domain, state_override = nil) vm = Vm.find(:first, :conditions => [ "uuid = ?", domain['uuid'] ]) if vm == nil @@ -190,12 +199,7 @@ class DbOmatic < Qpid::Qmf::Console result = qmf_vm.undefine if result.status == 0 @logger.info "Delete of VM #{vm.description} successful, syncing DB." - vm.host_id = nil - vm.memory_used = nil - vm.num_vcpus_used = nil - vm.s...
2009 Jun 29
0
[PATCH server] Add svc_vm_actions method to VmService.
...ate = Vm::STATE_STOPPED + end + def update_domain_state(domain, state_override = nil) vm = Vm.find(:first, :conditions => [ "uuid = ?", domain['uuid'] ]) if vm == nil @@ -190,12 +199,7 @@ class DbOmatic < Qpid::Qmf::Console result = qmf_vm.undefine if result.status == 0 @logger.info "Delete of VM #{vm.description} successful, syncing DB." - vm.host_id = nil - vm.memory_used = nil - vm.num_vcpus_used = nil - vm.s...