Displaying 17 results from an estimated 17 matches for "dbomat".
Did you mean:
domat
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 ++++++++++...
2009 Jul 21
1
[PATCH server] Fixed db-omatic so it doesn't segfault because of newer qmf api.
---
src/db-omatic/db_omatic.rb | 12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/src/db-omatic/db_omatic.rb b/src/db-omatic/db_omatic.rb
index 155ff5e..b5b7b81 100755
--- a/src/db-omatic/db_omatic.rb
+++ b/src/db-omatic/db_omatic.rb
@@ -270,10 +270,10 @@ class DbOmatic < Qpid::Qmf::Console
end
def object_props(broker, obj)
- target = obj.klass_key[0]
+ target = obj.schema.klass_key.package
return if target != "com.redhat.libvirt"
- type = obj.klass_key[1]
+ type = obj.schema.klass_key.klass_name...
2009 Jun 09
0
Announcing oVirt 0.99
...viewer to use it
- start of new ovirt qmf api, updated to latest qmf spec, refresh pools whenever used, etc
- added ovirt xml api spec
- installer updates, ipa install fails if mod_ssl present, dns clarification
- taskomatic changes, much more logging added, reconnect messages, bugfixes
- dbomatic changes, log connect / disconnect events
- host-browser permits nic-less nodes
- graph updates, new default view, increased dimensions, cleaned up/added labels
- many ui improvements, flexigrid functionality/appearance, details pane, icons and css, etc
- many test improvements and fixes...
2009 Aug 10
1
[PATCH server] Fixed db-omatic so it doesn't die due to an unhandled ActiveRecord::StaleObjectError exception.
...rc/db-omatic/db_omatic.rb | 23 ++++++++++++++++++++---
1 files changed, 20 insertions(+), 3 deletions(-)
diff --git a/src/db-omatic/db_omatic.rb b/src/db-omatic/db_omatic.rb
index d2540e1..60ea9f7 100755
--- a/src/db-omatic/db_omatic.rb
+++ b/src/db-omatic/db_omatic.rb
@@ -160,7 +160,9 @@ class DbOmatic < Qpid::Qmf::Console
end
begin
- # find open vm host history for this vm,
+ # find open vm host history for this vm
+ # NOTE: db-omatic is currently the only user for VmHostHistory, so
+ # using optimistic locking is fine. Someday this mi...
2009 Aug 10
0
[PATCH server] Fixed db-omatic so it doesn't die due to unhandled exceptions related to saving db objects in update_host_state and update_domain_state.
...src/db-omatic/db_omatic.rb | 22 +++++++++++++++++++---
1 files changed, 19 insertions(+), 3 deletions(-)
diff --git a/src/db-omatic/db_omatic.rb b/src/db-omatic/db_omatic.rb
index d2540e1..819f67c 100755
--- a/src/db-omatic/db_omatic.rb
+++ b/src/db-omatic/db_omatic.rb
@@ -160,7 +160,9 @@ class DbOmatic < Qpid::Qmf::Console
end
begin
- # find open vm host history for this vm,
+ # find open vm host history for this vm
+ # NOTE: db-omatic is currently the only user for VmHostHistory, so
+ # using optimistic locking is fine. Someday this mi...
2009 Jun 29
0
[PATCH server] Add svc_vm_actions method to VmService.
...urn "Request to #{vm_action} submitted."
end
# Cancels queued tasks for for Vm with +id+
diff --git a/src/db-omatic/db_omatic.rb b/src/db-omatic/db_omatic.rb
index b3d5e73..155ff5e 100755
--- a/src/db-omatic/db_omatic.rb
+++ b/src/db-omatic/db_omatic.rb
@@ -113,6 +113,15 @@ class DbOmatic < Qpid::Qmf::Console
end
end
+ def set_vm_stopped(db_vm)
+ db_vm.host_id = nil
+ db_vm.memory_used = nil
+ db_vm.num_vcpus_used = nil
+ db_vm.needs_restart = nil
+ db_vm.vnc_port = nil
+ db_vm.state = Vm::STATE_STOPPED
+ end
+...
2009 Nov 04
4
[PATCH server] Update daemons to use new QMF.
This patch updates dbomatic, taskomatic and host-register to use the
new C++ wrapped ruby QMF bindings. It also fixes a couple of bugs
along the way including the 0 cpu bug for host-register. This is a
compilation of work done by myself and Arjun Roy.
Signed-off-by: Ian Main <imain at redhat.com>
---
src/db-omatic...
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.
...| 6 +++---
src/matahari-list.rb | 4 ++--
3 files changed, 11 insertions(+), 9 deletions(-)
diff --git a/src/db-omatic/db_omatic.rb b/src/db-omatic/db_omatic.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.ob...
2009 May 29
1
[PATCH server] Don't set VM state to shut down in task.
This patch changes taskomatic so it only sets the VM to shutdown if
the undefine succeeds. Otherwise it's possible a shutdown event could
not succeed, or take a while as it often does, giving confusing
messages to the user. Basically we're just letting dbomatic handle
it now.
Signed-off-by: Ian Main <imain at redhat.com>
---
src/task-omatic/taskomatic.rb | 1 -
1 files changed, 0 insertions(+), 1 deletions(-)
diff --git a/src/task-omatic/taskomatic.rb b/src/task-omatic/taskomatic.rb
index 11d13cb..5393c29 100755
--- a/src/task-omatic/taskoma...
2009 Aug 07
1
[PATCH server] Fixed db-omatic to update the host for a running vm when the object_props callback is fired.
...db.
---
src/db-omatic/db_omatic.rb | 11 +++++++++++
1 files changed, 11 insertions(+), 0 deletions(-)
diff --git a/src/db-omatic/db_omatic.rb b/src/db-omatic/db_omatic.rb
index b5b7b81..d2540e1 100755
--- a/src/db-omatic/db_omatic.rb
+++ b/src/db-omatic/db_omatic.rb
@@ -202,7 +202,18 @@ class DbOmatic < Qpid::Qmf::Console
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 runni...
2010 Jun 08
1
[PATCH] Fix optimistic locking during vm migration
...nagora.com>
---
src/db-omatic/db_omatic.rb | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/src/db-omatic/db_omatic.rb b/src/db-omatic/db_omatic.rb
index da11bfa..79f29d2 100755
--- a/src/db-omatic/db_omatic.rb
+++ b/src/db-omatic/db_omatic.rb
@@ -195,6 +195,9 @@ class DbOmatic < Qmf::ConsoleHandler
end
@logger.info "Updating VM #{domain['name']} to state #{state}"
+ # Optimistic locking often fails for this operation
+ # See http://api.rubyonrails.org/classes/ActiveRecord/Locking/Pessimistic.html#M001320
+ v...
2009 Jul 07
1
[PATCH] Set up ovirt-agent so it starts as a daemon
This sets up ovirt-agent to start as a daemon along with dbomatic,
taskomatic etc. While this is not ready for prime time I think it
should be ok as you still require a valid, authenticated, connection
to qpidd to access it.
Signed-off-by: Ian Main <imain at redhat.com>
---
installer/modules/ovirt/manifests/ovirt.pp | 6 +++
ovirt-server.spec.in...
2009 May 19
2
[PATCH server] added ovirt vnc proxy server, to proxy vnc request to managed vms
...l.html.
+
+$: << File.join(File.dirname(__FILE__), "../dutils")
+
+require 'dutils'
+require 'daemons'
+include Daemonize
+
+###########
+
+DEFAULT_VNC_PROXY_PORT = 5900
+VM_NAME_MAX_LEN = 250
+VNC_DATA_MAX_LEN = 800000
+
+###########
+
+# clone of the taskomatic / dbomatic logger;
+# TODO move all of these seperate implementations into a single dutils module
+class Logger
+ def format_message(severity, timestamp, progname, msg)
+ "#{severity} #{timestamp} (#{$$}) #{msg}\n"
+ end
+end
+
+$logfile = '/var/log/ovirt-server/vnc-proxy.log'
+
+####...
2009 Jun 09
1
Problems after installing development git
Hi all,
Recently i built development version from the repo. After installing
rpms and basic installation procedures. I ended
up with "500 internal server error" on my webpage for "
http://management.ovirt.priv/ovirt" . I have some relevant
logs from db-omatic.log and taskomatic.log which seem to indicate some
problem the "AMQP" connection, but i am
2009 Dec 02
0
Qmf::Query Hang in db-omatic
...nfo "#{host_info['hostname']} has moved to available, sleeping for updates to vms."
sleep(20)
# At this point we want to set all domains that are
# unreachable to stopped. We're using a thread here to
# sleep for 10 seconds outside of the main dbomatic loop.
# If after 10 seconds with this host up there are still
# domains set to 'unreachable', then we're going to guess
# the node rebooted and so the domains should be set to
# stopped.
@logger.info "Checking for dead VMs on newly availabl...
2009 Jul 31
1
problem with kerberos (I think)
...dhat.com/show_bug.cgi?id=514536)
I then looked at the logs and I found errors so I launched db-omatic and taskomatic in debug mode to see what the problem is:
Lauching db-omatic.rb:
[root at management ~]# /usr/share/ovirt-server/db-omatic/db_omatic.rb -n
INFO Fri Jul 31 10:04:31 +0200 2009 (7242) dbomatic started.
INFO Fri Jul 31 10:04:31 +0200 2009 (7242) Connecting to amqp://management.open.net:5672
/usr/share/ovirt-server/db-omatic/db_omatic.rb:252:in `object_props': undefined method `[]' for #<Qpid::Qmf::ClassKey:0x7f2a48ae8e80> (NoMethodError)
from /usr/lib/ruby/site_rub...
2009 Jul 13
0
[PATCH server] remove vm forward vnc and vm host history
...tic.rb
index 155ff5e..b469695 100755
--- a/src/db-omatic/db_omatic.rb
+++ b/src/db-omatic/db_omatic.rb
@@ -10,7 +10,6 @@ require 'dutils'
require 'daemons'
require 'optparse'
require 'logger'
-require 'vnc'
include Daemonize
@@ -159,36 +158,6 @@ class DbOmatic < Qpid::Qmf::Console
end
end
- begin
- # find open vm host history for this vm,
- history = VmHostHistory.find(:first, :conditions => ["vm_id = ? AND time_ended is NULL", vm.id])
-
- if state == Vm::STATE_RUNNING
-...