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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c5b905d442926f14b403ad97e072a617794d8a88
4
- data.tar.gz: a66362d5da3c75a9c66bbd291c8d9e9e48823d78
3
+ metadata.gz: 61fe7694316b32f7754a050430807d0e494a8cd4
4
+ data.tar.gz: 8f1613cd5d4c197e1349aa292fba39781caebb81
5
5
  SHA512:
6
- metadata.gz: 69b57b9add6e647acb311abd238325d9c1b01d2bd978a5866f497bda4c832bd4091a294f9b97cc1aa6e93b27b4f28a9c1314d818f838333e3f3860a294fac889
7
- data.tar.gz: 10822a03ca17fec0899f22345d563a842e716c7dec0cce8c3fa214ca74611d44af5d493056c49faadedc641060b7794e6d8b4287d059ad1bc2cfd725a4fa8c1a
6
+ metadata.gz: df097b72c016f06b3c49871603d15df7a383bf9f32ff522226d04cb91cd3c518ae1d0d0b6b23710685933d079d916f7dd17c3577fdcca0d44c65e859b13022b9
7
+ data.tar.gz: af36fb7f81b6e45a65d7c97edbe1f47ad99c45a1badae540b15611ad4ab9bf808c5c04c79ba4f5e685774356b4a5728080d6d1fb0ab605134a2c47067290cf1a
@@ -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
- wait_until_off(vm, 30)
317
- rescue TimeoutException
318
- case state
319
- when :initial
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}")
@@ -1,7 +1,7 @@
1
1
  module Bosh
2
2
  module Clouds
3
3
  class VSphere
4
- VERSION = '1.2669.0'
4
+ VERSION = '1.2671.0'
5
5
  end
6
6
  end
7
7
  end
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.2669.0
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-30 00:00:00.000000000 Z
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.2669.0
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.2669.0
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.2669.0
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.2669.0
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
- bf0b96
141
+ 03191d
142
142
  email: support@cloudfoundry.com
143
143
  executables:
144
144
  - vsphere_cpi