search for: build_on_start

Displaying 6 results from an estimated 6 matches for "build_on_start".

2009 May 29
0
[PATCH server] Add more debugging to storage tasks
...rage.rb index cdc0043..bfffa36 100644 --- a/src/task-omatic/task_storage.rb +++ b/src/task-omatic/task_storage.rb @@ -92,11 +92,12 @@ class LibvirtPool attr_reader :remote_pool - def initialize(type, name = nil) + def initialize(type, name = nil, logger = nil) @remote_pool = nil @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(...
2009 Jul 29
0
[PATCH server] Remove ununsed utils.rb file.
..._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) - @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})...
2009 Jul 09
1
[PATCH 1/5 ovirt-server] Add glusterfs to task-omatic API for {task_storage,utils}
...root.elements['source'].elements['host'].attributes['name'] == @host and + docroot.elements['source'].elements['dir'].attributes['path'] == @remote_vol) + end +end + class LVMLibvirtPool < LibvirtPool def initialize(vg_name, device, build_on_start, logger) super('logical', vg_name, logger) diff --git a/src/task-omatic/utils.rb b/src/task-omatic/utils.rb index e3005ed..cf68cae 100644 --- a/src/task-omatic/utils.rb +++ b/src/task-omatic/utils.rb @@ -114,6 +114,8 @@ class LibvirtPool return IscsiLibvirtPool.new(pool.ip_addr,...
2009 May 28
0
[PATCH server] Use fixed mount points and add timeouts to various calls.
...sion.object(:object_id => result.pool) raise "Error finding newly created remote pool." unless @remote_pool @@ -137,7 +137,7 @@ class LibvirtPool # we need this because we don't want to "build" LVM pools, which would # destroy existing data if @build_on_start - result = @remote_pool.build + result = @remote_pool.build(:timeout => 60 * 2) raise "Error building pool: #{result.text}" unless result.status == 0 end @remote_pool_defined = true @@ -151,7 +151,7 @@ class LibvirtPool if @remote_pool.state ==...
2009 Jun 25
0
[PATCH] Extend timeouts on libvirt calls.
...rror creating pool: #{result.text}" unless result.status == 0 @remote_pool = session.object(:object_id => result.pool) raise "Error finding newly created remote pool." unless @remote_pool @@ -141,7 +141,7 @@ class LibvirtPool # destroy existing data if @build_on_start @logger.debug("Building remote pool #{@remote_pool.name}") - result = @remote_pool.build(:timeout => 60 * 2) + result = @remote_pool.build(:timeout => 60 * 10) raise "Error building pool: #{result.text}" unless result.status == 0 end...
2009 Jul 31
0
[TAKE-2][PATCH 1/5] Add glusterfs to task-omatic API for task_storage
...root.elements['source'].elements['host'].attributes['name'] == @host and + docroot.elements['source'].elements['dir'].attributes['path'] == @remote_vol) + end +end + class LVMLibvirtPool < LibvirtPool def initialize(vg_name, device, build_on_start, logger) super('logical', vg_name, logger) -- 1.6.0.6