search for: get_type_label

Displaying 7 results from an estimated 7 matches for "get_type_label".

2009 May 20
1
[PATCH server] split StorageVolumeService.svc_new into two methods.
...- def svc_new(storage_pool_id, source_volume_id) - if storage_pool_id - @storage_pool = StoragePool.find(storage_pool_id) - unless @storage_pool.user_subdividable - raise ActionError.new("Unsupported action for " + - "#{@storage_pool.get_type_label} volumes.") - end - else - @source_volume = StorageVolume.find(source_volume_id) - @storage_pool = @source_volume.storage_pool - unless @source_volume.supports_lvm_subdivision - raise ActionError.new("LVM is not supported for this storage volume") -...
2009 Jul 28
0
[PATCH 3/5] Storage views patched for glusterfs drop down as one the Storage Pools
...:type] == "NfsStoragePool" %> <%=h @storage_pool.export_path %><br/> + <% elsif @storage_pool[:type] == "GlusterfsStoragePool" %> + <%=h @storage_pool.export_path %><br/> <% end %> <%=h @storage_pool.get_type_label %><br/> <%=h @storage_pool.state %><br/> diff --git a/src/app/views/storage_volume/_new_volume_form.rhtml b/src/app/views/storage_volume/_new_volume_form.rhtml index ae65e18..d066ab2 100644 --- a/src/app/views/storage_volume/_new_volume_form.rhtml +++ b/src/app/views/s...
2009 Jul 09
0
[PATCH 3/5 ovirt-server] Storage views patched for glusterfs drop down as one the Storage Pools
...:type] == "NfsStoragePool" %> <%=h @storage_pool.export_path %><br/> + <% elsif @storage_pool[:type] == "GlusterfsStoragePool" %> + <%=h @storage_pool.export_path %><br/> <% end %> <%=h @storage_pool.get_type_label %><br/> <%=h @storage_pool.state %><br/> diff --git a/src/app/views/storage_volume/_new_volume_form.rhtml b/src/app/views/storage_volume/_new_volume_form.rhtml index ae65e18..d066ab2 100644 --- a/src/app/views/storage_volume/_new_volume_form.rhtml +++ b/src/app/views/s...
2009 May 19
1
re-sending outstanding controller refactoring patches after rebase
I've rebased the patch series to the current next branch and am sending them again.
2009 Jul 13
1
[PATCH] Use volume key instead of path to identify volume.
...exists in db.." + @logger.debug "Scanned volume #{volume.key} already exists in db.." end # Now check for an LVM pool carving up this volume. @@ -692,11 +693,11 @@ class TaskOmatic lvm_storage_volume = StorageVolume.factory(lvm_db_pool.get_type_label) existing_vol = StorageVolume.find(:first, :conditions => ["storage_pool_id = ? AND #{lvm_storage_volume.volume_name} = ?", - lvm_db_pool.id, lvm_volume.name]) + lvm_db_pool.id, lvm_vo...
2010 Feb 25
1
[PATCH] fix storage problem.
...; + @logger.debug "Scanned volume #{volume.get_attr('key')} already exists in db.." end # Now check for an LVM pool carving up this volume. @@ -710,11 +710,11 @@ class TaskOmatic lvm_storage_volume = StorageVolume.factory(lvm_db_pool.get_type_label) existing_vol = StorageVolume.find(:first, :conditions => ["storage_pool_id = ? AND key = ?", - lvm_db_pool.id, lvm_volume.key]) + lvm_db_pool.id, lvm_volume.get_attr('key')])...
2009 Nov 04
4
[PATCH server] Update daemons to use new QMF.
...ts(:class => 'volume', + volumes = @qmfc.objects(:class => 'volume', 'storagePool' => phys_libvirt_pool.remote_pool.object_id) volumes.each do |volume| storage_volume = StorageVolume.factory(db_pool_phys.get_type_label) @@ -696,9 +701,9 @@ class TaskOmatic physical_vol.save! lvm_libvirt_pool = LibvirtPool.factory(lvm_db_pool, @logger) - lvm_libvirt_pool.connect(@session, node) + lvm_libvirt_pool.connect(@qmfc, node) - lvm_volumes = @session.objects(:class =>...