bosh_vcloud_cpi 0.6.0 → 0.7.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/vcloud/cloud.rb +3 -26
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f37afbc1162fecf305e44e4e3fd2d004440e0f86
|
4
|
+
data.tar.gz: 5b9a1c6bea686801e3859a1a9b835826d3480deb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 32d1b89e553eba40078159b99212b4c34ec4bcfbd2aa0c8fc8edebaa0c2754e03046b25cb619df10f37fe1679c1003c18792ed4eeee823ef36cca78fac9bf5a1
|
7
|
+
data.tar.gz: 9710f22a6052f689fa454ec0e84567848ffb542ea125672fad22fd8dbe1bb97f8d378b213a67f07d5a66536bd8aff1e20bcdcffd5d49098278a29f62c00595db
|
data/lib/cloud/vcloud/cloud.rb
CHANGED
@@ -197,34 +197,11 @@ module VCloudCloud
|
|
197
197
|
end
|
198
198
|
|
199
199
|
def configure_networks(vm_id, networks)
|
200
|
-
|
201
|
-
vm = s.state[:vm] = client.resolve_entity vm_id
|
202
|
-
|
203
|
-
@vapp_lock.synchronize do
|
204
|
-
# power off vm first
|
205
|
-
s.next Steps::PowerOff, :vm, true
|
206
|
-
|
207
|
-
# load container vApp
|
208
|
-
s.state[:vapp] = client.resolve_link vm.container_vapp_link
|
209
|
-
|
210
|
-
reconfigure_vm s, nil, nil, nil, networks
|
211
|
-
|
212
|
-
# update environment
|
213
|
-
s.state[:env_metadata_key] = @entities['vm_metadata_key']
|
214
|
-
s.next Steps::LoadAgentEnv
|
215
|
-
vm = s.state[:vm] = client.reload vm
|
216
|
-
Steps::CreateOrUpdateAgentEnv.update_network_env s.state[:env], vm, networks
|
217
|
-
|
218
|
-
save_agent_env s
|
219
|
-
|
220
|
-
# power on
|
221
|
-
s.next Steps::PowerOn, :vm
|
222
|
-
end
|
223
|
-
end
|
200
|
+
raise Bosh::Clouds::NotSupported, 'VDC CPI was configured to return NotSupported'
|
224
201
|
end
|
225
202
|
|
226
|
-
def create_disk(size_mb,
|
227
|
-
(steps "create_disk(#{size_mb}, #{
|
203
|
+
def create_disk(size_mb, vm_locality = nil)
|
204
|
+
(steps "create_disk(#{size_mb}, #{vm_locality.inspect})" do |s|
|
228
205
|
# vm_locality is used as vm_id
|
229
206
|
vm = vm_locality.nil? ? nil : client.resolve_entity(vm_locality)
|
230
207
|
storage_profiles = client.vdc.storage_profiles || []
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bosh_vcloud_cpi
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.7.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-
|
11
|
+
date: 2014-09-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bosh_common
|
@@ -124,7 +124,7 @@ dependencies:
|
|
124
124
|
version: '0'
|
125
125
|
description: |-
|
126
126
|
BOSH vCloud CPI
|
127
|
-
|
127
|
+
e035c4
|
128
128
|
email: support@cloudfoundry.com
|
129
129
|
executables: []
|
130
130
|
extensions: []
|