Displaying 5 results from an estimated 5 matches for "xmlequal".
Did you mean:
allequal
2009 Jul 29
0
[PATCH server] Remove ununsed utils.rb file.
...uot;)
-
- @xml.root.add_element("target")
- @xml.root.elements["target"].add_element("path")
- end
-
- def connect(conn)
- all_storage_pools(conn).each do |remote_pool_name|
- tmppool = conn.lookup_storage_pool_by_name(remote_pool_name)
-
- if self.xmlequal?(Document.new(tmppool.xml_desc).root)
- @remote_pool = tmppool
- break
- end
- end
-
- if @remote_pool == nil
- @remote_pool = conn.define_storage_pool_xml(@xml.to_s)
- # we need this because we don't necessarily want to "build" LVM pools,
- # w...
2009 Jul 09
1
[PATCH 1/5 ovirt-server] Add glusterfs to task-omatic API for {task_storage,utils}
...+ @logger.debug("Creating new volume on pool #{@remote_pool.name} - XML: #{@vol_xml.to_s}")
+ result = @remote_pool.createVolumeXML(@vol_xml.to_s)
+ raise "Error creating remote pool: #{result.text}" unless result.status == 0
+ return result.volume
+ end
+
+ def xmlequal?(docroot)
+ return (docroot.attributes['type'] == @type and
+ docroot.elements['source'].elements['host'].attributes['name'] == @host and
+ docroot.elements['source'].elements['dir'].attributes['path'] == @remote_vol)...
2009 Jul 31
0
[TAKE-2][PATCH 1/5] Add glusterfs to task-omatic API for task_storage
...+
+ @logger.debug("Creating new volume on pool #{@remote_pool.name} - XML: #{@vol_xml.to_s}")
+ result = @remote_pool.createVolumeXML(@vol_xml.to_s)
+ raise "Error creating remote pool: #{result.text}" unless result.status == 0
+ return result.volume
+ end
+
+ def xmlequal?(docroot)
+ return (docroot.attributes['type'] == @type and
+ docroot.elements['source'].elements['host'].attributes['name'] == @host and
+ docroot.elements['source'].elements['dir'].attributes['path'] == @remote_vol)...
2009 May 29
0
[PATCH server] Add more debugging to storage tasks
...il
@build_on_start = true
@remote_pool_defined = false
@remote_pool_started = false
+ @logger = logger
if name == nil
@name = type + "-" + String.random_alphanumeric
@@ -124,11 +125,13 @@ class LibvirtPool
xml_desc = result.description
if self.xmlequal?(Document.new(xml_desc).root)
@remote_pool = 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 ho...
2009 Nov 04
4
[PATCH server] Update daemons to use new QMF.
...= qmfc.objects(:class => 'pool', 'node' => node.object_id)
pools.each do |pool|
result = pool.getXMLDesc
raise "Error getting xml description of pool: #{result.text}" unless result.status == 0
xml_desc = result.description
+
if self.xmlequal?(Document.new(xml_desc).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}")...