bosh-cloudfoundry 0.7.0 → 0.7.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/ChangeLog.md +1 -0
- data/README.md +7 -7
- data/bosh-cloudfoundry.gemspec +1 -1
- data/bosh_release/.final_builds/jobs/cloud_controller_ng/index.yml +30 -0
- data/bosh_release/.final_builds/jobs/collector/index.yml +5 -0
- data/bosh_release/.final_builds/jobs/dashboard/index.yml +5 -0
- data/bosh_release/.final_builds/jobs/dea_logging_agent/index.yml +17 -0
- data/bosh_release/.final_builds/jobs/dea_next/index.yml +20 -0
- data/bosh_release/.final_builds/jobs/gorouter/index.yml +15 -0
- data/bosh_release/.final_builds/jobs/health_manager_next/index.yml +15 -0
- data/bosh_release/.final_builds/jobs/loggregator/index.yml +22 -0
- data/bosh_release/.final_builds/jobs/loggregatorrouter/index.yml +7 -0
- data/bosh_release/.final_builds/jobs/login/index.yml +25 -0
- data/bosh_release/.final_builds/jobs/narc/index.yml +7 -0
- data/bosh_release/.final_builds/jobs/nats/index.yml +5 -0
- data/bosh_release/.final_builds/jobs/saml_login/index.yml +20 -0
- data/bosh_release/.final_builds/jobs/syslog_aggregator/index.yml +20 -0
- data/bosh_release/.final_builds/jobs/uaa/index.yml +15 -0
- data/bosh_release/.final_builds/packages/buildpack_cache/index.yml +5 -0
- data/bosh_release/.final_builds/packages/cfop/index.yml +7 -0
- data/bosh_release/.final_builds/packages/cloud_controller_ng/index.yml +35 -0
- data/bosh_release/.final_builds/packages/collector/index.yml +30 -0
- data/bosh_release/.final_builds/packages/dashboard/index.yml +5 -0
- data/bosh_release/.final_builds/packages/dea_logging_agent/index.yml +32 -0
- data/bosh_release/.final_builds/packages/dea_next/index.yml +35 -0
- data/bosh_release/.final_builds/packages/golang/index.yml +5 -0
- data/bosh_release/.final_builds/packages/gorouter/index.yml +35 -0
- data/bosh_release/.final_builds/packages/health_manager_next/index.yml +20 -0
- data/bosh_release/.final_builds/packages/loggregator/index.yml +32 -0
- data/bosh_release/.final_builds/packages/loggregatorrouter/index.yml +17 -0
- data/bosh_release/.final_builds/packages/login/index.yml +35 -0
- data/bosh_release/.final_builds/packages/narc/index.yml +17 -0
- data/bosh_release/.final_builds/packages/ruby/index.yml +5 -0
- data/bosh_release/.final_builds/packages/saml_login/index.yml +35 -0
- data/bosh_release/.final_builds/packages/syslog_aggregator/index.yml +5 -0
- data/bosh_release/.final_builds/packages/uaa/index.yml +35 -0
- data/bosh_release/.final_builds/packages/warden/index.yml +20 -0
- data/bosh_release/config/final.yml +1 -1
- data/bosh_release/releases/cf-136.yml +336 -0
- data/bosh_release/releases/cf-137.yml +329 -0
- data/bosh_release/releases/cf-138.yml +323 -0
- data/bosh_release/releases/cf-139.yml +350 -0
- data/bosh_release/releases/cf-140.yml +350 -0
- data/bosh_release/releases/cf-141.yml +349 -0
- data/bosh_release/releases/cf-release-135.yml +310 -0
- data/bosh_release/releases/index.yml +14 -0
- data/lib/bosh/cli/commands/01_prepare_bosh_for_cf.rb +11 -1
- data/lib/bosh/cli/commands/02_create_cf.rb +2 -0
- data/lib/bosh/cloudfoundry/deployment_attributes.rb +29 -3
- data/lib/bosh/cloudfoundry/release_version.rb +11 -2
- data/spec/assets/v132/aws/large.yml +2 -3
- data/spec/assets/v132/aws/medium.yml +4 -5
- data/spec/assets/v133/aws/large.yml +2 -3
- data/spec/assets/v133/aws/medium.yml +4 -5
- data/spec/assets/v141/aws/large.yml +334 -0
- data/spec/assets/v141/aws/medium.yml +293 -0
- data/spec/commands/command_prepare_cf_spec.rb +3 -5
- data/spec/deployment_attributes_spec.rb +6 -4
- data/spec/deployment_file_spec.rb +22 -20
- data/spec/release_version_cpi_spec.rb +2 -4
- data/spec/release_version_spec.rb +3 -5
- data/spec/spec_helper.rb +4 -0
- data/templates/v132/aws/large/deployment_file.yml.erb +2 -3
- data/templates/v132/aws/medium/deployment_file.yml.erb +4 -5
- data/templates/v132/openstack/large/deployment_file.yml.erb +2 -3
- data/templates/v132/openstack/medium/deployment_file.yml.erb +4 -5
- data/templates/v133/aws/large/deployment_file.yml.erb +2 -3
- data/templates/v133/aws/medium/deployment_file.yml.erb +4 -5
- data/templates/v133/openstack/large/deployment_file.yml.erb +2 -3
- data/templates/v133/openstack/medium/deployment_file.yml.erb +4 -5
- data/templates/v134/aws/large/deployment_file.yml.erb +2 -3
- data/templates/v134/aws/medium/deployment_file.yml.erb +4 -5
- data/templates/v134/openstack/large/deployment_file.yml.erb +2 -3
- data/templates/v134/openstack/medium/deployment_file.yml.erb +4 -5
- data/templates/v136/aws/large/deployment_file.yml.erb +371 -0
- data/templates/v136/aws/large/spec +6 -0
- data/templates/v136/aws/medium/deployment_file.yml.erb +330 -0
- data/templates/v136/aws/medium/spec +6 -0
- data/templates/v136/aws/small/README.md +5 -0
- data/templates/v136/aws/spec +6 -0
- data/templates/v136/openstack/large/deployment_file.yml.erb +371 -0
- data/templates/v136/openstack/large/spec +6 -0
- data/templates/v136/openstack/medium/deployment_file.yml.erb +330 -0
- data/templates/v136/openstack/medium/spec +6 -0
- data/templates/v136/openstack/spec +6 -0
- data/templates/v136/spec +14 -0
- data/templates/v141/aws/large/deployment_file.yml.erb +373 -0
- data/templates/v141/aws/large/spec +6 -0
- data/templates/v141/aws/medium/deployment_file.yml.erb +332 -0
- data/templates/v141/aws/medium/spec +6 -0
- data/templates/v141/aws/small/README.md +5 -0
- data/templates/v141/aws/spec +6 -0
- data/templates/v141/openstack/large/deployment_file.yml.erb +372 -0
- data/templates/v141/openstack/large/spec +6 -0
- data/templates/v141/openstack/medium/deployment_file.yml.erb +331 -0
- data/templates/v141/openstack/medium/spec +6 -0
- data/templates/v141/openstack/spec +6 -0
- data/templates/v141/spec +16 -0
- data/tutorials/activities/repair-a-cloud-foundry.md +128 -0
- data/tutorials/build-your-own-heroku-with-cloudfoundry.md +12 -11
- metadata +49 -4
|
@@ -0,0 +1,331 @@
|
|
|
1
|
+
---
|
|
2
|
+
<%-
|
|
3
|
+
# Example source deployment file that can be used:
|
|
4
|
+
# ---
|
|
5
|
+
# name: NAME
|
|
6
|
+
# director_uuid: 4ae3a0f0-70a5-4c0d-95f2-7fafaefe8b9e
|
|
7
|
+
# releases:
|
|
8
|
+
# - name: cf
|
|
9
|
+
# version: 141
|
|
10
|
+
# networks: {}
|
|
11
|
+
# properties:
|
|
12
|
+
# cf:
|
|
13
|
+
# dns: mycloud.com
|
|
14
|
+
# ip_addresses: ['1.2.3.4']
|
|
15
|
+
# deployment_size: medium
|
|
16
|
+
# security_group: cf
|
|
17
|
+
# persistent_disk: 4096
|
|
18
|
+
#
|
|
19
|
+
# Then target that deployment file:
|
|
20
|
+
#
|
|
21
|
+
# $ bosh deployment path/to/file/above
|
|
22
|
+
#
|
|
23
|
+
# Then apply this template:
|
|
24
|
+
#
|
|
25
|
+
# $ bosh diff deployment_file.yml.erb
|
|
26
|
+
#
|
|
27
|
+
no_ssl = true
|
|
28
|
+
protocol = no_ssl ? "http" : "https"
|
|
29
|
+
name = find("name")
|
|
30
|
+
dns = find("properties.cf.dns")
|
|
31
|
+
ip_addresses = find("properties.cf.ip_addresses")
|
|
32
|
+
security_group = find("properties.cf.security_group")
|
|
33
|
+
deployment_size = find("properties.cf.deployment_size")
|
|
34
|
+
persistent_disk = find("properties.cf.persistent_disk")
|
|
35
|
+
common_password = find("properties.cf.common_password")
|
|
36
|
+
dea_server_ram = find("properties.cf.dea_server_ram") # expected ram available on dea server
|
|
37
|
+
dea_container_depot_disk = 10*1024 # 10G is common minimal root or ephemeral disk size for all IaaS
|
|
38
|
+
-%>
|
|
39
|
+
name: <%= name %>
|
|
40
|
+
director_uuid: <%= find("director_uuid") %>
|
|
41
|
+
|
|
42
|
+
releases:
|
|
43
|
+
- name: cf
|
|
44
|
+
version: 141
|
|
45
|
+
|
|
46
|
+
networks:
|
|
47
|
+
- name: floating
|
|
48
|
+
type: vip
|
|
49
|
+
cloud_properties: {}
|
|
50
|
+
- name: default
|
|
51
|
+
type: dynamic
|
|
52
|
+
cloud_properties:
|
|
53
|
+
security_groups:
|
|
54
|
+
- <%= security_group %>
|
|
55
|
+
|
|
56
|
+
update:
|
|
57
|
+
canaries: 1
|
|
58
|
+
canary_watch_time: 30000-60000
|
|
59
|
+
update_watch_time: 30000-60000
|
|
60
|
+
max_in_flight: 4
|
|
61
|
+
|
|
62
|
+
compilation:
|
|
63
|
+
workers: 6
|
|
64
|
+
network: default
|
|
65
|
+
reuse_compilation_vms: true
|
|
66
|
+
cloud_properties:
|
|
67
|
+
instance_type: m1.medium
|
|
68
|
+
|
|
69
|
+
resource_pools:
|
|
70
|
+
- name: small
|
|
71
|
+
network: default
|
|
72
|
+
size: 4
|
|
73
|
+
stemcell:
|
|
74
|
+
name: bosh-stemcell
|
|
75
|
+
version: latest
|
|
76
|
+
cloud_properties:
|
|
77
|
+
instance_type: m1.small
|
|
78
|
+
|
|
79
|
+
- name: medium
|
|
80
|
+
network: default
|
|
81
|
+
size: 0
|
|
82
|
+
stemcell:
|
|
83
|
+
name: bosh-stemcell
|
|
84
|
+
version: latest
|
|
85
|
+
cloud_properties:
|
|
86
|
+
instance_type: m1.medium
|
|
87
|
+
|
|
88
|
+
jobs:
|
|
89
|
+
- name: data
|
|
90
|
+
release: cf
|
|
91
|
+
template:
|
|
92
|
+
- postgres
|
|
93
|
+
- debian_nfs_server
|
|
94
|
+
instances: 1
|
|
95
|
+
resource_pool: small
|
|
96
|
+
persistent_disk: <%= persistent_disk %>
|
|
97
|
+
networks:
|
|
98
|
+
- name: default
|
|
99
|
+
default:
|
|
100
|
+
- dns
|
|
101
|
+
- gateway
|
|
102
|
+
properties:
|
|
103
|
+
db: databases
|
|
104
|
+
|
|
105
|
+
- name: core
|
|
106
|
+
release: cf
|
|
107
|
+
template:
|
|
108
|
+
- nats
|
|
109
|
+
- health_manager_next
|
|
110
|
+
- uaa
|
|
111
|
+
instances: 1
|
|
112
|
+
resource_pool: small
|
|
113
|
+
networks:
|
|
114
|
+
- name: default
|
|
115
|
+
default:
|
|
116
|
+
- dns
|
|
117
|
+
- gateway
|
|
118
|
+
|
|
119
|
+
- name: api
|
|
120
|
+
release: cf
|
|
121
|
+
template:
|
|
122
|
+
- cloud_controller_ng
|
|
123
|
+
- gorouter
|
|
124
|
+
instances: 1
|
|
125
|
+
resource_pool: small
|
|
126
|
+
networks:
|
|
127
|
+
- name: default
|
|
128
|
+
default:
|
|
129
|
+
- dns
|
|
130
|
+
- gateway
|
|
131
|
+
- name: floating
|
|
132
|
+
static_ips:
|
|
133
|
+
<%- ip_addresses.each do |ip| -%>
|
|
134
|
+
- <%= ip %>
|
|
135
|
+
<%- end -%>
|
|
136
|
+
properties:
|
|
137
|
+
db: databases
|
|
138
|
+
|
|
139
|
+
- name: dea
|
|
140
|
+
release: cf
|
|
141
|
+
template:
|
|
142
|
+
- dea_next
|
|
143
|
+
instances: 1
|
|
144
|
+
resource_pool: small
|
|
145
|
+
networks:
|
|
146
|
+
- name: default
|
|
147
|
+
default: [dns, gateway]
|
|
148
|
+
|
|
149
|
+
properties:
|
|
150
|
+
cf:
|
|
151
|
+
name: <%= name %>
|
|
152
|
+
dns: <%= dns %>
|
|
153
|
+
ip_addresses: <%= ip_addresses.inspect %>
|
|
154
|
+
deployment_size: <%= deployment_size %>
|
|
155
|
+
security_group: <%= security_group %>
|
|
156
|
+
persistent_disk: <%= persistent_disk %>
|
|
157
|
+
common_password: <%= common_password %>
|
|
158
|
+
dea_server_ram: <%= dea_server_ram %>
|
|
159
|
+
|
|
160
|
+
domain: <%= dns %>
|
|
161
|
+
system_domain: <%= dns %>.com
|
|
162
|
+
system_domain_organization: system_domain
|
|
163
|
+
app_domains:
|
|
164
|
+
- <%= dns %>
|
|
165
|
+
|
|
166
|
+
networks:
|
|
167
|
+
apps: default
|
|
168
|
+
management: default
|
|
169
|
+
|
|
170
|
+
nats:
|
|
171
|
+
address: 0.core.default.<%= name %>.microbosh
|
|
172
|
+
port: 4222
|
|
173
|
+
user: nats
|
|
174
|
+
password: <%= common_password %>
|
|
175
|
+
authorization_timeout: 5
|
|
176
|
+
|
|
177
|
+
router:
|
|
178
|
+
port: 8081
|
|
179
|
+
status:
|
|
180
|
+
port: 8080
|
|
181
|
+
user: gorouter
|
|
182
|
+
password: <%= common_password %>
|
|
183
|
+
|
|
184
|
+
dea: &dea
|
|
185
|
+
memory_mb: <%= dea_server_ram %>
|
|
186
|
+
disk_mb: <%= dea_container_depot_disk %>
|
|
187
|
+
directory_server_protocol: <%= protocol %>
|
|
188
|
+
|
|
189
|
+
dea_next: *dea
|
|
190
|
+
|
|
191
|
+
syslog_aggregator:
|
|
192
|
+
address: 0.syslog-aggregator.default.<%= name %>.microbosh
|
|
193
|
+
port: 54321
|
|
194
|
+
|
|
195
|
+
nfs_server:
|
|
196
|
+
address: 0.data.default.<%= name %>.microbosh
|
|
197
|
+
network: "*.<%= name %>.microbosh"
|
|
198
|
+
idmapd_domain: <%= dns %>
|
|
199
|
+
|
|
200
|
+
debian_nfs_server:
|
|
201
|
+
no_root_squash: true
|
|
202
|
+
|
|
203
|
+
databases: &databases
|
|
204
|
+
db_scheme: postgres
|
|
205
|
+
address: 0.data.default.<%= name %>.microbosh
|
|
206
|
+
port: 5524
|
|
207
|
+
roles:
|
|
208
|
+
- tag: admin
|
|
209
|
+
name: ccadmin
|
|
210
|
+
password: <%= common_password %>
|
|
211
|
+
- tag: admin
|
|
212
|
+
name: uaaadmin
|
|
213
|
+
password: <%= common_password %>
|
|
214
|
+
databases:
|
|
215
|
+
- tag: cc
|
|
216
|
+
name: ccdb
|
|
217
|
+
citext: true
|
|
218
|
+
- tag: uaa
|
|
219
|
+
name: uaadb
|
|
220
|
+
citext: true
|
|
221
|
+
|
|
222
|
+
ccdb: &ccdb
|
|
223
|
+
db_scheme: postgres
|
|
224
|
+
address: 0.data.default.<%= name %>.microbosh
|
|
225
|
+
port: 5524
|
|
226
|
+
roles:
|
|
227
|
+
- tag: admin
|
|
228
|
+
name: ccadmin
|
|
229
|
+
password: <%= common_password %>
|
|
230
|
+
databases:
|
|
231
|
+
- tag: cc
|
|
232
|
+
name: ccdb
|
|
233
|
+
citext: true
|
|
234
|
+
|
|
235
|
+
ccdb_ng: *ccdb
|
|
236
|
+
|
|
237
|
+
uaadb:
|
|
238
|
+
db_scheme: postgresql
|
|
239
|
+
address: 0.data.default.<%= name %>.microbosh
|
|
240
|
+
port: 5524
|
|
241
|
+
roles:
|
|
242
|
+
- tag: admin
|
|
243
|
+
name: uaaadmin
|
|
244
|
+
password: <%= common_password %>
|
|
245
|
+
databases:
|
|
246
|
+
- tag: uaa
|
|
247
|
+
name: uaadb
|
|
248
|
+
citext: true
|
|
249
|
+
|
|
250
|
+
cc_api_version: v2
|
|
251
|
+
|
|
252
|
+
cc: &cc
|
|
253
|
+
logging_level: debug
|
|
254
|
+
external_host: ccng
|
|
255
|
+
srv_api_uri: <%= protocol %>://api.<%= dns %>
|
|
256
|
+
cc_partition: default
|
|
257
|
+
db_encryption_key: <%= common_password %>
|
|
258
|
+
bootstrap_admin_email: admin@<%= dns %>
|
|
259
|
+
bulk_api_password: <%= common_password %>
|
|
260
|
+
uaa_resource_id: cloud_controller
|
|
261
|
+
staging_upload_user: uploaduser
|
|
262
|
+
staging_upload_password: <%= common_password %>
|
|
263
|
+
resource_pool:
|
|
264
|
+
resource_directory_key: cc-resources
|
|
265
|
+
# Local provider when using NFS
|
|
266
|
+
fog_connection:
|
|
267
|
+
provider: Local
|
|
268
|
+
local_root: /var/vcap/shared
|
|
269
|
+
packages:
|
|
270
|
+
app_package_directory_key: cc-packages
|
|
271
|
+
droplets:
|
|
272
|
+
droplet_directory_key: cc-droplets
|
|
273
|
+
default_quota_definition: runaway
|
|
274
|
+
|
|
275
|
+
ccng: *cc
|
|
276
|
+
|
|
277
|
+
login:
|
|
278
|
+
enabled: false
|
|
279
|
+
|
|
280
|
+
uaa:
|
|
281
|
+
url: <%= protocol %>://uaa.<%= dns %>
|
|
282
|
+
spring_profiles: postgresql
|
|
283
|
+
no_ssl: <%= no_ssl %>
|
|
284
|
+
catalina_opts: -Xmx768m -XX:MaxPermSize=256m
|
|
285
|
+
resource_id: account_manager
|
|
286
|
+
jwt:
|
|
287
|
+
signing_key: |
|
|
288
|
+
-----BEGIN RSA PRIVATE KEY-----
|
|
289
|
+
MIICXAIBAAKBgQDHFr+KICms+tuT1OXJwhCUmR2dKVy7psa8xzElSyzqx7oJyfJ1
|
|
290
|
+
JZyOzToj9T5SfTIq396agbHJWVfYphNahvZ/7uMXqHxf+ZH9BL1gk9Y6kCnbM5R6
|
|
291
|
+
0gfwjyW1/dQPjOzn9N394zd2FJoFHwdq9Qs0wBugspULZVNRxq7veq/fzwIDAQAB
|
|
292
|
+
AoGBAJ8dRTQFhIllbHx4GLbpTQsWXJ6w4hZvskJKCLM/o8R4n+0W45pQ1xEiYKdA
|
|
293
|
+
Z/DRcnjltylRImBD8XuLL8iYOQSZXNMb1h3g5/UGbUXLmCgQLOUUlnYt34QOQm+0
|
|
294
|
+
KvUqfMSFBbKMsYBAoQmNdTHBaz3dZa8ON9hh/f5TT8u0OWNRAkEA5opzsIXv+52J
|
|
295
|
+
duc1VGyX3SwlxiE2dStW8wZqGiuLH142n6MKnkLU4ctNLiclw6BZePXFZYIK+AkE
|
|
296
|
+
xQ+k16je5QJBAN0TIKMPWIbbHVr5rkdUqOyezlFFWYOwnMmw/BKa1d3zp54VP/P8
|
|
297
|
+
+5aQ2d4sMoKEOfdWH7UqMe3FszfYFvSu5KMCQFMYeFaaEEP7Jn8rGzfQ5HQd44ek
|
|
298
|
+
lQJqmq6CE2BXbY/i34FuvPcKU70HEEygY6Y9d8J3o6zQ0K9SYNu+pcXt4lkCQA3h
|
|
299
|
+
jJQQe5uEGJTExqed7jllQ0khFJzLMx0K6tj0NeeIzAaGCQz13oo2sCdeGRHO4aDh
|
|
300
|
+
HH6Qlq/6UOV5wP8+GAcCQFgRCcB+hrje8hfEEefHcFpyKH+5g1Eu1k0mLrxK2zd+
|
|
301
|
+
4SlotYRHgPCEubokb2S1zfZDWIXW3HmggnGgM949TlY=
|
|
302
|
+
-----END RSA PRIVATE KEY-----
|
|
303
|
+
verification_key: |
|
|
304
|
+
-----BEGIN PUBLIC KEY-----
|
|
305
|
+
MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDHFr+KICms+tuT1OXJwhCUmR2d
|
|
306
|
+
KVy7psa8xzElSyzqx7oJyfJ1JZyOzToj9T5SfTIq396agbHJWVfYphNahvZ/7uMX
|
|
307
|
+
qHxf+ZH9BL1gk9Y6kCnbM5R60gfwjyW1/dQPjOzn9N394zd2FJoFHwdq9Qs0wBug
|
|
308
|
+
spULZVNRxq7veq/fzwIDAQAB
|
|
309
|
+
-----END PUBLIC KEY-----
|
|
310
|
+
cc:
|
|
311
|
+
client_secret: <%= common_password %>
|
|
312
|
+
admin:
|
|
313
|
+
client_secret: <%= common_password %>
|
|
314
|
+
batch:
|
|
315
|
+
username: batchuser
|
|
316
|
+
password: <%= common_password %>
|
|
317
|
+
client:
|
|
318
|
+
autoapprove:
|
|
319
|
+
- cf
|
|
320
|
+
clients:
|
|
321
|
+
cf:
|
|
322
|
+
override: true
|
|
323
|
+
authorized-grant-types: password,implicit,refresh_token
|
|
324
|
+
authorities: uaa.none
|
|
325
|
+
scope: cloud_controller.read,cloud_controller.write,openid,password.write,cloud_controller.admin,scim.read,scim.write
|
|
326
|
+
access-token-validity: 7200
|
|
327
|
+
refresh-token-validity: 1209600
|
|
328
|
+
scim:
|
|
329
|
+
users:
|
|
330
|
+
- admin|<%= common_password %>|scim.write,scim.read,openid,cloud_controller.admin
|
|
331
|
+
- services|<%= common_password %>|scim.write,scim.read,openid,cloud_controller.admin
|
data/templates/v141/spec
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
---
|
|
2
|
+
available_cpi:
|
|
3
|
+
- aws
|
|
4
|
+
- openstack
|
|
5
|
+
|
|
6
|
+
mutable_attributes:
|
|
7
|
+
- ip_addresses
|
|
8
|
+
- persistent_disk
|
|
9
|
+
- security_group
|
|
10
|
+
- dns
|
|
11
|
+
- dea_server_ram
|
|
12
|
+
- dea_container_depot_disk
|
|
13
|
+
immutable_attributes:
|
|
14
|
+
- common_password
|
|
15
|
+
- deployment_size
|
|
16
|
+
- name
|
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
# Overview
|
|
2
|
+
|
|
3
|
+
BOSH is capable of repairing certain issues with your deployments, for example if a VM dies and needs rebuilding.
|
|
4
|
+
|
|
5
|
+
## Cloud Check
|
|
6
|
+
|
|
7
|
+
First, let's take a look at my BOSH Cloud Foundry deployment:
|
|
8
|
+
|
|
9
|
+
```
|
|
10
|
+
$ bosh vms
|
|
11
|
+
Deployment `cf'
|
|
12
|
+
|
|
13
|
+
Director task 151
|
|
14
|
+
|
|
15
|
+
Task 151 done
|
|
16
|
+
|
|
17
|
+
+---------------------------+--------------------+---------------+-------------------------------+
|
|
18
|
+
| Job/index | State | Resource Pool | IPs |
|
|
19
|
+
+---------------------------+--------------------+---------------+-------------------------------+
|
|
20
|
+
| unknown/unknown | unresponsive agent | | |
|
|
21
|
+
| api/0 | running | small | 10.238.151.60, 54.221.248.230 |
|
|
22
|
+
| core/0 | running | small | 10.151.15.70 |
|
|
23
|
+
| data/0 | running | small | 10.151.108.188 |
|
|
24
|
+
| dea/0 | running | small | 10.151.120.68 |
|
|
25
|
+
| gateways/0 | running | medium | 10.179.15.18 |
|
|
26
|
+
| memcached_service_node/0 | running | medium | 10.178.11.201 |
|
|
27
|
+
| mongodb_service_node/0 | running | medium | 10.152.151.84 |
|
|
28
|
+
| postgresql_service_node/0 | running | medium | 10.178.10.187 |
|
|
29
|
+
| redis_service_node/0 | running | medium | 10.164.102.90 |
|
|
30
|
+
+---------------------------+--------------------+---------------+-------------------------------+
|
|
31
|
+
|
|
32
|
+
VMs total: 10
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
Oh, it looks like one of my vm's has died! In this case, I just terminated it on AWS. How do I bring it back up? Enter stage right, `bosh cloudcheck`.
|
|
36
|
+
|
|
37
|
+
First, let's check I'm targeting the right deployment.
|
|
38
|
+
|
|
39
|
+
```
|
|
40
|
+
$ bosh deployment bosh-workspace/deployments/cf/cf.yml
|
|
41
|
+
Deployment set to `/home/ubuntu/bosh-workspace/deployments/cf/cf.yml'
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
Now let's check it with BOSH.
|
|
45
|
+
|
|
46
|
+
```
|
|
47
|
+
$ bosh cloudcheck
|
|
48
|
+
Performing cloud check...
|
|
49
|
+
|
|
50
|
+
Director task 154
|
|
51
|
+
|
|
52
|
+
Scanning 10 VMs
|
|
53
|
+
checking VM states (00:00:15)
|
|
54
|
+
9 OK, 0 unresponsive, 1 missing, 0 unbound, 0 out of sync (00:00:00)
|
|
55
|
+
Done 2/2 00:00:15
|
|
56
|
+
|
|
57
|
+
Scanning 6 persistent disks
|
|
58
|
+
looking for inactive disks (00:00:00)
|
|
59
|
+
6 OK, 0 inactive, 0 mount-info mismatch (00:00:00)
|
|
60
|
+
Done 2/2 00:00:00
|
|
61
|
+
|
|
62
|
+
Task 154 done
|
|
63
|
+
Started 2013-09-05 19:45:28 UTC
|
|
64
|
+
Finished 2013-09-05 19:45:43 UTC
|
|
65
|
+
Duration 00:00:15
|
|
66
|
+
|
|
67
|
+
Scan is complete, checking if any problems found...
|
|
68
|
+
|
|
69
|
+
Found 1 problem
|
|
70
|
+
```
|
|
71
|
+
|
|
72
|
+
That's nice, it found my problem. Now it offers me solutions to each problem it found (it could be multiple if say a piece of hardware died that had multiple vm's running on it.
|
|
73
|
+
|
|
74
|
+
```
|
|
75
|
+
Problem 1 of 1: VM with cloud ID `i-24cfa948' missing.
|
|
76
|
+
1. Ignore problem
|
|
77
|
+
2. Recreate VM using last known apply spec
|
|
78
|
+
3. Delete VM reference (DANGEROUS!)
|
|
79
|
+
Please choose a resolution [1 - 3]: 2
|
|
80
|
+
|
|
81
|
+
Below is the list of resolutions you've provided
|
|
82
|
+
Please make sure everything is fine and confirm your changes
|
|
83
|
+
|
|
84
|
+
1. VM with cloud ID `i-24cfa948' missing.
|
|
85
|
+
Recreate VM using last known apply spec
|
|
86
|
+
|
|
87
|
+
Apply resolutions? (type 'yes' to continue): yes
|
|
88
|
+
Applying resolutions...
|
|
89
|
+
|
|
90
|
+
Director task 155
|
|
91
|
+
|
|
92
|
+
Applying problem resolutions
|
|
93
|
+
missing_vm 86: Recreate VM using last known apply spec (00:01:47)
|
|
94
|
+
Done 1/1 00:01:47
|
|
95
|
+
|
|
96
|
+
Task 155 done
|
|
97
|
+
Started 2013-09-05 19:46:53 UTC
|
|
98
|
+
Finished 2013-09-05 19:48:40 UTC
|
|
99
|
+
Duration 00:01:47
|
|
100
|
+
Cloudcheck is finished
|
|
101
|
+
```
|
|
102
|
+
|
|
103
|
+
There we go, all fixed. Here's what our vm's look like now. All fixed:
|
|
104
|
+
|
|
105
|
+
```
|
|
106
|
+
Deployment `cf'
|
|
107
|
+
|
|
108
|
+
Director task 156
|
|
109
|
+
|
|
110
|
+
Task 156 done
|
|
111
|
+
|
|
112
|
+
+---------------------------+---------+---------------+-------------------------------+
|
|
113
|
+
| Job/index | State | Resource Pool | IPs |
|
|
114
|
+
+---------------------------+---------+---------------+-------------------------------+
|
|
115
|
+
| api/0 | running | small | 10.238.151.60, 54.221.248.231 |
|
|
116
|
+
| core/0 | running | small | 10.151.15.70 |
|
|
117
|
+
| data/0 | running | small | 10.151.108.188 |
|
|
118
|
+
| dea/0 | running | small | 10.151.120.68 |
|
|
119
|
+
| gateways/0 | running | medium | 10.179.15.18 |
|
|
120
|
+
| memcached_service_node/0 | running | medium | 10.178.11.201 |
|
|
121
|
+
| mongodb_service_node/0 | running | medium | 10.152.151.84 |
|
|
122
|
+
| postgresql_service_node/0 | running | medium | 10.178.10.187 |
|
|
123
|
+
| redis_service_node/0 | running | medium | 10.164.102.90 |
|
|
124
|
+
| vblob_service_node/0 | running | medium | 10.184.12.177 |
|
|
125
|
+
+---------------------------+---------+---------------+-------------------------------+
|
|
126
|
+
|
|
127
|
+
VMs total: 10
|
|
128
|
+
```
|