opennebula-cli 5.8.1 → 5.8.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/one_helper/onehost_helper.rb +13 -2
- data/lib/one_helper/oneprovision_helper.rb +2 -2
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5d7d4554412afc55c318e69f433768f9d9f76e30
|
4
|
+
data.tar.gz: d50721ae39775ca8aa48e7362df1a582af2ccc4a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4ca74982e9f6c30957bd72a7be8644ed211a3ddca22c4e5db94a87b94b43a41c91bf3d08ee7b18f19652dbb8aa53fb90a89cf2befa4cbf0b0253ec6479292fbd
|
7
|
+
data.tar.gz: ff0a2abcad71cd6f4aacaa9317586ac179a2b8cc078ecc9301bde562ce80534818217aa85ce03f958c2976f9e5fb8f4459a03bd574fd5d8b922f31706130c239
|
@@ -369,9 +369,20 @@ class OneHostHelper < OpenNebulaHelper::OneHelper
|
|
369
369
|
" #{host['NAME']}:#{remote_dir} 2> /dev/null"
|
370
370
|
end
|
371
371
|
|
372
|
-
|
372
|
+
retries = 3
|
373
|
+
|
374
|
+
begin
|
375
|
+
`#{sync_cmd} 2>/dev/null`
|
376
|
+
rescue IOError
|
377
|
+
# Workaround for broken Ruby 2.5
|
378
|
+
# https://github.com/OpenNebula/one/issues/3229
|
379
|
+
if (retries -= 1) > 0
|
380
|
+
sleep 1
|
381
|
+
retry
|
382
|
+
end
|
383
|
+
end
|
373
384
|
|
374
|
-
if !$CHILD_STATUS.success?
|
385
|
+
if $CHILD_STATUS.nil? || !$CHILD_STATUS.success?
|
375
386
|
error_lock.synchronize do
|
376
387
|
host_errors << host['NAME']
|
377
388
|
end
|
@@ -75,14 +75,14 @@ class OneProvisionHelper < OpenNebulaHelper::OneHelper
|
|
75
75
|
# Helper provision functions
|
76
76
|
#######################################################################
|
77
77
|
|
78
|
-
def create(config)
|
78
|
+
def create(config, cleanup, timeout)
|
79
79
|
msg = 'OpenNebula is not running'
|
80
80
|
|
81
81
|
OneProvision::Utils.fail(msg) if OneProvision::Utils.one_running?
|
82
82
|
|
83
83
|
provision = OneProvision::Provision.new(SecureRandom.uuid)
|
84
84
|
|
85
|
-
provision.create(config)
|
85
|
+
provision.create(config, cleanup, timeout)
|
86
86
|
end
|
87
87
|
|
88
88
|
def configure(provision_id, force)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: opennebula-cli
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 5.8.
|
4
|
+
version: 5.8.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- OpenNebula
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-05-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: opennebula
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - '='
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 5.8.
|
19
|
+
version: 5.8.2
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - '='
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 5.8.
|
26
|
+
version: 5.8.2
|
27
27
|
description: Commands used to talk to OpenNebula
|
28
28
|
email: contact@opennebula.org
|
29
29
|
executables:
|