blob: 35c5ddb625269432bb3f44c4803dd09e7db4cf02 [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:
Oleksii Butenkoa1ccba42020-06-01 13:29:27 +030093 k8s-control: { id: 411, link: bond0, addresses: [ 172.16.50.130/25 ] }
Oleksii Butenkofe550232020-05-19 21:24:48 +030094 os-floating: { id: 412, link: bond1 }
95 k8s-metallb: { id: 413, link: bond0 }
96 management: { id: 414, link: bond0 }
Oleksii Butenkoa1ccba42020-06-01 13:29:27 +030097 ceph-control: { id: 415, link: bond1, addresses: [ {{ STORAGE_FRONTEND_INTERFACE_IP }}/{{ STORAGE_FRONTEND_NETWORK_NETMASK }} ] , mtu: 9100 }
98 os-tenant: { id: 416, link: bond1, addresses: [ 10.14.0.10/24 ], mtu: 9100 }
99 ceph-replica: { id: 417, link: bond0, addresses: [ {{ STORAGE_BACKEND_INTERFACE_IP }}/{{ STORAGE_BACKEND_NETWORK_NETMASK }} ], mtu: 9100 }
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200100 '0c:c4:7a:33:26:6e':
101 write_files:
Oleksii Butenkodaeb5f42020-04-12 12:07:56 +0300102 - path: /usr/share/metadata/ceph.yaml
103 content: |
104 storageDevices:
105 - name: sdb
106 role: hdd
107 sizeGb: 500
108 - name: sdc
109 role: hdd
110 sizeGb: 500
111 ramGb: 64
112 cores: 12
113 ips:
114 - 192.168.122.102
115 crushPath: {}
Dennis Dmitrievea894212020-03-12 21:36:43 +0200116 - path: '/etc/netplan/99-cz7725-osd.yaml'
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200117 content: |
118 network:
119 version: 2
120 ethernets:
Oleksii Butenkodaeb5f42020-04-12 12:07:56 +0300121 eno1: &mtu9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200122 dhcp4: false
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300123 mtu: 9100
Oleksii Butenkodaeb5f42020-04-12 12:07:56 +0300124 ens3f1: *mtu9100
125 ens3f2: *mtu9100
126 ens3f3: *mtu9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200127 bonds:
128 bond0:
129 dhcp4: no
130 interfaces: [eno1, ens3f1]
131 parameters:
132 mode: active-backup
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300133 mii-monitor-interval: 1000
134 mtu: 9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200135 bond1:
136 dhcp4: no
137 interfaces: [ens3f2, ens3f3]
138 parameters:
139 mode: active-backup
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300140 mii-monitor-interval: 1000
141 mtu: 9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200142 vlans:
Oleksii Butenkoa1ccba42020-06-01 13:29:27 +0300143 k8s-control: { id: 411, link: bond0, addresses: [ 172.16.50.131/25 ] }
Oleksii Butenkofe550232020-05-19 21:24:48 +0300144 os-floating: { id: 412, link: bond1 }
145 k8s-metallb: { id: 413, link: bond0 }
146 management: { id: 414, link: bond0 }
Oleksii Butenkoa1ccba42020-06-01 13:29:27 +0300147 ceph-control: { id: 415, link: bond1, addresses: [ {{ STORAGE_FRONTEND_INTERFACE_IP }}/{{ STORAGE_FRONTEND_NETWORK_NETMASK }} ] , mtu: 9100 }
148 os-tenant: { id: 416, link: bond1, addresses: [ 10.14.0.11/24 ], mtu: 9100 }
149 ceph-replica: { id: 417, link: bond0, addresses: [ {{ STORAGE_BACKEND_INTERFACE_IP }}/{{ STORAGE_BACKEND_NETWORK_NETMASK }} ], mtu: 9100 }
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200150 '0c:c4:7a:33:26:6a':
151 write_files:
Oleksii Butenkodaeb5f42020-04-12 12:07:56 +0300152 - path: /usr/share/metadata/ceph.yaml
153 content: |
154 storageDevices:
155 - name: sdb
156 role: hdd
157 sizeGb: 500
158 - name: sdc
159 role: hdd
160 sizeGb: 500
161 ramGb: 64
162 cores: 12
163 ips:
164 - 192.168.122.103
165 crushPath: {}
Dennis Dmitrievea894212020-03-12 21:36:43 +0200166 - path: '/etc/netplan/99-cz7726-osd.yaml'
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200167 content: |
168 network:
169 version: 2
170 ethernets:
Oleksii Butenkodaeb5f42020-04-12 12:07:56 +0300171 eno1: &mtu9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200172 dhcp4: false
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300173 mtu: 9100
Oleksii Butenkodaeb5f42020-04-12 12:07:56 +0300174 ens3f1: *mtu9100
175 ens3f2: *mtu9100
176 ens3f3: *mtu9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200177 bonds:
178 bond0:
179 dhcp4: no
180 interfaces: [eno1, ens3f1]
181 parameters:
182 mode: active-backup
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300183 mii-monitor-interval: 1000
184 mtu: 9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200185 bond1:
186 dhcp4: no
187 interfaces: [ens3f2, ens3f3]
188 parameters:
189 mode: active-backup
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300190 mii-monitor-interval: 1000
191 mtu: 9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200192 vlans:
Oleksii Butenkoa1ccba42020-06-01 13:29:27 +0300193 k8s-control: { id: 411, link: bond0, addresses: [ 172.16.50.132/25 ] }
Oleksii Butenkofe550232020-05-19 21:24:48 +0300194 os-floating: { id: 412, link: bond1 }
195 k8s-metallb: { id: 413, link: bond0 }
196 management: { id: 414, link: bond0 }
Oleksii Butenkoa1ccba42020-06-01 13:29:27 +0300197 ceph-control: { id: 415, link: bond1, addresses: [ {{ STORAGE_FRONTEND_INTERFACE_IP }}/{{ STORAGE_FRONTEND_NETWORK_NETMASK }} ] , mtu: 9100 }
198 os-tenant: { id: 416, link: bond1, addresses: [ 10.14.0.12/24 ], mtu: 9100 }
199 ceph-replica: { id: 417, link: bond0, addresses: [ {{ STORAGE_BACKEND_INTERFACE_IP }}/{{ STORAGE_BACKEND_NETWORK_NETMASK }} ], mtu: 9100 }
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200200 '0c:c4:7a:34:92:94':
201 write_files:
Dennis Dmitrievea894212020-03-12 21:36:43 +0200202 - path: '/etc/netplan/99-cz7727-spare.yaml'
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200203 content: |
204 network:
205 version: 2
206 ethernets:
Oleksii Butenkodaeb5f42020-04-12 12:07:56 +0300207 eno1: &mtu9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200208 dhcp4: false
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300209 mtu: 9100
Oleksii Butenkodaeb5f42020-04-12 12:07:56 +0300210 ens3f1: *mtu9100
211 ens3f2: *mtu9100
212 ens3f3: *mtu9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200213 bonds:
214 bond0:
215 dhcp4: no
216 interfaces: [eno1, ens3f1]
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 bond1:
222 dhcp4: no
223 interfaces: [ens3f2, ens3f3]
224 parameters:
225 mode: active-backup
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300226 mii-monitor-interval: 1000
227 mtu: 9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200228 vlans:
Oleksii Butenkoa1ccba42020-06-01 13:29:27 +0300229 k8s-control: { id: 411, link: bond0, addresses: [ 172.16.50.133/25 ] }
Oleksii Butenkofe550232020-05-19 21:24:48 +0300230 os-floating: { id: 412, link: bond1 }
231 k8s-metallb: { id: 413, link: bond0 }
232 management: { id: 414, link: bond0 }
Oleksii Butenkoa1ccba42020-06-01 13:29:27 +0300233 ceph-control: { id: 415, link: bond1, addresses: [ {{ STORAGE_FRONTEND_INTERFACE_IP }}/{{ STORAGE_FRONTEND_NETWORK_NETMASK }} ] , mtu: 9100 }
234 os-tenant: { id: 416, link: bond1, addresses: [ 10.14.0.13/24 ], mtu: 9100 }
235 ceph-replica: { id: 417, link: bond0, addresses: [ {{ STORAGE_BACKEND_INTERFACE_IP }}/{{ STORAGE_BACKEND_NETWORK_NETMASK }} ], mtu: 9100 }
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200236 '0c:c4:7a:aa:e0:9e':
237 write_files:
Dennis Dmitrievea894212020-03-12 21:36:43 +0200238 - path: '/etc/netplan/99-cz10095-os-control.yaml'
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200239 content: |
240 network:
241 version: 2
242 ethernets:
Oleksii Butenkodaeb5f42020-04-12 12:07:56 +0300243 ens11f0: &mtu9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200244 dhcp4: false
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300245 mtu: 9100
Oleksii Butenkodaeb5f42020-04-12 12:07:56 +0300246 ens11f1: *mtu9100
247 ens11f2: *mtu9100
248 ens11f3: *mtu9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200249 bonds:
250 bond0:
251 dhcp4: no
252 interfaces: [ens11f0, ens11f1]
253 parameters:
254 mode: active-backup
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300255 mii-monitor-interval: 1000
256 mtu: 9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200257 bond1:
258 dhcp4: no
259 interfaces: [ens11f2, ens11f3]
260 parameters:
261 mode: active-backup
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300262 mii-monitor-interval: 1000
263 mtu: 9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200264 vlans:
Oleksii Butenkoa1ccba42020-06-01 13:29:27 +0300265 k8s-control: { id: 411, link: bond0, addresses: [ 172.16.50.134/25 ] }
Oleksii Butenkofe550232020-05-19 21:24:48 +0300266 os-floating: { id: 412, link: bond1 }
267 k8s-metallb: { id: 413, link: bond0 }
268 management: { id: 414, link: bond0 }
Oleksii Butenkoa1ccba42020-06-01 13:29:27 +0300269 ceph-control: { id: 415, link: bond1, addresses: [ {{ STORAGE_FRONTEND_INTERFACE_IP }}/{{ STORAGE_FRONTEND_NETWORK_NETMASK }} ] , mtu: 9100 }
270 os-tenant: { id: 416, link: bond1, addresses: [ 10.14.0.14/24 ], mtu: 9100 }
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200271 '0c:c4:7a:aa:e0:9c':
272 write_files:
Dennis Dmitrievea894212020-03-12 21:36:43 +0200273 - path: '/etc/netplan/99-cz10096-os-control.yaml'
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200274 content: |
275 network:
276 version: 2
277 ethernets:
Oleksii Butenkodaeb5f42020-04-12 12:07:56 +0300278 ens11f0: &mtu9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200279 dhcp4: false
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300280 mtu: 9100
Oleksii Butenkodaeb5f42020-04-12 12:07:56 +0300281 ens11f1: *mtu9100
282 ens11f2: *mtu9100
283 ens11f3: *mtu9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200284 bonds:
285 bond0:
286 dhcp4: no
287 interfaces: [ens11f0, ens11f1]
288 parameters:
289 mode: active-backup
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300290 mii-monitor-interval: 1000
291 mtu: 9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200292 bond1:
293 dhcp4: no
294 interfaces: [ens11f2, ens11f3]
295 parameters:
296 mode: active-backup
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300297 mii-monitor-interval: 1000
298 mtu: 9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200299 vlans:
Oleksii Butenkoa1ccba42020-06-01 13:29:27 +0300300 k8s-control: { id: 411, link: bond0, addresses: [ 172.16.50.135/25 ] }
Oleksii Butenkofe550232020-05-19 21:24:48 +0300301 os-floating: { id: 412, link: bond1 }
302 k8s-metallb: { id: 413, link: bond0 }
303 management: { id: 414, link: bond0 }
Oleksii Butenkoa1ccba42020-06-01 13:29:27 +0300304 ceph-control: { id: 415, link: bond1, addresses: [ {{ STORAGE_FRONTEND_INTERFACE_IP }}/{{ STORAGE_FRONTEND_NETWORK_NETMASK }} ] , mtu: 9100 }
305 os-tenant: { id: 416, link: bond1, addresses: [ 10.14.0.15/24 ], mtu: 9100 }
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200306 '0c:c4:7a:aa:78:2c':
307 write_files:
Dennis Dmitrievea894212020-03-12 21:36:43 +0200308 - path: '/etc/netplan/99-cz10097-os-control.yaml'
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200309 content: |
310 network:
311 version: 2
312 ethernets:
Oleksii Butenkodaeb5f42020-04-12 12:07:56 +0300313 ens11f0: &mtu9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200314 dhcp4: false
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300315 mtu: 9100
Oleksii Butenkodaeb5f42020-04-12 12:07:56 +0300316 ens11f1: *mtu9100
317 ens11f2: *mtu9100
318 ens11f3: *mtu9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200319 bonds:
320 bond0:
321 dhcp4: no
322 interfaces: [ens11f0, ens11f1]
323 parameters:
324 mode: active-backup
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300325 mii-monitor-interval: 1000
326 mtu: 9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200327 bond1:
328 dhcp4: no
329 interfaces: [ens11f2, ens11f3]
330 parameters:
331 mode: active-backup
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300332 mii-monitor-interval: 1000
333 mtu: 9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200334 vlans:
Oleksii Butenkoa1ccba42020-06-01 13:29:27 +0300335 k8s-control: { id: 411, link: bond0, addresses: [ 172.16.50.136/25 ] }
Oleksii Butenkofe550232020-05-19 21:24:48 +0300336 os-floating: { id: 412, link: bond1 }
337 k8s-metallb: { id: 413, link: bond0 }
338 management: { id: 414, link: bond0 }
Oleksii Butenkoa1ccba42020-06-01 13:29:27 +0300339 ceph-control: { id: 415, link: bond1, addresses: [ {{ STORAGE_FRONTEND_INTERFACE_IP }}/{{ STORAGE_FRONTEND_NETWORK_NETMASK }} ] , mtu: 9100 }
340 os-tenant: { id: 416, link: bond1, addresses: [ 10.14.0.16/24 ], mtu: 9100 }
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200341 '0c:c4:7a:aa:78:7a':
342 write_files:
Dennis Dmitrievea894212020-03-12 21:36:43 +0200343 - path: '/etc/netplan/99-cz10098-ucp-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 eno1: &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 ens4f1: *mtu9100
352 ens4f2: *mtu9100
353 ens4f3: *mtu9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200354 bonds:
355 bond0:
356 dhcp4: no
357 interfaces: [eno1, ens4f1]
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: [ens4f2, ens4f3]
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:
Oleksii Butenkoa1ccba42020-06-01 13:29:27 +0300370 k8s-control: { id: 411, link: bond0, addresses: [ {% if UCP_MASTER_HOST == "" %}172.16.50.254/25{% else %}172.16.50.137/25{% endif %} ] }
Oleksii Butenkofe550232020-05-19 21:24:48 +0300371 os-floating: { id: 412, link: bond1 }
372 k8s-metallb: { id: 413, link: bond0 }
373 management: { id: 414, link: bond0 }
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200374 '0c:c4:7a:aa:e0:98':
375 write_files:
Dennis Dmitrievea894212020-03-12 21:36:43 +0200376 - path: '/etc/netplan/99-cz10099-ucp-control.yaml'
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200377 content: |
378 network:
379 version: 2
380 ethernets:
Oleksii Butenkodaeb5f42020-04-12 12:07:56 +0300381 eno1: &mtu9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200382 dhcp4: false
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300383 mtu: 9100
Oleksii Butenkodaeb5f42020-04-12 12:07:56 +0300384 ens4f1: *mtu9100
385 ens4f2: *mtu9100
386 ens4f3: *mtu9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200387 bonds:
388 bond0:
389 dhcp4: no
390 interfaces: [eno1, ens4f1]
391 parameters:
392 mode: active-backup
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300393 mii-monitor-interval: 1000
394 mtu: 9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200395 bond1:
396 dhcp4: no
397 interfaces: [ens4f2, ens4f3]
398 parameters:
399 mode: active-backup
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300400 mii-monitor-interval: 1000
401 mtu: 9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200402 vlans:
Oleksii Butenkoa1ccba42020-06-01 13:29:27 +0300403 k8s-control: { id: 411, link: bond0, addresses: [ {% if UCP_MASTER_HOST == "" %}172.16.50.254/25{% else %}172.16.50.138/25{% endif %} ] }
Oleksii Butenkofe550232020-05-19 21:24:48 +0300404 os-floating: { id: 412, link: bond1 }
405 k8s-metallb: { id: 413, link: bond0 }
406 management: { id: 414, link: bond0 }
Dennis Dmitrievea894212020-03-12 21:36:43 +0200407 '0c:c4:7a:aa:78:7c':
408 write_files:
409 - path: '/etc/netplan/99-cz10100-ucp-control.yaml'
410 content: |
411 network:
412 version: 2
413 ethernets:
Oleksii Butenkodaeb5f42020-04-12 12:07:56 +0300414 eno1: &mtu9100
Dennis Dmitrievea894212020-03-12 21:36:43 +0200415 dhcp4: false
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300416 mtu: 9100
Oleksii Butenkodaeb5f42020-04-12 12:07:56 +0300417 ens4f1: *mtu9100
418 ens4f2: *mtu9100
419 ens4f3: *mtu9100
Dennis Dmitrievea894212020-03-12 21:36:43 +0200420 bonds:
421 bond0:
422 dhcp4: no
423 interfaces: [eno1, ens4f1]
424 parameters:
425 mode: active-backup
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300426 mii-monitor-interval: 1000
427 mtu: 9100
Dennis Dmitrievea894212020-03-12 21:36:43 +0200428 bond1:
429 dhcp4: no
430 interfaces: [ens4f2, ens4f3]
431 parameters:
432 mode: active-backup
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300433 mii-monitor-interval: 1000
434 mtu: 9100
Dennis Dmitrievea894212020-03-12 21:36:43 +0200435 vlans:
Oleksii Butenkoa1ccba42020-06-01 13:29:27 +0300436 k8s-control: { id: 411, link: bond0, addresses: [ {% if UCP_MASTER_HOST == "" %}172.16.50.254/25{% else %}172.16.50.139/25{% endif %} ] }
Oleksii Butenkofe550232020-05-19 21:24:48 +0300437 os-floating: { id: 412, link: bond1 }
438 k8s-metallb: { id: 413, link: bond0 }
439 management: { id: 414, link: bond0 }
Dennis Dmitrievea894212020-03-12 21:36:43 +0200440 '0c:c4:7a:55:6a:28':
441 write_files:
442 - path: '/etc/netplan/99-cz7636-os-compute.yaml'
443 content: |
444 network:
445 version: 2
446 ethernets:
Oleksii Butenkodaeb5f42020-04-12 12:07:56 +0300447 enp3s0f0: &mtu9100
Dennis Dmitrievea894212020-03-12 21:36:43 +0200448 dhcp4: false
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300449 mtu: 9100
Oleksii Butenkodaeb5f42020-04-12 12:07:56 +0300450 enp3s0f1: *mtu9100
451 enp3s0f2: *mtu9100
452 enp3s0f3: *mtu9100
Dennis Dmitrievea894212020-03-12 21:36:43 +0200453 bonds:
454 bond0:
455 dhcp4: no
456 interfaces: [enp3s0f0, enp3s0f1]
457 parameters:
458 mode: active-backup
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300459 mii-monitor-interval: 1000
460 mtu: 9100
Dennis Dmitrievea894212020-03-12 21:36:43 +0200461 bond1:
462 dhcp4: no
463 interfaces: [enp3s0f2, enp3s0f3]
464 parameters:
465 mode: active-backup
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300466 mii-monitor-interval: 1000
467 mtu: 9100
Dennis Dmitrievea894212020-03-12 21:36:43 +0200468 vlans:
Oleksii Butenkoa1ccba42020-06-01 13:29:27 +0300469 k8s-control: { id: 411, link: bond0, addresses: [ 172.16.50.140/25 ] }
Oleksii Butenkofe550232020-05-19 21:24:48 +0300470 os-floating: { id: 412, link: bond1 }
471 k8s-metallb: { id: 413, link: bond0 }
472 management: { id: 414, link: bond0 }
Oleksii Butenkoa1ccba42020-06-01 13:29:27 +0300473 ceph-control: { id: 415, link: bond1, addresses: [ {{ STORAGE_FRONTEND_INTERFACE_IP }}/{{ STORAGE_FRONTEND_NETWORK_NETMASK }} ] , mtu: 9100 }
474 os-tenant: { id: 416, link: bond1, addresses: [ 10.14.0.17/24 ], mtu: 9100 }
Dennis Dmitrievea894212020-03-12 21:36:43 +0200475 '0c:c4:7a:54:a2:5e':
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200476 write_files:
Dennis Dmitrievea894212020-03-12 21:36:43 +0200477 - path: '/etc/netplan/99-cz7641-os-compute.yaml'
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200478 content: |
479 network:
480 version: 2
481 ethernets:
Oleksii Butenkodaeb5f42020-04-12 12:07:56 +0300482 enp3s0f0: &mtu9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200483 dhcp4: false
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300484 mtu: 9100
Oleksii Butenkodaeb5f42020-04-12 12:07:56 +0300485 enp3s0f1: *mtu9100
486 enp3s0f2: *mtu9100
487 enp3s0f3: *mtu9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200488 bonds:
489 bond0:
490 dhcp4: no
Dennis Dmitrievea894212020-03-12 21:36:43 +0200491 interfaces: [enp3s0f0, enp3s0f1]
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200492 parameters:
493 mode: active-backup
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300494 mii-monitor-interval: 1000
495 mtu: 9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200496 bond1:
497 dhcp4: no
Dennis Dmitrievea894212020-03-12 21:36:43 +0200498 interfaces: [enp3s0f2, enp3s0f3]
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200499 parameters:
500 mode: active-backup
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300501 mii-monitor-interval: 1000
502 mtu: 9100
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200503 vlans:
Oleksii Butenkoa1ccba42020-06-01 13:29:27 +0300504 k8s-control: { id: 411, link: bond0, addresses: [ 172.16.50.141/25 ] }
Oleksii Butenkofe550232020-05-19 21:24:48 +0300505 os-floating: { id: 412, link: bond1 }
506 k8s-metallb: { id: 413, link: bond0 }
507 management: { id: 414, link: bond0 }
Oleksii Butenkoa1ccba42020-06-01 13:29:27 +0300508 ceph-control: { id: 415, link: bond1, addresses: [ {{ STORAGE_FRONTEND_INTERFACE_IP }}/{{ STORAGE_FRONTEND_NETWORK_NETMASK }} ] , mtu: 9100 }
509 os-tenant: { id: 416, link: bond1, addresses: [ 10.14.0.18/24 ], mtu: 9100 }
Dennis Dmitrievea894212020-03-12 21:36:43 +0200510 '0c:c4:7a:54:a0:50':
511 write_files:
512 - path: '/etc/netplan/99-cz7642-os-compute.yaml'
513 content: |
514 network:
515 version: 2
516 ethernets:
Oleksii Butenkodaeb5f42020-04-12 12:07:56 +0300517 enp3s0f0: &mtu9100
Dennis Dmitrievea894212020-03-12 21:36:43 +0200518 dhcp4: false
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300519 mtu: 9100
Oleksii Butenkodaeb5f42020-04-12 12:07:56 +0300520 enp3s0f1: *mtu9100
521 enp3s0f2: *mtu9100
522 enp3s0f3: *mtu9100
Dennis Dmitrievea894212020-03-12 21:36:43 +0200523 bonds:
524 bond0:
525 dhcp4: no
526 interfaces: [enp3s0f0, enp3s0f1]
527 parameters:
528 mode: active-backup
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300529 mii-monitor-interval: 1000
530 mtu: 9100
Dennis Dmitrievea894212020-03-12 21:36:43 +0200531 bond1:
532 dhcp4: no
533 interfaces: [enp3s0f2, enp3s0f3]
534 parameters:
535 mode: active-backup
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300536 mii-monitor-interval: 1000
537 mtu: 9100
Dennis Dmitrievea894212020-03-12 21:36:43 +0200538 vlans:
Oleksii Butenkoa1ccba42020-06-01 13:29:27 +0300539 k8s-control: { id: 411, link: bond0, addresses: [ 172.16.50.142/25 ] }
Oleksii Butenkofe550232020-05-19 21:24:48 +0300540 os-floating: { id: 412, link: bond1 }
541 k8s-metallb: { id: 413, link: bond0 }
542 management: { id: 414, link: bond0 }
Dennis Dmitrievea894212020-03-12 21:36:43 +0200543 ceph-control:
544 id: 415
545 link: bond1
546 addresses:
547 - {{ STORAGE_FRONTEND_INTERFACE_IP }}/{{ STORAGE_FRONTEND_NETWORK_NETMASK }}
Oleksii Butenkob8dcc262020-04-01 12:15:07 +0300548 mtu: 9100
Oleksii Butenkoa1ccba42020-06-01 13:29:27 +0300549 os-tenant: { id: 416, link: bond1, addresses: [ 10.14.0.19/24 ], mtu: 9100 }
Dennis Dmitrievea894212020-03-12 21:36:43 +0200550
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200551 functions_override: |
552
553 function network_config {
554
555 DEBIAN_FRONTEND=noninteractive apt -y install bridge-utils ifenslave vlan
556 sudo modprobe bonding
557 netplan --debug apply
558 sleep 15
559
Dennis Dmitrievea894212020-03-12 21:36:43 +0200560 # Re-init the variables related to the just configured k8s-control network
561 CONTROL_IP_ADDRESS=$(ip route get ${CONTROL_NETWORK_CIDR%/*} | head -n1 | fgrep -v ' via ' | awk '/ src / {print $6}')
562
563 #UCP_MASTER_HOST=${UCP_MASTER_HOST:-${CONTROL_IP_ADDRESS}}
564 # Hardcoded IP for the UCP node because the servers output contain PXE IP instead of k8s_control IP
565 UCP_MASTER_HOST=172.16.50.254
566 UCP_IP_ADDRESS=${UCP_IP_ADDRESS:-$CONTROL_IP_ADDRESS}
Dennis Dmitriev81da4222020-02-25 17:53:04 +0200567 }