bosh_vsphere_cpi 1.2717.0 → 1.2719.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: c1bfc1c8c4a6da66256c94d4e39c05e90fb6cf92
4
- data.tar.gz: fa159df824553753dab38654cee27f8b615be3f4
3
+ metadata.gz: 78dc8a7eb2e667d88b7d2615dc9b05c473e4e199
4
+ data.tar.gz: ad1e065f7327fe484b02162fa90e2aebfc24e95e
5
5
  SHA512:
6
- metadata.gz: 9e4ea12ba7da3585ae58f9db596a2085be43214143124fb3ad4653439752dbcc1beaf947be87fc93796e6a2ed43ed538d7de682ba966ba5c92f28ab6b5efccb9
7
- data.tar.gz: e4f811edccf0391d439b27cddb9154ee30d75c9d3f854ff41083e379ed18c8e520f1fe61e9a2814bf8832e7633a444d01510d420216172e855a70a1bf52d53d6
6
+ metadata.gz: fc7191329c78d6aa802f938eea9d7c47c2b9f8113af75b7144485943b18b836049a80b06bcb66132d5bcc09b48c5913d22d74ff46980982b14c6b18a66ac4758
7
+ data.tar.gz: 8f07bbfa49a2e9a6e9f9bfee73128e1530c156673151b6a6337e8bffbcbacf5375e3b0185f7cbc2c0566c6187be912bd527b6e3913c56d6919b8b5efe4a09bff
@@ -9,7 +9,6 @@ require 'cloud/vsphere/file_provider'
9
9
  require 'cloud/vsphere/agent_env'
10
10
  require 'cloud/vsphere/lease_obtainer'
11
11
  require 'cloud/vsphere/lease_updater'
12
- require 'cloud/vsphere/drs_rules/drs_rule_cleaner'
13
12
  require 'cloud/vsphere/resources'
14
13
  require 'cloud/vsphere/resources/cluster'
15
14
  require 'cloud/vsphere/resources/datacenter'
@@ -265,12 +264,6 @@ module VSphereCloud
265
264
  end
266
265
  end
267
266
  end
268
-
269
- DrsRuleCleaner.new(
270
- @cloud_searcher,
271
- @client.service_content.custom_fields_manager,
272
- @logger
273
- ).clean
274
267
  end
275
268
  end
276
269
 
@@ -353,7 +346,7 @@ module VSphereCloud
353
346
  vm = get_vm_by_cid(vm_cid)
354
347
  devices = @cloud_searcher.get_property(vm, Vim::VirtualMachine, 'config.hardware.device', ensure_all: true)
355
348
  datacenter = client.find_parent(vm, Vim::Datacenter)
356
- datacenter_name = @cloud_searcher.get_property(datacenter, Vim::Datacenter, 'name')
349
+ datacenter_name = config.datacenter_name
357
350
  pci_controller = devices.find { |device| device.kind_of?(Vim::Vm::Device::VirtualPCIController) }
358
351
 
359
352
  config = Vim::Vm::ConfigSpec.new
@@ -1,7 +1,7 @@
1
1
  module Bosh
2
2
  module Clouds
3
3
  class VSphere
4
- VERSION = '1.2717.0'
4
+ VERSION = '1.2719.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.2717.0
4
+ version: 1.2719.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-09-16 00:00:00.000000000 Z
11
+ date: 2014-09-19 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.2717.0
19
+ version: 1.2719.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.2717.0
26
+ version: 1.2719.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.2717.0
33
+ version: 1.2719.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.2717.0
40
+ version: 1.2719.0
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: membrane
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -152,7 +152,7 @@ dependencies:
152
152
  version: 0.7.1
153
153
  description: |-
154
154
  BOSH VSphere CPI
155
- 8c135f
155
+ 024418
156
156
  email: support@cloudfoundry.com
157
157
  executables:
158
158
  - vsphere_cpi
@@ -173,7 +173,6 @@ files:
173
173
  - lib/cloud/vsphere/config.rb
174
174
  - lib/cloud/vsphere/drs_rules/drs_lock.rb
175
175
  - lib/cloud/vsphere/drs_rules/drs_rule.rb
176
- - lib/cloud/vsphere/drs_rules/drs_rule_cleaner.rb
177
176
  - lib/cloud/vsphere/drs_rules/vm_attribute_manager.rb
178
177
  - lib/cloud/vsphere/file_provider.rb
179
178
  - lib/cloud/vsphere/fixed_cluster_placer.rb
@@ -1,40 +0,0 @@
1
- require 'cloud/vsphere/drs_rules/vm_attribute_manager'
2
- require 'cloud/vsphere/drs_rules/drs_lock'
3
-
4
- module VSphereCloud
5
- class DrsRuleCleaner
6
- CUSTOM_ATTRIBUTE_NAME = 'drs_rule'
7
-
8
- def initialize(cloud_searcher, custom_fields_manager, logger)
9
- @cloud_searcher = cloud_searcher
10
- @custom_fields_manager = custom_fields_manager
11
- @logger = logger
12
-
13
- @vm_attribute_manager = VMAttributeManager.new(
14
- @custom_fields_manager,
15
- @logger
16
- )
17
- end
18
-
19
- def clean
20
- DrsLock.new(@vm_attribute_manager, @logger).with_drs_lock do
21
- unless has_tagged_vms?
22
- @logger.info('Cleaning drs rule attribute')
23
- @vm_attribute_manager.delete(CUSTOM_ATTRIBUTE_NAME)
24
- end
25
- end
26
- end
27
-
28
- private
29
-
30
- def has_tagged_vms?
31
- custom_attribute = @vm_attribute_manager.find_by_name(CUSTOM_ATTRIBUTE_NAME)
32
- return [] unless custom_attribute
33
-
34
- @cloud_searcher.has_managed_object_with_attribute?(
35
- VimSdk::Vim::VirtualMachine,
36
- custom_attribute.key
37
- )
38
- end
39
- end
40
- end