Displaying 5 results from an estimated 5 matches for "create_vol".
Did you mean:
create_ovf
2009 Jul 09
1
[PATCH 1/5 ovirt-server] Add glusterfs to task-omatic API for {task_storage,utils}
...quot;dir", {"path" => @remote_vol})
+ @xml.root.elements["source"].add_element("format", {"type" => "glusterfs"})
+
+ @xml.root.elements["target"].elements["path"].text = "/mnt/" + @name
+ end
+
+ def create_vol(name, size, owner, group, mode)
+ # FIXME: this can actually take some time to complete (since we aren't
+ # doing sparse allocations at the moment). During that time, whichever
+ # libvirtd we chose to use is completely hung up. The solution is 3-fold:
+ # 1. Allow sparse alloca...
2009 Jul 29
0
[PATCH server] Remove ununsed utils.rb file.
...e_pool_started = true
- end
- end
-
- def list_volumes
- return @remote_pool.list_volumes
- end
-
- def lookup_vol_by_path(dev)
- return @remote_pool.lookup_volume_by_path(dev)
- end
-
- def lookup_vol_by_name(name)
- return @remote_pool.lookup_volume_by_name(name)
- end
-
- def create_vol(type, name, size, owner, group, mode)
- @vol_xml = Document.new
- @vol_xml.add_element("volume", {"type" => type})
- @vol_xml.root.add_element("name").add_text(name)
- @vol_xml.root.add_element("capacity", {"unit" => "K"}...
2009 Jul 31
0
[TAKE-2][PATCH 1/5] Add glusterfs to task-omatic API for task_storage
...quot;dir", {"path" => @remote_vol})
+ @xml.root.elements["source"].add_element("format", {"type" => "glusterfs"})
+
+ @xml.root.elements["target"].elements["path"].text = "/mnt/" + @name
+ end
+
+ def create_vol(name, size, owner, group, mode)
+ # FIXME: this can actually take some time to complete (since we aren't
+ # doing sparse allocations at the moment). During that time, whichever
+ # libvirtd we chose to use is completely hung up. The solution is 3-fold:
+ # 1. Allow sparse alloca...
2009 May 29
0
[PATCH server] Add more debugging to storage tasks
...build_on_start)
- super('logical', vg_name)
+ def initialize(vg_name, device, build_on_start, logger)
+ super('logical', vg_name, logger)
@type = 'logical'
@build_on_start = build_on_start
@@ -302,6 +307,8 @@ class LVMLibvirtPool < LibvirtPool
def create_vol(name, size, owner, group, mode)
super("logical", name, size, owner, group, mode)
+
+ @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...
2009 Nov 04
4
[PATCH server] Update daemons to use new QMF.
...t(@session, node)
+ phys_libvirt_pool.connect(@qmfc, node)
end
begin
libvirt_pool = LibvirtPool.factory(db_pool, @logger)
begin
- libvirt_pool.connect(@session, node)
+ libvirt_pool.connect(@qmfc, node)
volume_id = libvirt_pool.create_vol(*db_volume.volume_create_params)
- volume = @session.object(:object_id => volume_id)
+ volume = @qmfc.object(:object_id => volume_id)
raise "Unable to find newly created volume" unless volume
@logger.debug " volume:"
@@ -776,7 +78...