Displaying 3 results from an estimated 3 matches for "ovirtag".
Did you mean:
ovirt
2009 Jul 07
1
[PATCH] Set up ovirt-agent so it starts as a daemon
...9;ovirt/controllers/task_controller'
include Daemonize
+class Logger
+ def format_message(severity, timestamp, progname, msg)
+ "#{severity} #{timestamp} (#{$$}) #{msg}\n"
+ end
+end
+
# Monkey patch
class Qmf::SchemaObjectClass
attr_reader :id
@@ -80,16 +86,47 @@ class OvirtAgent < Qmf::AgentHandler
include Ovirt::SchemaParser
- def initialize(host)
+ $logfile = '/var/log/ovirt-server/ovirt-agent.log'
- ensure_credentials
+ def initialize()
- # FIXME: Use RAILS_DEFAULT_LOGGER
- @logger = Logger.new(STDERR)
- @logger.level = Logger::DE...
2009 Jul 23
0
[PATCH server] Add network QMF apis.
...t; desc }, false, false)
+ end
+
def find(id)
svc_show(id)
render(@vm)
diff --git a/src/ovirt-agent/ovirt-agent.rb b/src/ovirt-agent/ovirt-agent.rb
index 62834b0..425699b 100755
--- a/src/ovirt-agent/ovirt-agent.rb
+++ b/src/ovirt-agent/ovirt-agent.rb
@@ -139,7 +139,7 @@ class OvirtAgent < Qmf::AgentHandler
@settings.host = server
# FIXME: Bug in swig!
#@settings.port = port
- @settings.mechanism = 'GSSAPI'
+ #@settings.mechanism = 'GSSAPI'
@logger.info "Connecting to broker on #{@settings.host}.."
@@ -165,7 +165,7 @@ cl...
2009 May 15
0
[PATCH server] Starting of new ovirt QMF API.
...vmdef = ar_to_object(vmsvc.vm)
+ @agent.query_response(context, vmdef)
+ rescue Exception => ex
+ @logger.info "Couldn't get svc_show to show vm record: #{ex}"
+ end
+ end
+ end
+
+ def implement_method_call(context, method)
+ end
+
+end
+
+class OvirtAgent < Qmf::AgentHandler
+
+ def initialize
+
+ ensure_credentials
+
+ @logger = Logger.new(STDERR)
+
+ server, port = nil
+ sleepy = 5
+ while true do
+ server, port = get_srv('qpidd', 'tcp')
+ break if server
+ @logger.error "Unable to determin...