Displaying 4 results from an estimated 4 matches for "existing_vol".
2010 Feb 25
1
[PATCH] fix storage problem.
....volume_name, volume.name)
- storage_volume.key = volume.key
+ storage_volume.key = volume.get_attr('key')
storage_volume.lv_owner_perms = owner
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...
2009 Jul 13
1
[PATCH] Use volume key instead of path to identify volume.
...ute(storage_volume.volume_name, volume.name)
+ storage_volume.write_attribute(storage_volume.volume_name, volume.key)
storage_volume.lv_owner_perms = owner
storage_volume.lv_group_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...
2009 May 28
0
[PATCH server] Use qpid for migration and add more debugging to taskomatic.
...== 0
+ @logger.info "Couldn'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...
2009 May 29
0
[PATCH server] Add more debugging to storage tasks
...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 volume #{volume.name} already exists in db.."
end
# Now check for an...