blob: d8630d42716226fa207fffa725d044f127f8b2f8 [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
Dennis Dmitriev81da4222020-02-25 17:53:04 +020049 hardware_metadata: |
50 '0c:c4:7a:33:26:7c':
51 write_files:
Oleksii Butenkodaeb5f42020-04-12 12:07:56 +030052 - path: /usr/share/metadata/ceph.yaml
53 content: |
54 storageDevices:
55 - name: sdb
56 role: hdd
57 sizeGb: 500
58 - name: sdc
59 role: hdd
60 sizeGb: 500
61 ramGb: 64
62 cores: 12
63 ips:
64 - 192.168.122.101
65 crushPath: {}
Dennis Dmitrievea894212020-03-12 21:36:43 +020066 - path: '/etc/netplan/99-cz7714-osd.yaml'
Dennis Dmitriev81da4222020-02-25 17:53:04 +020067 content: |
68 network:
69 version: 2
70 ethernets:
Oleksii Butenkodaeb5f42020-04-12 12:07:56 +030071 eno1: &mtu9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +020072 dhcp4: false
Oleksii Butenkob8dcc262020-04-01 12:15:07 +030073 mtu: 9100
Oleksii Butenkodaeb5f42020-04-12 12:07:56 +030074 ens3f1: *mtu9100
75 ens3f2: *mtu9100
76 ens3f3: *mtu9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +020077 bonds:
78 bond0:
79 dhcp4: no
80 interfaces: [eno1, ens3f1]
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 bond1:
86 dhcp4: no
87 interfaces: [ens3f2, ens3f3]
88 parameters:
89 mode: active-backup
Oleksii Butenkob8dcc262020-04-01 12:15:07 +030090 mii-monitor-interval: 1000
91 mtu: 9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +020092 vlans:
93 k8s-control:
94 id: 411
95 link: bond0
Dennis Dmitrievea894212020-03-12 21:36:43 +020096 addresses:
97 - 172.16.50.130/25
Oleksii Butenkofe550232020-05-19 21:24:48 +030098 os-floating: { id: 412, link: bond1 }
99 k8s-metallb: { id: 413, link: bond0 }
100 management: { id: 414, link: bond0 }
Dennis Dmitrievea894212020-03-12 21:36:43 +0200101 ceph-control:
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200102 id: 415
103 link: bond1
Dennis Dmitrievea894212020-03-12 21:36:43 +0200104 addresses:
105 - {{ STORAGE_FRONTEND_INTERFACE_IP }}/{{ STORAGE_FRONTEND_NETWORK_NETMASK }}
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300106 mtu: 9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200107 os-tenant:
108 id: 416
109 link: bond1
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300110 addresses:
111 - 10.14.0.10/24
112 mtu: 9100
Dennis Dmitrievea894212020-03-12 21:36:43 +0200113 ceph-replica:
114 id: 417
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300115 link: bond0
Dennis Dmitrievea894212020-03-12 21:36:43 +0200116 addresses:
117 - {{ STORAGE_BACKEND_INTERFACE_IP }}/{{ STORAGE_BACKEND_NETWORK_NETMASK }}
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300118 mtu: 9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200119 '0c:c4:7a:33:26:6e':
120 write_files:
Oleksii Butenkodaeb5f42020-04-12 12:07:56 +0300121 - path: /usr/share/metadata/ceph.yaml
122 content: |
123 storageDevices:
124 - name: sdb
125 role: hdd
126 sizeGb: 500
127 - name: sdc
128 role: hdd
129 sizeGb: 500
130 ramGb: 64
131 cores: 12
132 ips:
133 - 192.168.122.102
134 crushPath: {}
Dennis Dmitrievea894212020-03-12 21:36:43 +0200135 - path: '/etc/netplan/99-cz7725-osd.yaml'
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200136 content: |
137 network:
138 version: 2
139 ethernets:
Oleksii Butenkodaeb5f42020-04-12 12:07:56 +0300140 eno1: &mtu9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200141 dhcp4: false
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300142 mtu: 9100
Oleksii Butenkodaeb5f42020-04-12 12:07:56 +0300143 ens3f1: *mtu9100
144 ens3f2: *mtu9100
145 ens3f3: *mtu9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200146 bonds:
147 bond0:
148 dhcp4: no
149 interfaces: [eno1, ens3f1]
150 parameters:
151 mode: active-backup
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300152 mii-monitor-interval: 1000
153 mtu: 9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200154 bond1:
155 dhcp4: no
156 interfaces: [ens3f2, ens3f3]
157 parameters:
158 mode: active-backup
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300159 mii-monitor-interval: 1000
160 mtu: 9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200161 vlans:
162 k8s-control:
163 id: 411
164 link: bond0
Dennis Dmitrievea894212020-03-12 21:36:43 +0200165 addresses:
166 - 172.16.50.131/25
Oleksii Butenkofe550232020-05-19 21:24:48 +0300167 os-floating: { id: 412, link: bond1 }
168 k8s-metallb: { id: 413, link: bond0 }
169 management: { id: 414, link: bond0 }
Dennis Dmitrievea894212020-03-12 21:36:43 +0200170 ceph-control:
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200171 id: 415
172 link: bond1
Dennis Dmitrievea894212020-03-12 21:36:43 +0200173 addresses:
174 - {{ STORAGE_FRONTEND_INTERFACE_IP }}/{{ STORAGE_FRONTEND_NETWORK_NETMASK }}
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300175 mtu: 9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200176 os-tenant:
177 id: 416
178 link: bond1
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300179 addresses:
180 - 10.14.0.11/24
181 mtu: 9100
Dennis Dmitrievea894212020-03-12 21:36:43 +0200182 ceph-replica:
183 id: 417
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300184 link: bond0
Dennis Dmitrievea894212020-03-12 21:36:43 +0200185 addresses:
186 - {{ STORAGE_BACKEND_INTERFACE_IP }}/{{ STORAGE_BACKEND_NETWORK_NETMASK }}
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300187 mtu: 9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200188 '0c:c4:7a:33:26:6a':
189 write_files:
Oleksii Butenkodaeb5f42020-04-12 12:07:56 +0300190 - path: /usr/share/metadata/ceph.yaml
191 content: |
192 storageDevices:
193 - name: sdb
194 role: hdd
195 sizeGb: 500
196 - name: sdc
197 role: hdd
198 sizeGb: 500
199 ramGb: 64
200 cores: 12
201 ips:
202 - 192.168.122.103
203 crushPath: {}
Dennis Dmitrievea894212020-03-12 21:36:43 +0200204 - path: '/etc/netplan/99-cz7726-osd.yaml'
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200205 content: |
206 network:
207 version: 2
208 ethernets:
Oleksii Butenkodaeb5f42020-04-12 12:07:56 +0300209 eno1: &mtu9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200210 dhcp4: false
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300211 mtu: 9100
Oleksii Butenkodaeb5f42020-04-12 12:07:56 +0300212 ens3f1: *mtu9100
213 ens3f2: *mtu9100
214 ens3f3: *mtu9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200215 bonds:
216 bond0:
217 dhcp4: no
218 interfaces: [eno1, ens3f1]
219 parameters:
220 mode: active-backup
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300221 mii-monitor-interval: 1000
222 mtu: 9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200223 bond1:
224 dhcp4: no
225 interfaces: [ens3f2, ens3f3]
226 parameters:
227 mode: active-backup
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300228 mii-monitor-interval: 1000
229 mtu: 9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200230 vlans:
231 k8s-control:
232 id: 411
233 link: bond0
Dennis Dmitrievea894212020-03-12 21:36:43 +0200234 addresses:
235 - 172.16.50.132/25
Oleksii Butenkofe550232020-05-19 21:24:48 +0300236 os-floating: { id: 412, link: bond1 }
237 k8s-metallb: { id: 413, link: bond0 }
238 management: { id: 414, link: bond0 }
Dennis Dmitrievea894212020-03-12 21:36:43 +0200239 ceph-control:
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200240 id: 415
241 link: bond1
Dennis Dmitrievea894212020-03-12 21:36:43 +0200242 addresses:
243 - {{ STORAGE_FRONTEND_INTERFACE_IP }}/{{ STORAGE_FRONTEND_NETWORK_NETMASK }}
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300244 mtu: 9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200245 os-tenant:
246 id: 416
247 link: bond1
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300248 addresses:
249 - 10.14.0.12/24
250 mtu: 9100
Dennis Dmitrievea894212020-03-12 21:36:43 +0200251 ceph-replica:
252 id: 417
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300253 link: bond0
Dennis Dmitrievea894212020-03-12 21:36:43 +0200254 addresses:
255 - {{ STORAGE_BACKEND_INTERFACE_IP }}/{{ STORAGE_BACKEND_NETWORK_NETMASK }}
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300256 mtu: 9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200257 '0c:c4:7a:34:92:94':
258 write_files:
Dennis Dmitrievea894212020-03-12 21:36:43 +0200259 - path: '/etc/netplan/99-cz7727-spare.yaml'
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200260 content: |
261 network:
262 version: 2
263 ethernets:
Oleksii Butenkodaeb5f42020-04-12 12:07:56 +0300264 eno1: &mtu9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200265 dhcp4: false
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300266 mtu: 9100
Oleksii Butenkodaeb5f42020-04-12 12:07:56 +0300267 ens3f1: *mtu9100
268 ens3f2: *mtu9100
269 ens3f3: *mtu9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200270 bonds:
271 bond0:
272 dhcp4: no
273 interfaces: [eno1, ens3f1]
274 parameters:
275 mode: active-backup
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300276 mii-monitor-interval: 1000
277 mtu: 9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200278 bond1:
279 dhcp4: no
280 interfaces: [ens3f2, ens3f3]
281 parameters:
282 mode: active-backup
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300283 mii-monitor-interval: 1000
284 mtu: 9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200285 vlans:
286 k8s-control:
287 id: 411
288 link: bond0
Dennis Dmitrievea894212020-03-12 21:36:43 +0200289 addresses:
290 - 172.16.50.133/25
Oleksii Butenkofe550232020-05-19 21:24:48 +0300291 os-floating: { id: 412, link: bond1 }
292 k8s-metallb: { id: 413, link: bond0 }
293 management: { id: 414, link: bond0 }
Dennis Dmitrievea894212020-03-12 21:36:43 +0200294 ceph-control:
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200295 id: 415
296 link: bond1
Dennis Dmitrievea894212020-03-12 21:36:43 +0200297 addresses:
298 - {{ STORAGE_FRONTEND_INTERFACE_IP }}/{{ STORAGE_FRONTEND_NETWORK_NETMASK }}
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300299 mtu: 9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200300 os-tenant:
301 id: 416
302 link: bond1
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300303 addresses:
304 - 10.14.0.13/24
305 mtu: 9100
Dennis Dmitrievea894212020-03-12 21:36:43 +0200306 ceph-replica:
307 id: 417
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300308 link: bond0
Dennis Dmitrievea894212020-03-12 21:36:43 +0200309 addresses:
310 - {{ STORAGE_BACKEND_INTERFACE_IP }}/{{ STORAGE_BACKEND_NETWORK_NETMASK }}
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300311 mtu: 9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200312 '0c:c4:7a:aa:e0:9e':
313 write_files:
Dennis Dmitrievea894212020-03-12 21:36:43 +0200314 - path: '/etc/netplan/99-cz10095-os-control.yaml'
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200315 content: |
316 network:
317 version: 2
318 ethernets:
Oleksii Butenkodaeb5f42020-04-12 12:07:56 +0300319 ens11f0: &mtu9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200320 dhcp4: false
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300321 mtu: 9100
Oleksii Butenkodaeb5f42020-04-12 12:07:56 +0300322 ens11f1: *mtu9100
323 ens11f2: *mtu9100
324 ens11f3: *mtu9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200325 bonds:
326 bond0:
327 dhcp4: no
328 interfaces: [ens11f0, ens11f1]
329 parameters:
330 mode: active-backup
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300331 mii-monitor-interval: 1000
332 mtu: 9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200333 bond1:
334 dhcp4: no
335 interfaces: [ens11f2, ens11f3]
336 parameters:
337 mode: active-backup
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300338 mii-monitor-interval: 1000
339 mtu: 9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200340 vlans:
341 k8s-control:
342 id: 411
343 link: bond0
Dennis Dmitrievea894212020-03-12 21:36:43 +0200344 addresses:
345 - 172.16.50.134/25
Oleksii Butenkofe550232020-05-19 21:24:48 +0300346 os-floating: { id: 412, link: bond1 }
347 k8s-metallb: { id: 413, link: bond0 }
348 management: { id: 414, link: bond0 }
Dennis Dmitrievea894212020-03-12 21:36:43 +0200349 ceph-control:
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200350 id: 415
351 link: bond1
Dennis Dmitrievea894212020-03-12 21:36:43 +0200352 addresses:
353 - {{ STORAGE_FRONTEND_INTERFACE_IP }}/{{ STORAGE_FRONTEND_NETWORK_NETMASK }}
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300354 mtu: 9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200355 os-tenant:
356 id: 416
357 link: bond1
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300358 addresses:
359 - 10.14.0.14/24
360 mtu: 9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200361 '0c:c4:7a:aa:e0:9c':
362 write_files:
Dennis Dmitrievea894212020-03-12 21:36:43 +0200363 - path: '/etc/netplan/99-cz10096-os-control.yaml'
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200364 content: |
365 network:
366 version: 2
367 ethernets:
Oleksii Butenkodaeb5f42020-04-12 12:07:56 +0300368 ens11f0: &mtu9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200369 dhcp4: false
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300370 mtu: 9100
Oleksii Butenkodaeb5f42020-04-12 12:07:56 +0300371 ens11f1: *mtu9100
372 ens11f2: *mtu9100
373 ens11f3: *mtu9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200374 bonds:
375 bond0:
376 dhcp4: no
377 interfaces: [ens11f0, ens11f1]
378 parameters:
379 mode: active-backup
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300380 mii-monitor-interval: 1000
381 mtu: 9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200382 bond1:
383 dhcp4: no
384 interfaces: [ens11f2, ens11f3]
385 parameters:
386 mode: active-backup
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300387 mii-monitor-interval: 1000
388 mtu: 9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200389 vlans:
390 k8s-control:
391 id: 411
392 link: bond0
Dennis Dmitrievea894212020-03-12 21:36:43 +0200393 addresses:
394 - 172.16.50.135/25
Oleksii Butenkofe550232020-05-19 21:24:48 +0300395 os-floating: { id: 412, link: bond1 }
396 k8s-metallb: { id: 413, link: bond0 }
397 management: { id: 414, link: bond0 }
Dennis Dmitrievea894212020-03-12 21:36:43 +0200398 ceph-control:
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200399 id: 415
400 link: bond1
Dennis Dmitrievea894212020-03-12 21:36:43 +0200401 addresses:
402 - {{ STORAGE_FRONTEND_INTERFACE_IP }}/{{ STORAGE_FRONTEND_NETWORK_NETMASK }}
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300403 mtu: 9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200404 os-tenant:
405 id: 416
406 link: bond1
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300407 addresses:
408 - 10.14.0.15/24
409 mtu: 9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200410 '0c:c4:7a:aa:78:2c':
411 write_files:
Dennis Dmitrievea894212020-03-12 21:36:43 +0200412 - path: '/etc/netplan/99-cz10097-os-control.yaml'
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200413 content: |
414 network:
415 version: 2
416 ethernets:
Oleksii Butenkodaeb5f42020-04-12 12:07:56 +0300417 ens11f0: &mtu9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200418 dhcp4: false
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300419 mtu: 9100
Oleksii Butenkodaeb5f42020-04-12 12:07:56 +0300420 ens11f1: *mtu9100
421 ens11f2: *mtu9100
422 ens11f3: *mtu9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200423 bonds:
424 bond0:
425 dhcp4: no
426 interfaces: [ens11f0, ens11f1]
427 parameters:
428 mode: active-backup
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300429 mii-monitor-interval: 1000
430 mtu: 9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200431 bond1:
432 dhcp4: no
433 interfaces: [ens11f2, ens11f3]
434 parameters:
435 mode: active-backup
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300436 mii-monitor-interval: 1000
437 mtu: 9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200438 vlans:
439 k8s-control:
440 id: 411
441 link: bond0
Dennis Dmitrievea894212020-03-12 21:36:43 +0200442 addresses:
443 - 172.16.50.136/25
Oleksii Butenkofe550232020-05-19 21:24:48 +0300444 os-floating: { id: 412, link: bond1 }
445 k8s-metallb: { id: 413, link: bond0 }
446 management: { id: 414, link: bond0 }
Dennis Dmitrievea894212020-03-12 21:36:43 +0200447 ceph-control:
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200448 id: 415
449 link: bond1
Dennis Dmitrievea894212020-03-12 21:36:43 +0200450 addresses:
451 - {{ STORAGE_FRONTEND_INTERFACE_IP }}/{{ STORAGE_FRONTEND_NETWORK_NETMASK }}
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300452 mtu: 9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200453 os-tenant:
454 id: 416
455 link: bond1
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300456 addresses:
457 - 10.14.0.16/24
458 mtu: 9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200459 '0c:c4:7a:aa:78:7a':
460 write_files:
Dennis Dmitrievea894212020-03-12 21:36:43 +0200461 - path: '/etc/netplan/99-cz10098-ucp-control.yaml'
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200462 content: |
463 network:
464 version: 2
465 ethernets:
Oleksii Butenkodaeb5f42020-04-12 12:07:56 +0300466 eno1: &mtu9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200467 dhcp4: false
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300468 mtu: 9100
Oleksii Butenkodaeb5f42020-04-12 12:07:56 +0300469 ens4f1: *mtu9100
470 ens4f2: *mtu9100
471 ens4f3: *mtu9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200472 bonds:
473 bond0:
474 dhcp4: no
475 interfaces: [eno1, ens4f1]
476 parameters:
477 mode: active-backup
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300478 mii-monitor-interval: 1000
479 mtu: 9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200480 bond1:
481 dhcp4: no
482 interfaces: [ens4f2, ens4f3]
483 parameters:
484 mode: active-backup
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300485 mii-monitor-interval: 1000
486 mtu: 9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200487 vlans:
488 k8s-control:
489 id: 411
490 link: bond0
Dennis Dmitrievea894212020-03-12 21:36:43 +0200491 addresses:
Dennis Dmitrievea894212020-03-12 21:36:43 +0200492 - {% if UCP_MASTER_HOST == "" %}172.16.50.254/25{% else %}172.16.50.137/25{% endif %}
Oleksii Butenkofe550232020-05-19 21:24:48 +0300493 os-floating: { id: 412, link: bond1 }
494 k8s-metallb: { id: 413, link: bond0 }
495 management: { id: 414, link: bond0 }
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200496 '0c:c4:7a:aa:e0:98':
497 write_files:
Dennis Dmitrievea894212020-03-12 21:36:43 +0200498 - path: '/etc/netplan/99-cz10099-ucp-control.yaml'
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200499 content: |
500 network:
501 version: 2
502 ethernets:
Oleksii Butenkodaeb5f42020-04-12 12:07:56 +0300503 eno1: &mtu9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200504 dhcp4: false
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300505 mtu: 9100
Oleksii Butenkodaeb5f42020-04-12 12:07:56 +0300506 ens4f1: *mtu9100
507 ens4f2: *mtu9100
508 ens4f3: *mtu9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200509 bonds:
510 bond0:
511 dhcp4: no
512 interfaces: [eno1, ens4f1]
513 parameters:
514 mode: active-backup
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300515 mii-monitor-interval: 1000
516 mtu: 9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200517 bond1:
518 dhcp4: no
519 interfaces: [ens4f2, ens4f3]
520 parameters:
521 mode: active-backup
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300522 mii-monitor-interval: 1000
523 mtu: 9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200524 vlans:
525 k8s-control:
526 id: 411
527 link: bond0
Dennis Dmitrievea894212020-03-12 21:36:43 +0200528 addresses:
Dennis Dmitrievea894212020-03-12 21:36:43 +0200529 - {% if UCP_MASTER_HOST == "" %}172.16.50.254/25{% else %}172.16.50.138/25{% endif %}
Oleksii Butenkofe550232020-05-19 21:24:48 +0300530 os-floating: { id: 412, link: bond1 }
531 k8s-metallb: { id: 413, link: bond0 }
532 management: { id: 414, link: bond0 }
Dennis Dmitrievea894212020-03-12 21:36:43 +0200533 '0c:c4:7a:aa:78:7c':
534 write_files:
535 - path: '/etc/netplan/99-cz10100-ucp-control.yaml'
536 content: |
537 network:
538 version: 2
539 ethernets:
Oleksii Butenkodaeb5f42020-04-12 12:07:56 +0300540 eno1: &mtu9100
Dennis Dmitrievea894212020-03-12 21:36:43 +0200541 dhcp4: false
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300542 mtu: 9100
Oleksii Butenkodaeb5f42020-04-12 12:07:56 +0300543 ens4f1: *mtu9100
544 ens4f2: *mtu9100
545 ens4f3: *mtu9100
Dennis Dmitrievea894212020-03-12 21:36:43 +0200546 bonds:
547 bond0:
548 dhcp4: no
549 interfaces: [eno1, ens4f1]
550 parameters:
551 mode: active-backup
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300552 mii-monitor-interval: 1000
553 mtu: 9100
Dennis Dmitrievea894212020-03-12 21:36:43 +0200554 bond1:
555 dhcp4: no
556 interfaces: [ens4f2, ens4f3]
557 parameters:
558 mode: active-backup
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300559 mii-monitor-interval: 1000
560 mtu: 9100
Dennis Dmitrievea894212020-03-12 21:36:43 +0200561 vlans:
562 k8s-control:
563 id: 411
564 link: bond0
565 addresses:
Dennis Dmitrievea894212020-03-12 21:36:43 +0200566 - {% if UCP_MASTER_HOST == "" %}172.16.50.254/25{% else %}172.16.50.139/25{% endif %}
Oleksii Butenkofe550232020-05-19 21:24:48 +0300567 os-floating: { id: 412, link: bond1 }
568 k8s-metallb: { id: 413, link: bond0 }
569 management: { id: 414, link: bond0 }
Dennis Dmitrievea894212020-03-12 21:36:43 +0200570 '0c:c4:7a:55:6a:28':
571 write_files:
572 - path: '/etc/netplan/99-cz7636-os-compute.yaml'
573 content: |
574 network:
575 version: 2
576 ethernets:
Oleksii Butenkodaeb5f42020-04-12 12:07:56 +0300577 enp3s0f0: &mtu9100
Dennis Dmitrievea894212020-03-12 21:36:43 +0200578 dhcp4: false
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300579 mtu: 9100
Oleksii Butenkodaeb5f42020-04-12 12:07:56 +0300580 enp3s0f1: *mtu9100
581 enp3s0f2: *mtu9100
582 enp3s0f3: *mtu9100
Dennis Dmitrievea894212020-03-12 21:36:43 +0200583 bonds:
584 bond0:
585 dhcp4: no
586 interfaces: [enp3s0f0, enp3s0f1]
587 parameters:
588 mode: active-backup
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300589 mii-monitor-interval: 1000
590 mtu: 9100
Dennis Dmitrievea894212020-03-12 21:36:43 +0200591 bond1:
592 dhcp4: no
593 interfaces: [enp3s0f2, enp3s0f3]
594 parameters:
595 mode: active-backup
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300596 mii-monitor-interval: 1000
597 mtu: 9100
Dennis Dmitrievea894212020-03-12 21:36:43 +0200598 vlans:
599 k8s-control:
600 id: 411
601 link: bond0
602 addresses:
603 - 172.16.50.140/25
Oleksii Butenkofe550232020-05-19 21:24:48 +0300604 os-floating: { id: 412, link: bond1 }
605 k8s-metallb: { id: 413, link: bond0 }
606 management: { id: 414, link: bond0 }
Dennis Dmitrievea894212020-03-12 21:36:43 +0200607 ceph-control:
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200608 id: 415
609 link: bond1
Dennis Dmitrievea894212020-03-12 21:36:43 +0200610 addresses:
611 - {{ STORAGE_FRONTEND_INTERFACE_IP }}/{{ STORAGE_FRONTEND_NETWORK_NETMASK }}
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300612 mtu: 9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200613 os-tenant:
614 id: 416
615 link: bond1
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300616 addresses:
617 - 10.14.0.17/24
618 mtu: 9100
Dennis Dmitrievea894212020-03-12 21:36:43 +0200619 '0c:c4:7a:54:a2:5e':
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200620 write_files:
Dennis Dmitrievea894212020-03-12 21:36:43 +0200621 - path: '/etc/netplan/99-cz7641-os-compute.yaml'
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200622 content: |
623 network:
624 version: 2
625 ethernets:
Oleksii Butenkodaeb5f42020-04-12 12:07:56 +0300626 enp3s0f0: &mtu9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200627 dhcp4: false
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300628 mtu: 9100
Oleksii Butenkodaeb5f42020-04-12 12:07:56 +0300629 enp3s0f1: *mtu9100
630 enp3s0f2: *mtu9100
631 enp3s0f3: *mtu9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200632 bonds:
633 bond0:
634 dhcp4: no
Dennis Dmitrievea894212020-03-12 21:36:43 +0200635 interfaces: [enp3s0f0, enp3s0f1]
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200636 parameters:
637 mode: active-backup
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300638 mii-monitor-interval: 1000
639 mtu: 9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200640 bond1:
641 dhcp4: no
Dennis Dmitrievea894212020-03-12 21:36:43 +0200642 interfaces: [enp3s0f2, enp3s0f3]
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200643 parameters:
644 mode: active-backup
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300645 mii-monitor-interval: 1000
646 mtu: 9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200647 vlans:
648 k8s-control:
649 id: 411
650 link: bond0
Dennis Dmitrievea894212020-03-12 21:36:43 +0200651 addresses:
652 - 172.16.50.141/25
Oleksii Butenkofe550232020-05-19 21:24:48 +0300653 os-floating: { id: 412, link: bond1 }
654 k8s-metallb: { id: 413, link: bond0 }
655 management: { id: 414, link: bond0 }
Dennis Dmitrievea894212020-03-12 21:36:43 +0200656 ceph-control:
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200657 id: 415
658 link: bond1
Dennis Dmitrievea894212020-03-12 21:36:43 +0200659 addresses:
660 - {{ STORAGE_FRONTEND_INTERFACE_IP }}/{{ STORAGE_FRONTEND_NETWORK_NETMASK }}
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300661 mtu: 9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200662 os-tenant:
663 id: 416
664 link: bond1
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300665 addresses:
666 - 10.14.0.18/24
667 mtu: 9100
Dennis Dmitrievea894212020-03-12 21:36:43 +0200668 '0c:c4:7a:54:a0:50':
669 write_files:
670 - path: '/etc/netplan/99-cz7642-os-compute.yaml'
671 content: |
672 network:
673 version: 2
674 ethernets:
Oleksii Butenkodaeb5f42020-04-12 12:07:56 +0300675 enp3s0f0: &mtu9100
Dennis Dmitrievea894212020-03-12 21:36:43 +0200676 dhcp4: false
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300677 mtu: 9100
Oleksii Butenkodaeb5f42020-04-12 12:07:56 +0300678 enp3s0f1: *mtu9100
679 enp3s0f2: *mtu9100
680 enp3s0f3: *mtu9100
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.142/25
Oleksii Butenkofe550232020-05-19 21:24:48 +0300702 os-floating: { id: 412, link: bond1 }
703 k8s-metallb: { id: 413, link: bond0 }
704 management: { id: 414, link: bond0 }
Dennis Dmitrievea894212020-03-12 21:36:43 +0200705 ceph-control:
706 id: 415
707 link: bond1
708 addresses:
709 - {{ STORAGE_FRONTEND_INTERFACE_IP }}/{{ STORAGE_FRONTEND_NETWORK_NETMASK }}
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300710 mtu: 9100
Dennis Dmitrievea894212020-03-12 21:36:43 +0200711 os-tenant:
712 id: 416
713 link: bond1
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300714 addresses:
715 - 10.14.0.19/24
716 mtu: 9100
Dennis Dmitrievea894212020-03-12 21:36:43 +0200717
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200718 functions_override: |
719
720 function network_config {
721
722 DEBIAN_FRONTEND=noninteractive apt -y install bridge-utils ifenslave vlan
723 sudo modprobe bonding
724 netplan --debug apply
725 sleep 15
726
Dennis Dmitrievea894212020-03-12 21:36:43 +0200727 # Re-init the variables related to the just configured k8s-control network
728 CONTROL_IP_ADDRESS=$(ip route get ${CONTROL_NETWORK_CIDR%/*} | head -n1 | fgrep -v ' via ' | awk '/ src / {print $6}')
729
730 #UCP_MASTER_HOST=${UCP_MASTER_HOST:-${CONTROL_IP_ADDRESS}}
731 # Hardcoded IP for the UCP node because the servers output contain PXE IP instead of k8s_control IP
732 UCP_MASTER_HOST=172.16.50.254
733 UCP_IP_ADDRESS=${UCP_IP_ADDRESS:-$CONTROL_IP_ADDRESS}
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200734 }