search for: update_host_st

Displaying 2 results from an estimated 2 matches for "update_host_st".

Did you mean: update_host_b
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.
...it.. #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 rescue Exception => e # just log any errors here...
2009 Aug 10
1
[PATCH server] Fixed db-omatic so it doesn't die due to an unhandled ActiveRecord::StaleObjectError exception.
...+ 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::Console end rescue Exception => e # just log any errors here...