search for: get_libvirt_lvm_pool_from_volum

Displaying 3 results from an estimated 3 matches for "get_libvirt_lvm_pool_from_volum".

2009 May 31
2
Storage problem latest build
...Sun May 31 10:30:37 +0200 2009 (28807) Task action processing failed: ArgumentError: wrong number of arguments (1 for 2) ERROR Sun May 31 10:30:37 +0200 2009 (28807) /usr/share/ovirt-server/task-omatic/./task_storage.rb:34:in `factory'/usr/share/ovirt-server/task-omatic/./task_storage.rb:34:in `get_libvirt_lvm_pool_from_volume'/usr/share/ovirt-server/task-omatic/taskomatic.rb:722:in `task_create_volume'/usr/share/ovirt-server/task-omatic/taskomatic.rb:907:in `mainloop'/usr/share/ovirt-server/task-omatic/taskomatic.rb:879:in `each'/usr/share/ovirt-server/task-omatic/taskomatic.rb:879:in `mainloop'/usr...
2009 Jul 29
0
[PATCH server] Remove ununsed utils.rb file.
...ize=16) - s = "" - size.times { s << (i = Kernel.rand(62); i += ((i < 10) ? 48 : ((i < 36) ? 55 : 61 ))).chr } - s -end - -def all_storage_pools(conn) - all_pools = conn.list_defined_storage_pools - all_pools.concat(conn.list_storage_pools) - return all_pools -end - -def get_libvirt_lvm_pool_from_volume(db_volume) - phys_volume = StorageVolume.find(:first, :conditions => - [ "lvm_pool_id = ?", db_volume.storage_pool_id]) - - return LibvirtPool.factory(phys_volume.storage_pool) -end - -class LibvirtPool - def initialize(type, name = nil) - @remo...
2009 Nov 04
4
[PATCH server] Update daemons to use new QMF.
...xt unless node # So now we expect if the node was found it's alive and well, then @@ -205,12 +210,12 @@ class TaskOmatic # activate the underlying physical device, and then do the logical one if db_volume[:type] == "LvmStorageVolume" phys_libvirt_pool = get_libvirt_lvm_pool_from_volume(db_volume, @logger) - phys_libvirt_pool.connect(@session, node) + phys_libvirt_pool.connect(@qmfc, node) end @logger.debug "Verifying mount of pool #{db_pool.ip_addr}:#{db_pool.type}:#{db_pool.target}:#{db_pool.export_path}" libvirt_pool = LibvirtPool...