search for: object_props

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

2009 Aug 07
1
[PATCH server] Fixed db-omatic to update the host for a running vm when the object_props callback is fired.
This fixes a bug where if db-omatic restarted, any running vm lost the association with the host it is running on in the 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 @@
2009 Jul 21
1
[PATCH server] Fixed db-omatic so it doesn't segfault because of newer qmf api.
...-- 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 # I just sync this whole thing because there shoul...
2009 Nov 04
4
[PATCH server] Update daemons to use new QMF.
...if !qmf_host @logger.info "Host #{host_info['hostname']} is not up after waiting 20 seconds, skipping dead VM check." else @@ -301,16 +304,23 @@ class DbOmatic < Qpid::Qmf::Console end end - def object_props(broker, obj) - target = obj.schema.klass_key.package + def object_update(obj, hasProps, hasStats) + target = obj.object_class.package_name + type = obj.object_class.class_name return if target != "com.redhat.libvirt" - type = obj.schema.klass_key....
2009 Jul 31
1
problem with kerberos (I think)
...uching 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_ruby/1.8/qpid/qmf.rb:608:in `handle_content_ind' from /usr/lib/ruby/site_ruby/1.8/qpid/qmf.rb:1728:in `reply_cb' from /usr/lib/ruby/site_ruby/1.8/q...