mirror of
https://github.com/OpenNebula/one.git
synced 2026-12-02 05:06:14 +09:00
1 parent
6ca3799647
commit
a5001bfa1e
2 files changed
+9
-2
No files matched your search
@@ -47,8 +47,15 @@ module Storage
|
||||
def self.setup_disk(device, mountpoint, bindpoint, options)
|
||||
begin
|
||||
# Get device filesystem (e.g ext4, xfs, ...)
|
||||
retries = 3
|
||||
device_fs = device_fs(device)
|
||||
|
||||
while retries > 0 && device_fs.empty?
|
||||
sleep 0.2
|
||||
retries -= 1
|
||||
device_fs = device_fs(device)
|
||||
end
|
||||
|
||||
# Resize device if extX like filesystem is used
|
||||
if device_fs.match?(/^ext([2-4])$/)
|
||||
resize_ext(device)
|
||||
|
||||
@@ -34,7 +34,7 @@ container.clean(true)
|
||||
rc = container.create
|
||||
|
||||
if !rc
|
||||
STDERR.puts 'There was an error creating the containter. Check oned.log.'
|
||||
STDERR.puts 'There was an error creating the containter.'
|
||||
exit(-1)
|
||||
end
|
||||
|
||||
@@ -43,7 +43,7 @@ end
|
||||
rc = container.start
|
||||
|
||||
if !rc
|
||||
STDERR.puts 'There was an error starting the containter. Check oned.log.'
|
||||
STDERR.puts 'There was an error starting the containter.'
|
||||
exit(-1)
|
||||
end
|
||||
|
||||
|
||||
Reference in new issue
Block a user