blob: ec785e9498ae14eb93d6d03dcf38ac56ba38462d [file] [log] [blame]
Dennis Dmitriev81da4222020-02-25 17:53:04 +02001resource_registry:
2 "MCP2::NetworkAcc": ../fragments/NetworkAccBM.yaml
3 "MCP2::NetworkAccStorage": ../fragments/NetworkAccVMStorage.yaml
4 "MCP2::NetworkPrvFl": ../fragments/NetworkPrvFl.yaml
5 "MCP2::SrvInstances": ../fragments/SrvInstancesBM.yaml
6 "MCP2::SrvInstancesCeph": ../fragments/SrvInstancesBMCeph.yaml
7 "MCP2::SrvInstancesCephOSD": ../fragments/SrvInstancesBMCephOSD.yaml
8
9parameters:
10 image: bionic-server-cloudimg-amd64-20190612
11 ucp_flavor: si-bm-410-128-16-hdd0-ssd2x1t
12 masters_flavor: si-bm-410-128-16-hdd0-ssd2x1t
13 workers_flavor: si-bm-410-128-32-hdd0-ssd2x1t
14 cmps_flavor: oscore-bm-lab-01
15 gtws_flavor: oscore-bm-lab-01
16 lmas_flavor: oscore-bm-lab-01
17 osds_flavor: si-bm-410-64-16-hdd2x2t-ssd1x500g
18 spares_flavor: si-bm-410-64-16-hdd2x2t-ssd1x500g
19 masters_size: 2 # UCP nodes
20 worker_size: 3 # OpenStack controller nodes
21 cmp_size: 0
22 gtw_size: 0
23 lma_size: 0
24 osd_size: 3
25 spare_size: 1
26 ucp_boot_timeout: 1200
27 cluster_public_key: ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCp0evjOaK8c8SKYK4r2+0BN7g+8YSvQ2n8nFgOURCyvkJqOHi1qPGZmuN0CclYVdVuZiXbWw3VxRbSW3EH736VzgY1U0JmoTiSamzLHaWsXvEIW8VCi7boli539QJP0ikJiBaNAgZILyCrVPN+A6mfqtacs1KXdZ0zlMq1BPtFciR1JTCRcVs5vP2Wwz5QtY2jMIh3aiwkePjMTQPcfmh1TkOlxYu5IbQyZ3G1ahA0mNKI9a0dtF282av/F6pwB/N1R1nEZ/9VtcN2I1mf1NW/tTHEEcTzXYo1R/8K9vlqAN8QvvGLZtZduGviNVNoNWvoxaXxDt8CPv2B2NCdQFZp
28 public_net_id: 'physnet1-410'
29 control_network_cidr: '172.16.50.0/25'
30 private_floating_network_cidr: '172.16.51.0/25'
31 private_floating_network_pool_start: '172.16.51.10'
32 private_floating_network_pool_end: '172.16.51.30'
33 private_floating_network_ipam_pool_start: '172.16.51.31'
34 private_floating_network_ipam_pool_end: '172.16.51.62'
35 private_floating_network_gateway: '172.16.51.1'
36 private_floating_interface: 'os-floating'
37 tunnel_interface: 'os-tenant'
38 live_migration_interface: 'os-tenant'
39 #master_metadata: {"labels": {"role": "stacklight", "stacklight": "enabled"}}
40 worker_metadata: {"labels": {"openstack-control-plane":"enabled", "openstack-compute-node":"enabled", "openvswitch":"enabled", "gateway": "enabled"}}
41 osd_metadata: {"labels": {"role": "ceph-osd-node"}}
42 spare_metadata: {"labels": {"role": "spare-node"}}
43
44
45 hardware_metadata: |
46 '0c:c4:7a:33:26:7c':
47 write_files:
48 - path: '/etc/netplan/99-cz7714.yaml'
49 content: |
50 network:
51 version: 2
52 ethernets:
53 eno1:
54 dhcp4: false
55 ens3f1:
56 dhcp4: false
57 ens3f2:
58 dhcp4: false
59 ens3f3:
60 dhcp4: false
61 bonds:
62 bond0:
63 dhcp4: no
64 interfaces: [eno1, ens3f1]
65 parameters:
66 mode: active-backup
67 mii-monitor-interval: 1
68 bond1:
69 dhcp4: no
70 interfaces: [ens3f2, ens3f3]
71 parameters:
72 mode: active-backup
73 mii-monitor-interval: 1
74 vlans:
75 k8s-control:
76 id: 411
77 link: bond0
78 os-floating:
79 id: 412
80 link: bond1
81 k8s-metallb:
82 id: 413
83 link: bond0
84 k8s-dataplane:
85 id: 414
86 link: bond0
87 os-storage:
88 id: 415
89 link: bond1
90 os-tenant:
91 id: 416
92 link: bond1
93
94 '0c:c4:7a:33:26:6e':
95 write_files:
96 - path: '/etc/netplan/99-cz7725.yaml'
97 content: |
98 network:
99 version: 2
100 ethernets:
101 eno1:
102 dhcp4: false
103 ens3f1:
104 dhcp4: false
105 ens3f2:
106 dhcp4: false
107 ens3f3:
108 dhcp4: false
109 bonds:
110 bond0:
111 dhcp4: no
112 interfaces: [eno1, ens3f1]
113 parameters:
114 mode: active-backup
115 mii-monitor-interval: 1
116 bond1:
117 dhcp4: no
118 interfaces: [ens3f2, ens3f3]
119 parameters:
120 mode: active-backup
121 mii-monitor-interval: 1
122 vlans:
123 k8s-control:
124 id: 411
125 link: bond0
126 os-floating:
127 id: 412
128 link: bond1
129 k8s-metallb:
130 id: 413
131 link: bond0
132 k8s-dataplane:
133 id: 414
134 link: bond0
135 os-storage:
136 id: 415
137 link: bond1
138 os-tenant:
139 id: 416
140 link: bond1
141
142 '0c:c4:7a:33:26:6a':
143 write_files:
144 - path: '/etc/netplan/99-cz7725.yaml'
145 content: |
146 network:
147 version: 2
148 ethernets:
149 eno1:
150 dhcp4: false
151 ens3f1:
152 dhcp4: false
153 ens3f2:
154 dhcp4: false
155 ens3f3:
156 dhcp4: false
157 bonds:
158 bond0:
159 dhcp4: no
160 interfaces: [eno1, ens3f1]
161 parameters:
162 mode: active-backup
163 mii-monitor-interval: 1
164 bond1:
165 dhcp4: no
166 interfaces: [ens3f2, ens3f3]
167 parameters:
168 mode: active-backup
169 mii-monitor-interval: 1
170 vlans:
171 k8s-control:
172 id: 411
173 link: bond0
174 os-floating:
175 id: 412
176 link: bond1
177 k8s-metallb:
178 id: 413
179 link: bond0
180 k8s-dataplane:
181 id: 414
182 link: bond0
183 os-storage:
184 id: 415
185 link: bond1
186 os-tenant:
187 id: 416
188 link: bond1
189
190 '0c:c4:7a:34:92:94':
191 write_files:
192 - path: '/etc/netplan/99-cz7725.yaml'
193 content: |
194 network:
195 version: 2
196 ethernets:
197 eno1:
198 dhcp4: false
199 ens3f1:
200 dhcp4: false
201 ens3f2:
202 dhcp4: false
203 ens3f3:
204 dhcp4: false
205 bonds:
206 bond0:
207 dhcp4: no
208 interfaces: [eno1, ens3f1]
209 parameters:
210 mode: active-backup
211 mii-monitor-interval: 1
212 bond1:
213 dhcp4: no
214 interfaces: [ens3f2, ens3f3]
215 parameters:
216 mode: active-backup
217 mii-monitor-interval: 1
218 vlans:
219 k8s-control:
220 id: 411
221 link: bond0
222 os-floating:
223 id: 412
224 link: bond1
225 k8s-metallb:
226 id: 413
227 link: bond0
228 k8s-dataplane:
229 id: 414
230 link: bond0
231 os-storage:
232 id: 415
233 link: bond1
234 os-tenant:
235 id: 416
236 link: bond1
237
238 '0c:c4:7a:aa:e0:9e':
239 write_files:
240 - path: '/etc/netplan/99-cz7725.yaml'
241 content: |
242 network:
243 version: 2
244 ethernets:
245 ens11f0:
246 dhcp4: false
247 ens11f1:
248 dhcp4: false
249 ens11f2:
250 dhcp4: false
251 ens11f3:
252 dhcp4: false
253 bonds:
254 bond0:
255 dhcp4: no
256 interfaces: [ens11f0, ens11f1]
257 parameters:
258 mode: active-backup
259 mii-monitor-interval: 1
260 bond1:
261 dhcp4: no
262 interfaces: [ens11f2, ens11f3]
263 parameters:
264 mode: active-backup
265 mii-monitor-interval: 1
266 vlans:
267 k8s-control:
268 id: 411
269 link: bond0
270 os-floating:
271 id: 412
272 link: bond1
273 k8s-metallb:
274 id: 413
275 link: bond0
276 k8s-dataplane:
277 id: 414
278 link: bond0
279 os-storage:
280 id: 415
281 link: bond1
282 os-tenant:
283 id: 416
284 link: bond1
285
286 '0c:c4:7a:aa:e0:9c':
287 write_files:
288 - path: '/etc/netplan/99-cz7725.yaml'
289 content: |
290 network:
291 version: 2
292 ethernets:
293 ens11f0:
294 dhcp4: false
295 ens11f1:
296 dhcp4: false
297 ens11f2:
298 dhcp4: false
299 ens11f3:
300 dhcp4: false
301 bonds:
302 bond0:
303 dhcp4: no
304 interfaces: [ens11f0, ens11f1]
305 parameters:
306 mode: active-backup
307 mii-monitor-interval: 1
308 bond1:
309 dhcp4: no
310 interfaces: [ens11f2, ens11f3]
311 parameters:
312 mode: active-backup
313 mii-monitor-interval: 1
314 vlans:
315 k8s-control:
316 id: 411
317 link: bond0
318 os-floating:
319 id: 412
320 link: bond1
321 k8s-metallb:
322 id: 413
323 link: bond0
324 k8s-dataplane:
325 id: 414
326 link: bond0
327 os-storage:
328 id: 415
329 link: bond1
330 os-tenant:
331 id: 416
332 link: bond1
333
334 '0c:c4:7a:aa:78:2c':
335 write_files:
336 - path: '/etc/netplan/99-cz7725.yaml'
337 content: |
338 network:
339 version: 2
340 ethernets:
341 ens11f0:
342 dhcp4: false
343 ens11f1:
344 dhcp4: false
345 ens11f2:
346 dhcp4: false
347 ens11f3:
348 dhcp4: false
349 bonds:
350 bond0:
351 dhcp4: no
352 interfaces: [ens11f0, ens11f1]
353 parameters:
354 mode: active-backup
355 mii-monitor-interval: 1
356 bond1:
357 dhcp4: no
358 interfaces: [ens11f2, ens11f3]
359 parameters:
360 mode: active-backup
361 mii-monitor-interval: 1
362 vlans:
363 k8s-control:
364 id: 411
365 link: bond0
366 os-floating:
367 id: 412
368 link: bond1
369 k8s-metallb:
370 id: 413
371 link: bond0
372 k8s-dataplane:
373 id: 414
374 link: bond0
375 os-storage:
376 id: 415
377 link: bond1
378 os-tenant:
379 id: 416
380 link: bond1
381
382 '0c:c4:7a:aa:78:7a':
383 write_files:
384 - path: '/etc/netplan/99-cz7725.yaml'
385 content: |
386 network:
387 version: 2
388 ethernets:
389 eno1:
390 dhcp4: false
391 ens4f1:
392 dhcp4: false
393 ens4f2:
394 dhcp4: false
395 ens4f3:
396 dhcp4: false
397 bonds:
398 bond0:
399 dhcp4: no
400 interfaces: [eno1, ens4f1]
401 parameters:
402 mode: active-backup
403 mii-monitor-interval: 1
404 bond1:
405 dhcp4: no
406 interfaces: [ens4f2, ens4f3]
407 parameters:
408 mode: active-backup
409 mii-monitor-interval: 1
410 vlans:
411 k8s-control:
412 id: 411
413 link: bond0
414 os-floating:
415 id: 412
416 link: bond1
417 k8s-metallb:
418 id: 413
419 link: bond0
420 k8s-dataplane:
421 id: 414
422 link: bond0
423 os-storage:
424 id: 415
425 link: bond1
426 os-tenant:
427 id: 416
428 link: bond1
429
430 '0c:c4:7a:aa:e0:98':
431 write_files:
432 - path: '/etc/netplan/99-cz7725.yaml'
433 content: |
434 network:
435 version: 2
436 ethernets:
437 eno1:
438 dhcp4: false
439 ens4f1:
440 dhcp4: false
441 ens4f2:
442 dhcp4: false
443 ens4f3:
444 dhcp4: false
445 bonds:
446 bond0:
447 dhcp4: no
448 interfaces: [eno1, ens4f1]
449 parameters:
450 mode: active-backup
451 mii-monitor-interval: 1
452 bond1:
453 dhcp4: no
454 interfaces: [ens4f2, ens4f3]
455 parameters:
456 mode: active-backup
457 mii-monitor-interval: 1
458 vlans:
459 k8s-control:
460 id: 411
461 link: bond0
462 os-floating:
463 id: 412
464 link: bond1
465 k8s-metallb:
466 id: 413
467 link: bond0
468 k8s-dataplane:
469 id: 414
470 link: bond0
471 os-storage:
472 id: 415
473 link: bond1
474 os-tenant:
475 id: 416
476 link: bond1
477
478 '0c:c4:7a:aa:78:7c':
479 write_files:
480 - path: '/etc/netplan/99-cz7725.yaml'
481 content: |
482 network:
483 version: 2
484 ethernets:
485 eno1:
486 dhcp4: false
487 ens4f1:
488 dhcp4: false
489 ens4f2:
490 dhcp4: false
491 ens4f3:
492 dhcp4: false
493 bonds:
494 bond0:
495 dhcp4: no
496 interfaces: [eno1, ens4f1]
497 parameters:
498 mode: active-backup
499 mii-monitor-interval: 1
500 bond1:
501 dhcp4: no
502 interfaces: [ens4f2, ens4f3]
503 parameters:
504 mode: active-backup
505 mii-monitor-interval: 1
506 vlans:
507 k8s-control:
508 id: 411
509 link: bond0
510 os-floating:
511 id: 412
512 link: bond1
513 k8s-metallb:
514 id: 413
515 link: bond0
516 k8s-dataplane:
517 id: 414
518 link: bond0
519 os-storage:
520 id: 415
521 link: bond1
522 os-tenant:
523 id: 416
524 link: bond1
525
526 functions_override: |
527
528 function network_config {
529
530 DEBIAN_FRONTEND=noninteractive apt -y install bridge-utils ifenslave vlan
531 sudo modprobe bonding
532 netplan --debug apply
533 sleep 15
534
535 ip a a ${PUBLIC_INTERFACE_IP}/${PUBLIC_INTERFACE_NETMASK} dev ${PUBLIC_INTERFACE}
536 }