blob: 57feb8784e328c369c0c10468efa74f3f72214b1 [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'
Oleksii Butenkob8dcc262020-04-01 12:15:07 +030042 ucp_metadata: {"role":"ucp", "labels": {"role": "stacklight", "stacklight": "enabled", "local-volume-provisioner": "enabled"}}
43 master_metadata: {"role":"master", "labels": {"role": "stacklight", "stacklight": "enabled", "local-volume-provisioner": "enabled"}}
Vasyl Saienko6d87c922020-03-24 21:18:52 +020044 worker_metadata: {"labels": {"openstack-control-plane":"enabled", "openvswitch":"enabled", "openstack-gateway": "enabled","local-volume-provisioner": "enabled"}}
Dennis Dmitrievea894212020-03-12 21:36:43 +020045 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
Oleksii Butenkob8dcc262020-04-01 12:15:07 +030060 mtu: 9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +020061 ens3f1:
62 dhcp4: false
Oleksii Butenkob8dcc262020-04-01 12:15:07 +030063 mtu: 9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +020064 ens3f2:
65 dhcp4: false
Oleksii Butenkob8dcc262020-04-01 12:15:07 +030066 mtu: 9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +020067 ens3f3:
68 dhcp4: false
Oleksii Butenkob8dcc262020-04-01 12:15:07 +030069 mtu: 9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +020070 bonds:
71 bond0:
72 dhcp4: no
73 interfaces: [eno1, ens3f1]
74 parameters:
75 mode: active-backup
Oleksii Butenkob8dcc262020-04-01 12:15:07 +030076 mii-monitor-interval: 1000
77 mtu: 9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +020078 bond1:
79 dhcp4: no
80 interfaces: [ens3f2, ens3f3]
81 parameters:
82 mode: active-backup
Oleksii Butenkob8dcc262020-04-01 12:15:07 +030083 mii-monitor-interval: 1000
84 mtu: 9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +020085 vlans:
86 k8s-control:
87 id: 411
88 link: bond0
Dennis Dmitrievea894212020-03-12 21:36:43 +020089 addresses:
90 - 172.16.50.130/25
Dennis Dmitriev81da4222020-02-25 17:53:04 +020091 os-floating:
92 id: 412
93 link: bond1
94 k8s-metallb:
95 id: 413
96 link: bond0
Dennis Dmitrievea894212020-03-12 21:36:43 +020097 management:
Dennis Dmitriev81da4222020-02-25 17:53:04 +020098 id: 414
99 link: bond0
Dennis Dmitrievea894212020-03-12 21:36:43 +0200100 ceph-control:
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200101 id: 415
102 link: bond1
Dennis Dmitrievea894212020-03-12 21:36:43 +0200103 addresses:
104 - {{ STORAGE_FRONTEND_INTERFACE_IP }}/{{ STORAGE_FRONTEND_NETWORK_NETMASK }}
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300105 mtu: 9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200106 os-tenant:
107 id: 416
108 link: bond1
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300109 addresses:
110 - 10.14.0.10/24
111 mtu: 9100
Dennis Dmitrievea894212020-03-12 21:36:43 +0200112 ceph-replica:
113 id: 417
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300114 link: bond0
Dennis Dmitrievea894212020-03-12 21:36:43 +0200115 addresses:
116 - {{ STORAGE_BACKEND_INTERFACE_IP }}/{{ STORAGE_BACKEND_NETWORK_NETMASK }}
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300117 mtu: 9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200118
119 '0c:c4:7a:33:26:6e':
120 write_files:
Dennis Dmitrievea894212020-03-12 21:36:43 +0200121 - path: '/etc/netplan/99-cz7725-osd.yaml'
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200122 content: |
123 network:
124 version: 2
125 ethernets:
126 eno1:
127 dhcp4: false
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300128 mtu: 9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200129 ens3f1:
130 dhcp4: false
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300131 mtu: 9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200132 ens3f2:
133 dhcp4: false
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300134 mtu: 9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200135 ens3f3:
136 dhcp4: false
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300137 mtu: 9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200138 bonds:
139 bond0:
140 dhcp4: no
141 interfaces: [eno1, ens3f1]
142 parameters:
143 mode: active-backup
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300144 mii-monitor-interval: 1000
145 mtu: 9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200146 bond1:
147 dhcp4: no
148 interfaces: [ens3f2, ens3f3]
149 parameters:
150 mode: active-backup
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300151 mii-monitor-interval: 1000
152 mtu: 9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200153 vlans:
154 k8s-control:
155 id: 411
156 link: bond0
Dennis Dmitrievea894212020-03-12 21:36:43 +0200157 addresses:
158 - 172.16.50.131/25
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200159 os-floating:
160 id: 412
161 link: bond1
162 k8s-metallb:
163 id: 413
164 link: bond0
Dennis Dmitrievea894212020-03-12 21:36:43 +0200165 management:
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200166 id: 414
167 link: bond0
Dennis Dmitrievea894212020-03-12 21:36:43 +0200168 ceph-control:
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200169 id: 415
170 link: bond1
Dennis Dmitrievea894212020-03-12 21:36:43 +0200171 addresses:
172 - {{ STORAGE_FRONTEND_INTERFACE_IP }}/{{ STORAGE_FRONTEND_NETWORK_NETMASK }}
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300173 mtu: 9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200174 os-tenant:
175 id: 416
176 link: bond1
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300177 addresses:
178 - 10.14.0.11/24
179 mtu: 9100
Dennis Dmitrievea894212020-03-12 21:36:43 +0200180 ceph-replica:
181 id: 417
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300182 link: bond0
Dennis Dmitrievea894212020-03-12 21:36:43 +0200183 addresses:
184 - {{ STORAGE_BACKEND_INTERFACE_IP }}/{{ STORAGE_BACKEND_NETWORK_NETMASK }}
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300185 mtu: 9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200186
187 '0c:c4:7a:33:26:6a':
188 write_files:
Dennis Dmitrievea894212020-03-12 21:36:43 +0200189 - path: '/etc/netplan/99-cz7726-osd.yaml'
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200190 content: |
191 network:
192 version: 2
193 ethernets:
194 eno1:
195 dhcp4: false
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300196 mtu: 9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200197 ens3f1:
198 dhcp4: false
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300199 mtu: 9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200200 ens3f2:
201 dhcp4: false
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300202 mtu: 9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200203 ens3f3:
204 dhcp4: false
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300205 mtu: 9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200206 bonds:
207 bond0:
208 dhcp4: no
209 interfaces: [eno1, ens3f1]
210 parameters:
211 mode: active-backup
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300212 mii-monitor-interval: 1000
213 mtu: 9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200214 bond1:
215 dhcp4: no
216 interfaces: [ens3f2, ens3f3]
217 parameters:
218 mode: active-backup
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300219 mii-monitor-interval: 1000
220 mtu: 9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200221 vlans:
222 k8s-control:
223 id: 411
224 link: bond0
Dennis Dmitrievea894212020-03-12 21:36:43 +0200225 addresses:
226 - 172.16.50.132/25
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200227 os-floating:
228 id: 412
229 link: bond1
230 k8s-metallb:
231 id: 413
232 link: bond0
Dennis Dmitrievea894212020-03-12 21:36:43 +0200233 management:
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200234 id: 414
235 link: bond0
Dennis Dmitrievea894212020-03-12 21:36:43 +0200236 ceph-control:
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200237 id: 415
238 link: bond1
Dennis Dmitrievea894212020-03-12 21:36:43 +0200239 addresses:
240 - {{ STORAGE_FRONTEND_INTERFACE_IP }}/{{ STORAGE_FRONTEND_NETWORK_NETMASK }}
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300241 mtu: 9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200242 os-tenant:
243 id: 416
244 link: bond1
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300245 addresses:
246 - 10.14.0.12/24
247 mtu: 9100
Dennis Dmitrievea894212020-03-12 21:36:43 +0200248 ceph-replica:
249 id: 417
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300250 link: bond0
Dennis Dmitrievea894212020-03-12 21:36:43 +0200251 addresses:
252 - {{ STORAGE_BACKEND_INTERFACE_IP }}/{{ STORAGE_BACKEND_NETWORK_NETMASK }}
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300253 mtu: 9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200254
255 '0c:c4:7a:34:92:94':
256 write_files:
Dennis Dmitrievea894212020-03-12 21:36:43 +0200257 - path: '/etc/netplan/99-cz7727-spare.yaml'
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200258 content: |
259 network:
260 version: 2
261 ethernets:
262 eno1:
263 dhcp4: false
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300264 mtu: 9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200265 ens3f1:
266 dhcp4: false
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300267 mtu: 9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200268 ens3f2:
269 dhcp4: false
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300270 mtu: 9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200271 ens3f3:
272 dhcp4: false
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300273 mtu: 9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200274 bonds:
275 bond0:
276 dhcp4: no
277 interfaces: [eno1, ens3f1]
278 parameters:
279 mode: active-backup
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300280 mii-monitor-interval: 1000
281 mtu: 9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200282 bond1:
283 dhcp4: no
284 interfaces: [ens3f2, ens3f3]
285 parameters:
286 mode: active-backup
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300287 mii-monitor-interval: 1000
288 mtu: 9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200289 vlans:
290 k8s-control:
291 id: 411
292 link: bond0
Dennis Dmitrievea894212020-03-12 21:36:43 +0200293 addresses:
294 - 172.16.50.133/25
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200295 os-floating:
296 id: 412
297 link: bond1
298 k8s-metallb:
299 id: 413
300 link: bond0
Dennis Dmitrievea894212020-03-12 21:36:43 +0200301 management:
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200302 id: 414
303 link: bond0
Dennis Dmitrievea894212020-03-12 21:36:43 +0200304 ceph-control:
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200305 id: 415
306 link: bond1
Dennis Dmitrievea894212020-03-12 21:36:43 +0200307 addresses:
308 - {{ STORAGE_FRONTEND_INTERFACE_IP }}/{{ STORAGE_FRONTEND_NETWORK_NETMASK }}
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300309 mtu: 9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200310 os-tenant:
311 id: 416
312 link: bond1
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300313 addresses:
314 - 10.14.0.13/24
315 mtu: 9100
Dennis Dmitrievea894212020-03-12 21:36:43 +0200316 ceph-replica:
317 id: 417
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300318 link: bond0
Dennis Dmitrievea894212020-03-12 21:36:43 +0200319 addresses:
320 - {{ STORAGE_BACKEND_INTERFACE_IP }}/{{ STORAGE_BACKEND_NETWORK_NETMASK }}
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300321 mtu: 9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200322
323 '0c:c4:7a:aa:e0:9e':
324 write_files:
Dennis Dmitrievea894212020-03-12 21:36:43 +0200325 - path: '/etc/netplan/99-cz10095-os-control.yaml'
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200326 content: |
327 network:
328 version: 2
329 ethernets:
330 ens11f0:
331 dhcp4: false
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300332 mtu: 9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200333 ens11f1:
334 dhcp4: false
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300335 mtu: 9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200336 ens11f2:
337 dhcp4: false
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300338 mtu: 9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200339 ens11f3:
340 dhcp4: false
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300341 mtu: 9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200342 bonds:
343 bond0:
344 dhcp4: no
345 interfaces: [ens11f0, ens11f1]
346 parameters:
347 mode: active-backup
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300348 mii-monitor-interval: 1000
349 mtu: 9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200350 bond1:
351 dhcp4: no
352 interfaces: [ens11f2, ens11f3]
353 parameters:
354 mode: active-backup
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300355 mii-monitor-interval: 1000
356 mtu: 9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200357 vlans:
358 k8s-control:
359 id: 411
360 link: bond0
Dennis Dmitrievea894212020-03-12 21:36:43 +0200361 addresses:
362 - 172.16.50.134/25
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200363 os-floating:
364 id: 412
365 link: bond1
366 k8s-metallb:
367 id: 413
368 link: bond0
Dennis Dmitrievea894212020-03-12 21:36:43 +0200369 management:
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200370 id: 414
371 link: bond0
Dennis Dmitrievea894212020-03-12 21:36:43 +0200372 ceph-control:
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200373 id: 415
374 link: bond1
Dennis Dmitrievea894212020-03-12 21:36:43 +0200375 addresses:
376 - {{ STORAGE_FRONTEND_INTERFACE_IP }}/{{ STORAGE_FRONTEND_NETWORK_NETMASK }}
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300377 mtu: 9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200378 os-tenant:
379 id: 416
380 link: bond1
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300381 addresses:
382 - 10.14.0.14/24
383 mtu: 9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200384
385 '0c:c4:7a:aa:e0:9c':
386 write_files:
Dennis Dmitrievea894212020-03-12 21:36:43 +0200387 - path: '/etc/netplan/99-cz10096-os-control.yaml'
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200388 content: |
389 network:
390 version: 2
391 ethernets:
392 ens11f0:
393 dhcp4: false
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300394 mtu: 9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200395 ens11f1:
396 dhcp4: false
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300397 mtu: 9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200398 ens11f2:
399 dhcp4: false
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300400 mtu: 9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200401 ens11f3:
402 dhcp4: false
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300403 mtu: 9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200404 bonds:
405 bond0:
406 dhcp4: no
407 interfaces: [ens11f0, ens11f1]
408 parameters:
409 mode: active-backup
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300410 mii-monitor-interval: 1000
411 mtu: 9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200412 bond1:
413 dhcp4: no
414 interfaces: [ens11f2, ens11f3]
415 parameters:
416 mode: active-backup
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300417 mii-monitor-interval: 1000
418 mtu: 9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200419 vlans:
420 k8s-control:
421 id: 411
422 link: bond0
Dennis Dmitrievea894212020-03-12 21:36:43 +0200423 addresses:
424 - 172.16.50.135/25
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200425 os-floating:
426 id: 412
427 link: bond1
428 k8s-metallb:
429 id: 413
430 link: bond0
Dennis Dmitrievea894212020-03-12 21:36:43 +0200431 management:
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200432 id: 414
433 link: bond0
Dennis Dmitrievea894212020-03-12 21:36:43 +0200434 ceph-control:
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200435 id: 415
436 link: bond1
Dennis Dmitrievea894212020-03-12 21:36:43 +0200437 addresses:
438 - {{ STORAGE_FRONTEND_INTERFACE_IP }}/{{ STORAGE_FRONTEND_NETWORK_NETMASK }}
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300439 mtu: 9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200440 os-tenant:
441 id: 416
442 link: bond1
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300443 addresses:
444 - 10.14.0.15/24
445 mtu: 9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200446
447 '0c:c4:7a:aa:78:2c':
448 write_files:
Dennis Dmitrievea894212020-03-12 21:36:43 +0200449 - path: '/etc/netplan/99-cz10097-os-control.yaml'
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200450 content: |
451 network:
452 version: 2
453 ethernets:
454 ens11f0:
455 dhcp4: false
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300456 mtu: 9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200457 ens11f1:
458 dhcp4: false
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300459 mtu: 9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200460 ens11f2:
461 dhcp4: false
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300462 mtu: 9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200463 ens11f3:
464 dhcp4: false
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300465 mtu: 9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200466 bonds:
467 bond0:
468 dhcp4: no
469 interfaces: [ens11f0, ens11f1]
470 parameters:
471 mode: active-backup
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300472 mii-monitor-interval: 1000
473 mtu: 9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200474 bond1:
475 dhcp4: no
476 interfaces: [ens11f2, ens11f3]
477 parameters:
478 mode: active-backup
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300479 mii-monitor-interval: 1000
480 mtu: 9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200481 vlans:
482 k8s-control:
483 id: 411
484 link: bond0
Dennis Dmitrievea894212020-03-12 21:36:43 +0200485 addresses:
486 - 172.16.50.136/25
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200487 os-floating:
488 id: 412
489 link: bond1
490 k8s-metallb:
491 id: 413
492 link: bond0
Dennis Dmitrievea894212020-03-12 21:36:43 +0200493 management:
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200494 id: 414
495 link: bond0
Dennis Dmitrievea894212020-03-12 21:36:43 +0200496 ceph-control:
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200497 id: 415
498 link: bond1
Dennis Dmitrievea894212020-03-12 21:36:43 +0200499 addresses:
500 - {{ STORAGE_FRONTEND_INTERFACE_IP }}/{{ STORAGE_FRONTEND_NETWORK_NETMASK }}
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300501 mtu: 9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200502 os-tenant:
503 id: 416
504 link: bond1
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300505 addresses:
506 - 10.14.0.16/24
507 mtu: 9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200508
509 '0c:c4:7a:aa:78:7a':
510 write_files:
Dennis Dmitrievea894212020-03-12 21:36:43 +0200511 - path: '/etc/netplan/99-cz10098-ucp-control.yaml'
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200512 content: |
513 network:
514 version: 2
515 ethernets:
516 eno1:
517 dhcp4: false
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300518 mtu: 9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200519 ens4f1:
520 dhcp4: false
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300521 mtu: 9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200522 ens4f2:
523 dhcp4: false
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300524 mtu: 9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200525 ens4f3:
526 dhcp4: false
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300527 mtu: 9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200528 bonds:
529 bond0:
530 dhcp4: no
531 interfaces: [eno1, ens4f1]
532 parameters:
533 mode: active-backup
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300534 mii-monitor-interval: 1000
535 mtu: 9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200536 bond1:
537 dhcp4: no
538 interfaces: [ens4f2, ens4f3]
539 parameters:
540 mode: active-backup
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300541 mii-monitor-interval: 1000
542 mtu: 9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200543 vlans:
544 k8s-control:
545 id: 411
546 link: bond0
Dennis Dmitrievea894212020-03-12 21:36:43 +0200547 addresses:
548 # Hardcoded IP for the UCP node (when UCP_MASTER_HOST is empty), to replace PXE with k8s_control IP
549 - {% if UCP_MASTER_HOST == "" %}172.16.50.254/25{% else %}172.16.50.137/25{% endif %}
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200550 os-floating:
551 id: 412
552 link: bond1
553 k8s-metallb:
554 id: 413
555 link: bond0
Dennis Dmitrievea894212020-03-12 21:36:43 +0200556 management:
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200557 id: 414
558 link: bond0
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200559
560 '0c:c4:7a:aa:e0:98':
561 write_files:
Dennis Dmitrievea894212020-03-12 21:36:43 +0200562 - path: '/etc/netplan/99-cz10099-ucp-control.yaml'
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200563 content: |
564 network:
565 version: 2
566 ethernets:
567 eno1:
568 dhcp4: false
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300569 mtu: 9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200570 ens4f1:
571 dhcp4: false
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300572 mtu: 9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200573 ens4f2:
574 dhcp4: false
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300575 mtu: 9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200576 ens4f3:
577 dhcp4: false
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300578 mtu: 9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200579 bonds:
580 bond0:
581 dhcp4: no
582 interfaces: [eno1, ens4f1]
583 parameters:
584 mode: active-backup
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300585 mii-monitor-interval: 1000
586 mtu: 9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200587 bond1:
588 dhcp4: no
589 interfaces: [ens4f2, ens4f3]
590 parameters:
591 mode: active-backup
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300592 mii-monitor-interval: 1000
593 mtu: 9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200594 vlans:
595 k8s-control:
596 id: 411
597 link: bond0
Dennis Dmitrievea894212020-03-12 21:36:43 +0200598 addresses:
599 # Hardcoded IP for the UCP node (when UCP_MASTER_HOST is empty), to replace PXE with k8s_control IP
600 - {% if UCP_MASTER_HOST == "" %}172.16.50.254/25{% else %}172.16.50.138/25{% endif %}
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200601 os-floating:
602 id: 412
603 link: bond1
604 k8s-metallb:
605 id: 413
606 link: bond0
Dennis Dmitrievea894212020-03-12 21:36:43 +0200607 management:
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200608 id: 414
609 link: bond0
Dennis Dmitrievea894212020-03-12 21:36:43 +0200610
611 '0c:c4:7a:aa:78:7c':
612 write_files:
613 - path: '/etc/netplan/99-cz10100-ucp-control.yaml'
614 content: |
615 network:
616 version: 2
617 ethernets:
618 eno1:
619 dhcp4: false
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300620 mtu: 9100
Dennis Dmitrievea894212020-03-12 21:36:43 +0200621 ens4f1:
622 dhcp4: false
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300623 mtu: 9100
Dennis Dmitrievea894212020-03-12 21:36:43 +0200624 ens4f2:
625 dhcp4: false
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300626 mtu: 9100
Dennis Dmitrievea894212020-03-12 21:36:43 +0200627 ens4f3:
628 dhcp4: false
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300629 mtu: 9100
Dennis Dmitrievea894212020-03-12 21:36:43 +0200630 bonds:
631 bond0:
632 dhcp4: no
633 interfaces: [eno1, ens4f1]
634 parameters:
635 mode: active-backup
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300636 mii-monitor-interval: 1000
637 mtu: 9100
Dennis Dmitrievea894212020-03-12 21:36:43 +0200638 bond1:
639 dhcp4: no
640 interfaces: [ens4f2, ens4f3]
641 parameters:
642 mode: active-backup
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300643 mii-monitor-interval: 1000
644 mtu: 9100
Dennis Dmitrievea894212020-03-12 21:36:43 +0200645 vlans:
646 k8s-control:
647 id: 411
648 link: bond0
649 addresses:
650 # Hardcoded IP for the UCP node (when UCP_MASTER_HOST is empty), to replace PXE with k8s_control IP
651 - {% if UCP_MASTER_HOST == "" %}172.16.50.254/25{% else %}172.16.50.139/25{% endif %}
652 os-floating:
653 id: 412
654 link: bond1
Dennis Dmitrievea894212020-03-12 21:36:43 +0200655 k8s-metallb:
656 id: 413
657 link: bond0
658 management:
659 id: 414
660 link: bond0
661
662 '0c:c4:7a:55:6a:28':
663 write_files:
664 - path: '/etc/netplan/99-cz7636-os-compute.yaml'
665 content: |
666 network:
667 version: 2
668 ethernets:
669 enp3s0f0:
670 dhcp4: false
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300671 mtu: 9100
Dennis Dmitrievea894212020-03-12 21:36:43 +0200672 enp3s0f1:
673 dhcp4: false
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300674 mtu: 9100
Dennis Dmitrievea894212020-03-12 21:36:43 +0200675 enp3s0f2:
676 dhcp4: false
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300677 mtu: 9100
Dennis Dmitrievea894212020-03-12 21:36:43 +0200678 enp3s0f3:
679 dhcp4: false
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300680 mtu: 9100
Dennis Dmitrievea894212020-03-12 21:36:43 +0200681 bonds:
682 bond0:
683 dhcp4: no
684 interfaces: [enp3s0f0, enp3s0f1]
685 parameters:
686 mode: active-backup
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300687 mii-monitor-interval: 1000
688 mtu: 9100
Dennis Dmitrievea894212020-03-12 21:36:43 +0200689 bond1:
690 dhcp4: no
691 interfaces: [enp3s0f2, enp3s0f3]
692 parameters:
693 mode: active-backup
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300694 mii-monitor-interval: 1000
695 mtu: 9100
Dennis Dmitrievea894212020-03-12 21:36:43 +0200696 vlans:
697 k8s-control:
698 id: 411
699 link: bond0
700 addresses:
701 - 172.16.50.140/25
702 os-floating:
703 id: 412
704 link: bond1
Dennis Dmitrievea894212020-03-12 21:36:43 +0200705 k8s-metallb:
706 id: 413
707 link: bond0
708 management:
709 id: 414
710 link: bond0
711 ceph-control:
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200712 id: 415
713 link: bond1
Dennis Dmitrievea894212020-03-12 21:36:43 +0200714 addresses:
715 - {{ STORAGE_FRONTEND_INTERFACE_IP }}/{{ STORAGE_FRONTEND_NETWORK_NETMASK }}
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300716 mtu: 9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200717 os-tenant:
718 id: 416
719 link: bond1
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300720 addresses:
721 - 10.14.0.17/24
722 mtu: 9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200723
Dennis Dmitrievea894212020-03-12 21:36:43 +0200724 '0c:c4:7a:54:a2:5e':
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200725 write_files:
Dennis Dmitrievea894212020-03-12 21:36:43 +0200726 - path: '/etc/netplan/99-cz7641-os-compute.yaml'
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200727 content: |
728 network:
729 version: 2
730 ethernets:
Dennis Dmitrievea894212020-03-12 21:36:43 +0200731 enp3s0f0:
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200732 dhcp4: false
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300733 mtu: 9100
Dennis Dmitrievea894212020-03-12 21:36:43 +0200734 enp3s0f1:
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200735 dhcp4: false
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300736 mtu: 9100
Dennis Dmitrievea894212020-03-12 21:36:43 +0200737 enp3s0f2:
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200738 dhcp4: false
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300739 mtu: 9100
Dennis Dmitrievea894212020-03-12 21:36:43 +0200740 enp3s0f3:
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200741 dhcp4: false
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300742 mtu: 9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200743 bonds:
744 bond0:
745 dhcp4: no
Dennis Dmitrievea894212020-03-12 21:36:43 +0200746 interfaces: [enp3s0f0, enp3s0f1]
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200747 parameters:
748 mode: active-backup
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300749 mii-monitor-interval: 1000
750 mtu: 9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200751 bond1:
752 dhcp4: no
Dennis Dmitrievea894212020-03-12 21:36:43 +0200753 interfaces: [enp3s0f2, enp3s0f3]
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200754 parameters:
755 mode: active-backup
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300756 mii-monitor-interval: 1000
757 mtu: 9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200758 vlans:
759 k8s-control:
760 id: 411
761 link: bond0
Dennis Dmitrievea894212020-03-12 21:36:43 +0200762 addresses:
763 - 172.16.50.141/25
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200764 os-floating:
765 id: 412
766 link: bond1
767 k8s-metallb:
768 id: 413
769 link: bond0
Dennis Dmitrievea894212020-03-12 21:36:43 +0200770 management:
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200771 id: 414
772 link: bond0
Dennis Dmitrievea894212020-03-12 21:36:43 +0200773 ceph-control:
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200774 id: 415
775 link: bond1
Dennis Dmitrievea894212020-03-12 21:36:43 +0200776 addresses:
777 - {{ STORAGE_FRONTEND_INTERFACE_IP }}/{{ STORAGE_FRONTEND_NETWORK_NETMASK }}
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300778 mtu: 9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200779 os-tenant:
780 id: 416
781 link: bond1
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300782 addresses:
783 - 10.14.0.18/24
784 mtu: 9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200785
Dennis Dmitrievea894212020-03-12 21:36:43 +0200786 '0c:c4:7a:54:a0:50':
787 write_files:
788 - path: '/etc/netplan/99-cz7642-os-compute.yaml'
789 content: |
790 network:
791 version: 2
792 ethernets:
793 enp3s0f0:
794 dhcp4: false
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300795 mtu: 9100
Dennis Dmitrievea894212020-03-12 21:36:43 +0200796 enp3s0f1:
797 dhcp4: false
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300798 mtu: 9100
Dennis Dmitrievea894212020-03-12 21:36:43 +0200799 enp3s0f2:
800 dhcp4: false
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300801 mtu: 9100
Dennis Dmitrievea894212020-03-12 21:36:43 +0200802 enp3s0f3:
803 dhcp4: false
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300804 mtu: 9100
Dennis Dmitrievea894212020-03-12 21:36:43 +0200805 bonds:
806 bond0:
807 dhcp4: no
808 interfaces: [enp3s0f0, enp3s0f1]
809 parameters:
810 mode: active-backup
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300811 mii-monitor-interval: 1000
812 mtu: 9100
Dennis Dmitrievea894212020-03-12 21:36:43 +0200813 bond1:
814 dhcp4: no
815 interfaces: [enp3s0f2, enp3s0f3]
816 parameters:
817 mode: active-backup
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300818 mii-monitor-interval: 1000
819 mtu: 9100
Dennis Dmitrievea894212020-03-12 21:36:43 +0200820 vlans:
821 k8s-control:
822 id: 411
823 link: bond0
824 addresses:
825 - 172.16.50.142/25
826 os-floating:
827 id: 412
828 link: bond1
Dennis Dmitrievea894212020-03-12 21:36:43 +0200829 k8s-metallb:
830 id: 413
831 link: bond0
832 management:
833 id: 414
834 link: bond0
835 ceph-control:
836 id: 415
837 link: bond1
838 addresses:
839 - {{ STORAGE_FRONTEND_INTERFACE_IP }}/{{ STORAGE_FRONTEND_NETWORK_NETMASK }}
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300840 mtu: 9100
Dennis Dmitrievea894212020-03-12 21:36:43 +0200841 os-tenant:
842 id: 416
843 link: bond1
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300844 addresses:
845 - 10.14.0.19/24
846 mtu: 9100
Dennis Dmitrievea894212020-03-12 21:36:43 +0200847
848
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200849 functions_override: |
850
851 function network_config {
852
853 DEBIAN_FRONTEND=noninteractive apt -y install bridge-utils ifenslave vlan
854 sudo modprobe bonding
855 netplan --debug apply
856 sleep 15
857
Dennis Dmitrievea894212020-03-12 21:36:43 +0200858 # Re-init the variables related to the just configured k8s-control network
859 CONTROL_IP_ADDRESS=$(ip route get ${CONTROL_NETWORK_CIDR%/*} | head -n1 | fgrep -v ' via ' | awk '/ src / {print $6}')
860
861 #UCP_MASTER_HOST=${UCP_MASTER_HOST:-${CONTROL_IP_ADDRESS}}
862 # Hardcoded IP for the UCP node because the servers output contain PXE IP instead of k8s_control IP
863 UCP_MASTER_HOST=172.16.50.254
864 UCP_IP_ADDRESS=${UCP_IP_ADDRESS:-$CONTROL_IP_ADDRESS}
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200865 }