blob: bb1ffb3ab7ffe22a87950cdd3db4c53d2a8e14cf [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
Dennis Dmitrievea894212020-03-12 21:36:43 +020014 cmps_flavor: si-bm-410-128-16-hdd0-ssd1x500g
Dennis Dmitriev81da4222020-02-25 17:53:04 +020015 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
Dennis Dmitrievea894212020-03-12 21:36:43 +020021 cmp_size: 3
Dennis Dmitriev81da4222020-02-25 17:53:04 +020022 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'
Dennis Dmitrievea894212020-03-12 21:36:43 +020029 control_network_cidr: '172.16.50.128/25'
Dennis Dmitriev81da4222020-02-25 17:53:04 +020030 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'
Dennis Dmitrievea894212020-03-12 21:36:43 +020036 metallb_address_pools: [ '172.16.51.130-172.16.51.250' ]
Dennis Dmitriev81da4222020-02-25 17:53:04 +020037 private_floating_interface: 'os-floating'
Dennis Dmitrievea894212020-03-12 21:36:43 +020038 storage_frontend_interface: 'ceph-control'
39 storage_backend_interface: 'ceph-replica'
Dennis Dmitriev81da4222020-02-25 17:53:04 +020040 tunnel_interface: 'os-tenant'
41 live_migration_interface: 'os-tenant'
Dennis Dmitrievea894212020-03-12 21:36:43 +020042 ucp_metadata: {"role":"ucp", "labels": {"role": "stacklight", "stacklight": "enabled"}}
43 master_metadata: {"role":"master", "labels": {"role": "stacklight", "stacklight": "enabled"}}
44 worker_metadata: {"labels": {"openstack-control-plane":"enabled", "openvswitch":"enabled", "openstack-gateway": "enabled"}}
45 cmp_metadata: {"labels": {"openstack-compute-node":"enabled","openvswitch":"enabled"}}
Dennis Dmitriev81da4222020-02-25 17:53:04 +020046 osd_metadata: {"labels": {"role": "ceph-osd-node"}}
47 spare_metadata: {"labels": {"role": "spare-node"}}
48
49
50 hardware_metadata: |
51 '0c:c4:7a:33:26:7c':
52 write_files:
Dennis Dmitrievea894212020-03-12 21:36:43 +020053 - path: '/etc/netplan/99-cz7714-osd.yaml'
Dennis Dmitriev81da4222020-02-25 17:53:04 +020054 content: |
55 network:
56 version: 2
57 ethernets:
58 eno1:
59 dhcp4: false
60 ens3f1:
61 dhcp4: false
62 ens3f2:
63 dhcp4: false
64 ens3f3:
65 dhcp4: false
66 bonds:
67 bond0:
68 dhcp4: no
69 interfaces: [eno1, ens3f1]
70 parameters:
71 mode: active-backup
72 mii-monitor-interval: 1
73 bond1:
74 dhcp4: no
75 interfaces: [ens3f2, ens3f3]
76 parameters:
77 mode: active-backup
78 mii-monitor-interval: 1
79 vlans:
80 k8s-control:
81 id: 411
82 link: bond0
Dennis Dmitrievea894212020-03-12 21:36:43 +020083 addresses:
84 - 172.16.50.130/25
Dennis Dmitriev81da4222020-02-25 17:53:04 +020085 os-floating:
86 id: 412
87 link: bond1
Dennis Dmitrievea894212020-03-12 21:36:43 +020088 addresses:
89 - {{ PUBLIC_INTERFACE_IP }}/{{ PUBLIC_INTERFACE_NETMASK }}
Dennis Dmitriev81da4222020-02-25 17:53:04 +020090 k8s-metallb:
91 id: 413
92 link: bond0
Dennis Dmitrievea894212020-03-12 21:36:43 +020093 management:
Dennis Dmitriev81da4222020-02-25 17:53:04 +020094 id: 414
95 link: bond0
Dennis Dmitrievea894212020-03-12 21:36:43 +020096 ceph-control:
Dennis Dmitriev81da4222020-02-25 17:53:04 +020097 id: 415
98 link: bond1
Dennis Dmitrievea894212020-03-12 21:36:43 +020099 addresses:
100 - {{ STORAGE_FRONTEND_INTERFACE_IP }}/{{ STORAGE_FRONTEND_NETWORK_NETMASK }}
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200101 os-tenant:
102 id: 416
103 link: bond1
Dennis Dmitrievea894212020-03-12 21:36:43 +0200104 ceph-replica:
105 id: 417
106 link: bond1
107 addresses:
108 - {{ STORAGE_BACKEND_INTERFACE_IP }}/{{ STORAGE_BACKEND_NETWORK_NETMASK }}
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200109
110 '0c:c4:7a:33:26:6e':
111 write_files:
Dennis Dmitrievea894212020-03-12 21:36:43 +0200112 - path: '/etc/netplan/99-cz7725-osd.yaml'
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200113 content: |
114 network:
115 version: 2
116 ethernets:
117 eno1:
118 dhcp4: false
119 ens3f1:
120 dhcp4: false
121 ens3f2:
122 dhcp4: false
123 ens3f3:
124 dhcp4: false
125 bonds:
126 bond0:
127 dhcp4: no
128 interfaces: [eno1, ens3f1]
129 parameters:
130 mode: active-backup
131 mii-monitor-interval: 1
132 bond1:
133 dhcp4: no
134 interfaces: [ens3f2, ens3f3]
135 parameters:
136 mode: active-backup
137 mii-monitor-interval: 1
138 vlans:
139 k8s-control:
140 id: 411
141 link: bond0
Dennis Dmitrievea894212020-03-12 21:36:43 +0200142 addresses:
143 - 172.16.50.131/25
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200144 os-floating:
145 id: 412
146 link: bond1
Dennis Dmitrievea894212020-03-12 21:36:43 +0200147 addresses:
148 - {{ PUBLIC_INTERFACE_IP }}/{{ PUBLIC_INTERFACE_NETMASK }}
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200149 k8s-metallb:
150 id: 413
151 link: bond0
Dennis Dmitrievea894212020-03-12 21:36:43 +0200152 management:
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200153 id: 414
154 link: bond0
Dennis Dmitrievea894212020-03-12 21:36:43 +0200155 ceph-control:
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200156 id: 415
157 link: bond1
Dennis Dmitrievea894212020-03-12 21:36:43 +0200158 addresses:
159 - {{ STORAGE_FRONTEND_INTERFACE_IP }}/{{ STORAGE_FRONTEND_NETWORK_NETMASK }}
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200160 os-tenant:
161 id: 416
162 link: bond1
Dennis Dmitrievea894212020-03-12 21:36:43 +0200163 ceph-replica:
164 id: 417
165 link: bond1
166 addresses:
167 - {{ STORAGE_BACKEND_INTERFACE_IP }}/{{ STORAGE_BACKEND_NETWORK_NETMASK }}
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200168
169 '0c:c4:7a:33:26:6a':
170 write_files:
Dennis Dmitrievea894212020-03-12 21:36:43 +0200171 - path: '/etc/netplan/99-cz7726-osd.yaml'
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200172 content: |
173 network:
174 version: 2
175 ethernets:
176 eno1:
177 dhcp4: false
178 ens3f1:
179 dhcp4: false
180 ens3f2:
181 dhcp4: false
182 ens3f3:
183 dhcp4: false
184 bonds:
185 bond0:
186 dhcp4: no
187 interfaces: [eno1, ens3f1]
188 parameters:
189 mode: active-backup
190 mii-monitor-interval: 1
191 bond1:
192 dhcp4: no
193 interfaces: [ens3f2, ens3f3]
194 parameters:
195 mode: active-backup
196 mii-monitor-interval: 1
197 vlans:
198 k8s-control:
199 id: 411
200 link: bond0
Dennis Dmitrievea894212020-03-12 21:36:43 +0200201 addresses:
202 - 172.16.50.132/25
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200203 os-floating:
204 id: 412
205 link: bond1
Dennis Dmitrievea894212020-03-12 21:36:43 +0200206 addresses:
207 - {{ PUBLIC_INTERFACE_IP }}/{{ PUBLIC_INTERFACE_NETMASK }}
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200208 k8s-metallb:
209 id: 413
210 link: bond0
Dennis Dmitrievea894212020-03-12 21:36:43 +0200211 management:
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200212 id: 414
213 link: bond0
Dennis Dmitrievea894212020-03-12 21:36:43 +0200214 ceph-control:
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200215 id: 415
216 link: bond1
Dennis Dmitrievea894212020-03-12 21:36:43 +0200217 addresses:
218 - {{ STORAGE_FRONTEND_INTERFACE_IP }}/{{ STORAGE_FRONTEND_NETWORK_NETMASK }}
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200219 os-tenant:
220 id: 416
221 link: bond1
Dennis Dmitrievea894212020-03-12 21:36:43 +0200222 ceph-replica:
223 id: 417
224 link: bond1
225 addresses:
226 - {{ STORAGE_BACKEND_INTERFACE_IP }}/{{ STORAGE_BACKEND_NETWORK_NETMASK }}
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200227
228 '0c:c4:7a:34:92:94':
229 write_files:
Dennis Dmitrievea894212020-03-12 21:36:43 +0200230 - path: '/etc/netplan/99-cz7727-spare.yaml'
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200231 content: |
232 network:
233 version: 2
234 ethernets:
235 eno1:
236 dhcp4: false
237 ens3f1:
238 dhcp4: false
239 ens3f2:
240 dhcp4: false
241 ens3f3:
242 dhcp4: false
243 bonds:
244 bond0:
245 dhcp4: no
246 interfaces: [eno1, ens3f1]
247 parameters:
248 mode: active-backup
249 mii-monitor-interval: 1
250 bond1:
251 dhcp4: no
252 interfaces: [ens3f2, ens3f3]
253 parameters:
254 mode: active-backup
255 mii-monitor-interval: 1
256 vlans:
257 k8s-control:
258 id: 411
259 link: bond0
Dennis Dmitrievea894212020-03-12 21:36:43 +0200260 addresses:
261 - 172.16.50.133/25
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200262 os-floating:
263 id: 412
264 link: bond1
Dennis Dmitrievea894212020-03-12 21:36:43 +0200265 addresses:
266 - {{ PUBLIC_INTERFACE_IP }}/{{ PUBLIC_INTERFACE_NETMASK }}
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200267 k8s-metallb:
268 id: 413
269 link: bond0
Dennis Dmitrievea894212020-03-12 21:36:43 +0200270 management:
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200271 id: 414
272 link: bond0
Dennis Dmitrievea894212020-03-12 21:36:43 +0200273 ceph-control:
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200274 id: 415
275 link: bond1
Dennis Dmitrievea894212020-03-12 21:36:43 +0200276 addresses:
277 - {{ STORAGE_FRONTEND_INTERFACE_IP }}/{{ STORAGE_FRONTEND_NETWORK_NETMASK }}
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200278 os-tenant:
279 id: 416
280 link: bond1
Dennis Dmitrievea894212020-03-12 21:36:43 +0200281 ceph-replica:
282 id: 417
283 link: bond1
284 addresses:
285 - {{ STORAGE_BACKEND_INTERFACE_IP }}/{{ STORAGE_BACKEND_NETWORK_NETMASK }}
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200286
287 '0c:c4:7a:aa:e0:9e':
288 write_files:
Dennis Dmitrievea894212020-03-12 21:36:43 +0200289 - path: '/etc/netplan/99-cz10095-os-control.yaml'
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200290 content: |
291 network:
292 version: 2
293 ethernets:
294 ens11f0:
295 dhcp4: false
296 ens11f1:
297 dhcp4: false
298 ens11f2:
299 dhcp4: false
300 ens11f3:
301 dhcp4: false
302 bonds:
303 bond0:
304 dhcp4: no
305 interfaces: [ens11f0, ens11f1]
306 parameters:
307 mode: active-backup
308 mii-monitor-interval: 1
309 bond1:
310 dhcp4: no
311 interfaces: [ens11f2, ens11f3]
312 parameters:
313 mode: active-backup
314 mii-monitor-interval: 1
315 vlans:
316 k8s-control:
317 id: 411
318 link: bond0
Dennis Dmitrievea894212020-03-12 21:36:43 +0200319 addresses:
320 - 172.16.50.134/25
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200321 os-floating:
322 id: 412
323 link: bond1
Dennis Dmitrievea894212020-03-12 21:36:43 +0200324 addresses:
325 - {{ PUBLIC_INTERFACE_IP }}/{{ PUBLIC_INTERFACE_NETMASK }}
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200326 k8s-metallb:
327 id: 413
328 link: bond0
Dennis Dmitrievea894212020-03-12 21:36:43 +0200329 management:
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200330 id: 414
331 link: bond0
Dennis Dmitrievea894212020-03-12 21:36:43 +0200332 ceph-control:
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200333 id: 415
334 link: bond1
Dennis Dmitrievea894212020-03-12 21:36:43 +0200335 addresses:
336 - {{ STORAGE_FRONTEND_INTERFACE_IP }}/{{ STORAGE_FRONTEND_NETWORK_NETMASK }}
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200337 os-tenant:
338 id: 416
339 link: bond1
340
341 '0c:c4:7a:aa:e0:9c':
342 write_files:
Dennis Dmitrievea894212020-03-12 21:36:43 +0200343 - path: '/etc/netplan/99-cz10096-os-control.yaml'
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200344 content: |
345 network:
346 version: 2
347 ethernets:
348 ens11f0:
349 dhcp4: false
350 ens11f1:
351 dhcp4: false
352 ens11f2:
353 dhcp4: false
354 ens11f3:
355 dhcp4: false
356 bonds:
357 bond0:
358 dhcp4: no
359 interfaces: [ens11f0, ens11f1]
360 parameters:
361 mode: active-backup
362 mii-monitor-interval: 1
363 bond1:
364 dhcp4: no
365 interfaces: [ens11f2, ens11f3]
366 parameters:
367 mode: active-backup
368 mii-monitor-interval: 1
369 vlans:
370 k8s-control:
371 id: 411
372 link: bond0
Dennis Dmitrievea894212020-03-12 21:36:43 +0200373 addresses:
374 - 172.16.50.135/25
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200375 os-floating:
376 id: 412
377 link: bond1
Dennis Dmitrievea894212020-03-12 21:36:43 +0200378 addresses:
379 - {{ PUBLIC_INTERFACE_IP }}/{{ PUBLIC_INTERFACE_NETMASK }}
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200380 k8s-metallb:
381 id: 413
382 link: bond0
Dennis Dmitrievea894212020-03-12 21:36:43 +0200383 management:
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200384 id: 414
385 link: bond0
Dennis Dmitrievea894212020-03-12 21:36:43 +0200386 ceph-control:
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200387 id: 415
388 link: bond1
Dennis Dmitrievea894212020-03-12 21:36:43 +0200389 addresses:
390 - {{ STORAGE_FRONTEND_INTERFACE_IP }}/{{ STORAGE_FRONTEND_NETWORK_NETMASK }}
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200391 os-tenant:
392 id: 416
393 link: bond1
394
395 '0c:c4:7a:aa:78:2c':
396 write_files:
Dennis Dmitrievea894212020-03-12 21:36:43 +0200397 - path: '/etc/netplan/99-cz10097-os-control.yaml'
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200398 content: |
399 network:
400 version: 2
401 ethernets:
402 ens11f0:
403 dhcp4: false
404 ens11f1:
405 dhcp4: false
406 ens11f2:
407 dhcp4: false
408 ens11f3:
409 dhcp4: false
410 bonds:
411 bond0:
412 dhcp4: no
413 interfaces: [ens11f0, ens11f1]
414 parameters:
415 mode: active-backup
416 mii-monitor-interval: 1
417 bond1:
418 dhcp4: no
419 interfaces: [ens11f2, ens11f3]
420 parameters:
421 mode: active-backup
422 mii-monitor-interval: 1
423 vlans:
424 k8s-control:
425 id: 411
426 link: bond0
Dennis Dmitrievea894212020-03-12 21:36:43 +0200427 addresses:
428 - 172.16.50.136/25
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200429 os-floating:
430 id: 412
431 link: bond1
Dennis Dmitrievea894212020-03-12 21:36:43 +0200432 addresses:
433 - {{ PUBLIC_INTERFACE_IP }}/{{ PUBLIC_INTERFACE_NETMASK }}
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200434 k8s-metallb:
435 id: 413
436 link: bond0
Dennis Dmitrievea894212020-03-12 21:36:43 +0200437 management:
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200438 id: 414
439 link: bond0
Dennis Dmitrievea894212020-03-12 21:36:43 +0200440 ceph-control:
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200441 id: 415
442 link: bond1
Dennis Dmitrievea894212020-03-12 21:36:43 +0200443 addresses:
444 - {{ STORAGE_FRONTEND_INTERFACE_IP }}/{{ STORAGE_FRONTEND_NETWORK_NETMASK }}
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200445 os-tenant:
446 id: 416
447 link: bond1
448
449 '0c:c4:7a:aa:78:7a':
450 write_files:
Dennis Dmitrievea894212020-03-12 21:36:43 +0200451 - path: '/etc/netplan/99-cz10098-ucp-control.yaml'
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200452 content: |
453 network:
454 version: 2
455 ethernets:
456 eno1:
457 dhcp4: false
458 ens4f1:
459 dhcp4: false
460 ens4f2:
461 dhcp4: false
462 ens4f3:
463 dhcp4: false
464 bonds:
465 bond0:
466 dhcp4: no
467 interfaces: [eno1, ens4f1]
468 parameters:
469 mode: active-backup
470 mii-monitor-interval: 1
471 bond1:
472 dhcp4: no
473 interfaces: [ens4f2, ens4f3]
474 parameters:
475 mode: active-backup
476 mii-monitor-interval: 1
477 vlans:
478 k8s-control:
479 id: 411
480 link: bond0
Dennis Dmitrievea894212020-03-12 21:36:43 +0200481 addresses:
482 # Hardcoded IP for the UCP node (when UCP_MASTER_HOST is empty), to replace PXE with k8s_control IP
483 - {% if UCP_MASTER_HOST == "" %}172.16.50.254/25{% else %}172.16.50.137/25{% endif %}
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200484 os-floating:
485 id: 412
486 link: bond1
Dennis Dmitrievea894212020-03-12 21:36:43 +0200487 addresses:
488 - {{ PUBLIC_INTERFACE_IP }}/{{ PUBLIC_INTERFACE_NETMASK }}
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200489 k8s-metallb:
490 id: 413
491 link: bond0
Dennis Dmitrievea894212020-03-12 21:36:43 +0200492 management:
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200493 id: 414
494 link: bond0
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200495
496 '0c:c4:7a:aa:e0:98':
497 write_files:
Dennis Dmitrievea894212020-03-12 21:36:43 +0200498 - path: '/etc/netplan/99-cz10099-ucp-control.yaml'
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200499 content: |
500 network:
501 version: 2
502 ethernets:
503 eno1:
504 dhcp4: false
505 ens4f1:
506 dhcp4: false
507 ens4f2:
508 dhcp4: false
509 ens4f3:
510 dhcp4: false
511 bonds:
512 bond0:
513 dhcp4: no
514 interfaces: [eno1, ens4f1]
515 parameters:
516 mode: active-backup
517 mii-monitor-interval: 1
518 bond1:
519 dhcp4: no
520 interfaces: [ens4f2, ens4f3]
521 parameters:
522 mode: active-backup
523 mii-monitor-interval: 1
524 vlans:
525 k8s-control:
526 id: 411
527 link: bond0
Dennis Dmitrievea894212020-03-12 21:36:43 +0200528 addresses:
529 # Hardcoded IP for the UCP node (when UCP_MASTER_HOST is empty), to replace PXE with k8s_control IP
530 - {% if UCP_MASTER_HOST == "" %}172.16.50.254/25{% else %}172.16.50.138/25{% endif %}
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200531 os-floating:
532 id: 412
533 link: bond1
Dennis Dmitrievea894212020-03-12 21:36:43 +0200534 addresses:
535 - {{ PUBLIC_INTERFACE_IP }}/{{ PUBLIC_INTERFACE_NETMASK }}
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200536 k8s-metallb:
537 id: 413
538 link: bond0
Dennis Dmitrievea894212020-03-12 21:36:43 +0200539 management:
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200540 id: 414
541 link: bond0
Dennis Dmitrievea894212020-03-12 21:36:43 +0200542
543 '0c:c4:7a:aa:78:7c':
544 write_files:
545 - path: '/etc/netplan/99-cz10100-ucp-control.yaml'
546 content: |
547 network:
548 version: 2
549 ethernets:
550 eno1:
551 dhcp4: false
552 ens4f1:
553 dhcp4: false
554 ens4f2:
555 dhcp4: false
556 ens4f3:
557 dhcp4: false
558 bonds:
559 bond0:
560 dhcp4: no
561 interfaces: [eno1, ens4f1]
562 parameters:
563 mode: active-backup
564 mii-monitor-interval: 1
565 bond1:
566 dhcp4: no
567 interfaces: [ens4f2, ens4f3]
568 parameters:
569 mode: active-backup
570 mii-monitor-interval: 1
571 vlans:
572 k8s-control:
573 id: 411
574 link: bond0
575 addresses:
576 # Hardcoded IP for the UCP node (when UCP_MASTER_HOST is empty), to replace PXE with k8s_control IP
577 - {% if UCP_MASTER_HOST == "" %}172.16.50.254/25{% else %}172.16.50.139/25{% endif %}
578 os-floating:
579 id: 412
580 link: bond1
581 addresses:
582 - {{ PUBLIC_INTERFACE_IP }}/{{ PUBLIC_INTERFACE_NETMASK }}
583 k8s-metallb:
584 id: 413
585 link: bond0
586 management:
587 id: 414
588 link: bond0
589
590 '0c:c4:7a:55:6a:28':
591 write_files:
592 - path: '/etc/netplan/99-cz7636-os-compute.yaml'
593 content: |
594 network:
595 version: 2
596 ethernets:
597 enp3s0f0:
598 dhcp4: false
599 enp3s0f1:
600 dhcp4: false
601 enp3s0f2:
602 dhcp4: false
603 enp3s0f3:
604 dhcp4: false
605 bonds:
606 bond0:
607 dhcp4: no
608 interfaces: [enp3s0f0, enp3s0f1]
609 parameters:
610 mode: active-backup
611 mii-monitor-interval: 1
612 bond1:
613 dhcp4: no
614 interfaces: [enp3s0f2, enp3s0f3]
615 parameters:
616 mode: active-backup
617 mii-monitor-interval: 1
618 vlans:
619 k8s-control:
620 id: 411
621 link: bond0
622 addresses:
623 - 172.16.50.140/25
624 os-floating:
625 id: 412
626 link: bond1
627 addresses:
628 - {{ PUBLIC_INTERFACE_IP }}/{{ PUBLIC_INTERFACE_NETMASK }}
629 k8s-metallb:
630 id: 413
631 link: bond0
632 management:
633 id: 414
634 link: bond0
635 ceph-control:
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200636 id: 415
637 link: bond1
Dennis Dmitrievea894212020-03-12 21:36:43 +0200638 addresses:
639 - {{ STORAGE_FRONTEND_INTERFACE_IP }}/{{ STORAGE_FRONTEND_NETWORK_NETMASK }}
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200640 os-tenant:
641 id: 416
642 link: bond1
643
Dennis Dmitrievea894212020-03-12 21:36:43 +0200644 '0c:c4:7a:54:a2:5e':
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200645 write_files:
Dennis Dmitrievea894212020-03-12 21:36:43 +0200646 - path: '/etc/netplan/99-cz7641-os-compute.yaml'
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200647 content: |
648 network:
649 version: 2
650 ethernets:
Dennis Dmitrievea894212020-03-12 21:36:43 +0200651 enp3s0f0:
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200652 dhcp4: false
Dennis Dmitrievea894212020-03-12 21:36:43 +0200653 enp3s0f1:
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200654 dhcp4: false
Dennis Dmitrievea894212020-03-12 21:36:43 +0200655 enp3s0f2:
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200656 dhcp4: false
Dennis Dmitrievea894212020-03-12 21:36:43 +0200657 enp3s0f3:
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200658 dhcp4: false
659 bonds:
660 bond0:
661 dhcp4: no
Dennis Dmitrievea894212020-03-12 21:36:43 +0200662 interfaces: [enp3s0f0, enp3s0f1]
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200663 parameters:
664 mode: active-backup
665 mii-monitor-interval: 1
666 bond1:
667 dhcp4: no
Dennis Dmitrievea894212020-03-12 21:36:43 +0200668 interfaces: [enp3s0f2, enp3s0f3]
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200669 parameters:
670 mode: active-backup
671 mii-monitor-interval: 1
672 vlans:
673 k8s-control:
674 id: 411
675 link: bond0
Dennis Dmitrievea894212020-03-12 21:36:43 +0200676 addresses:
677 - 172.16.50.141/25
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200678 os-floating:
679 id: 412
680 link: bond1
Dennis Dmitrievea894212020-03-12 21:36:43 +0200681 addresses:
682 - {{ PUBLIC_INTERFACE_IP }}/{{ PUBLIC_INTERFACE_NETMASK }}
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200683 k8s-metallb:
684 id: 413
685 link: bond0
Dennis Dmitrievea894212020-03-12 21:36:43 +0200686 management:
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200687 id: 414
688 link: bond0
Dennis Dmitrievea894212020-03-12 21:36:43 +0200689 ceph-control:
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200690 id: 415
691 link: bond1
Dennis Dmitrievea894212020-03-12 21:36:43 +0200692 addresses:
693 - {{ STORAGE_FRONTEND_INTERFACE_IP }}/{{ STORAGE_FRONTEND_NETWORK_NETMASK }}
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200694 os-tenant:
695 id: 416
696 link: bond1
697
Dennis Dmitrievea894212020-03-12 21:36:43 +0200698 '0c:c4:7a:54:a0:50':
699 write_files:
700 - path: '/etc/netplan/99-cz7642-os-compute.yaml'
701 content: |
702 network:
703 version: 2
704 ethernets:
705 enp3s0f0:
706 dhcp4: false
707 enp3s0f1:
708 dhcp4: false
709 enp3s0f2:
710 dhcp4: false
711 enp3s0f3:
712 dhcp4: false
713 bonds:
714 bond0:
715 dhcp4: no
716 interfaces: [enp3s0f0, enp3s0f1]
717 parameters:
718 mode: active-backup
719 mii-monitor-interval: 1
720 bond1:
721 dhcp4: no
722 interfaces: [enp3s0f2, enp3s0f3]
723 parameters:
724 mode: active-backup
725 mii-monitor-interval: 1
726 vlans:
727 k8s-control:
728 id: 411
729 link: bond0
730 addresses:
731 - 172.16.50.142/25
732 os-floating:
733 id: 412
734 link: bond1
735 addresses:
736 - {{ PUBLIC_INTERFACE_IP }}/{{ PUBLIC_INTERFACE_NETMASK }}
737 k8s-metallb:
738 id: 413
739 link: bond0
740 management:
741 id: 414
742 link: bond0
743 ceph-control:
744 id: 415
745 link: bond1
746 addresses:
747 - {{ STORAGE_FRONTEND_INTERFACE_IP }}/{{ STORAGE_FRONTEND_NETWORK_NETMASK }}
748 os-tenant:
749 id: 416
750 link: bond1
751
752
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200753 functions_override: |
754
755 function network_config {
756
757 DEBIAN_FRONTEND=noninteractive apt -y install bridge-utils ifenslave vlan
758 sudo modprobe bonding
759 netplan --debug apply
760 sleep 15
761
Dennis Dmitrievea894212020-03-12 21:36:43 +0200762 # Re-init the variables related to the just configured k8s-control network
763 CONTROL_IP_ADDRESS=$(ip route get ${CONTROL_NETWORK_CIDR%/*} | head -n1 | fgrep -v ' via ' | awk '/ src / {print $6}')
764
765 #UCP_MASTER_HOST=${UCP_MASTER_HOST:-${CONTROL_IP_ADDRESS}}
766 # Hardcoded IP for the UCP node because the servers output contain PXE IP instead of k8s_control IP
767 UCP_MASTER_HOST=172.16.50.254
768 UCP_IP_ADDRESS=${UCP_IP_ADDRESS:-$CONTROL_IP_ADDRESS}
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200769 }