search for: add_element

Displaying 14 results from an estimated 14 matches for "add_element".

2010 Sep 01
1
[PATCH] Fix virtual disk name (virtio)
...) diff --git a/src/task-omatic/task_vm.rb b/src/task-omatic/task_vm.rb index 3a197f9..cf84ea2 100644 --- a/src/task-omatic/task_vm.rb +++ b/src/task-omatic/task_vm.rb @@ -66,7 +66,9 @@ def create_vm_xml(name, uuid, memAllocated, memUsed, vcpus, bootDevice, doc.root.elements["devices"].add_element("emulator").add_text("/usr/bin/qemu-kvm") devs = ['hda', 'hdb', 'hdc', 'hdd'] + virtual_devs = ['vda', 'vdb', 'vdc', 'vdd'] which_device = 0 + which_virtual_device = 0 diskDevices.each do |disk| is...
2009 Jul 29
0
[PATCH server] Remove ununsed utils.rb file.
...ype, name = nil) - @remote_pool = nil - @build_on_start = true - @remote_pool_defined = false - @remote_pool_started = false - - if name == nil - @name = type + "-" + String.random_alphanumeric - else - @name = name - end - - @xml = Document.new - @xml.add_element("pool", {"type" => type}) - - @xml.root.add_element("name").add_text(@name) - - @xml.root.add_element("source") - - @xml.root.add_element("target") - @xml.root.elements["target"].add_element("path") - end - - def...
2010 Aug 25
2
[PATCH] Virtio support
...--- a/src/task-omatic/task_vm.rb +++ b/src/task-omatic/task_vm.rb @@ -35,7 +35,7 @@ end def create_vm_xml(name, uuid, memAllocated, memUsed, vcpus, bootDevice, - net_interfaces, diskDevices) + virtio, net_interfaces, diskDevices) doc = Document.new doc.add_element("domain", {"type" => "kvm"}) @@ -78,6 +78,10 @@ def create_vm_xml(name, uuid, memAllocated, memUsed, vcpus, bootDevice, diskdev.add_element("readonly") diskdev.add_element("source", {"file" => disk}) diskdev.add_...
2009 Jul 09
1
[PATCH 1/5 ovirt-server] Add glusterfs to task-omatic API for {task_storage,utils}
...def initialize(ip_addr, export_path, logger) + target = "#{ip_addr}-#{export_path.tr('/', '_')}" + super('netfs', target, logger) + + @type = 'netfs' + @host = ip_addr + @remote_vol = export_path + + @xml.root.elements["source"].add_element("host", {"name" => @host}) + @xml.root.elements["source"].add_element("dir", {"path" => @remote_vol}) + @xml.root.elements["source"].add_element("format", {"type" => "glusterfs"}) + + @xml.ro...
2009 Jul 31
0
[TAKE-2][PATCH 1/5] Add glusterfs to task-omatic API for task_storage
...def initialize(ip_addr, export_path, logger) + target = "#{ip_addr}-#{export_path.tr('/', '_')}" + super('netfs', target, logger) + + @type = 'netfs' + @host = ip_addr + @remote_vol = export_path + + @xml.root.elements["source"].add_element("host", {"name" => @host}) + @xml.root.elements["source"].add_element("dir", {"path" => @remote_vol}) + @xml.root.elements["source"].add_element("format", {"type" => "glusterfs"}) + + @xml.ro...
2010 Sep 21
1
[PATCH] Introduce ability to select any kind of nic model, not just default or virtio.
...b b/src/task-omatic/task_vm.rb index 9efda1c..a3391c0 100644 --- a/src/task-omatic/task_vm.rb +++ b/src/task-omatic/task_vm.rb @@ -99,10 +99,7 @@ def create_vm_xml(name, uuid, memAllocated, memUsed, vcpus, bootDevice, interface.add_attribute("type", "bridge") interface.add_element("mac", {"address" => nic[:mac]}) interface.add_element("source", {"bridge" => nic[:interface]}) - - if nic[:virtio] - interface.add_element("model", {"type" => "virtio"}) - end + interface.add_element(...
2006 Nov 28
1
observe_form, observe_field, dynamic forms help
...estart it. With much searching I found a Event.stopObserving method, but I''m not certain how to apply this to my observe_form observer. >From the source: new Form.EventObserver(''process_call_form'', function(element, value) {new Ajax.Request(''/rails/assistant/add_element'', {asynchronous:true, evalScripts:true, parameters:''Form.serialize(process_call_form)='' + value})}) >From this I did: function = "function(element, value) {new Ajax.Request(''/rails/assistant/add_element'', {asynchronous:true, evalScripts:true, p...
2009 Jul 24
1
permit many-to-many vms / networks relationship redux
redux patchset permitting a vm to be associated with multiple networks and vice-versa. updated patchset so as to be applicable against current oVirt server HEAD these patches may be applied in any order, they all need to be pushed together
2009 Jul 09
2
permit many-to-many vms / networks relationship
This patchset contains changes to the ovirt server frontend, backend, and tests components, permitting vms to be associated with multiple networks and vice versa. Also included are two patches which are required for the frontend bits; a patch adding collapsable sections to the vm form, which in itself depends on the second patch that provides default values for the cpu and memory vm table fields
2008 Apr 11
1
fxtreelist question
Hello, I''m new to Ruby and new to FXRuby. How to dump a fxtreelist to an XML? Thanks. _________________________________________________________________ Get in touch in an instant. Get Windows Live Messenger now. http://www.windowslive.com/messenger/overview.html?ocid=TXT_TAGLM_WL_Refresh_getintouch_042008 -------------- next part -------------- An HTML attachment was scrubbed... URL:
2009 Jun 30
0
[PATCH server] permit many-to-many vms / networks relationship
...100644 --- a/src/task-omatic/task_vm.rb +++ b/src/task-omatic/task_vm.rb @@ -35,7 +35,7 @@ end def create_vm_xml(name, uuid, memAllocated, memUsed, vcpus, bootDevice, - macAddr, bridge, diskDevices) + net_interfaces, diskDevices) doc = Document.new doc.add_element("domain", {"type" => "kvm"}) @@ -87,11 +87,13 @@ def create_vm_xml(name, uuid, memAllocated, memUsed, vcpus, bootDevice, which_device += 1 end - unless macAddr.nil? || bridge.nil? || macAddr == "" || bridge == "" - doc.root.elements...
2011 Feb 11
0
Hbar color - openflash chart
...nside my controller def stat_bar title = Title.new(session[:tag]) hbar = HBar.new hbar.values = [HBarValue.new(0,10),HBarValue.new(0,20)] hbar.colour = ''#FF8000'' # this works for the two bars chart = OpenFlashChart.new chart.set_title(title) chart.add_element(hbar) x = XAxis.new x.set_offset(false) chart.set_x_axis(x) y = YAxis.new y.set_offset(true) y.set_labels(["Yes","No"]) chart.set_y_axis(y) render :text => chart.to_s end Please help !! -- Posted via http://www.ruby-forum.com/. -- Yo...
2009 May 29
0
[PATCH server] Add more debugging to storage tasks
...;_')}" - super('netfs', target) + super('netfs', target, logger) @type = 'netfs' @host = ip_addr @@ -276,6 +280,7 @@ class NFSLibvirtPool < LibvirtPool # however. We want to have non-sparse files for performance reasons. @vol_xml.root.add_element("allocation").add_text('0') + @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 =...
2009 Nov 04
4
[PATCH server] Update daemons to use new QMF.
...> filename) + image_volume = StorageVolume.factory("NFS", :filename => filename, :key => filename) image_volume.storage_pool image_pool = StoragePool.factory(StoragePool::NFS) @@ -116,13 +116,14 @@ class LibvirtPool @xml.root.elements["target"].add_element("path") end - def connect(session, node) - pools = session.objects(:class => 'pool', 'node' => node.object_id) + def connect(qmfc, node) + pools = qmfc.objects(:class => 'pool', 'node' => node.object_id) pools.each do |pool|...