blob: 0475c50d2d5ff1d39b3f9d969c41a6ccec38810e [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'
Vasyl Saienkoc943f432020-04-21 12:15:57 +030036 private_floating_network_interface: 'os-floating'
Dennis Dmitrievea894212020-03-12 21:36:43 +020037 metallb_address_pools: [ '172.16.51.130-172.16.51.250' ]
Dennis Dmitriev81da4222020-02-25 17:53:04 +020038 private_floating_interface: 'os-floating'
Dennis Dmitrievea894212020-03-12 21:36:43 +020039 storage_frontend_interface: 'ceph-control'
40 storage_backend_interface: 'ceph-replica'
Dennis Dmitriev81da4222020-02-25 17:53:04 +020041 tunnel_interface: 'os-tenant'
42 live_migration_interface: 'os-tenant'
Vasyl Saienko73082e52020-04-03 18:52:57 +030043 worker_metadata: {"labels": {"openstack-control-plane":"enabled", "openvswitch":"enabled", "openstack-gateway": "enabled","local-volume-provisioner": "enabled","role": "stacklight", "stacklight": "enabled"}}
Dennis Dmitrievea894212020-03-12 21:36:43 +020044 cmp_metadata: {"labels": {"openstack-compute-node":"enabled","openvswitch":"enabled"}}
Dennis Dmitriev81da4222020-02-25 17:53:04 +020045 osd_metadata: {"labels": {"role": "ceph-osd-node"}}
46 spare_metadata: {"labels": {"role": "spare-node"}}
47
48
49 hardware_metadata: |
50 '0c:c4:7a:33:26:7c':
51 write_files:
Dennis Dmitrievea894212020-03-12 21:36:43 +020052 - path: '/etc/netplan/99-cz7714-osd.yaml'
Dennis Dmitriev81da4222020-02-25 17:53:04 +020053 content: |
54 network:
55 version: 2
56 ethernets:
57 eno1:
58 dhcp4: false
Oleksii Butenkob8dcc262020-04-01 12:15:07 +030059 mtu: 9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +020060 ens3f1:
61 dhcp4: false
Oleksii Butenkob8dcc262020-04-01 12:15:07 +030062 mtu: 9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +020063 ens3f2:
64 dhcp4: false
Oleksii Butenkob8dcc262020-04-01 12:15:07 +030065 mtu: 9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +020066 ens3f3:
67 dhcp4: false
Oleksii Butenkob8dcc262020-04-01 12:15:07 +030068 mtu: 9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +020069 bonds:
70 bond0:
71 dhcp4: no
72 interfaces: [eno1, ens3f1]
73 parameters:
74 mode: active-backup
Oleksii Butenkob8dcc262020-04-01 12:15:07 +030075 mii-monitor-interval: 1000
76 mtu: 9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +020077 bond1:
78 dhcp4: no
79 interfaces: [ens3f2, ens3f3]
80 parameters:
81 mode: active-backup
Oleksii Butenkob8dcc262020-04-01 12:15:07 +030082 mii-monitor-interval: 1000
83 mtu: 9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +020084 vlans:
85 k8s-control:
86 id: 411
87 link: bond0
Dennis Dmitrievea894212020-03-12 21:36:43 +020088 addresses:
89 - 172.16.50.130/25
Dennis Dmitriev81da4222020-02-25 17:53:04 +020090 os-floating:
91 id: 412
92 link: bond1
93 k8s-metallb:
94 id: 413
95 link: bond0
Dennis Dmitrievea894212020-03-12 21:36:43 +020096 management:
Dennis Dmitriev81da4222020-02-25 17:53:04 +020097 id: 414
98 link: bond0
Dennis Dmitrievea894212020-03-12 21:36:43 +020099 ceph-control:
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200100 id: 415
101 link: bond1
Dennis Dmitrievea894212020-03-12 21:36:43 +0200102 addresses:
103 - {{ STORAGE_FRONTEND_INTERFACE_IP }}/{{ STORAGE_FRONTEND_NETWORK_NETMASK }}
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300104 mtu: 9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200105 os-tenant:
106 id: 416
107 link: bond1
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300108 addresses:
109 - 10.14.0.10/24
110 mtu: 9100
Dennis Dmitrievea894212020-03-12 21:36:43 +0200111 ceph-replica:
112 id: 417
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300113 link: bond0
Dennis Dmitrievea894212020-03-12 21:36:43 +0200114 addresses:
115 - {{ STORAGE_BACKEND_INTERFACE_IP }}/{{ STORAGE_BACKEND_NETWORK_NETMASK }}
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300116 mtu: 9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200117
118 '0c:c4:7a:33:26:6e':
119 write_files:
Dennis Dmitrievea894212020-03-12 21:36:43 +0200120 - path: '/etc/netplan/99-cz7725-osd.yaml'
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200121 content: |
122 network:
123 version: 2
124 ethernets:
125 eno1:
126 dhcp4: false
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300127 mtu: 9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200128 ens3f1:
129 dhcp4: false
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300130 mtu: 9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200131 ens3f2:
132 dhcp4: false
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300133 mtu: 9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200134 ens3f3:
135 dhcp4: false
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300136 mtu: 9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200137 bonds:
138 bond0:
139 dhcp4: no
140 interfaces: [eno1, ens3f1]
141 parameters:
142 mode: active-backup
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300143 mii-monitor-interval: 1000
144 mtu: 9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200145 bond1:
146 dhcp4: no
147 interfaces: [ens3f2, ens3f3]
148 parameters:
149 mode: active-backup
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300150 mii-monitor-interval: 1000
151 mtu: 9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200152 vlans:
153 k8s-control:
154 id: 411
155 link: bond0
Dennis Dmitrievea894212020-03-12 21:36:43 +0200156 addresses:
157 - 172.16.50.131/25
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200158 os-floating:
159 id: 412
160 link: bond1
161 k8s-metallb:
162 id: 413
163 link: bond0
Dennis Dmitrievea894212020-03-12 21:36:43 +0200164 management:
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200165 id: 414
166 link: bond0
Dennis Dmitrievea894212020-03-12 21:36:43 +0200167 ceph-control:
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200168 id: 415
169 link: bond1
Dennis Dmitrievea894212020-03-12 21:36:43 +0200170 addresses:
171 - {{ STORAGE_FRONTEND_INTERFACE_IP }}/{{ STORAGE_FRONTEND_NETWORK_NETMASK }}
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300172 mtu: 9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200173 os-tenant:
174 id: 416
175 link: bond1
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300176 addresses:
177 - 10.14.0.11/24
178 mtu: 9100
Dennis Dmitrievea894212020-03-12 21:36:43 +0200179 ceph-replica:
180 id: 417
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300181 link: bond0
Dennis Dmitrievea894212020-03-12 21:36:43 +0200182 addresses:
183 - {{ STORAGE_BACKEND_INTERFACE_IP }}/{{ STORAGE_BACKEND_NETWORK_NETMASK }}
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300184 mtu: 9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200185
186 '0c:c4:7a:33:26:6a':
187 write_files:
Dennis Dmitrievea894212020-03-12 21:36:43 +0200188 - path: '/etc/netplan/99-cz7726-osd.yaml'
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200189 content: |
190 network:
191 version: 2
192 ethernets:
193 eno1:
194 dhcp4: false
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300195 mtu: 9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200196 ens3f1:
197 dhcp4: false
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300198 mtu: 9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200199 ens3f2:
200 dhcp4: false
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300201 mtu: 9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200202 ens3f3:
203 dhcp4: false
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300204 mtu: 9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200205 bonds:
206 bond0:
207 dhcp4: no
208 interfaces: [eno1, ens3f1]
209 parameters:
210 mode: active-backup
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300211 mii-monitor-interval: 1000
212 mtu: 9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200213 bond1:
214 dhcp4: no
215 interfaces: [ens3f2, ens3f3]
216 parameters:
217 mode: active-backup
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300218 mii-monitor-interval: 1000
219 mtu: 9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200220 vlans:
221 k8s-control:
222 id: 411
223 link: bond0
Dennis Dmitrievea894212020-03-12 21:36:43 +0200224 addresses:
225 - 172.16.50.132/25
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200226 os-floating:
227 id: 412
228 link: bond1
229 k8s-metallb:
230 id: 413
231 link: bond0
Dennis Dmitrievea894212020-03-12 21:36:43 +0200232 management:
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200233 id: 414
234 link: bond0
Dennis Dmitrievea894212020-03-12 21:36:43 +0200235 ceph-control:
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200236 id: 415
237 link: bond1
Dennis Dmitrievea894212020-03-12 21:36:43 +0200238 addresses:
239 - {{ STORAGE_FRONTEND_INTERFACE_IP }}/{{ STORAGE_FRONTEND_NETWORK_NETMASK }}
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300240 mtu: 9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200241 os-tenant:
242 id: 416
243 link: bond1
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300244 addresses:
245 - 10.14.0.12/24
246 mtu: 9100
Dennis Dmitrievea894212020-03-12 21:36:43 +0200247 ceph-replica:
248 id: 417
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300249 link: bond0
Dennis Dmitrievea894212020-03-12 21:36:43 +0200250 addresses:
251 - {{ STORAGE_BACKEND_INTERFACE_IP }}/{{ STORAGE_BACKEND_NETWORK_NETMASK }}
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300252 mtu: 9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200253
254 '0c:c4:7a:34:92:94':
255 write_files:
Dennis Dmitrievea894212020-03-12 21:36:43 +0200256 - path: '/etc/netplan/99-cz7727-spare.yaml'
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200257 content: |
258 network:
259 version: 2
260 ethernets:
261 eno1:
262 dhcp4: false
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300263 mtu: 9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200264 ens3f1:
265 dhcp4: false
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300266 mtu: 9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200267 ens3f2:
268 dhcp4: false
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300269 mtu: 9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200270 ens3f3:
271 dhcp4: false
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300272 mtu: 9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200273 bonds:
274 bond0:
275 dhcp4: no
276 interfaces: [eno1, ens3f1]
277 parameters:
278 mode: active-backup
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300279 mii-monitor-interval: 1000
280 mtu: 9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200281 bond1:
282 dhcp4: no
283 interfaces: [ens3f2, ens3f3]
284 parameters:
285 mode: active-backup
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300286 mii-monitor-interval: 1000
287 mtu: 9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200288 vlans:
289 k8s-control:
290 id: 411
291 link: bond0
Dennis Dmitrievea894212020-03-12 21:36:43 +0200292 addresses:
293 - 172.16.50.133/25
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200294 os-floating:
295 id: 412
296 link: bond1
297 k8s-metallb:
298 id: 413
299 link: bond0
Dennis Dmitrievea894212020-03-12 21:36:43 +0200300 management:
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200301 id: 414
302 link: bond0
Dennis Dmitrievea894212020-03-12 21:36:43 +0200303 ceph-control:
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200304 id: 415
305 link: bond1
Dennis Dmitrievea894212020-03-12 21:36:43 +0200306 addresses:
307 - {{ STORAGE_FRONTEND_INTERFACE_IP }}/{{ STORAGE_FRONTEND_NETWORK_NETMASK }}
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300308 mtu: 9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200309 os-tenant:
310 id: 416
311 link: bond1
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300312 addresses:
313 - 10.14.0.13/24
314 mtu: 9100
Dennis Dmitrievea894212020-03-12 21:36:43 +0200315 ceph-replica:
316 id: 417
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300317 link: bond0
Dennis Dmitrievea894212020-03-12 21:36:43 +0200318 addresses:
319 - {{ STORAGE_BACKEND_INTERFACE_IP }}/{{ STORAGE_BACKEND_NETWORK_NETMASK }}
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300320 mtu: 9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200321
322 '0c:c4:7a:aa:e0:9e':
323 write_files:
Dennis Dmitrievea894212020-03-12 21:36:43 +0200324 - path: '/etc/netplan/99-cz10095-os-control.yaml'
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200325 content: |
326 network:
327 version: 2
328 ethernets:
329 ens11f0:
330 dhcp4: false
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300331 mtu: 9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200332 ens11f1:
333 dhcp4: false
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300334 mtu: 9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200335 ens11f2:
336 dhcp4: false
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300337 mtu: 9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200338 ens11f3:
339 dhcp4: false
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300340 mtu: 9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200341 bonds:
342 bond0:
343 dhcp4: no
344 interfaces: [ens11f0, ens11f1]
345 parameters:
346 mode: active-backup
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300347 mii-monitor-interval: 1000
348 mtu: 9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200349 bond1:
350 dhcp4: no
351 interfaces: [ens11f2, ens11f3]
352 parameters:
353 mode: active-backup
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300354 mii-monitor-interval: 1000
355 mtu: 9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200356 vlans:
357 k8s-control:
358 id: 411
359 link: bond0
Dennis Dmitrievea894212020-03-12 21:36:43 +0200360 addresses:
361 - 172.16.50.134/25
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200362 os-floating:
363 id: 412
364 link: bond1
365 k8s-metallb:
366 id: 413
367 link: bond0
Dennis Dmitrievea894212020-03-12 21:36:43 +0200368 management:
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200369 id: 414
370 link: bond0
Dennis Dmitrievea894212020-03-12 21:36:43 +0200371 ceph-control:
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200372 id: 415
373 link: bond1
Dennis Dmitrievea894212020-03-12 21:36:43 +0200374 addresses:
375 - {{ STORAGE_FRONTEND_INTERFACE_IP }}/{{ STORAGE_FRONTEND_NETWORK_NETMASK }}
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300376 mtu: 9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200377 os-tenant:
378 id: 416
379 link: bond1
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300380 addresses:
381 - 10.14.0.14/24
382 mtu: 9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200383
384 '0c:c4:7a:aa:e0:9c':
385 write_files:
Dennis Dmitrievea894212020-03-12 21:36:43 +0200386 - path: '/etc/netplan/99-cz10096-os-control.yaml'
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200387 content: |
388 network:
389 version: 2
390 ethernets:
391 ens11f0:
392 dhcp4: false
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300393 mtu: 9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200394 ens11f1:
395 dhcp4: false
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300396 mtu: 9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200397 ens11f2:
398 dhcp4: false
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300399 mtu: 9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200400 ens11f3:
401 dhcp4: false
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300402 mtu: 9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200403 bonds:
404 bond0:
405 dhcp4: no
406 interfaces: [ens11f0, ens11f1]
407 parameters:
408 mode: active-backup
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300409 mii-monitor-interval: 1000
410 mtu: 9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200411 bond1:
412 dhcp4: no
413 interfaces: [ens11f2, ens11f3]
414 parameters:
415 mode: active-backup
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300416 mii-monitor-interval: 1000
417 mtu: 9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200418 vlans:
419 k8s-control:
420 id: 411
421 link: bond0
Dennis Dmitrievea894212020-03-12 21:36:43 +0200422 addresses:
423 - 172.16.50.135/25
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200424 os-floating:
425 id: 412
426 link: bond1
427 k8s-metallb:
428 id: 413
429 link: bond0
Dennis Dmitrievea894212020-03-12 21:36:43 +0200430 management:
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200431 id: 414
432 link: bond0
Dennis Dmitrievea894212020-03-12 21:36:43 +0200433 ceph-control:
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200434 id: 415
435 link: bond1
Dennis Dmitrievea894212020-03-12 21:36:43 +0200436 addresses:
437 - {{ STORAGE_FRONTEND_INTERFACE_IP }}/{{ STORAGE_FRONTEND_NETWORK_NETMASK }}
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300438 mtu: 9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200439 os-tenant:
440 id: 416
441 link: bond1
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300442 addresses:
443 - 10.14.0.15/24
444 mtu: 9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200445
446 '0c:c4:7a:aa:78:2c':
447 write_files:
Dennis Dmitrievea894212020-03-12 21:36:43 +0200448 - path: '/etc/netplan/99-cz10097-os-control.yaml'
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200449 content: |
450 network:
451 version: 2
452 ethernets:
453 ens11f0:
454 dhcp4: false
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300455 mtu: 9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200456 ens11f1:
457 dhcp4: false
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300458 mtu: 9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200459 ens11f2:
460 dhcp4: false
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300461 mtu: 9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200462 ens11f3:
463 dhcp4: false
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300464 mtu: 9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200465 bonds:
466 bond0:
467 dhcp4: no
468 interfaces: [ens11f0, ens11f1]
469 parameters:
470 mode: active-backup
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300471 mii-monitor-interval: 1000
472 mtu: 9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200473 bond1:
474 dhcp4: no
475 interfaces: [ens11f2, ens11f3]
476 parameters:
477 mode: active-backup
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300478 mii-monitor-interval: 1000
479 mtu: 9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200480 vlans:
481 k8s-control:
482 id: 411
483 link: bond0
Dennis Dmitrievea894212020-03-12 21:36:43 +0200484 addresses:
485 - 172.16.50.136/25
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200486 os-floating:
487 id: 412
488 link: bond1
489 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 Dmitrievea894212020-03-12 21:36:43 +0200495 ceph-control:
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200496 id: 415
497 link: bond1
Dennis Dmitrievea894212020-03-12 21:36:43 +0200498 addresses:
499 - {{ STORAGE_FRONTEND_INTERFACE_IP }}/{{ STORAGE_FRONTEND_NETWORK_NETMASK }}
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300500 mtu: 9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200501 os-tenant:
502 id: 416
503 link: bond1
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300504 addresses:
505 - 10.14.0.16/24
506 mtu: 9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200507
508 '0c:c4:7a:aa:78:7a':
509 write_files:
Dennis Dmitrievea894212020-03-12 21:36:43 +0200510 - path: '/etc/netplan/99-cz10098-ucp-control.yaml'
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200511 content: |
512 network:
513 version: 2
514 ethernets:
515 eno1:
516 dhcp4: false
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300517 mtu: 9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200518 ens4f1:
519 dhcp4: false
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300520 mtu: 9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200521 ens4f2:
522 dhcp4: false
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300523 mtu: 9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200524 ens4f3:
525 dhcp4: false
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300526 mtu: 9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200527 bonds:
528 bond0:
529 dhcp4: no
530 interfaces: [eno1, ens4f1]
531 parameters:
532 mode: active-backup
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300533 mii-monitor-interval: 1000
534 mtu: 9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200535 bond1:
536 dhcp4: no
537 interfaces: [ens4f2, ens4f3]
538 parameters:
539 mode: active-backup
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300540 mii-monitor-interval: 1000
541 mtu: 9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200542 vlans:
543 k8s-control:
544 id: 411
545 link: bond0
Dennis Dmitrievea894212020-03-12 21:36:43 +0200546 addresses:
547 # Hardcoded IP for the UCP node (when UCP_MASTER_HOST is empty), to replace PXE with k8s_control IP
548 - {% if UCP_MASTER_HOST == "" %}172.16.50.254/25{% else %}172.16.50.137/25{% endif %}
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200549 os-floating:
550 id: 412
551 link: bond1
552 k8s-metallb:
553 id: 413
554 link: bond0
Dennis Dmitrievea894212020-03-12 21:36:43 +0200555 management:
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200556 id: 414
557 link: bond0
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200558
559 '0c:c4:7a:aa:e0:98':
560 write_files:
Dennis Dmitrievea894212020-03-12 21:36:43 +0200561 - path: '/etc/netplan/99-cz10099-ucp-control.yaml'
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200562 content: |
563 network:
564 version: 2
565 ethernets:
566 eno1:
567 dhcp4: false
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300568 mtu: 9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200569 ens4f1:
570 dhcp4: false
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300571 mtu: 9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200572 ens4f2:
573 dhcp4: false
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300574 mtu: 9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200575 ens4f3:
576 dhcp4: false
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300577 mtu: 9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200578 bonds:
579 bond0:
580 dhcp4: no
581 interfaces: [eno1, ens4f1]
582 parameters:
583 mode: active-backup
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300584 mii-monitor-interval: 1000
585 mtu: 9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200586 bond1:
587 dhcp4: no
588 interfaces: [ens4f2, ens4f3]
589 parameters:
590 mode: active-backup
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300591 mii-monitor-interval: 1000
592 mtu: 9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200593 vlans:
594 k8s-control:
595 id: 411
596 link: bond0
Dennis Dmitrievea894212020-03-12 21:36:43 +0200597 addresses:
598 # Hardcoded IP for the UCP node (when UCP_MASTER_HOST is empty), to replace PXE with k8s_control IP
599 - {% if UCP_MASTER_HOST == "" %}172.16.50.254/25{% else %}172.16.50.138/25{% endif %}
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200600 os-floating:
601 id: 412
602 link: bond1
603 k8s-metallb:
604 id: 413
605 link: bond0
Dennis Dmitrievea894212020-03-12 21:36:43 +0200606 management:
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200607 id: 414
608 link: bond0
Dennis Dmitrievea894212020-03-12 21:36:43 +0200609
610 '0c:c4:7a:aa:78:7c':
611 write_files:
612 - path: '/etc/netplan/99-cz10100-ucp-control.yaml'
613 content: |
614 network:
615 version: 2
616 ethernets:
617 eno1:
618 dhcp4: false
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300619 mtu: 9100
Dennis Dmitrievea894212020-03-12 21:36:43 +0200620 ens4f1:
621 dhcp4: false
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300622 mtu: 9100
Dennis Dmitrievea894212020-03-12 21:36:43 +0200623 ens4f2:
624 dhcp4: false
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300625 mtu: 9100
Dennis Dmitrievea894212020-03-12 21:36:43 +0200626 ens4f3:
627 dhcp4: false
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300628 mtu: 9100
Dennis Dmitrievea894212020-03-12 21:36:43 +0200629 bonds:
630 bond0:
631 dhcp4: no
632 interfaces: [eno1, ens4f1]
633 parameters:
634 mode: active-backup
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300635 mii-monitor-interval: 1000
636 mtu: 9100
Dennis Dmitrievea894212020-03-12 21:36:43 +0200637 bond1:
638 dhcp4: no
639 interfaces: [ens4f2, ens4f3]
640 parameters:
641 mode: active-backup
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300642 mii-monitor-interval: 1000
643 mtu: 9100
Dennis Dmitrievea894212020-03-12 21:36:43 +0200644 vlans:
645 k8s-control:
646 id: 411
647 link: bond0
648 addresses:
649 # Hardcoded IP for the UCP node (when UCP_MASTER_HOST is empty), to replace PXE with k8s_control IP
650 - {% if UCP_MASTER_HOST == "" %}172.16.50.254/25{% else %}172.16.50.139/25{% endif %}
651 os-floating:
652 id: 412
653 link: bond1
Dennis Dmitrievea894212020-03-12 21:36:43 +0200654 k8s-metallb:
655 id: 413
656 link: bond0
657 management:
658 id: 414
659 link: bond0
660
661 '0c:c4:7a:55:6a:28':
662 write_files:
663 - path: '/etc/netplan/99-cz7636-os-compute.yaml'
664 content: |
665 network:
666 version: 2
667 ethernets:
668 enp3s0f0:
669 dhcp4: false
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300670 mtu: 9100
Dennis Dmitrievea894212020-03-12 21:36:43 +0200671 enp3s0f1:
672 dhcp4: false
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300673 mtu: 9100
Dennis Dmitrievea894212020-03-12 21:36:43 +0200674 enp3s0f2:
675 dhcp4: false
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300676 mtu: 9100
Dennis Dmitrievea894212020-03-12 21:36:43 +0200677 enp3s0f3:
678 dhcp4: false
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300679 mtu: 9100
Dennis Dmitrievea894212020-03-12 21:36:43 +0200680 bonds:
681 bond0:
682 dhcp4: no
683 interfaces: [enp3s0f0, enp3s0f1]
684 parameters:
685 mode: active-backup
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300686 mii-monitor-interval: 1000
687 mtu: 9100
Dennis Dmitrievea894212020-03-12 21:36:43 +0200688 bond1:
689 dhcp4: no
690 interfaces: [enp3s0f2, enp3s0f3]
691 parameters:
692 mode: active-backup
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300693 mii-monitor-interval: 1000
694 mtu: 9100
Dennis Dmitrievea894212020-03-12 21:36:43 +0200695 vlans:
696 k8s-control:
697 id: 411
698 link: bond0
699 addresses:
700 - 172.16.50.140/25
701 os-floating:
702 id: 412
703 link: bond1
Dennis Dmitrievea894212020-03-12 21:36:43 +0200704 k8s-metallb:
705 id: 413
706 link: bond0
707 management:
708 id: 414
709 link: bond0
710 ceph-control:
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200711 id: 415
712 link: bond1
Dennis Dmitrievea894212020-03-12 21:36:43 +0200713 addresses:
714 - {{ STORAGE_FRONTEND_INTERFACE_IP }}/{{ STORAGE_FRONTEND_NETWORK_NETMASK }}
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300715 mtu: 9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200716 os-tenant:
717 id: 416
718 link: bond1
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300719 addresses:
720 - 10.14.0.17/24
721 mtu: 9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200722
Dennis Dmitrievea894212020-03-12 21:36:43 +0200723 '0c:c4:7a:54:a2:5e':
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200724 write_files:
Dennis Dmitrievea894212020-03-12 21:36:43 +0200725 - path: '/etc/netplan/99-cz7641-os-compute.yaml'
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200726 content: |
727 network:
728 version: 2
729 ethernets:
Dennis Dmitrievea894212020-03-12 21:36:43 +0200730 enp3s0f0:
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200731 dhcp4: false
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300732 mtu: 9100
Dennis Dmitrievea894212020-03-12 21:36:43 +0200733 enp3s0f1:
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200734 dhcp4: false
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300735 mtu: 9100
Dennis Dmitrievea894212020-03-12 21:36:43 +0200736 enp3s0f2:
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200737 dhcp4: false
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300738 mtu: 9100
Dennis Dmitrievea894212020-03-12 21:36:43 +0200739 enp3s0f3:
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200740 dhcp4: false
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300741 mtu: 9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200742 bonds:
743 bond0:
744 dhcp4: no
Dennis Dmitrievea894212020-03-12 21:36:43 +0200745 interfaces: [enp3s0f0, enp3s0f1]
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200746 parameters:
747 mode: active-backup
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300748 mii-monitor-interval: 1000
749 mtu: 9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200750 bond1:
751 dhcp4: no
Dennis Dmitrievea894212020-03-12 21:36:43 +0200752 interfaces: [enp3s0f2, enp3s0f3]
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200753 parameters:
754 mode: active-backup
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300755 mii-monitor-interval: 1000
756 mtu: 9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200757 vlans:
758 k8s-control:
759 id: 411
760 link: bond0
Dennis Dmitrievea894212020-03-12 21:36:43 +0200761 addresses:
762 - 172.16.50.141/25
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200763 os-floating:
764 id: 412
765 link: bond1
766 k8s-metallb:
767 id: 413
768 link: bond0
Dennis Dmitrievea894212020-03-12 21:36:43 +0200769 management:
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200770 id: 414
771 link: bond0
Dennis Dmitrievea894212020-03-12 21:36:43 +0200772 ceph-control:
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200773 id: 415
774 link: bond1
Dennis Dmitrievea894212020-03-12 21:36:43 +0200775 addresses:
776 - {{ STORAGE_FRONTEND_INTERFACE_IP }}/{{ STORAGE_FRONTEND_NETWORK_NETMASK }}
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300777 mtu: 9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200778 os-tenant:
779 id: 416
780 link: bond1
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300781 addresses:
782 - 10.14.0.18/24
783 mtu: 9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200784
Dennis Dmitrievea894212020-03-12 21:36:43 +0200785 '0c:c4:7a:54:a0:50':
786 write_files:
787 - path: '/etc/netplan/99-cz7642-os-compute.yaml'
788 content: |
789 network:
790 version: 2
791 ethernets:
792 enp3s0f0:
793 dhcp4: false
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300794 mtu: 9100
Dennis Dmitrievea894212020-03-12 21:36:43 +0200795 enp3s0f1:
796 dhcp4: false
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300797 mtu: 9100
Dennis Dmitrievea894212020-03-12 21:36:43 +0200798 enp3s0f2:
799 dhcp4: false
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300800 mtu: 9100
Dennis Dmitrievea894212020-03-12 21:36:43 +0200801 enp3s0f3:
802 dhcp4: false
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300803 mtu: 9100
Dennis Dmitrievea894212020-03-12 21:36:43 +0200804 bonds:
805 bond0:
806 dhcp4: no
807 interfaces: [enp3s0f0, enp3s0f1]
808 parameters:
809 mode: active-backup
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300810 mii-monitor-interval: 1000
811 mtu: 9100
Dennis Dmitrievea894212020-03-12 21:36:43 +0200812 bond1:
813 dhcp4: no
814 interfaces: [enp3s0f2, enp3s0f3]
815 parameters:
816 mode: active-backup
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300817 mii-monitor-interval: 1000
818 mtu: 9100
Dennis Dmitrievea894212020-03-12 21:36:43 +0200819 vlans:
820 k8s-control:
821 id: 411
822 link: bond0
823 addresses:
824 - 172.16.50.142/25
825 os-floating:
826 id: 412
827 link: bond1
Dennis Dmitrievea894212020-03-12 21:36:43 +0200828 k8s-metallb:
829 id: 413
830 link: bond0
831 management:
832 id: 414
833 link: bond0
834 ceph-control:
835 id: 415
836 link: bond1
837 addresses:
838 - {{ STORAGE_FRONTEND_INTERFACE_IP }}/{{ STORAGE_FRONTEND_NETWORK_NETMASK }}
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300839 mtu: 9100
Dennis Dmitrievea894212020-03-12 21:36:43 +0200840 os-tenant:
841 id: 416
842 link: bond1
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300843 addresses:
844 - 10.14.0.19/24
845 mtu: 9100
Dennis Dmitrievea894212020-03-12 21:36:43 +0200846
847
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200848 functions_override: |
849
850 function network_config {
851
852 DEBIAN_FRONTEND=noninteractive apt -y install bridge-utils ifenslave vlan
853 sudo modprobe bonding
854 netplan --debug apply
855 sleep 15
856
Dennis Dmitrievea894212020-03-12 21:36:43 +0200857 # Re-init the variables related to the just configured k8s-control network
858 CONTROL_IP_ADDRESS=$(ip route get ${CONTROL_NETWORK_CIDR%/*} | head -n1 | fgrep -v ' via ' | awk '/ src / {print $6}')
859
860 #UCP_MASTER_HOST=${UCP_MASTER_HOST:-${CONTROL_IP_ADDRESS}}
861 # Hardcoded IP for the UCP node because the servers output contain PXE IP instead of k8s_control IP
862 UCP_MASTER_HOST=172.16.50.254
863 UCP_IP_ADDRESS=${UCP_IP_ADDRESS:-$CONTROL_IP_ADDRESS}
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200864 }