search for: storagepooldefinexml

Displaying 5 results from an estimated 5 matches for "storagepooldefinexml".

2009 May 28
0
[PATCH server] Use fixed mount points and add timeouts to various calls.
...7 deletions(-) diff --git a/src/task-omatic/task_storage.rb b/src/task-omatic/task_storage.rb index a2188d7..4961b83 100644 --- a/src/task-omatic/task_storage.rb +++ b/src/task-omatic/task_storage.rb @@ -129,7 +129,7 @@ class LibvirtPool end if @remote_pool == nil - result = node.storagePoolDefineXML(@xml.to_s) + result = node.storagePoolDefineXML(@xml.to_s, :timeout => 60 * 2) raise "Error creating pool: #{result.text}" unless result.status == 0 @remote_pool = session.object(:object_id => result.pool) raise "Error finding newly created remote pool...
2009 Jun 25
0
[PATCH] Extend timeouts on libvirt calls.
...e.rb index 77363ac..8165818 100644 --- a/src/task-omatic/task_storage.rb +++ b/src/task-omatic/task_storage.rb @@ -132,7 +132,7 @@ class LibvirtPool if @remote_pool == nil @logger.debug("Defining new storage pool: #{@xml.to_s} on host: #{node.hostname}") - result = node.storagePoolDefineXML(@xml.to_s, :timeout => 60 * 2) + result = node.storagePoolDefineXML(@xml.to_s, :timeout => 60 * 10) raise "Error creating pool: #{result.text}" unless result.status == 0 @remote_pool = session.object(:object_id => result.pool) raise "Error finding n...
2015 Dec 02
1
create a directory storage pool in a random location
...ilable> <source> </source> <target> <path>/disk1/guest_images</path> <permissions> <mode>0755</mode> <owner>-1</owner> <group>-1</group> </permissions> </target> </pool>""" pool = conn.storagePoolDefineXML(xmlDesc, 0) This creates guest_images_storage_pool.xml in /etc/libvirt/storage. I assume this is the default path libvirt looks for any storage pools on the system The problem is that /etc is mapped to a ramdisk on my system. So after restart anything in there would be wiped. The path /disk1 map...
2009 May 29
0
[PATCH server] Add more debugging to storage tasks
...ool = pool + @logger.debug("Found existing storage pool #{pool.name} on host: #{node.hostname}") break end end if @remote_pool == nil + @logger.debug("Defining new storage pool: #{@xml.to_s} on host: #{node.hostname}") result = node.storagePoolDefineXML(@xml.to_s, :timeout => 60 * 2) raise "Error creating pool: #{result.text}" unless result.status == 0 @remote_pool = session.object(:object_id => result.pool) @@ -137,6 +140,7 @@ class LibvirtPool # we need this because we don't want to "build" LVM...
2009 Nov 04
4
[PATCH server] Update daemons to use new QMF.
...c).root) @remote_pool = pool @logger.debug("Found existing storage pool #{pool.name} on host: #{node.hostname}") @@ -134,7 +135,8 @@ class LibvirtPool @logger.debug("Defining new storage pool: #{@xml.to_s} on host: #{node.hostname}") result = node.storagePoolDefineXML(@xml.to_s, :timeout => 60 * 10) raise "Error creating pool: #{result.text}" unless result.status == 0 - @remote_pool = session.object(:object_id => result.pool) + @remote_pool = qmfc.object(:object_id => result.pool) + obj_list = qmfc.objects(:object_id =&gt...