Displaying 5 results from an estimated 5 matches for "db_pool_phys".
2010 Feb 25
1
[PATCH] fix storage problem.
...storage_volume.lv_group_perms = group
storage_volume.lv_mode_perms = mode
@@ -661,14 +661,14 @@ class TaskOmatic
existing_vol = StorageVolume.find(:first, :conditions =>
["storage_pool_id = ? AND key = ?",
- db_pool_phys.id, volume.key])
+ db_pool_phys.id, volume.get_attr('key')])
- puts "Existing volume is #{existing_vol}, searched for storage volume key and #{volume.key}"
+ puts "Existing volume is #{existing_vol}, searched for storage volume k...
2009 Jul 13
1
[PATCH] Use volume key instead of path to identify volume.
...up_perms = group
storage_volume.lv_mode_perms = mode
@@ -644,13 +644,14 @@ class TaskOmatic
existing_vol = StorageVolume.find(:first, :conditions =>
["storage_pool_id = ? AND #{storage_volume.volume_name} = ?",
- db_pool_phys.id, volume.name])
+ db_pool_phys.id, volume.key])
+ puts "Existing volume is #{existing_vol}, searched for storage volume name and #{volume.key}"
# Only add if it's not already there.
if not existing_vol
add_volu...
2009 May 29
0
[PATCH server] Add more debugging to storage tasks
...)
libvirt_pool.connect(@session, node)
# OK, the pool should be all set. The last thing we need to do is get
@@ -631,7 +631,7 @@ class TaskOmatic
begin
@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...
2009 May 28
0
[PATCH server] Use qpid for migration and add more debugging to taskomatic.
...t undefine old vm after migrate (probably fine): #{result.text}" unless result.status == 0
# See if we can take down storage pools on the src host.
teardown_storage_pools(src_node)
@@ -631,7 +651,7 @@ class TaskOmatic
if not existing_vol
add_volume_to_db(db_pool_phys, volume);
else
- @logger.error "volume #{volume.name} already exists in db.."
+ @logger.info "Scanned volume #{volume.name} already exists in db.."
end
# Now check for an LVM pool carving up this volume.
--
1.6.0.6
2009 Nov 04
4
[PATCH server] Update daemons to use new QMF.
...ode', 'hostname' => host.hostname)
puts "node returned is #{node}"
return node if node
end
@@ -643,13 +648,13 @@ class 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 => ...