search for: host_info

Displaying 11 results from an estimated 11 matches for "host_info".

2009 Jul 08
1
[PATCH: host-browser replacement 0/3] replacement of host-browser on ovirt-server
The purpose of this patch is to replace the identify function in host-browser.rb with a new script, host-register.rb. host-register.rb is a qmf ruby console that interfaces with the newly added matahari qmf agent on the ovirt node. While it stores node data in the database with the same behavior as the original host-browser implementation, it acquires the data using the amqp protocol (and
2009 Jul 10
2
[PATCH: server 0/3] Add host-register.rb (replaces host-browser.rb in part)
Removes node identification functionality from host-browser.rb and adds a new script, host-register.rb, that takes over that functionality. The chief difference is that host-browser used a simple TCP server setup to get data from the node, while host-register uses the qpid bus to do so. Specifically, it communicates with the matahari qmf agent added to the node in two related patchsets to node
2009 Jun 25
2
[PATCH] Fix dbomatic state changes.
...l - vm.state = Vm::STATE_STOPPED - vm.needs_restart = nil - vm.vnc_port = nil + set_vm_stopped(vm) end end end @@ -223,20 +227,37 @@ class DbOmatic < Qpid::Qmf::Console host_info[:synced] = true if state == Host::STATE_AVAILABLE - # At this point we want to set all domains that are - # unreachable to stopped. If a domain is indeed running - # then dbomatic will see that and set it either before - #...
2009 Aug 10
1
[PATCH server] Fixed db-omatic so it doesn't die due to an unhandled ActiveRecord::StaleObjectError exception.
...# XXX: This would just be for init.. #db_host.is_disabled = 0 - db_host.save! + + begin + db_host.save! + rescue ActiveRecord::StaleObjectError => e + @logger.error "Optimistic locking failure on host #{host_info['hostname']}, retrying." + @logger.error e.backtrace + return update_host_state(host_info, state) + end host_info[:synced] = true if state == Host::STATE_AVAILABLE @@ -266,6 +282,7 @@ class DbOmatic < Qpid::Qmf::Co...
2009 Dec 02
0
Qmf::Query Hang in db-omatic
...most of the issue are due to Qmf::Query . For example in db-omatic lines 265,296 When you restart db-omatic, if you have multiple node, you have mutiple threads launch (line 266) that hang on : qmf_host = @qmfc.objects(Qmf::Query.new(:class => "node"), 'hostname' => host_info['hostname']) The function never return. But qpidd never stop to answer correctly to the request done by ruby-qmf. A workarround for us consist to : - stopping all the libvirt-qpid on every node, - restarting db-omatic - starting libvirt-qpid sequentially on every node. Doing thi...
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.
...#db_host.lock_version = 2 # XXX: This would just be for init.. #db_host.is_disabled = 0 - db_host.save! + + begin + db_host.save! + rescue + @logger.error "Optimistic locking failure on host #{host_info['hostname']}, retrying." + return update_host_state(host_info, state) + end host_info[:synced] = true if state == Host::STATE_AVAILABLE @@ -266,6 +281,7 @@ class DbOmatic < Qpid::Qmf::Console end...
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.
...nd end @@ -276,7 +278,7 @@ class DbOmatic < Qmf::ConsoleHandler # Double check to make sure this host is still up. begin - qmf_host = @qmfc.objects(Qmf::Query.new(:class => "node", 'hostname' => host_info['hostname'])) + qmf_host = @qmfc.objects(Qmf::Query.new(:class => "node"), 'hostname' => host_info['hostname']) if !qmf_host @logger.info "Host #{host_info['hostname']}...
2009 Jun 29
0
[PATCH server] Add svc_vm_actions method to VmService.
...l - vm.state = Vm::STATE_STOPPED - vm.needs_restart = nil - vm.vnc_port = nil + set_vm_stopped(vm) end end end @@ -223,20 +227,37 @@ class DbOmatic < Qpid::Qmf::Console host_info[:synced] = true if state == Host::STATE_AVAILABLE - # At this point we want to set all domains that are - # unreachable to stopped. If a domain is indeed running - # then dbomatic will see that and set it either before - #...
2006 Oct 04
0
do_work and long running rails tasks?
...;< new_rows.collect { |s| s.id } end self.kill rescue Exception => e @logger.error "Exception: #{e}" @percent = 100 self.kill end -- snip --- --- controller.rb -- def syslog_progress if request.xhr? worker = MiddleMan.get_worker(session[:host_info]) if worker progress_percent = worker.progress render :update do |page| page.call(''progressPercent'', ''progressbar'', progress_percent) @rows = Sysloglog.find( worker.rows) rescue [] page.replace_html '...
2009 Nov 04
4
[PATCH server] Update daemons to use new QMF.
...vm.host_id = db_host.id @@ -273,7 +276,7 @@ class DbOmatic < Qpid::Qmf::Console # Double check to make sure this host is still up. begin - qmf_host = @session.object(:class => 'node', 'hostname' => host_info['hostname']) + qmf_host = @qmfc.objects(Qmf::Query.new(:class => "node", 'hostname' => host_info['hostname'])) if !qmf_host @logger.info "Host #{host_info['hostname']} i...
2014 Feb 20
0
Wine release 1.7.13
...ullAvailPageFile. kernel32: Consolidate some duplicate variable declarations. kernel32: Prefer HW_MEMSIZE sysctl variable over HW_PHYSMEM, if available, since it's 64 bits. kernel32: Use sysctl(VM_SWAPUSAGE) to get swap sizes on BSDs, if available. kernel32: Use the Mach host_info(HOST_BASIC_INFO) API to obtain total RAM after trying sysctl(HW_MEMSIZE) and before HW_PHYSMEM. kernel32: Prefer the Mach host_statistics64(HOST_VM_INFO64) API over sysctl(HW_USERMEM) to obtain free memory. kernel32: Fix build on newer Mac OS X. Lauri Kentt? (1): po: Update Finni...