Displaying 4 results from an estimated 4 matches for "set_stopped".
Did you mean:
set_stopper
2009 Jun 25
2
[PATCH] Fix dbomatic state changes.
This patch fixes state changes in dbomatic so that there is no
intermediate 'stopped' state after being unreachable or on startup
of dbomatic etc. Also fixes a number of smaller bugs around host
associations, state changes, etc.
Signed-off-by: Ian Main <imain at redhat.com>
---
src/db-omatic/db_omatic.rb | 85 +++++++++++++++++++++++++++++++-------------
1 files changed, 60
2009 Jun 29
0
[PATCH server] Add svc_vm_actions method to VmService.
...left
+ # VMs in various states that are no longer applicable to this moment.
db_vm = Vm.find(:all)
db_vm.each do |vm|
- @logger.info "Marking vm #{vm.description} as stopped."
- vm.state = Vm::STATE_STOPPED
- vm.save!
+ set_stopped = false
+ # Basically here we are looking for VMs which are not up in some form or another and setting
+ # them to stopped. VMs that exist as QMF objects will get set appropriately when the objects
+ # appear on the bus.
+ begin
+ 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.
...in
- qmf_vm = @qmfc.object(Qmf::Query.new(:class => "domain", 'uuid' => db_vm.uuid))
+ qmf_vm = @qmfc.object(Qmf::Query.new(:class => "domain"), 'uuid' => db_vm.uuid)
if qmf_vm == nil
set_stopped = true
end
diff --git a/src/libvirt-list.rb b/src/libvirt-list.rb
index c81926a..f4df672 100755
--- a/src/libvirt-list.rb
+++ b/src/libvirt-list.rb
@@ -33,7 +33,7 @@ nodes.each do |node|
end
# Find any domains that on the current node.
- domains = qmfc.objects(Qmf::Q...
2009 Nov 04
4
[PATCH server] Update daemons to use new QMF.
...begin
- qmf_vm = @session.object(:class => 'domain', 'uuid' => db_vm.uuid)
+ qmf_vm = @qmfc.object(Qmf::Query.new(:class => "domain", 'uuid' => db_vm.uuid))
if qmf_vm == nil
set_stopped = true
end
@@ -498,15 +499,6 @@ class DbOmatic < Qpid::Qmf::Console
end
end
- def broker_connected(broker)
- @logger.info "Connected to broker."
- end
-
- def broker_disconnected(broker)
- @logger.error "Broker disconnected.&...