bosh_vsphere_cpi 1.2669.0 → 1.2671.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/cloud/vsphere/cloud.rb +9 -16
- data/lib/cloud/vsphere/version.rb +1 -1
- metadata +7 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 61fe7694316b32f7754a050430807d0e494a8cd4
|
4
|
+
data.tar.gz: 8f1613cd5d4c197e1349aa292fba39781caebb81
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: df097b72c016f06b3c49871603d15df7a383bf9f32ff522226d04cb91cd3c518ae1d0d0b6b23710685933d079d916f7dd17c3577fdcca0d44c65e859b13022b9
|
7
|
+
data.tar.gz: af36fb7f81b6e45a65d7c97edbe1f47ad99c45a1badae540b15611ad4ab9bf808c5c04c79ba4f5e685774356b4a5728080d6d1fb0ab605134a2c47067290cf1a
|
data/lib/cloud/vsphere/cloud.rb
CHANGED
@@ -311,24 +311,17 @@ module VSphereCloud
|
|
311
311
|
vm = get_vm_by_cid(vm_cid)
|
312
312
|
|
313
313
|
@logger.debug('Waiting for the VM to shutdown')
|
314
|
-
state = :initial
|
315
314
|
begin
|
316
|
-
|
317
|
-
|
318
|
-
|
319
|
-
when :
|
320
|
-
@logger.debug('The guest did not shutdown in time, requesting it to shutdown')
|
321
|
-
begin
|
322
|
-
vm.shutdown_guest
|
323
|
-
rescue => e
|
324
|
-
@logger.debug("Ignoring possible race condition when a VM has powered off by the time we ask it to shutdown: #{e.message}")
|
325
|
-
end
|
326
|
-
state = :shutdown_guest
|
327
|
-
retry
|
328
|
-
else
|
329
|
-
@logger.error('The guest did not shutdown in time, even after a request')
|
330
|
-
raise
|
315
|
+
begin
|
316
|
+
vm.shutdown_guest
|
317
|
+
rescue => e
|
318
|
+
@logger.debug("Ignoring possible race condition when a VM has powered off by the time we ask it to shutdown: #{e.message}")
|
331
319
|
end
|
320
|
+
|
321
|
+
wait_until_off(vm, 60)
|
322
|
+
rescue TimeoutException
|
323
|
+
@logger.debug('The guest did not shutdown in time, requesting it to power off')
|
324
|
+
client.power_off_vm(vm)
|
332
325
|
end
|
333
326
|
|
334
327
|
@logger.info("Configuring: #{vm_cid} to use the following network settings: #{networks.pretty_inspect}")
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bosh_vsphere_cpi
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.2671.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- VMware
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-07-
|
11
|
+
date: 2014-07-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bosh_common
|
@@ -16,28 +16,28 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 1.
|
19
|
+
version: 1.2671.0
|
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: 1.
|
26
|
+
version: 1.2671.0
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: bosh_cpi
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: 1.
|
33
|
+
version: 1.2671.0
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: 1.
|
40
|
+
version: 1.2671.0
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: membrane
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -138,7 +138,7 @@ dependencies:
|
|
138
138
|
version: 2.4.0
|
139
139
|
description: |-
|
140
140
|
BOSH VSphere CPI
|
141
|
-
|
141
|
+
03191d
|
142
142
|
email: support@cloudfoundry.com
|
143
143
|
executables:
|
144
144
|
- vsphere_cpi
|