blob: bad2f31e1e819ac169bc8be4db2175c1b00c7c5b [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
Vasyl Saienkoad3a3a62020-05-14 16:52:52 +03005 "MCP2::NetworkIronicFlat": ../fragments/NetworkIronicFlat.yaml
Dennis Dmitriev81da4222020-02-25 17:53:04 +02006 "MCP2::SrvInstances": ../fragments/SrvInstancesBM.yaml
7 "MCP2::SrvInstancesCeph": ../fragments/SrvInstancesBMCeph.yaml
8 "MCP2::SrvInstancesCephOSD": ../fragments/SrvInstancesBMCephOSD.yaml
9
10parameters:
11 image: bionic-server-cloudimg-amd64-20190612
12 ucp_flavor: si-bm-410-128-16-hdd0-ssd2x1t
13 masters_flavor: si-bm-410-128-16-hdd0-ssd2x1t
14 workers_flavor: si-bm-410-128-32-hdd0-ssd2x1t
Dennis Dmitrievea894212020-03-12 21:36:43 +020015 cmps_flavor: si-bm-410-128-16-hdd0-ssd1x500g
Dennis Dmitriev81da4222020-02-25 17:53:04 +020016 gtws_flavor: oscore-bm-lab-01
17 lmas_flavor: oscore-bm-lab-01
18 osds_flavor: si-bm-410-64-16-hdd2x2t-ssd1x500g
Oleksii Butenkodaeb5f42020-04-12 12:07:56 +030019 spares_flavor: si-bm-410-64-16-hdd2x2t-ssd1x500g-spare
Dennis Dmitriev81da4222020-02-25 17:53:04 +020020 masters_size: 2 # UCP nodes
21 worker_size: 3 # OpenStack controller nodes
Dennis Dmitrievea894212020-03-12 21:36:43 +020022 cmp_size: 3
Dennis Dmitriev81da4222020-02-25 17:53:04 +020023 gtw_size: 0
24 lma_size: 0
25 osd_size: 3
26 spare_size: 1
27 ucp_boot_timeout: 1200
28 cluster_public_key: ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCp0evjOaK8c8SKYK4r2+0BN7g+8YSvQ2n8nFgOURCyvkJqOHi1qPGZmuN0CclYVdVuZiXbWw3VxRbSW3EH736VzgY1U0JmoTiSamzLHaWsXvEIW8VCi7boli539QJP0ikJiBaNAgZILyCrVPN+A6mfqtacs1KXdZ0zlMq1BPtFciR1JTCRcVs5vP2Wwz5QtY2jMIh3aiwkePjMTQPcfmh1TkOlxYu5IbQyZ3G1ahA0mNKI9a0dtF282av/F6pwB/N1R1nEZ/9VtcN2I1mf1NW/tTHEEcTzXYo1R/8K9vlqAN8QvvGLZtZduGviNVNoNWvoxaXxDt8CPv2B2NCdQFZp
29 public_net_id: 'physnet1-410'
Dennis Dmitrievea894212020-03-12 21:36:43 +020030 control_network_cidr: '172.16.50.128/25'
Dennis Dmitriev81da4222020-02-25 17:53:04 +020031 private_floating_network_cidr: '172.16.51.0/25'
32 private_floating_network_pool_start: '172.16.51.10'
33 private_floating_network_pool_end: '172.16.51.30'
34 private_floating_network_ipam_pool_start: '172.16.51.31'
35 private_floating_network_ipam_pool_end: '172.16.51.62'
36 private_floating_network_gateway: '172.16.51.1'
Vasyl Saienkoc943f432020-04-21 12:15:57 +030037 private_floating_network_interface: 'os-floating'
Dennis Dmitrievea894212020-03-12 21:36:43 +020038 metallb_address_pools: [ '172.16.51.130-172.16.51.250' ]
Dennis Dmitriev81da4222020-02-25 17:53:04 +020039 private_floating_interface: 'os-floating'
Dennis Dmitrievea894212020-03-12 21:36:43 +020040 storage_frontend_interface: 'ceph-control'
41 storage_backend_interface: 'ceph-replica'
Dennis Dmitriev81da4222020-02-25 17:53:04 +020042 tunnel_interface: 'os-tenant'
43 live_migration_interface: 'os-tenant'
Vasyl Saienko73082e52020-04-03 18:52:57 +030044 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 +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:
Oleksii Butenkodaeb5f42020-04-12 12:07:56 +030053 - path: /usr/share/metadata/ceph.yaml
54 content: |
55 storageDevices:
56 - name: sdb
57 role: hdd
58 sizeGb: 500
59 - name: sdc
60 role: hdd
61 sizeGb: 500
62 ramGb: 64
63 cores: 12
64 ips:
65 - 192.168.122.101
66 crushPath: {}
Dennis Dmitrievea894212020-03-12 21:36:43 +020067 - path: '/etc/netplan/99-cz7714-osd.yaml'
Dennis Dmitriev81da4222020-02-25 17:53:04 +020068 content: |
69 network:
70 version: 2
71 ethernets:
Oleksii Butenkodaeb5f42020-04-12 12:07:56 +030072 eno1: &mtu9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +020073 dhcp4: false
Oleksii Butenkob8dcc262020-04-01 12:15:07 +030074 mtu: 9100
Oleksii Butenkodaeb5f42020-04-12 12:07:56 +030075 ens3f1: *mtu9100
76 ens3f2: *mtu9100
77 ens3f3: *mtu9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +020078 bonds:
79 bond0:
80 dhcp4: no
81 interfaces: [eno1, ens3f1]
82 parameters:
83 mode: active-backup
Oleksii Butenkob8dcc262020-04-01 12:15:07 +030084 mii-monitor-interval: 1000
85 mtu: 9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +020086 bond1:
87 dhcp4: no
88 interfaces: [ens3f2, ens3f3]
89 parameters:
90 mode: active-backup
Oleksii Butenkob8dcc262020-04-01 12:15:07 +030091 mii-monitor-interval: 1000
92 mtu: 9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +020093 vlans:
94 k8s-control:
95 id: 411
96 link: bond0
Dennis Dmitrievea894212020-03-12 21:36:43 +020097 addresses:
98 - 172.16.50.130/25
Dennis Dmitriev81da4222020-02-25 17:53:04 +020099 os-floating:
100 id: 412
101 link: bond1
102 k8s-metallb:
103 id: 413
104 link: bond0
Dennis Dmitrievea894212020-03-12 21:36:43 +0200105 management:
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200106 id: 414
107 link: bond0
Dennis Dmitrievea894212020-03-12 21:36:43 +0200108 ceph-control:
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200109 id: 415
110 link: bond1
Dennis Dmitrievea894212020-03-12 21:36:43 +0200111 addresses:
112 - {{ STORAGE_FRONTEND_INTERFACE_IP }}/{{ STORAGE_FRONTEND_NETWORK_NETMASK }}
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300113 mtu: 9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200114 os-tenant:
115 id: 416
116 link: bond1
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300117 addresses:
118 - 10.14.0.10/24
119 mtu: 9100
Dennis Dmitrievea894212020-03-12 21:36:43 +0200120 ceph-replica:
121 id: 417
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300122 link: bond0
Dennis Dmitrievea894212020-03-12 21:36:43 +0200123 addresses:
124 - {{ STORAGE_BACKEND_INTERFACE_IP }}/{{ STORAGE_BACKEND_NETWORK_NETMASK }}
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300125 mtu: 9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200126
127 '0c:c4:7a:33:26:6e':
128 write_files:
Oleksii Butenkodaeb5f42020-04-12 12:07:56 +0300129 - path: /usr/share/metadata/ceph.yaml
130 content: |
131 storageDevices:
132 - name: sdb
133 role: hdd
134 sizeGb: 500
135 - name: sdc
136 role: hdd
137 sizeGb: 500
138 ramGb: 64
139 cores: 12
140 ips:
141 - 192.168.122.102
142 crushPath: {}
Dennis Dmitrievea894212020-03-12 21:36:43 +0200143 - path: '/etc/netplan/99-cz7725-osd.yaml'
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200144 content: |
145 network:
146 version: 2
147 ethernets:
Oleksii Butenkodaeb5f42020-04-12 12:07:56 +0300148 eno1: &mtu9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200149 dhcp4: false
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300150 mtu: 9100
Oleksii Butenkodaeb5f42020-04-12 12:07:56 +0300151 ens3f1: *mtu9100
152 ens3f2: *mtu9100
153 ens3f3: *mtu9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200154 bonds:
155 bond0:
156 dhcp4: no
157 interfaces: [eno1, ens3f1]
158 parameters:
159 mode: active-backup
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300160 mii-monitor-interval: 1000
161 mtu: 9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200162 bond1:
163 dhcp4: no
164 interfaces: [ens3f2, ens3f3]
165 parameters:
166 mode: active-backup
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300167 mii-monitor-interval: 1000
168 mtu: 9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200169 vlans:
170 k8s-control:
171 id: 411
172 link: bond0
Dennis Dmitrievea894212020-03-12 21:36:43 +0200173 addresses:
174 - 172.16.50.131/25
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200175 os-floating:
176 id: 412
177 link: bond1
178 k8s-metallb:
179 id: 413
180 link: bond0
Dennis Dmitrievea894212020-03-12 21:36:43 +0200181 management:
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200182 id: 414
183 link: bond0
Dennis Dmitrievea894212020-03-12 21:36:43 +0200184 ceph-control:
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200185 id: 415
186 link: bond1
Dennis Dmitrievea894212020-03-12 21:36:43 +0200187 addresses:
188 - {{ STORAGE_FRONTEND_INTERFACE_IP }}/{{ STORAGE_FRONTEND_NETWORK_NETMASK }}
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300189 mtu: 9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200190 os-tenant:
191 id: 416
192 link: bond1
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300193 addresses:
194 - 10.14.0.11/24
195 mtu: 9100
Dennis Dmitrievea894212020-03-12 21:36:43 +0200196 ceph-replica:
197 id: 417
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300198 link: bond0
Dennis Dmitrievea894212020-03-12 21:36:43 +0200199 addresses:
200 - {{ STORAGE_BACKEND_INTERFACE_IP }}/{{ STORAGE_BACKEND_NETWORK_NETMASK }}
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300201 mtu: 9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200202
203 '0c:c4:7a:33:26:6a':
204 write_files:
Oleksii Butenkodaeb5f42020-04-12 12:07:56 +0300205 - path: /usr/share/metadata/ceph.yaml
206 content: |
207 storageDevices:
208 - name: sdb
209 role: hdd
210 sizeGb: 500
211 - name: sdc
212 role: hdd
213 sizeGb: 500
214 ramGb: 64
215 cores: 12
216 ips:
217 - 192.168.122.103
218 crushPath: {}
Dennis Dmitrievea894212020-03-12 21:36:43 +0200219 - path: '/etc/netplan/99-cz7726-osd.yaml'
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200220 content: |
221 network:
222 version: 2
223 ethernets:
Oleksii Butenkodaeb5f42020-04-12 12:07:56 +0300224 eno1: &mtu9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200225 dhcp4: false
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300226 mtu: 9100
Oleksii Butenkodaeb5f42020-04-12 12:07:56 +0300227 ens3f1: *mtu9100
228 ens3f2: *mtu9100
229 ens3f3: *mtu9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200230 bonds:
231 bond0:
232 dhcp4: no
233 interfaces: [eno1, ens3f1]
234 parameters:
235 mode: active-backup
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300236 mii-monitor-interval: 1000
237 mtu: 9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200238 bond1:
239 dhcp4: no
240 interfaces: [ens3f2, ens3f3]
241 parameters:
242 mode: active-backup
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300243 mii-monitor-interval: 1000
244 mtu: 9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200245 vlans:
246 k8s-control:
247 id: 411
248 link: bond0
Dennis Dmitrievea894212020-03-12 21:36:43 +0200249 addresses:
250 - 172.16.50.132/25
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200251 os-floating:
252 id: 412
253 link: bond1
254 k8s-metallb:
255 id: 413
256 link: bond0
Dennis Dmitrievea894212020-03-12 21:36:43 +0200257 management:
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200258 id: 414
259 link: bond0
Dennis Dmitrievea894212020-03-12 21:36:43 +0200260 ceph-control:
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200261 id: 415
262 link: bond1
Dennis Dmitrievea894212020-03-12 21:36:43 +0200263 addresses:
264 - {{ STORAGE_FRONTEND_INTERFACE_IP }}/{{ STORAGE_FRONTEND_NETWORK_NETMASK }}
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300265 mtu: 9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200266 os-tenant:
267 id: 416
268 link: bond1
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300269 addresses:
270 - 10.14.0.12/24
271 mtu: 9100
Dennis Dmitrievea894212020-03-12 21:36:43 +0200272 ceph-replica:
273 id: 417
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300274 link: bond0
Dennis Dmitrievea894212020-03-12 21:36:43 +0200275 addresses:
276 - {{ STORAGE_BACKEND_INTERFACE_IP }}/{{ STORAGE_BACKEND_NETWORK_NETMASK }}
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300277 mtu: 9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200278
279 '0c:c4:7a:34:92:94':
280 write_files:
Dennis Dmitrievea894212020-03-12 21:36:43 +0200281 - path: '/etc/netplan/99-cz7727-spare.yaml'
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200282 content: |
283 network:
284 version: 2
285 ethernets:
Oleksii Butenkodaeb5f42020-04-12 12:07:56 +0300286 eno1: &mtu9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200287 dhcp4: false
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300288 mtu: 9100
Oleksii Butenkodaeb5f42020-04-12 12:07:56 +0300289 ens3f1: *mtu9100
290 ens3f2: *mtu9100
291 ens3f3: *mtu9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200292 bonds:
293 bond0:
294 dhcp4: no
295 interfaces: [eno1, ens3f1]
296 parameters:
297 mode: active-backup
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300298 mii-monitor-interval: 1000
299 mtu: 9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200300 bond1:
301 dhcp4: no
302 interfaces: [ens3f2, ens3f3]
303 parameters:
304 mode: active-backup
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300305 mii-monitor-interval: 1000
306 mtu: 9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200307 vlans:
308 k8s-control:
309 id: 411
310 link: bond0
Dennis Dmitrievea894212020-03-12 21:36:43 +0200311 addresses:
312 - 172.16.50.133/25
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200313 os-floating:
314 id: 412
315 link: bond1
316 k8s-metallb:
317 id: 413
318 link: bond0
Dennis Dmitrievea894212020-03-12 21:36:43 +0200319 management:
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200320 id: 414
321 link: bond0
Dennis Dmitrievea894212020-03-12 21:36:43 +0200322 ceph-control:
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200323 id: 415
324 link: bond1
Dennis Dmitrievea894212020-03-12 21:36:43 +0200325 addresses:
326 - {{ STORAGE_FRONTEND_INTERFACE_IP }}/{{ STORAGE_FRONTEND_NETWORK_NETMASK }}
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300327 mtu: 9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200328 os-tenant:
329 id: 416
330 link: bond1
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300331 addresses:
332 - 10.14.0.13/24
333 mtu: 9100
Dennis Dmitrievea894212020-03-12 21:36:43 +0200334 ceph-replica:
335 id: 417
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300336 link: bond0
Dennis Dmitrievea894212020-03-12 21:36:43 +0200337 addresses:
338 - {{ STORAGE_BACKEND_INTERFACE_IP }}/{{ STORAGE_BACKEND_NETWORK_NETMASK }}
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300339 mtu: 9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200340
341 '0c:c4:7a:aa:e0:9e':
342 write_files:
Dennis Dmitrievea894212020-03-12 21:36:43 +0200343 - path: '/etc/netplan/99-cz10095-os-control.yaml'
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200344 content: |
345 network:
346 version: 2
347 ethernets:
Oleksii Butenkodaeb5f42020-04-12 12:07:56 +0300348 ens11f0: &mtu9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200349 dhcp4: false
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300350 mtu: 9100
Oleksii Butenkodaeb5f42020-04-12 12:07:56 +0300351 ens11f1: *mtu9100
352 ens11f2: *mtu9100
353 ens11f3: *mtu9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200354 bonds:
355 bond0:
356 dhcp4: no
357 interfaces: [ens11f0, ens11f1]
358 parameters:
359 mode: active-backup
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300360 mii-monitor-interval: 1000
361 mtu: 9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200362 bond1:
363 dhcp4: no
364 interfaces: [ens11f2, ens11f3]
365 parameters:
366 mode: active-backup
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300367 mii-monitor-interval: 1000
368 mtu: 9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200369 vlans:
370 k8s-control:
371 id: 411
372 link: bond0
Dennis Dmitrievea894212020-03-12 21:36:43 +0200373 addresses:
374 - 172.16.50.134/25
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200375 os-floating:
376 id: 412
377 link: bond1
378 k8s-metallb:
379 id: 413
380 link: bond0
Dennis Dmitrievea894212020-03-12 21:36:43 +0200381 management:
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200382 id: 414
383 link: bond0
Dennis Dmitrievea894212020-03-12 21:36:43 +0200384 ceph-control:
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200385 id: 415
386 link: bond1
Dennis Dmitrievea894212020-03-12 21:36:43 +0200387 addresses:
388 - {{ STORAGE_FRONTEND_INTERFACE_IP }}/{{ STORAGE_FRONTEND_NETWORK_NETMASK }}
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300389 mtu: 9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200390 os-tenant:
391 id: 416
392 link: bond1
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300393 addresses:
394 - 10.14.0.14/24
395 mtu: 9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200396
397 '0c:c4:7a:aa:e0:9c':
398 write_files:
Dennis Dmitrievea894212020-03-12 21:36:43 +0200399 - path: '/etc/netplan/99-cz10096-os-control.yaml'
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200400 content: |
401 network:
402 version: 2
403 ethernets:
Oleksii Butenkodaeb5f42020-04-12 12:07:56 +0300404 ens11f0: &mtu9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200405 dhcp4: false
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300406 mtu: 9100
Oleksii Butenkodaeb5f42020-04-12 12:07:56 +0300407 ens11f1: *mtu9100
408 ens11f2: *mtu9100
409 ens11f3: *mtu9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200410 bonds:
411 bond0:
412 dhcp4: no
413 interfaces: [ens11f0, ens11f1]
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 bond1:
419 dhcp4: no
420 interfaces: [ens11f2, ens11f3]
421 parameters:
422 mode: active-backup
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300423 mii-monitor-interval: 1000
424 mtu: 9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200425 vlans:
426 k8s-control:
427 id: 411
428 link: bond0
Dennis Dmitrievea894212020-03-12 21:36:43 +0200429 addresses:
430 - 172.16.50.135/25
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200431 os-floating:
432 id: 412
433 link: bond1
434 k8s-metallb:
435 id: 413
436 link: bond0
Dennis Dmitrievea894212020-03-12 21:36:43 +0200437 management:
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200438 id: 414
439 link: bond0
Dennis Dmitrievea894212020-03-12 21:36:43 +0200440 ceph-control:
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200441 id: 415
442 link: bond1
Dennis Dmitrievea894212020-03-12 21:36:43 +0200443 addresses:
444 - {{ STORAGE_FRONTEND_INTERFACE_IP }}/{{ STORAGE_FRONTEND_NETWORK_NETMASK }}
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300445 mtu: 9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200446 os-tenant:
447 id: 416
448 link: bond1
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300449 addresses:
450 - 10.14.0.15/24
451 mtu: 9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200452
453 '0c:c4:7a:aa:78:2c':
454 write_files:
Dennis Dmitrievea894212020-03-12 21:36:43 +0200455 - path: '/etc/netplan/99-cz10097-os-control.yaml'
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200456 content: |
457 network:
458 version: 2
459 ethernets:
Oleksii Butenkodaeb5f42020-04-12 12:07:56 +0300460 ens11f0: &mtu9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200461 dhcp4: false
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300462 mtu: 9100
Oleksii Butenkodaeb5f42020-04-12 12:07:56 +0300463 ens11f1: *mtu9100
464 ens11f2: *mtu9100
465 ens11f3: *mtu9100
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:
Oleksii Butenkodaeb5f42020-04-12 12:07:56 +0300516 eno1: &mtu9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200517 dhcp4: false
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300518 mtu: 9100
Oleksii Butenkodaeb5f42020-04-12 12:07:56 +0300519 ens4f1: *mtu9100
520 ens4f2: *mtu9100
521 ens4f3: *mtu9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200522 bonds:
523 bond0:
524 dhcp4: no
525 interfaces: [eno1, ens4f1]
526 parameters:
527 mode: active-backup
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300528 mii-monitor-interval: 1000
529 mtu: 9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200530 bond1:
531 dhcp4: no
532 interfaces: [ens4f2, ens4f3]
533 parameters:
534 mode: active-backup
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300535 mii-monitor-interval: 1000
536 mtu: 9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200537 vlans:
538 k8s-control:
539 id: 411
540 link: bond0
Dennis Dmitrievea894212020-03-12 21:36:43 +0200541 addresses:
542 # Hardcoded IP for the UCP node (when UCP_MASTER_HOST is empty), to replace PXE with k8s_control IP
543 - {% if UCP_MASTER_HOST == "" %}172.16.50.254/25{% else %}172.16.50.137/25{% endif %}
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200544 os-floating:
545 id: 412
546 link: bond1
547 k8s-metallb:
548 id: 413
549 link: bond0
Dennis Dmitrievea894212020-03-12 21:36:43 +0200550 management:
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200551 id: 414
552 link: bond0
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200553
554 '0c:c4:7a:aa:e0:98':
555 write_files:
Dennis Dmitrievea894212020-03-12 21:36:43 +0200556 - path: '/etc/netplan/99-cz10099-ucp-control.yaml'
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200557 content: |
558 network:
559 version: 2
560 ethernets:
Oleksii Butenkodaeb5f42020-04-12 12:07:56 +0300561 eno1: &mtu9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200562 dhcp4: false
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300563 mtu: 9100
Oleksii Butenkodaeb5f42020-04-12 12:07:56 +0300564 ens4f1: *mtu9100
565 ens4f2: *mtu9100
566 ens4f3: *mtu9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200567 bonds:
568 bond0:
569 dhcp4: no
570 interfaces: [eno1, ens4f1]
571 parameters:
572 mode: active-backup
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300573 mii-monitor-interval: 1000
574 mtu: 9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200575 bond1:
576 dhcp4: no
577 interfaces: [ens4f2, ens4f3]
578 parameters:
579 mode: active-backup
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300580 mii-monitor-interval: 1000
581 mtu: 9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200582 vlans:
583 k8s-control:
584 id: 411
585 link: bond0
Dennis Dmitrievea894212020-03-12 21:36:43 +0200586 addresses:
587 # Hardcoded IP for the UCP node (when UCP_MASTER_HOST is empty), to replace PXE with k8s_control IP
588 - {% if UCP_MASTER_HOST == "" %}172.16.50.254/25{% else %}172.16.50.138/25{% endif %}
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200589 os-floating:
590 id: 412
591 link: bond1
592 k8s-metallb:
593 id: 413
594 link: bond0
Dennis Dmitrievea894212020-03-12 21:36:43 +0200595 management:
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200596 id: 414
597 link: bond0
Dennis Dmitrievea894212020-03-12 21:36:43 +0200598
599 '0c:c4:7a:aa:78:7c':
600 write_files:
601 - path: '/etc/netplan/99-cz10100-ucp-control.yaml'
602 content: |
603 network:
604 version: 2
605 ethernets:
Oleksii Butenkodaeb5f42020-04-12 12:07:56 +0300606 eno1: &mtu9100
Dennis Dmitrievea894212020-03-12 21:36:43 +0200607 dhcp4: false
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300608 mtu: 9100
Oleksii Butenkodaeb5f42020-04-12 12:07:56 +0300609 ens4f1: *mtu9100
610 ens4f2: *mtu9100
611 ens4f3: *mtu9100
Dennis Dmitrievea894212020-03-12 21:36:43 +0200612 bonds:
613 bond0:
614 dhcp4: no
615 interfaces: [eno1, ens4f1]
616 parameters:
617 mode: active-backup
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300618 mii-monitor-interval: 1000
619 mtu: 9100
Dennis Dmitrievea894212020-03-12 21:36:43 +0200620 bond1:
621 dhcp4: no
622 interfaces: [ens4f2, ens4f3]
623 parameters:
624 mode: active-backup
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300625 mii-monitor-interval: 1000
626 mtu: 9100
Dennis Dmitrievea894212020-03-12 21:36:43 +0200627 vlans:
628 k8s-control:
629 id: 411
630 link: bond0
631 addresses:
632 # Hardcoded IP for the UCP node (when UCP_MASTER_HOST is empty), to replace PXE with k8s_control IP
633 - {% if UCP_MASTER_HOST == "" %}172.16.50.254/25{% else %}172.16.50.139/25{% endif %}
634 os-floating:
635 id: 412
636 link: bond1
Dennis Dmitrievea894212020-03-12 21:36:43 +0200637 k8s-metallb:
638 id: 413
639 link: bond0
640 management:
641 id: 414
642 link: bond0
643
644 '0c:c4:7a:55:6a:28':
645 write_files:
646 - path: '/etc/netplan/99-cz7636-os-compute.yaml'
647 content: |
648 network:
649 version: 2
650 ethernets:
Oleksii Butenkodaeb5f42020-04-12 12:07:56 +0300651 enp3s0f0: &mtu9100
Dennis Dmitrievea894212020-03-12 21:36:43 +0200652 dhcp4: false
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300653 mtu: 9100
Oleksii Butenkodaeb5f42020-04-12 12:07:56 +0300654 enp3s0f1: *mtu9100
655 enp3s0f2: *mtu9100
656 enp3s0f3: *mtu9100
Dennis Dmitrievea894212020-03-12 21:36:43 +0200657 bonds:
658 bond0:
659 dhcp4: no
660 interfaces: [enp3s0f0, enp3s0f1]
661 parameters:
662 mode: active-backup
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300663 mii-monitor-interval: 1000
664 mtu: 9100
Dennis Dmitrievea894212020-03-12 21:36:43 +0200665 bond1:
666 dhcp4: no
667 interfaces: [enp3s0f2, enp3s0f3]
668 parameters:
669 mode: active-backup
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300670 mii-monitor-interval: 1000
671 mtu: 9100
Dennis Dmitrievea894212020-03-12 21:36:43 +0200672 vlans:
673 k8s-control:
674 id: 411
675 link: bond0
676 addresses:
677 - 172.16.50.140/25
678 os-floating:
679 id: 412
680 link: bond1
Dennis Dmitrievea894212020-03-12 21:36:43 +0200681 k8s-metallb:
682 id: 413
683 link: bond0
684 management:
685 id: 414
686 link: bond0
687 ceph-control:
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200688 id: 415
689 link: bond1
Dennis Dmitrievea894212020-03-12 21:36:43 +0200690 addresses:
691 - {{ STORAGE_FRONTEND_INTERFACE_IP }}/{{ STORAGE_FRONTEND_NETWORK_NETMASK }}
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300692 mtu: 9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200693 os-tenant:
694 id: 416
695 link: bond1
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300696 addresses:
697 - 10.14.0.17/24
698 mtu: 9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200699
Dennis Dmitrievea894212020-03-12 21:36:43 +0200700 '0c:c4:7a:54:a2:5e':
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200701 write_files:
Dennis Dmitrievea894212020-03-12 21:36:43 +0200702 - path: '/etc/netplan/99-cz7641-os-compute.yaml'
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200703 content: |
704 network:
705 version: 2
706 ethernets:
Oleksii Butenkodaeb5f42020-04-12 12:07:56 +0300707 enp3s0f0: &mtu9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200708 dhcp4: false
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300709 mtu: 9100
Oleksii Butenkodaeb5f42020-04-12 12:07:56 +0300710 enp3s0f1: *mtu9100
711 enp3s0f2: *mtu9100
712 enp3s0f3: *mtu9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200713 bonds:
714 bond0:
715 dhcp4: no
Dennis Dmitrievea894212020-03-12 21:36:43 +0200716 interfaces: [enp3s0f0, enp3s0f1]
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200717 parameters:
718 mode: active-backup
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300719 mii-monitor-interval: 1000
720 mtu: 9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200721 bond1:
722 dhcp4: no
Dennis Dmitrievea894212020-03-12 21:36:43 +0200723 interfaces: [enp3s0f2, enp3s0f3]
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200724 parameters:
725 mode: active-backup
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300726 mii-monitor-interval: 1000
727 mtu: 9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200728 vlans:
729 k8s-control:
730 id: 411
731 link: bond0
Dennis Dmitrievea894212020-03-12 21:36:43 +0200732 addresses:
733 - 172.16.50.141/25
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200734 os-floating:
735 id: 412
736 link: bond1
737 k8s-metallb:
738 id: 413
739 link: bond0
Dennis Dmitrievea894212020-03-12 21:36:43 +0200740 management:
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200741 id: 414
742 link: bond0
Dennis Dmitrievea894212020-03-12 21:36:43 +0200743 ceph-control:
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200744 id: 415
745 link: bond1
Dennis Dmitrievea894212020-03-12 21:36:43 +0200746 addresses:
747 - {{ STORAGE_FRONTEND_INTERFACE_IP }}/{{ STORAGE_FRONTEND_NETWORK_NETMASK }}
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300748 mtu: 9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200749 os-tenant:
750 id: 416
751 link: bond1
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300752 addresses:
753 - 10.14.0.18/24
754 mtu: 9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200755
Dennis Dmitrievea894212020-03-12 21:36:43 +0200756 '0c:c4:7a:54:a0:50':
757 write_files:
758 - path: '/etc/netplan/99-cz7642-os-compute.yaml'
759 content: |
760 network:
761 version: 2
762 ethernets:
Oleksii Butenkodaeb5f42020-04-12 12:07:56 +0300763 enp3s0f0: &mtu9100
Dennis Dmitrievea894212020-03-12 21:36:43 +0200764 dhcp4: false
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300765 mtu: 9100
Oleksii Butenkodaeb5f42020-04-12 12:07:56 +0300766 enp3s0f1: *mtu9100
767 enp3s0f2: *mtu9100
768 enp3s0f3: *mtu9100
Dennis Dmitrievea894212020-03-12 21:36:43 +0200769 bonds:
770 bond0:
771 dhcp4: no
772 interfaces: [enp3s0f0, enp3s0f1]
773 parameters:
774 mode: active-backup
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300775 mii-monitor-interval: 1000
776 mtu: 9100
Dennis Dmitrievea894212020-03-12 21:36:43 +0200777 bond1:
778 dhcp4: no
779 interfaces: [enp3s0f2, enp3s0f3]
780 parameters:
781 mode: active-backup
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300782 mii-monitor-interval: 1000
783 mtu: 9100
Dennis Dmitrievea894212020-03-12 21:36:43 +0200784 vlans:
785 k8s-control:
786 id: 411
787 link: bond0
788 addresses:
789 - 172.16.50.142/25
790 os-floating:
791 id: 412
792 link: bond1
Dennis Dmitrievea894212020-03-12 21:36:43 +0200793 k8s-metallb:
794 id: 413
795 link: bond0
796 management:
797 id: 414
798 link: bond0
799 ceph-control:
800 id: 415
801 link: bond1
802 addresses:
803 - {{ STORAGE_FRONTEND_INTERFACE_IP }}/{{ STORAGE_FRONTEND_NETWORK_NETMASK }}
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300804 mtu: 9100
Dennis Dmitrievea894212020-03-12 21:36:43 +0200805 os-tenant:
806 id: 416
807 link: bond1
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300808 addresses:
809 - 10.14.0.19/24
810 mtu: 9100
Dennis Dmitrievea894212020-03-12 21:36:43 +0200811
812
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200813 functions_override: |
814
815 function network_config {
816
817 DEBIAN_FRONTEND=noninteractive apt -y install bridge-utils ifenslave vlan
818 sudo modprobe bonding
819 netplan --debug apply
820 sleep 15
821
Dennis Dmitrievea894212020-03-12 21:36:43 +0200822 # Re-init the variables related to the just configured k8s-control network
823 CONTROL_IP_ADDRESS=$(ip route get ${CONTROL_NETWORK_CIDR%/*} | head -n1 | fgrep -v ' via ' | awk '/ src / {print $6}')
824
825 #UCP_MASTER_HOST=${UCP_MASTER_HOST:-${CONTROL_IP_ADDRESS}}
826 # Hardcoded IP for the UCP node because the servers output contain PXE IP instead of k8s_control IP
827 UCP_MASTER_HOST=172.16.50.254
828 UCP_IP_ADDRESS=${UCP_IP_ADDRESS:-$CONTROL_IP_ADDRESS}
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200829 }