blob: 8233c11c08e7c1c37badc5549d17484251bb880b [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
Oleksii Butenkodaeb5f42020-04-12 12:07:56 +030018 spares_flavor: si-bm-410-64-16-hdd2x2t-ssd1x500g-spare
Dennis Dmitriev81da4222020-02-25 17:53:04 +020019 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'
Vasyl Saienko73082e52020-04-03 18:52:57 +030042 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 +020043 cmp_metadata: {"labels": {"openstack-compute-node":"enabled","openvswitch":"enabled"}}
Dennis Dmitriev81da4222020-02-25 17:53:04 +020044 osd_metadata: {"labels": {"role": "ceph-osd-node"}}
45 spare_metadata: {"labels": {"role": "spare-node"}}
46
47
48 hardware_metadata: |
49 '0c:c4:7a:33:26:7c':
50 write_files:
Oleksii Butenkodaeb5f42020-04-12 12:07:56 +030051 - path: /usr/share/metadata/ceph.yaml
52 content: |
53 storageDevices:
54 - name: sdb
55 role: hdd
56 sizeGb: 500
57 - name: sdc
58 role: hdd
59 sizeGb: 500
60 ramGb: 64
61 cores: 12
62 ips:
63 - 192.168.122.101
64 crushPath: {}
Dennis Dmitrievea894212020-03-12 21:36:43 +020065 - path: '/etc/netplan/99-cz7714-osd.yaml'
Dennis Dmitriev81da4222020-02-25 17:53:04 +020066 content: |
67 network:
68 version: 2
69 ethernets:
Oleksii Butenkodaeb5f42020-04-12 12:07:56 +030070 eno1: &mtu9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +020071 dhcp4: false
Oleksii Butenkob8dcc262020-04-01 12:15:07 +030072 mtu: 9100
Oleksii Butenkodaeb5f42020-04-12 12:07:56 +030073 ens3f1: *mtu9100
74 ens3f2: *mtu9100
75 ens3f3: *mtu9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +020076 bonds:
77 bond0:
78 dhcp4: no
79 interfaces: [eno1, ens3f1]
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 bond1:
85 dhcp4: no
86 interfaces: [ens3f2, ens3f3]
87 parameters:
88 mode: active-backup
Oleksii Butenkob8dcc262020-04-01 12:15:07 +030089 mii-monitor-interval: 1000
90 mtu: 9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +020091 vlans:
92 k8s-control:
93 id: 411
94 link: bond0
Dennis Dmitrievea894212020-03-12 21:36:43 +020095 addresses:
96 - 172.16.50.130/25
Dennis Dmitriev81da4222020-02-25 17:53:04 +020097 os-floating:
98 id: 412
99 link: bond1
100 k8s-metallb:
101 id: 413
102 link: bond0
Dennis Dmitrievea894212020-03-12 21:36:43 +0200103 management:
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200104 id: 414
105 link: bond0
Dennis Dmitrievea894212020-03-12 21:36:43 +0200106 ceph-control:
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200107 id: 415
108 link: bond1
Dennis Dmitrievea894212020-03-12 21:36:43 +0200109 addresses:
110 - {{ STORAGE_FRONTEND_INTERFACE_IP }}/{{ STORAGE_FRONTEND_NETWORK_NETMASK }}
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300111 mtu: 9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200112 os-tenant:
113 id: 416
114 link: bond1
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300115 addresses:
116 - 10.14.0.10/24
117 mtu: 9100
Dennis Dmitrievea894212020-03-12 21:36:43 +0200118 ceph-replica:
119 id: 417
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300120 link: bond0
Dennis Dmitrievea894212020-03-12 21:36:43 +0200121 addresses:
122 - {{ STORAGE_BACKEND_INTERFACE_IP }}/{{ STORAGE_BACKEND_NETWORK_NETMASK }}
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300123 mtu: 9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200124
125 '0c:c4:7a:33:26:6e':
126 write_files:
Oleksii Butenkodaeb5f42020-04-12 12:07:56 +0300127 - path: /usr/share/metadata/ceph.yaml
128 content: |
129 storageDevices:
130 - name: sdb
131 role: hdd
132 sizeGb: 500
133 - name: sdc
134 role: hdd
135 sizeGb: 500
136 ramGb: 64
137 cores: 12
138 ips:
139 - 192.168.122.102
140 crushPath: {}
Dennis Dmitrievea894212020-03-12 21:36:43 +0200141 - path: '/etc/netplan/99-cz7725-osd.yaml'
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200142 content: |
143 network:
144 version: 2
145 ethernets:
Oleksii Butenkodaeb5f42020-04-12 12:07:56 +0300146 eno1: &mtu9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200147 dhcp4: false
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300148 mtu: 9100
Oleksii Butenkodaeb5f42020-04-12 12:07:56 +0300149 ens3f1: *mtu9100
150 ens3f2: *mtu9100
151 ens3f3: *mtu9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200152 bonds:
153 bond0:
154 dhcp4: no
155 interfaces: [eno1, ens3f1]
156 parameters:
157 mode: active-backup
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300158 mii-monitor-interval: 1000
159 mtu: 9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200160 bond1:
161 dhcp4: no
162 interfaces: [ens3f2, ens3f3]
163 parameters:
164 mode: active-backup
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300165 mii-monitor-interval: 1000
166 mtu: 9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200167 vlans:
168 k8s-control:
169 id: 411
170 link: bond0
Dennis Dmitrievea894212020-03-12 21:36:43 +0200171 addresses:
172 - 172.16.50.131/25
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200173 os-floating:
174 id: 412
175 link: bond1
176 k8s-metallb:
177 id: 413
178 link: bond0
Dennis Dmitrievea894212020-03-12 21:36:43 +0200179 management:
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200180 id: 414
181 link: bond0
Dennis Dmitrievea894212020-03-12 21:36:43 +0200182 ceph-control:
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200183 id: 415
184 link: bond1
Dennis Dmitrievea894212020-03-12 21:36:43 +0200185 addresses:
186 - {{ STORAGE_FRONTEND_INTERFACE_IP }}/{{ STORAGE_FRONTEND_NETWORK_NETMASK }}
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300187 mtu: 9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200188 os-tenant:
189 id: 416
190 link: bond1
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300191 addresses:
192 - 10.14.0.11/24
193 mtu: 9100
Dennis Dmitrievea894212020-03-12 21:36:43 +0200194 ceph-replica:
195 id: 417
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300196 link: bond0
Dennis Dmitrievea894212020-03-12 21:36:43 +0200197 addresses:
198 - {{ STORAGE_BACKEND_INTERFACE_IP }}/{{ STORAGE_BACKEND_NETWORK_NETMASK }}
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300199 mtu: 9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200200
201 '0c:c4:7a:33:26:6a':
202 write_files:
Oleksii Butenkodaeb5f42020-04-12 12:07:56 +0300203 - path: /usr/share/metadata/ceph.yaml
204 content: |
205 storageDevices:
206 - name: sdb
207 role: hdd
208 sizeGb: 500
209 - name: sdc
210 role: hdd
211 sizeGb: 500
212 ramGb: 64
213 cores: 12
214 ips:
215 - 192.168.122.103
216 crushPath: {}
Dennis Dmitrievea894212020-03-12 21:36:43 +0200217 - path: '/etc/netplan/99-cz7726-osd.yaml'
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200218 content: |
219 network:
220 version: 2
221 ethernets:
Oleksii Butenkodaeb5f42020-04-12 12:07:56 +0300222 eno1: &mtu9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200223 dhcp4: false
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300224 mtu: 9100
Oleksii Butenkodaeb5f42020-04-12 12:07:56 +0300225 ens3f1: *mtu9100
226 ens3f2: *mtu9100
227 ens3f3: *mtu9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200228 bonds:
229 bond0:
230 dhcp4: no
231 interfaces: [eno1, ens3f1]
232 parameters:
233 mode: active-backup
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300234 mii-monitor-interval: 1000
235 mtu: 9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200236 bond1:
237 dhcp4: no
238 interfaces: [ens3f2, ens3f3]
239 parameters:
240 mode: active-backup
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300241 mii-monitor-interval: 1000
242 mtu: 9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200243 vlans:
244 k8s-control:
245 id: 411
246 link: bond0
Dennis Dmitrievea894212020-03-12 21:36:43 +0200247 addresses:
248 - 172.16.50.132/25
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200249 os-floating:
250 id: 412
251 link: bond1
252 k8s-metallb:
253 id: 413
254 link: bond0
Dennis Dmitrievea894212020-03-12 21:36:43 +0200255 management:
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200256 id: 414
257 link: bond0
Dennis Dmitrievea894212020-03-12 21:36:43 +0200258 ceph-control:
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200259 id: 415
260 link: bond1
Dennis Dmitrievea894212020-03-12 21:36:43 +0200261 addresses:
262 - {{ STORAGE_FRONTEND_INTERFACE_IP }}/{{ STORAGE_FRONTEND_NETWORK_NETMASK }}
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300263 mtu: 9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200264 os-tenant:
265 id: 416
266 link: bond1
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300267 addresses:
268 - 10.14.0.12/24
269 mtu: 9100
Dennis Dmitrievea894212020-03-12 21:36:43 +0200270 ceph-replica:
271 id: 417
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300272 link: bond0
Dennis Dmitrievea894212020-03-12 21:36:43 +0200273 addresses:
274 - {{ STORAGE_BACKEND_INTERFACE_IP }}/{{ STORAGE_BACKEND_NETWORK_NETMASK }}
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300275 mtu: 9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200276
277 '0c:c4:7a:34:92:94':
278 write_files:
Dennis Dmitrievea894212020-03-12 21:36:43 +0200279 - path: '/etc/netplan/99-cz7727-spare.yaml'
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200280 content: |
281 network:
282 version: 2
283 ethernets:
Oleksii Butenkodaeb5f42020-04-12 12:07:56 +0300284 eno1: &mtu9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200285 dhcp4: false
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300286 mtu: 9100
Oleksii Butenkodaeb5f42020-04-12 12:07:56 +0300287 ens3f1: *mtu9100
288 ens3f2: *mtu9100
289 ens3f3: *mtu9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200290 bonds:
291 bond0:
292 dhcp4: no
293 interfaces: [eno1, ens3f1]
294 parameters:
295 mode: active-backup
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300296 mii-monitor-interval: 1000
297 mtu: 9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200298 bond1:
299 dhcp4: no
300 interfaces: [ens3f2, ens3f3]
301 parameters:
302 mode: active-backup
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300303 mii-monitor-interval: 1000
304 mtu: 9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200305 vlans:
306 k8s-control:
307 id: 411
308 link: bond0
Dennis Dmitrievea894212020-03-12 21:36:43 +0200309 addresses:
310 - 172.16.50.133/25
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200311 os-floating:
312 id: 412
313 link: bond1
314 k8s-metallb:
315 id: 413
316 link: bond0
Dennis Dmitrievea894212020-03-12 21:36:43 +0200317 management:
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200318 id: 414
319 link: bond0
Dennis Dmitrievea894212020-03-12 21:36:43 +0200320 ceph-control:
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200321 id: 415
322 link: bond1
Dennis Dmitrievea894212020-03-12 21:36:43 +0200323 addresses:
324 - {{ STORAGE_FRONTEND_INTERFACE_IP }}/{{ STORAGE_FRONTEND_NETWORK_NETMASK }}
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300325 mtu: 9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200326 os-tenant:
327 id: 416
328 link: bond1
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300329 addresses:
330 - 10.14.0.13/24
331 mtu: 9100
Dennis Dmitrievea894212020-03-12 21:36:43 +0200332 ceph-replica:
333 id: 417
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300334 link: bond0
Dennis Dmitrievea894212020-03-12 21:36:43 +0200335 addresses:
336 - {{ STORAGE_BACKEND_INTERFACE_IP }}/{{ STORAGE_BACKEND_NETWORK_NETMASK }}
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300337 mtu: 9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200338
339 '0c:c4:7a:aa:e0:9e':
340 write_files:
Dennis Dmitrievea894212020-03-12 21:36:43 +0200341 - path: '/etc/netplan/99-cz10095-os-control.yaml'
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200342 content: |
343 network:
344 version: 2
345 ethernets:
Oleksii Butenkodaeb5f42020-04-12 12:07:56 +0300346 ens11f0: &mtu9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200347 dhcp4: false
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300348 mtu: 9100
Oleksii Butenkodaeb5f42020-04-12 12:07:56 +0300349 ens11f1: *mtu9100
350 ens11f2: *mtu9100
351 ens11f3: *mtu9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200352 bonds:
353 bond0:
354 dhcp4: no
355 interfaces: [ens11f0, ens11f1]
356 parameters:
357 mode: active-backup
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300358 mii-monitor-interval: 1000
359 mtu: 9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200360 bond1:
361 dhcp4: no
362 interfaces: [ens11f2, ens11f3]
363 parameters:
364 mode: active-backup
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300365 mii-monitor-interval: 1000
366 mtu: 9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200367 vlans:
368 k8s-control:
369 id: 411
370 link: bond0
Dennis Dmitrievea894212020-03-12 21:36:43 +0200371 addresses:
372 - 172.16.50.134/25
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200373 os-floating:
374 id: 412
375 link: bond1
376 k8s-metallb:
377 id: 413
378 link: bond0
Dennis Dmitrievea894212020-03-12 21:36:43 +0200379 management:
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200380 id: 414
381 link: bond0
Dennis Dmitrievea894212020-03-12 21:36:43 +0200382 ceph-control:
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200383 id: 415
384 link: bond1
Dennis Dmitrievea894212020-03-12 21:36:43 +0200385 addresses:
386 - {{ STORAGE_FRONTEND_INTERFACE_IP }}/{{ STORAGE_FRONTEND_NETWORK_NETMASK }}
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300387 mtu: 9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200388 os-tenant:
389 id: 416
390 link: bond1
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300391 addresses:
392 - 10.14.0.14/24
393 mtu: 9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200394
395 '0c:c4:7a:aa:e0:9c':
396 write_files:
Dennis Dmitrievea894212020-03-12 21:36:43 +0200397 - path: '/etc/netplan/99-cz10096-os-control.yaml'
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200398 content: |
399 network:
400 version: 2
401 ethernets:
Oleksii Butenkodaeb5f42020-04-12 12:07:56 +0300402 ens11f0: &mtu9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200403 dhcp4: false
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300404 mtu: 9100
Oleksii Butenkodaeb5f42020-04-12 12:07:56 +0300405 ens11f1: *mtu9100
406 ens11f2: *mtu9100
407 ens11f3: *mtu9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200408 bonds:
409 bond0:
410 dhcp4: no
411 interfaces: [ens11f0, ens11f1]
412 parameters:
413 mode: active-backup
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300414 mii-monitor-interval: 1000
415 mtu: 9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200416 bond1:
417 dhcp4: no
418 interfaces: [ens11f2, ens11f3]
419 parameters:
420 mode: active-backup
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300421 mii-monitor-interval: 1000
422 mtu: 9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200423 vlans:
424 k8s-control:
425 id: 411
426 link: bond0
Dennis Dmitrievea894212020-03-12 21:36:43 +0200427 addresses:
428 - 172.16.50.135/25
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200429 os-floating:
430 id: 412
431 link: bond1
432 k8s-metallb:
433 id: 413
434 link: bond0
Dennis Dmitrievea894212020-03-12 21:36:43 +0200435 management:
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200436 id: 414
437 link: bond0
Dennis Dmitrievea894212020-03-12 21:36:43 +0200438 ceph-control:
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200439 id: 415
440 link: bond1
Dennis Dmitrievea894212020-03-12 21:36:43 +0200441 addresses:
442 - {{ STORAGE_FRONTEND_INTERFACE_IP }}/{{ STORAGE_FRONTEND_NETWORK_NETMASK }}
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300443 mtu: 9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200444 os-tenant:
445 id: 416
446 link: bond1
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300447 addresses:
448 - 10.14.0.15/24
449 mtu: 9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200450
451 '0c:c4:7a:aa:78:2c':
452 write_files:
Dennis Dmitrievea894212020-03-12 21:36:43 +0200453 - path: '/etc/netplan/99-cz10097-os-control.yaml'
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200454 content: |
455 network:
456 version: 2
457 ethernets:
Oleksii Butenkodaeb5f42020-04-12 12:07:56 +0300458 ens11f0: &mtu9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200459 dhcp4: false
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300460 mtu: 9100
Oleksii Butenkodaeb5f42020-04-12 12:07:56 +0300461 ens11f1: *mtu9100
462 ens11f2: *mtu9100
463 ens11f3: *mtu9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200464 bonds:
465 bond0:
466 dhcp4: no
467 interfaces: [ens11f0, ens11f1]
468 parameters:
469 mode: active-backup
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300470 mii-monitor-interval: 1000
471 mtu: 9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200472 bond1:
473 dhcp4: no
474 interfaces: [ens11f2, ens11f3]
475 parameters:
476 mode: active-backup
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300477 mii-monitor-interval: 1000
478 mtu: 9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200479 vlans:
480 k8s-control:
481 id: 411
482 link: bond0
Dennis Dmitrievea894212020-03-12 21:36:43 +0200483 addresses:
484 - 172.16.50.136/25
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200485 os-floating:
486 id: 412
487 link: bond1
488 k8s-metallb:
489 id: 413
490 link: bond0
Dennis Dmitrievea894212020-03-12 21:36:43 +0200491 management:
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200492 id: 414
493 link: bond0
Dennis Dmitrievea894212020-03-12 21:36:43 +0200494 ceph-control:
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200495 id: 415
496 link: bond1
Dennis Dmitrievea894212020-03-12 21:36:43 +0200497 addresses:
498 - {{ STORAGE_FRONTEND_INTERFACE_IP }}/{{ STORAGE_FRONTEND_NETWORK_NETMASK }}
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300499 mtu: 9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200500 os-tenant:
501 id: 416
502 link: bond1
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300503 addresses:
504 - 10.14.0.16/24
505 mtu: 9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200506
507 '0c:c4:7a:aa:78:7a':
508 write_files:
Dennis Dmitrievea894212020-03-12 21:36:43 +0200509 - path: '/etc/netplan/99-cz10098-ucp-control.yaml'
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200510 content: |
511 network:
512 version: 2
513 ethernets:
Oleksii Butenkodaeb5f42020-04-12 12:07:56 +0300514 eno1: &mtu9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200515 dhcp4: false
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300516 mtu: 9100
Oleksii Butenkodaeb5f42020-04-12 12:07:56 +0300517 ens4f1: *mtu9100
518 ens4f2: *mtu9100
519 ens4f3: *mtu9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200520 bonds:
521 bond0:
522 dhcp4: no
523 interfaces: [eno1, ens4f1]
524 parameters:
525 mode: active-backup
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300526 mii-monitor-interval: 1000
527 mtu: 9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200528 bond1:
529 dhcp4: no
530 interfaces: [ens4f2, ens4f3]
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 vlans:
536 k8s-control:
537 id: 411
538 link: bond0
Dennis Dmitrievea894212020-03-12 21:36:43 +0200539 addresses:
540 # Hardcoded IP for the UCP node (when UCP_MASTER_HOST is empty), to replace PXE with k8s_control IP
541 - {% if UCP_MASTER_HOST == "" %}172.16.50.254/25{% else %}172.16.50.137/25{% endif %}
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200542 os-floating:
543 id: 412
544 link: bond1
545 k8s-metallb:
546 id: 413
547 link: bond0
Dennis Dmitrievea894212020-03-12 21:36:43 +0200548 management:
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200549 id: 414
550 link: bond0
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200551
552 '0c:c4:7a:aa:e0:98':
553 write_files:
Dennis Dmitrievea894212020-03-12 21:36:43 +0200554 - path: '/etc/netplan/99-cz10099-ucp-control.yaml'
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200555 content: |
556 network:
557 version: 2
558 ethernets:
Oleksii Butenkodaeb5f42020-04-12 12:07:56 +0300559 eno1: &mtu9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200560 dhcp4: false
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300561 mtu: 9100
Oleksii Butenkodaeb5f42020-04-12 12:07:56 +0300562 ens4f1: *mtu9100
563 ens4f2: *mtu9100
564 ens4f3: *mtu9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200565 bonds:
566 bond0:
567 dhcp4: no
568 interfaces: [eno1, ens4f1]
569 parameters:
570 mode: active-backup
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300571 mii-monitor-interval: 1000
572 mtu: 9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200573 bond1:
574 dhcp4: no
575 interfaces: [ens4f2, ens4f3]
576 parameters:
577 mode: active-backup
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300578 mii-monitor-interval: 1000
579 mtu: 9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200580 vlans:
581 k8s-control:
582 id: 411
583 link: bond0
Dennis Dmitrievea894212020-03-12 21:36:43 +0200584 addresses:
585 # Hardcoded IP for the UCP node (when UCP_MASTER_HOST is empty), to replace PXE with k8s_control IP
586 - {% if UCP_MASTER_HOST == "" %}172.16.50.254/25{% else %}172.16.50.138/25{% endif %}
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200587 os-floating:
588 id: 412
589 link: bond1
590 k8s-metallb:
591 id: 413
592 link: bond0
Dennis Dmitrievea894212020-03-12 21:36:43 +0200593 management:
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200594 id: 414
595 link: bond0
Dennis Dmitrievea894212020-03-12 21:36:43 +0200596
597 '0c:c4:7a:aa:78:7c':
598 write_files:
599 - path: '/etc/netplan/99-cz10100-ucp-control.yaml'
600 content: |
601 network:
602 version: 2
603 ethernets:
Oleksii Butenkodaeb5f42020-04-12 12:07:56 +0300604 eno1: &mtu9100
Dennis Dmitrievea894212020-03-12 21:36:43 +0200605 dhcp4: false
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300606 mtu: 9100
Oleksii Butenkodaeb5f42020-04-12 12:07:56 +0300607 ens4f1: *mtu9100
608 ens4f2: *mtu9100
609 ens4f3: *mtu9100
Dennis Dmitrievea894212020-03-12 21:36:43 +0200610 bonds:
611 bond0:
612 dhcp4: no
613 interfaces: [eno1, ens4f1]
614 parameters:
615 mode: active-backup
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300616 mii-monitor-interval: 1000
617 mtu: 9100
Dennis Dmitrievea894212020-03-12 21:36:43 +0200618 bond1:
619 dhcp4: no
620 interfaces: [ens4f2, ens4f3]
621 parameters:
622 mode: active-backup
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300623 mii-monitor-interval: 1000
624 mtu: 9100
Dennis Dmitrievea894212020-03-12 21:36:43 +0200625 vlans:
626 k8s-control:
627 id: 411
628 link: bond0
629 addresses:
630 # Hardcoded IP for the UCP node (when UCP_MASTER_HOST is empty), to replace PXE with k8s_control IP
631 - {% if UCP_MASTER_HOST == "" %}172.16.50.254/25{% else %}172.16.50.139/25{% endif %}
632 os-floating:
633 id: 412
634 link: bond1
Dennis Dmitrievea894212020-03-12 21:36:43 +0200635 k8s-metallb:
636 id: 413
637 link: bond0
638 management:
639 id: 414
640 link: bond0
641
642 '0c:c4:7a:55:6a:28':
643 write_files:
644 - path: '/etc/netplan/99-cz7636-os-compute.yaml'
645 content: |
646 network:
647 version: 2
648 ethernets:
Oleksii Butenkodaeb5f42020-04-12 12:07:56 +0300649 enp3s0f0: &mtu9100
Dennis Dmitrievea894212020-03-12 21:36:43 +0200650 dhcp4: false
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300651 mtu: 9100
Oleksii Butenkodaeb5f42020-04-12 12:07:56 +0300652 enp3s0f1: *mtu9100
653 enp3s0f2: *mtu9100
654 enp3s0f3: *mtu9100
Dennis Dmitrievea894212020-03-12 21:36:43 +0200655 bonds:
656 bond0:
657 dhcp4: no
658 interfaces: [enp3s0f0, enp3s0f1]
659 parameters:
660 mode: active-backup
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300661 mii-monitor-interval: 1000
662 mtu: 9100
Dennis Dmitrievea894212020-03-12 21:36:43 +0200663 bond1:
664 dhcp4: no
665 interfaces: [enp3s0f2, enp3s0f3]
666 parameters:
667 mode: active-backup
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300668 mii-monitor-interval: 1000
669 mtu: 9100
Dennis Dmitrievea894212020-03-12 21:36:43 +0200670 vlans:
671 k8s-control:
672 id: 411
673 link: bond0
674 addresses:
675 - 172.16.50.140/25
676 os-floating:
677 id: 412
678 link: bond1
Dennis Dmitrievea894212020-03-12 21:36:43 +0200679 k8s-metallb:
680 id: 413
681 link: bond0
682 management:
683 id: 414
684 link: bond0
685 ceph-control:
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200686 id: 415
687 link: bond1
Dennis Dmitrievea894212020-03-12 21:36:43 +0200688 addresses:
689 - {{ STORAGE_FRONTEND_INTERFACE_IP }}/{{ STORAGE_FRONTEND_NETWORK_NETMASK }}
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300690 mtu: 9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200691 os-tenant:
692 id: 416
693 link: bond1
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300694 addresses:
695 - 10.14.0.17/24
696 mtu: 9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200697
Dennis Dmitrievea894212020-03-12 21:36:43 +0200698 '0c:c4:7a:54:a2:5e':
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200699 write_files:
Dennis Dmitrievea894212020-03-12 21:36:43 +0200700 - path: '/etc/netplan/99-cz7641-os-compute.yaml'
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200701 content: |
702 network:
703 version: 2
704 ethernets:
Oleksii Butenkodaeb5f42020-04-12 12:07:56 +0300705 enp3s0f0: &mtu9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200706 dhcp4: false
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300707 mtu: 9100
Oleksii Butenkodaeb5f42020-04-12 12:07:56 +0300708 enp3s0f1: *mtu9100
709 enp3s0f2: *mtu9100
710 enp3s0f3: *mtu9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200711 bonds:
712 bond0:
713 dhcp4: no
Dennis Dmitrievea894212020-03-12 21:36:43 +0200714 interfaces: [enp3s0f0, enp3s0f1]
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200715 parameters:
716 mode: active-backup
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300717 mii-monitor-interval: 1000
718 mtu: 9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200719 bond1:
720 dhcp4: no
Dennis Dmitrievea894212020-03-12 21:36:43 +0200721 interfaces: [enp3s0f2, enp3s0f3]
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200722 parameters:
723 mode: active-backup
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300724 mii-monitor-interval: 1000
725 mtu: 9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200726 vlans:
727 k8s-control:
728 id: 411
729 link: bond0
Dennis Dmitrievea894212020-03-12 21:36:43 +0200730 addresses:
731 - 172.16.50.141/25
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200732 os-floating:
733 id: 412
734 link: bond1
735 k8s-metallb:
736 id: 413
737 link: bond0
Dennis Dmitrievea894212020-03-12 21:36:43 +0200738 management:
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200739 id: 414
740 link: bond0
Dennis Dmitrievea894212020-03-12 21:36:43 +0200741 ceph-control:
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200742 id: 415
743 link: bond1
Dennis Dmitrievea894212020-03-12 21:36:43 +0200744 addresses:
745 - {{ STORAGE_FRONTEND_INTERFACE_IP }}/{{ STORAGE_FRONTEND_NETWORK_NETMASK }}
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300746 mtu: 9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200747 os-tenant:
748 id: 416
749 link: bond1
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300750 addresses:
751 - 10.14.0.18/24
752 mtu: 9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200753
Dennis Dmitrievea894212020-03-12 21:36:43 +0200754 '0c:c4:7a:54:a0:50':
755 write_files:
756 - path: '/etc/netplan/99-cz7642-os-compute.yaml'
757 content: |
758 network:
759 version: 2
760 ethernets:
Oleksii Butenkodaeb5f42020-04-12 12:07:56 +0300761 enp3s0f0: &mtu9100
Dennis Dmitrievea894212020-03-12 21:36:43 +0200762 dhcp4: false
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300763 mtu: 9100
Oleksii Butenkodaeb5f42020-04-12 12:07:56 +0300764 enp3s0f1: *mtu9100
765 enp3s0f2: *mtu9100
766 enp3s0f3: *mtu9100
Dennis Dmitrievea894212020-03-12 21:36:43 +0200767 bonds:
768 bond0:
769 dhcp4: no
770 interfaces: [enp3s0f0, enp3s0f1]
771 parameters:
772 mode: active-backup
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300773 mii-monitor-interval: 1000
774 mtu: 9100
Dennis Dmitrievea894212020-03-12 21:36:43 +0200775 bond1:
776 dhcp4: no
777 interfaces: [enp3s0f2, enp3s0f3]
778 parameters:
779 mode: active-backup
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300780 mii-monitor-interval: 1000
781 mtu: 9100
Dennis Dmitrievea894212020-03-12 21:36:43 +0200782 vlans:
783 k8s-control:
784 id: 411
785 link: bond0
786 addresses:
787 - 172.16.50.142/25
788 os-floating:
789 id: 412
790 link: bond1
Dennis Dmitrievea894212020-03-12 21:36:43 +0200791 k8s-metallb:
792 id: 413
793 link: bond0
794 management:
795 id: 414
796 link: bond0
797 ceph-control:
798 id: 415
799 link: bond1
800 addresses:
801 - {{ STORAGE_FRONTEND_INTERFACE_IP }}/{{ STORAGE_FRONTEND_NETWORK_NETMASK }}
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300802 mtu: 9100
Dennis Dmitrievea894212020-03-12 21:36:43 +0200803 os-tenant:
804 id: 416
805 link: bond1
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300806 addresses:
807 - 10.14.0.19/24
808 mtu: 9100
Dennis Dmitrievea894212020-03-12 21:36:43 +0200809
810
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200811 functions_override: |
812
813 function network_config {
814
815 DEBIAN_FRONTEND=noninteractive apt -y install bridge-utils ifenslave vlan
816 sudo modprobe bonding
817 netplan --debug apply
818 sleep 15
819
Dennis Dmitrievea894212020-03-12 21:36:43 +0200820 # Re-init the variables related to the just configured k8s-control network
821 CONTROL_IP_ADDRESS=$(ip route get ${CONTROL_NETWORK_CIDR%/*} | head -n1 | fgrep -v ' via ' | awk '/ src / {print $6}')
822
823 #UCP_MASTER_HOST=${UCP_MASTER_HOST:-${CONTROL_IP_ADDRESS}}
824 # Hardcoded IP for the UCP node because the servers output contain PXE IP instead of k8s_control IP
825 UCP_MASTER_HOST=172.16.50.254
826 UCP_IP_ADDRESS=${UCP_IP_ADDRESS:-$CONTROL_IP_ADDRESS}
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200827 }