Displaying 9 results from an estimated 9 matches for "state_available".
Did you mean:
date_available
2009 Aug 10
1
[PATCH server] Fixed db-omatic so it doesn't die due to an unhandled ActiveRecord::StaleObjectError exception.
...@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
@logger.info "Exception checking for dead VMs (could be normal): #{e.message}"
+...
2010 Feb 25
1
[PATCH] fix storage problem.
...end
end
end
@@ -756,7 +756,7 @@ class TaskOmatic
end
db_volume.reload
- db_volume.key = volume.key
+ db_volume.key = volume.get_attr('key')
db_volume.path = volume.path
db_volume.state = StorageVolume::STATE_AVAILABLE
db_volume.save!
@@ -966,4 +966,3 @@ end
taskomatic = TaskOmatic.new()
taskomatic.mainloop()
-
--
1.7.0
2009 Jul 13
1
[PATCH] Use volume key instead of path to identify volume.
This patch teaches taskomatic to use the volume 'key' instead of the
path from libvirt to key the volume off of in the database. This fixes
the duplicate iscsi volume bug we were seeing. The issue was that
libvirt changed the way they name storage volumes and included a local
ID that changed each time it was attached.
Note that the first run with this new patch will cause duplicate
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.
...st.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
@logger.info "Exception checking for dead VMs (could be normal): #{e.message}"
+...
2009 Dec 02
0
Qmf::Query Hang in db-omatic
...this way work, and gave to us a concistent db for db-omatic.
What do you thing if we replace the Thread.new on line 266 by a begin ? Because
the concurrency of the requests on qpidd made by db-omatic seems the origin of
the hang.
<code snipset of db-omatic lines 265,296>
if state == Host::STATE_AVAILABLE
Thread.new do
@logger.info "#{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...
2009 Jun 25
2
[PATCH] Fix dbomatic state changes.
...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
- # or after. If the node was rebooted, the VMs will all
-...
2009 May 29
0
[PATCH server] Add more debugging to storage tasks
...@logger.info("refresh being done on node #{node.hostname}")
- phys_libvirt_pool = LibvirtPool.factory(db_pool_phys)
+ phys_libvirt_pool = LibvirtPool.factory(db_pool_phys, @logger)
phys_libvirt_pool.connect(@session, node)
db_pool_phys.state = StoragePool::STATE_AVAILABLE
db_pool_phys.save!
@@ -651,14 +651,14 @@ class TaskOmatic
if not existing_vol
add_volume_to_db(db_pool_phys, volume);
else
- @logger.info "Scanned volume #{volume.name} already exists in db.."
+ @logger.debug "Scanned vo...
2009 Jun 29
0
[PATCH server] Add svc_vm_actions method to VmService.
...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
- # or after. If the node was rebooted, the VMs will all
-...
2009 Nov 04
4
[PATCH server] Update daemons to use new QMF.
...ass TaskOmatic
@logger.info("refresh being done on node #{node.hostname}")
phys_libvirt_pool = LibvirtPool.factory(db_pool_phys, @logger)
- phys_libvirt_pool.connect(@session, node)
+ phys_libvirt_pool.connect(@qmfc, node)
db_pool_phys.state = StoragePool::STATE_AVAILABLE
db_pool_phys.save!
begin
# First we do the physical volumes.
- volumes = @session.objects(:class => 'volume',
+ volumes = @qmfc.objects(:class => 'volume',
'storagePool' => phys_libvirt_pool....