Dennis Dmitriev | 81da422 | 2020-02-25 17:53:04 +0200 | [diff] [blame] | 1 | resource_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 | |
| 9 | parameters: |
| 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 Dmitriev | ea89421 | 2020-03-12 21:36:43 +0200 | [diff] [blame^] | 14 | cmps_flavor: si-bm-410-128-16-hdd0-ssd1x500g |
Dennis Dmitriev | 81da422 | 2020-02-25 17:53:04 +0200 | [diff] [blame] | 15 | 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 Dmitriev | ea89421 | 2020-03-12 21:36:43 +0200 | [diff] [blame^] | 21 | cmp_size: 3 |
Dennis Dmitriev | 81da422 | 2020-02-25 17:53:04 +0200 | [diff] [blame] | 22 | 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 Dmitriev | ea89421 | 2020-03-12 21:36:43 +0200 | [diff] [blame^] | 29 | control_network_cidr: '172.16.50.128/25' |
Dennis Dmitriev | 81da422 | 2020-02-25 17:53:04 +0200 | [diff] [blame] | 30 | 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 Dmitriev | ea89421 | 2020-03-12 21:36:43 +0200 | [diff] [blame^] | 36 | metallb_address_pools: [ '172.16.51.130-172.16.51.250' ] |
Dennis Dmitriev | 81da422 | 2020-02-25 17:53:04 +0200 | [diff] [blame] | 37 | private_floating_interface: 'os-floating' |
Dennis Dmitriev | ea89421 | 2020-03-12 21:36:43 +0200 | [diff] [blame^] | 38 | storage_frontend_interface: 'ceph-control' |
| 39 | storage_backend_interface: 'ceph-replica' |
Dennis Dmitriev | 81da422 | 2020-02-25 17:53:04 +0200 | [diff] [blame] | 40 | tunnel_interface: 'os-tenant' |
| 41 | live_migration_interface: 'os-tenant' |
Dennis Dmitriev | ea89421 | 2020-03-12 21:36:43 +0200 | [diff] [blame^] | 42 | ucp_metadata: {"role":"ucp", "labels": {"role": "stacklight", "stacklight": "enabled"}} |
| 43 | master_metadata: {"role":"master", "labels": {"role": "stacklight", "stacklight": "enabled"}} |
| 44 | worker_metadata: {"labels": {"openstack-control-plane":"enabled", "openvswitch":"enabled", "openstack-gateway": "enabled"}} |
| 45 | cmp_metadata: {"labels": {"openstack-compute-node":"enabled","openvswitch":"enabled"}} |
Dennis Dmitriev | 81da422 | 2020-02-25 17:53:04 +0200 | [diff] [blame] | 46 | 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 Dmitriev | ea89421 | 2020-03-12 21:36:43 +0200 | [diff] [blame^] | 53 | - path: '/etc/netplan/99-cz7714-osd.yaml' |
Dennis Dmitriev | 81da422 | 2020-02-25 17:53:04 +0200 | [diff] [blame] | 54 | content: | |
| 55 | network: |
| 56 | version: 2 |
| 57 | ethernets: |
| 58 | eno1: |
| 59 | dhcp4: false |
| 60 | ens3f1: |
| 61 | dhcp4: false |
| 62 | ens3f2: |
| 63 | dhcp4: false |
| 64 | ens3f3: |
| 65 | dhcp4: false |
| 66 | bonds: |
| 67 | bond0: |
| 68 | dhcp4: no |
| 69 | interfaces: [eno1, ens3f1] |
| 70 | parameters: |
| 71 | mode: active-backup |
| 72 | mii-monitor-interval: 1 |
| 73 | bond1: |
| 74 | dhcp4: no |
| 75 | interfaces: [ens3f2, ens3f3] |
| 76 | parameters: |
| 77 | mode: active-backup |
| 78 | mii-monitor-interval: 1 |
| 79 | vlans: |
| 80 | k8s-control: |
| 81 | id: 411 |
| 82 | link: bond0 |
Dennis Dmitriev | ea89421 | 2020-03-12 21:36:43 +0200 | [diff] [blame^] | 83 | addresses: |
| 84 | - 172.16.50.130/25 |
Dennis Dmitriev | 81da422 | 2020-02-25 17:53:04 +0200 | [diff] [blame] | 85 | os-floating: |
| 86 | id: 412 |
| 87 | link: bond1 |
Dennis Dmitriev | ea89421 | 2020-03-12 21:36:43 +0200 | [diff] [blame^] | 88 | addresses: |
| 89 | - {{ PUBLIC_INTERFACE_IP }}/{{ PUBLIC_INTERFACE_NETMASK }} |
Dennis Dmitriev | 81da422 | 2020-02-25 17:53:04 +0200 | [diff] [blame] | 90 | k8s-metallb: |
| 91 | id: 413 |
| 92 | link: bond0 |
Dennis Dmitriev | ea89421 | 2020-03-12 21:36:43 +0200 | [diff] [blame^] | 93 | management: |
Dennis Dmitriev | 81da422 | 2020-02-25 17:53:04 +0200 | [diff] [blame] | 94 | id: 414 |
| 95 | link: bond0 |
Dennis Dmitriev | ea89421 | 2020-03-12 21:36:43 +0200 | [diff] [blame^] | 96 | ceph-control: |
Dennis Dmitriev | 81da422 | 2020-02-25 17:53:04 +0200 | [diff] [blame] | 97 | id: 415 |
| 98 | link: bond1 |
Dennis Dmitriev | ea89421 | 2020-03-12 21:36:43 +0200 | [diff] [blame^] | 99 | addresses: |
| 100 | - {{ STORAGE_FRONTEND_INTERFACE_IP }}/{{ STORAGE_FRONTEND_NETWORK_NETMASK }} |
Dennis Dmitriev | 81da422 | 2020-02-25 17:53:04 +0200 | [diff] [blame] | 101 | os-tenant: |
| 102 | id: 416 |
| 103 | link: bond1 |
Dennis Dmitriev | ea89421 | 2020-03-12 21:36:43 +0200 | [diff] [blame^] | 104 | ceph-replica: |
| 105 | id: 417 |
| 106 | link: bond1 |
| 107 | addresses: |
| 108 | - {{ STORAGE_BACKEND_INTERFACE_IP }}/{{ STORAGE_BACKEND_NETWORK_NETMASK }} |
Dennis Dmitriev | 81da422 | 2020-02-25 17:53:04 +0200 | [diff] [blame] | 109 | |
| 110 | '0c:c4:7a:33:26:6e': |
| 111 | write_files: |
Dennis Dmitriev | ea89421 | 2020-03-12 21:36:43 +0200 | [diff] [blame^] | 112 | - path: '/etc/netplan/99-cz7725-osd.yaml' |
Dennis Dmitriev | 81da422 | 2020-02-25 17:53:04 +0200 | [diff] [blame] | 113 | content: | |
| 114 | network: |
| 115 | version: 2 |
| 116 | ethernets: |
| 117 | eno1: |
| 118 | dhcp4: false |
| 119 | ens3f1: |
| 120 | dhcp4: false |
| 121 | ens3f2: |
| 122 | dhcp4: false |
| 123 | ens3f3: |
| 124 | dhcp4: false |
| 125 | bonds: |
| 126 | bond0: |
| 127 | dhcp4: no |
| 128 | interfaces: [eno1, ens3f1] |
| 129 | parameters: |
| 130 | mode: active-backup |
| 131 | mii-monitor-interval: 1 |
| 132 | bond1: |
| 133 | dhcp4: no |
| 134 | interfaces: [ens3f2, ens3f3] |
| 135 | parameters: |
| 136 | mode: active-backup |
| 137 | mii-monitor-interval: 1 |
| 138 | vlans: |
| 139 | k8s-control: |
| 140 | id: 411 |
| 141 | link: bond0 |
Dennis Dmitriev | ea89421 | 2020-03-12 21:36:43 +0200 | [diff] [blame^] | 142 | addresses: |
| 143 | - 172.16.50.131/25 |
Dennis Dmitriev | 81da422 | 2020-02-25 17:53:04 +0200 | [diff] [blame] | 144 | os-floating: |
| 145 | id: 412 |
| 146 | link: bond1 |
Dennis Dmitriev | ea89421 | 2020-03-12 21:36:43 +0200 | [diff] [blame^] | 147 | addresses: |
| 148 | - {{ PUBLIC_INTERFACE_IP }}/{{ PUBLIC_INTERFACE_NETMASK }} |
Dennis Dmitriev | 81da422 | 2020-02-25 17:53:04 +0200 | [diff] [blame] | 149 | k8s-metallb: |
| 150 | id: 413 |
| 151 | link: bond0 |
Dennis Dmitriev | ea89421 | 2020-03-12 21:36:43 +0200 | [diff] [blame^] | 152 | management: |
Dennis Dmitriev | 81da422 | 2020-02-25 17:53:04 +0200 | [diff] [blame] | 153 | id: 414 |
| 154 | link: bond0 |
Dennis Dmitriev | ea89421 | 2020-03-12 21:36:43 +0200 | [diff] [blame^] | 155 | ceph-control: |
Dennis Dmitriev | 81da422 | 2020-02-25 17:53:04 +0200 | [diff] [blame] | 156 | id: 415 |
| 157 | link: bond1 |
Dennis Dmitriev | ea89421 | 2020-03-12 21:36:43 +0200 | [diff] [blame^] | 158 | addresses: |
| 159 | - {{ STORAGE_FRONTEND_INTERFACE_IP }}/{{ STORAGE_FRONTEND_NETWORK_NETMASK }} |
Dennis Dmitriev | 81da422 | 2020-02-25 17:53:04 +0200 | [diff] [blame] | 160 | os-tenant: |
| 161 | id: 416 |
| 162 | link: bond1 |
Dennis Dmitriev | ea89421 | 2020-03-12 21:36:43 +0200 | [diff] [blame^] | 163 | ceph-replica: |
| 164 | id: 417 |
| 165 | link: bond1 |
| 166 | addresses: |
| 167 | - {{ STORAGE_BACKEND_INTERFACE_IP }}/{{ STORAGE_BACKEND_NETWORK_NETMASK }} |
Dennis Dmitriev | 81da422 | 2020-02-25 17:53:04 +0200 | [diff] [blame] | 168 | |
| 169 | '0c:c4:7a:33:26:6a': |
| 170 | write_files: |
Dennis Dmitriev | ea89421 | 2020-03-12 21:36:43 +0200 | [diff] [blame^] | 171 | - path: '/etc/netplan/99-cz7726-osd.yaml' |
Dennis Dmitriev | 81da422 | 2020-02-25 17:53:04 +0200 | [diff] [blame] | 172 | content: | |
| 173 | network: |
| 174 | version: 2 |
| 175 | ethernets: |
| 176 | eno1: |
| 177 | dhcp4: false |
| 178 | ens3f1: |
| 179 | dhcp4: false |
| 180 | ens3f2: |
| 181 | dhcp4: false |
| 182 | ens3f3: |
| 183 | dhcp4: false |
| 184 | bonds: |
| 185 | bond0: |
| 186 | dhcp4: no |
| 187 | interfaces: [eno1, ens3f1] |
| 188 | parameters: |
| 189 | mode: active-backup |
| 190 | mii-monitor-interval: 1 |
| 191 | bond1: |
| 192 | dhcp4: no |
| 193 | interfaces: [ens3f2, ens3f3] |
| 194 | parameters: |
| 195 | mode: active-backup |
| 196 | mii-monitor-interval: 1 |
| 197 | vlans: |
| 198 | k8s-control: |
| 199 | id: 411 |
| 200 | link: bond0 |
Dennis Dmitriev | ea89421 | 2020-03-12 21:36:43 +0200 | [diff] [blame^] | 201 | addresses: |
| 202 | - 172.16.50.132/25 |
Dennis Dmitriev | 81da422 | 2020-02-25 17:53:04 +0200 | [diff] [blame] | 203 | os-floating: |
| 204 | id: 412 |
| 205 | link: bond1 |
Dennis Dmitriev | ea89421 | 2020-03-12 21:36:43 +0200 | [diff] [blame^] | 206 | addresses: |
| 207 | - {{ PUBLIC_INTERFACE_IP }}/{{ PUBLIC_INTERFACE_NETMASK }} |
Dennis Dmitriev | 81da422 | 2020-02-25 17:53:04 +0200 | [diff] [blame] | 208 | k8s-metallb: |
| 209 | id: 413 |
| 210 | link: bond0 |
Dennis Dmitriev | ea89421 | 2020-03-12 21:36:43 +0200 | [diff] [blame^] | 211 | management: |
Dennis Dmitriev | 81da422 | 2020-02-25 17:53:04 +0200 | [diff] [blame] | 212 | id: 414 |
| 213 | link: bond0 |
Dennis Dmitriev | ea89421 | 2020-03-12 21:36:43 +0200 | [diff] [blame^] | 214 | ceph-control: |
Dennis Dmitriev | 81da422 | 2020-02-25 17:53:04 +0200 | [diff] [blame] | 215 | id: 415 |
| 216 | link: bond1 |
Dennis Dmitriev | ea89421 | 2020-03-12 21:36:43 +0200 | [diff] [blame^] | 217 | addresses: |
| 218 | - {{ STORAGE_FRONTEND_INTERFACE_IP }}/{{ STORAGE_FRONTEND_NETWORK_NETMASK }} |
Dennis Dmitriev | 81da422 | 2020-02-25 17:53:04 +0200 | [diff] [blame] | 219 | os-tenant: |
| 220 | id: 416 |
| 221 | link: bond1 |
Dennis Dmitriev | ea89421 | 2020-03-12 21:36:43 +0200 | [diff] [blame^] | 222 | ceph-replica: |
| 223 | id: 417 |
| 224 | link: bond1 |
| 225 | addresses: |
| 226 | - {{ STORAGE_BACKEND_INTERFACE_IP }}/{{ STORAGE_BACKEND_NETWORK_NETMASK }} |
Dennis Dmitriev | 81da422 | 2020-02-25 17:53:04 +0200 | [diff] [blame] | 227 | |
| 228 | '0c:c4:7a:34:92:94': |
| 229 | write_files: |
Dennis Dmitriev | ea89421 | 2020-03-12 21:36:43 +0200 | [diff] [blame^] | 230 | - path: '/etc/netplan/99-cz7727-spare.yaml' |
Dennis Dmitriev | 81da422 | 2020-02-25 17:53:04 +0200 | [diff] [blame] | 231 | content: | |
| 232 | network: |
| 233 | version: 2 |
| 234 | ethernets: |
| 235 | eno1: |
| 236 | dhcp4: false |
| 237 | ens3f1: |
| 238 | dhcp4: false |
| 239 | ens3f2: |
| 240 | dhcp4: false |
| 241 | ens3f3: |
| 242 | dhcp4: false |
| 243 | bonds: |
| 244 | bond0: |
| 245 | dhcp4: no |
| 246 | interfaces: [eno1, ens3f1] |
| 247 | parameters: |
| 248 | mode: active-backup |
| 249 | mii-monitor-interval: 1 |
| 250 | bond1: |
| 251 | dhcp4: no |
| 252 | interfaces: [ens3f2, ens3f3] |
| 253 | parameters: |
| 254 | mode: active-backup |
| 255 | mii-monitor-interval: 1 |
| 256 | vlans: |
| 257 | k8s-control: |
| 258 | id: 411 |
| 259 | link: bond0 |
Dennis Dmitriev | ea89421 | 2020-03-12 21:36:43 +0200 | [diff] [blame^] | 260 | addresses: |
| 261 | - 172.16.50.133/25 |
Dennis Dmitriev | 81da422 | 2020-02-25 17:53:04 +0200 | [diff] [blame] | 262 | os-floating: |
| 263 | id: 412 |
| 264 | link: bond1 |
Dennis Dmitriev | ea89421 | 2020-03-12 21:36:43 +0200 | [diff] [blame^] | 265 | addresses: |
| 266 | - {{ PUBLIC_INTERFACE_IP }}/{{ PUBLIC_INTERFACE_NETMASK }} |
Dennis Dmitriev | 81da422 | 2020-02-25 17:53:04 +0200 | [diff] [blame] | 267 | k8s-metallb: |
| 268 | id: 413 |
| 269 | link: bond0 |
Dennis Dmitriev | ea89421 | 2020-03-12 21:36:43 +0200 | [diff] [blame^] | 270 | management: |
Dennis Dmitriev | 81da422 | 2020-02-25 17:53:04 +0200 | [diff] [blame] | 271 | id: 414 |
| 272 | link: bond0 |
Dennis Dmitriev | ea89421 | 2020-03-12 21:36:43 +0200 | [diff] [blame^] | 273 | ceph-control: |
Dennis Dmitriev | 81da422 | 2020-02-25 17:53:04 +0200 | [diff] [blame] | 274 | id: 415 |
| 275 | link: bond1 |
Dennis Dmitriev | ea89421 | 2020-03-12 21:36:43 +0200 | [diff] [blame^] | 276 | addresses: |
| 277 | - {{ STORAGE_FRONTEND_INTERFACE_IP }}/{{ STORAGE_FRONTEND_NETWORK_NETMASK }} |
Dennis Dmitriev | 81da422 | 2020-02-25 17:53:04 +0200 | [diff] [blame] | 278 | os-tenant: |
| 279 | id: 416 |
| 280 | link: bond1 |
Dennis Dmitriev | ea89421 | 2020-03-12 21:36:43 +0200 | [diff] [blame^] | 281 | ceph-replica: |
| 282 | id: 417 |
| 283 | link: bond1 |
| 284 | addresses: |
| 285 | - {{ STORAGE_BACKEND_INTERFACE_IP }}/{{ STORAGE_BACKEND_NETWORK_NETMASK }} |
Dennis Dmitriev | 81da422 | 2020-02-25 17:53:04 +0200 | [diff] [blame] | 286 | |
| 287 | '0c:c4:7a:aa:e0:9e': |
| 288 | write_files: |
Dennis Dmitriev | ea89421 | 2020-03-12 21:36:43 +0200 | [diff] [blame^] | 289 | - path: '/etc/netplan/99-cz10095-os-control.yaml' |
Dennis Dmitriev | 81da422 | 2020-02-25 17:53:04 +0200 | [diff] [blame] | 290 | content: | |
| 291 | network: |
| 292 | version: 2 |
| 293 | ethernets: |
| 294 | ens11f0: |
| 295 | dhcp4: false |
| 296 | ens11f1: |
| 297 | dhcp4: false |
| 298 | ens11f2: |
| 299 | dhcp4: false |
| 300 | ens11f3: |
| 301 | dhcp4: false |
| 302 | bonds: |
| 303 | bond0: |
| 304 | dhcp4: no |
| 305 | interfaces: [ens11f0, ens11f1] |
| 306 | parameters: |
| 307 | mode: active-backup |
| 308 | mii-monitor-interval: 1 |
| 309 | bond1: |
| 310 | dhcp4: no |
| 311 | interfaces: [ens11f2, ens11f3] |
| 312 | parameters: |
| 313 | mode: active-backup |
| 314 | mii-monitor-interval: 1 |
| 315 | vlans: |
| 316 | k8s-control: |
| 317 | id: 411 |
| 318 | link: bond0 |
Dennis Dmitriev | ea89421 | 2020-03-12 21:36:43 +0200 | [diff] [blame^] | 319 | addresses: |
| 320 | - 172.16.50.134/25 |
Dennis Dmitriev | 81da422 | 2020-02-25 17:53:04 +0200 | [diff] [blame] | 321 | os-floating: |
| 322 | id: 412 |
| 323 | link: bond1 |
Dennis Dmitriev | ea89421 | 2020-03-12 21:36:43 +0200 | [diff] [blame^] | 324 | addresses: |
| 325 | - {{ PUBLIC_INTERFACE_IP }}/{{ PUBLIC_INTERFACE_NETMASK }} |
Dennis Dmitriev | 81da422 | 2020-02-25 17:53:04 +0200 | [diff] [blame] | 326 | k8s-metallb: |
| 327 | id: 413 |
| 328 | link: bond0 |
Dennis Dmitriev | ea89421 | 2020-03-12 21:36:43 +0200 | [diff] [blame^] | 329 | management: |
Dennis Dmitriev | 81da422 | 2020-02-25 17:53:04 +0200 | [diff] [blame] | 330 | id: 414 |
| 331 | link: bond0 |
Dennis Dmitriev | ea89421 | 2020-03-12 21:36:43 +0200 | [diff] [blame^] | 332 | ceph-control: |
Dennis Dmitriev | 81da422 | 2020-02-25 17:53:04 +0200 | [diff] [blame] | 333 | id: 415 |
| 334 | link: bond1 |
Dennis Dmitriev | ea89421 | 2020-03-12 21:36:43 +0200 | [diff] [blame^] | 335 | addresses: |
| 336 | - {{ STORAGE_FRONTEND_INTERFACE_IP }}/{{ STORAGE_FRONTEND_NETWORK_NETMASK }} |
Dennis Dmitriev | 81da422 | 2020-02-25 17:53:04 +0200 | [diff] [blame] | 337 | os-tenant: |
| 338 | id: 416 |
| 339 | link: bond1 |
| 340 | |
| 341 | '0c:c4:7a:aa:e0:9c': |
| 342 | write_files: |
Dennis Dmitriev | ea89421 | 2020-03-12 21:36:43 +0200 | [diff] [blame^] | 343 | - path: '/etc/netplan/99-cz10096-os-control.yaml' |
Dennis Dmitriev | 81da422 | 2020-02-25 17:53:04 +0200 | [diff] [blame] | 344 | content: | |
| 345 | network: |
| 346 | version: 2 |
| 347 | ethernets: |
| 348 | ens11f0: |
| 349 | dhcp4: false |
| 350 | ens11f1: |
| 351 | dhcp4: false |
| 352 | ens11f2: |
| 353 | dhcp4: false |
| 354 | ens11f3: |
| 355 | dhcp4: false |
| 356 | bonds: |
| 357 | bond0: |
| 358 | dhcp4: no |
| 359 | interfaces: [ens11f0, ens11f1] |
| 360 | parameters: |
| 361 | mode: active-backup |
| 362 | mii-monitor-interval: 1 |
| 363 | bond1: |
| 364 | dhcp4: no |
| 365 | interfaces: [ens11f2, ens11f3] |
| 366 | parameters: |
| 367 | mode: active-backup |
| 368 | mii-monitor-interval: 1 |
| 369 | vlans: |
| 370 | k8s-control: |
| 371 | id: 411 |
| 372 | link: bond0 |
Dennis Dmitriev | ea89421 | 2020-03-12 21:36:43 +0200 | [diff] [blame^] | 373 | addresses: |
| 374 | - 172.16.50.135/25 |
Dennis Dmitriev | 81da422 | 2020-02-25 17:53:04 +0200 | [diff] [blame] | 375 | os-floating: |
| 376 | id: 412 |
| 377 | link: bond1 |
Dennis Dmitriev | ea89421 | 2020-03-12 21:36:43 +0200 | [diff] [blame^] | 378 | addresses: |
| 379 | - {{ PUBLIC_INTERFACE_IP }}/{{ PUBLIC_INTERFACE_NETMASK }} |
Dennis Dmitriev | 81da422 | 2020-02-25 17:53:04 +0200 | [diff] [blame] | 380 | k8s-metallb: |
| 381 | id: 413 |
| 382 | link: bond0 |
Dennis Dmitriev | ea89421 | 2020-03-12 21:36:43 +0200 | [diff] [blame^] | 383 | management: |
Dennis Dmitriev | 81da422 | 2020-02-25 17:53:04 +0200 | [diff] [blame] | 384 | id: 414 |
| 385 | link: bond0 |
Dennis Dmitriev | ea89421 | 2020-03-12 21:36:43 +0200 | [diff] [blame^] | 386 | ceph-control: |
Dennis Dmitriev | 81da422 | 2020-02-25 17:53:04 +0200 | [diff] [blame] | 387 | id: 415 |
| 388 | link: bond1 |
Dennis Dmitriev | ea89421 | 2020-03-12 21:36:43 +0200 | [diff] [blame^] | 389 | addresses: |
| 390 | - {{ STORAGE_FRONTEND_INTERFACE_IP }}/{{ STORAGE_FRONTEND_NETWORK_NETMASK }} |
Dennis Dmitriev | 81da422 | 2020-02-25 17:53:04 +0200 | [diff] [blame] | 391 | os-tenant: |
| 392 | id: 416 |
| 393 | link: bond1 |
| 394 | |
| 395 | '0c:c4:7a:aa:78:2c': |
| 396 | write_files: |
Dennis Dmitriev | ea89421 | 2020-03-12 21:36:43 +0200 | [diff] [blame^] | 397 | - path: '/etc/netplan/99-cz10097-os-control.yaml' |
Dennis Dmitriev | 81da422 | 2020-02-25 17:53:04 +0200 | [diff] [blame] | 398 | content: | |
| 399 | network: |
| 400 | version: 2 |
| 401 | ethernets: |
| 402 | ens11f0: |
| 403 | dhcp4: false |
| 404 | ens11f1: |
| 405 | dhcp4: false |
| 406 | ens11f2: |
| 407 | dhcp4: false |
| 408 | ens11f3: |
| 409 | dhcp4: false |
| 410 | bonds: |
| 411 | bond0: |
| 412 | dhcp4: no |
| 413 | interfaces: [ens11f0, ens11f1] |
| 414 | parameters: |
| 415 | mode: active-backup |
| 416 | mii-monitor-interval: 1 |
| 417 | bond1: |
| 418 | dhcp4: no |
| 419 | interfaces: [ens11f2, ens11f3] |
| 420 | parameters: |
| 421 | mode: active-backup |
| 422 | mii-monitor-interval: 1 |
| 423 | vlans: |
| 424 | k8s-control: |
| 425 | id: 411 |
| 426 | link: bond0 |
Dennis Dmitriev | ea89421 | 2020-03-12 21:36:43 +0200 | [diff] [blame^] | 427 | addresses: |
| 428 | - 172.16.50.136/25 |
Dennis Dmitriev | 81da422 | 2020-02-25 17:53:04 +0200 | [diff] [blame] | 429 | os-floating: |
| 430 | id: 412 |
| 431 | link: bond1 |
Dennis Dmitriev | ea89421 | 2020-03-12 21:36:43 +0200 | [diff] [blame^] | 432 | addresses: |
| 433 | - {{ PUBLIC_INTERFACE_IP }}/{{ PUBLIC_INTERFACE_NETMASK }} |
Dennis Dmitriev | 81da422 | 2020-02-25 17:53:04 +0200 | [diff] [blame] | 434 | k8s-metallb: |
| 435 | id: 413 |
| 436 | link: bond0 |
Dennis Dmitriev | ea89421 | 2020-03-12 21:36:43 +0200 | [diff] [blame^] | 437 | management: |
Dennis Dmitriev | 81da422 | 2020-02-25 17:53:04 +0200 | [diff] [blame] | 438 | id: 414 |
| 439 | link: bond0 |
Dennis Dmitriev | ea89421 | 2020-03-12 21:36:43 +0200 | [diff] [blame^] | 440 | ceph-control: |
Dennis Dmitriev | 81da422 | 2020-02-25 17:53:04 +0200 | [diff] [blame] | 441 | id: 415 |
| 442 | link: bond1 |
Dennis Dmitriev | ea89421 | 2020-03-12 21:36:43 +0200 | [diff] [blame^] | 443 | addresses: |
| 444 | - {{ STORAGE_FRONTEND_INTERFACE_IP }}/{{ STORAGE_FRONTEND_NETWORK_NETMASK }} |
Dennis Dmitriev | 81da422 | 2020-02-25 17:53:04 +0200 | [diff] [blame] | 445 | os-tenant: |
| 446 | id: 416 |
| 447 | link: bond1 |
| 448 | |
| 449 | '0c:c4:7a:aa:78:7a': |
| 450 | write_files: |
Dennis Dmitriev | ea89421 | 2020-03-12 21:36:43 +0200 | [diff] [blame^] | 451 | - path: '/etc/netplan/99-cz10098-ucp-control.yaml' |
Dennis Dmitriev | 81da422 | 2020-02-25 17:53:04 +0200 | [diff] [blame] | 452 | content: | |
| 453 | network: |
| 454 | version: 2 |
| 455 | ethernets: |
| 456 | eno1: |
| 457 | dhcp4: false |
| 458 | ens4f1: |
| 459 | dhcp4: false |
| 460 | ens4f2: |
| 461 | dhcp4: false |
| 462 | ens4f3: |
| 463 | dhcp4: false |
| 464 | bonds: |
| 465 | bond0: |
| 466 | dhcp4: no |
| 467 | interfaces: [eno1, ens4f1] |
| 468 | parameters: |
| 469 | mode: active-backup |
| 470 | mii-monitor-interval: 1 |
| 471 | bond1: |
| 472 | dhcp4: no |
| 473 | interfaces: [ens4f2, ens4f3] |
| 474 | parameters: |
| 475 | mode: active-backup |
| 476 | mii-monitor-interval: 1 |
| 477 | vlans: |
| 478 | k8s-control: |
| 479 | id: 411 |
| 480 | link: bond0 |
Dennis Dmitriev | ea89421 | 2020-03-12 21:36:43 +0200 | [diff] [blame^] | 481 | addresses: |
| 482 | # Hardcoded IP for the UCP node (when UCP_MASTER_HOST is empty), to replace PXE with k8s_control IP |
| 483 | - {% if UCP_MASTER_HOST == "" %}172.16.50.254/25{% else %}172.16.50.137/25{% endif %} |
Dennis Dmitriev | 81da422 | 2020-02-25 17:53:04 +0200 | [diff] [blame] | 484 | os-floating: |
| 485 | id: 412 |
| 486 | link: bond1 |
Dennis Dmitriev | ea89421 | 2020-03-12 21:36:43 +0200 | [diff] [blame^] | 487 | addresses: |
| 488 | - {{ PUBLIC_INTERFACE_IP }}/{{ PUBLIC_INTERFACE_NETMASK }} |
Dennis Dmitriev | 81da422 | 2020-02-25 17:53:04 +0200 | [diff] [blame] | 489 | k8s-metallb: |
| 490 | id: 413 |
| 491 | link: bond0 |
Dennis Dmitriev | ea89421 | 2020-03-12 21:36:43 +0200 | [diff] [blame^] | 492 | management: |
Dennis Dmitriev | 81da422 | 2020-02-25 17:53:04 +0200 | [diff] [blame] | 493 | id: 414 |
| 494 | link: bond0 |
Dennis Dmitriev | 81da422 | 2020-02-25 17:53:04 +0200 | [diff] [blame] | 495 | |
| 496 | '0c:c4:7a:aa:e0:98': |
| 497 | write_files: |
Dennis Dmitriev | ea89421 | 2020-03-12 21:36:43 +0200 | [diff] [blame^] | 498 | - path: '/etc/netplan/99-cz10099-ucp-control.yaml' |
Dennis Dmitriev | 81da422 | 2020-02-25 17:53:04 +0200 | [diff] [blame] | 499 | content: | |
| 500 | network: |
| 501 | version: 2 |
| 502 | ethernets: |
| 503 | eno1: |
| 504 | dhcp4: false |
| 505 | ens4f1: |
| 506 | dhcp4: false |
| 507 | ens4f2: |
| 508 | dhcp4: false |
| 509 | ens4f3: |
| 510 | dhcp4: false |
| 511 | bonds: |
| 512 | bond0: |
| 513 | dhcp4: no |
| 514 | interfaces: [eno1, ens4f1] |
| 515 | parameters: |
| 516 | mode: active-backup |
| 517 | mii-monitor-interval: 1 |
| 518 | bond1: |
| 519 | dhcp4: no |
| 520 | interfaces: [ens4f2, ens4f3] |
| 521 | parameters: |
| 522 | mode: active-backup |
| 523 | mii-monitor-interval: 1 |
| 524 | vlans: |
| 525 | k8s-control: |
| 526 | id: 411 |
| 527 | link: bond0 |
Dennis Dmitriev | ea89421 | 2020-03-12 21:36:43 +0200 | [diff] [blame^] | 528 | addresses: |
| 529 | # Hardcoded IP for the UCP node (when UCP_MASTER_HOST is empty), to replace PXE with k8s_control IP |
| 530 | - {% if UCP_MASTER_HOST == "" %}172.16.50.254/25{% else %}172.16.50.138/25{% endif %} |
Dennis Dmitriev | 81da422 | 2020-02-25 17:53:04 +0200 | [diff] [blame] | 531 | os-floating: |
| 532 | id: 412 |
| 533 | link: bond1 |
Dennis Dmitriev | ea89421 | 2020-03-12 21:36:43 +0200 | [diff] [blame^] | 534 | addresses: |
| 535 | - {{ PUBLIC_INTERFACE_IP }}/{{ PUBLIC_INTERFACE_NETMASK }} |
Dennis Dmitriev | 81da422 | 2020-02-25 17:53:04 +0200 | [diff] [blame] | 536 | k8s-metallb: |
| 537 | id: 413 |
| 538 | link: bond0 |
Dennis Dmitriev | ea89421 | 2020-03-12 21:36:43 +0200 | [diff] [blame^] | 539 | management: |
Dennis Dmitriev | 81da422 | 2020-02-25 17:53:04 +0200 | [diff] [blame] | 540 | id: 414 |
| 541 | link: bond0 |
Dennis Dmitriev | ea89421 | 2020-03-12 21:36:43 +0200 | [diff] [blame^] | 542 | |
| 543 | '0c:c4:7a:aa:78:7c': |
| 544 | write_files: |
| 545 | - path: '/etc/netplan/99-cz10100-ucp-control.yaml' |
| 546 | content: | |
| 547 | network: |
| 548 | version: 2 |
| 549 | ethernets: |
| 550 | eno1: |
| 551 | dhcp4: false |
| 552 | ens4f1: |
| 553 | dhcp4: false |
| 554 | ens4f2: |
| 555 | dhcp4: false |
| 556 | ens4f3: |
| 557 | dhcp4: false |
| 558 | bonds: |
| 559 | bond0: |
| 560 | dhcp4: no |
| 561 | interfaces: [eno1, ens4f1] |
| 562 | parameters: |
| 563 | mode: active-backup |
| 564 | mii-monitor-interval: 1 |
| 565 | bond1: |
| 566 | dhcp4: no |
| 567 | interfaces: [ens4f2, ens4f3] |
| 568 | parameters: |
| 569 | mode: active-backup |
| 570 | mii-monitor-interval: 1 |
| 571 | vlans: |
| 572 | k8s-control: |
| 573 | id: 411 |
| 574 | link: bond0 |
| 575 | addresses: |
| 576 | # Hardcoded IP for the UCP node (when UCP_MASTER_HOST is empty), to replace PXE with k8s_control IP |
| 577 | - {% if UCP_MASTER_HOST == "" %}172.16.50.254/25{% else %}172.16.50.139/25{% endif %} |
| 578 | os-floating: |
| 579 | id: 412 |
| 580 | link: bond1 |
| 581 | addresses: |
| 582 | - {{ PUBLIC_INTERFACE_IP }}/{{ PUBLIC_INTERFACE_NETMASK }} |
| 583 | k8s-metallb: |
| 584 | id: 413 |
| 585 | link: bond0 |
| 586 | management: |
| 587 | id: 414 |
| 588 | link: bond0 |
| 589 | |
| 590 | '0c:c4:7a:55:6a:28': |
| 591 | write_files: |
| 592 | - path: '/etc/netplan/99-cz7636-os-compute.yaml' |
| 593 | content: | |
| 594 | network: |
| 595 | version: 2 |
| 596 | ethernets: |
| 597 | enp3s0f0: |
| 598 | dhcp4: false |
| 599 | enp3s0f1: |
| 600 | dhcp4: false |
| 601 | enp3s0f2: |
| 602 | dhcp4: false |
| 603 | enp3s0f3: |
| 604 | dhcp4: false |
| 605 | bonds: |
| 606 | bond0: |
| 607 | dhcp4: no |
| 608 | interfaces: [enp3s0f0, enp3s0f1] |
| 609 | parameters: |
| 610 | mode: active-backup |
| 611 | mii-monitor-interval: 1 |
| 612 | bond1: |
| 613 | dhcp4: no |
| 614 | interfaces: [enp3s0f2, enp3s0f3] |
| 615 | parameters: |
| 616 | mode: active-backup |
| 617 | mii-monitor-interval: 1 |
| 618 | vlans: |
| 619 | k8s-control: |
| 620 | id: 411 |
| 621 | link: bond0 |
| 622 | addresses: |
| 623 | - 172.16.50.140/25 |
| 624 | os-floating: |
| 625 | id: 412 |
| 626 | link: bond1 |
| 627 | addresses: |
| 628 | - {{ PUBLIC_INTERFACE_IP }}/{{ PUBLIC_INTERFACE_NETMASK }} |
| 629 | k8s-metallb: |
| 630 | id: 413 |
| 631 | link: bond0 |
| 632 | management: |
| 633 | id: 414 |
| 634 | link: bond0 |
| 635 | ceph-control: |
Dennis Dmitriev | 81da422 | 2020-02-25 17:53:04 +0200 | [diff] [blame] | 636 | id: 415 |
| 637 | link: bond1 |
Dennis Dmitriev | ea89421 | 2020-03-12 21:36:43 +0200 | [diff] [blame^] | 638 | addresses: |
| 639 | - {{ STORAGE_FRONTEND_INTERFACE_IP }}/{{ STORAGE_FRONTEND_NETWORK_NETMASK }} |
Dennis Dmitriev | 81da422 | 2020-02-25 17:53:04 +0200 | [diff] [blame] | 640 | os-tenant: |
| 641 | id: 416 |
| 642 | link: bond1 |
| 643 | |
Dennis Dmitriev | ea89421 | 2020-03-12 21:36:43 +0200 | [diff] [blame^] | 644 | '0c:c4:7a:54:a2:5e': |
Dennis Dmitriev | 81da422 | 2020-02-25 17:53:04 +0200 | [diff] [blame] | 645 | write_files: |
Dennis Dmitriev | ea89421 | 2020-03-12 21:36:43 +0200 | [diff] [blame^] | 646 | - path: '/etc/netplan/99-cz7641-os-compute.yaml' |
Dennis Dmitriev | 81da422 | 2020-02-25 17:53:04 +0200 | [diff] [blame] | 647 | content: | |
| 648 | network: |
| 649 | version: 2 |
| 650 | ethernets: |
Dennis Dmitriev | ea89421 | 2020-03-12 21:36:43 +0200 | [diff] [blame^] | 651 | enp3s0f0: |
Dennis Dmitriev | 81da422 | 2020-02-25 17:53:04 +0200 | [diff] [blame] | 652 | dhcp4: false |
Dennis Dmitriev | ea89421 | 2020-03-12 21:36:43 +0200 | [diff] [blame^] | 653 | enp3s0f1: |
Dennis Dmitriev | 81da422 | 2020-02-25 17:53:04 +0200 | [diff] [blame] | 654 | dhcp4: false |
Dennis Dmitriev | ea89421 | 2020-03-12 21:36:43 +0200 | [diff] [blame^] | 655 | enp3s0f2: |
Dennis Dmitriev | 81da422 | 2020-02-25 17:53:04 +0200 | [diff] [blame] | 656 | dhcp4: false |
Dennis Dmitriev | ea89421 | 2020-03-12 21:36:43 +0200 | [diff] [blame^] | 657 | enp3s0f3: |
Dennis Dmitriev | 81da422 | 2020-02-25 17:53:04 +0200 | [diff] [blame] | 658 | dhcp4: false |
| 659 | bonds: |
| 660 | bond0: |
| 661 | dhcp4: no |
Dennis Dmitriev | ea89421 | 2020-03-12 21:36:43 +0200 | [diff] [blame^] | 662 | interfaces: [enp3s0f0, enp3s0f1] |
Dennis Dmitriev | 81da422 | 2020-02-25 17:53:04 +0200 | [diff] [blame] | 663 | parameters: |
| 664 | mode: active-backup |
| 665 | mii-monitor-interval: 1 |
| 666 | bond1: |
| 667 | dhcp4: no |
Dennis Dmitriev | ea89421 | 2020-03-12 21:36:43 +0200 | [diff] [blame^] | 668 | interfaces: [enp3s0f2, enp3s0f3] |
Dennis Dmitriev | 81da422 | 2020-02-25 17:53:04 +0200 | [diff] [blame] | 669 | parameters: |
| 670 | mode: active-backup |
| 671 | mii-monitor-interval: 1 |
| 672 | vlans: |
| 673 | k8s-control: |
| 674 | id: 411 |
| 675 | link: bond0 |
Dennis Dmitriev | ea89421 | 2020-03-12 21:36:43 +0200 | [diff] [blame^] | 676 | addresses: |
| 677 | - 172.16.50.141/25 |
Dennis Dmitriev | 81da422 | 2020-02-25 17:53:04 +0200 | [diff] [blame] | 678 | os-floating: |
| 679 | id: 412 |
| 680 | link: bond1 |
Dennis Dmitriev | ea89421 | 2020-03-12 21:36:43 +0200 | [diff] [blame^] | 681 | addresses: |
| 682 | - {{ PUBLIC_INTERFACE_IP }}/{{ PUBLIC_INTERFACE_NETMASK }} |
Dennis Dmitriev | 81da422 | 2020-02-25 17:53:04 +0200 | [diff] [blame] | 683 | k8s-metallb: |
| 684 | id: 413 |
| 685 | link: bond0 |
Dennis Dmitriev | ea89421 | 2020-03-12 21:36:43 +0200 | [diff] [blame^] | 686 | management: |
Dennis Dmitriev | 81da422 | 2020-02-25 17:53:04 +0200 | [diff] [blame] | 687 | id: 414 |
| 688 | link: bond0 |
Dennis Dmitriev | ea89421 | 2020-03-12 21:36:43 +0200 | [diff] [blame^] | 689 | ceph-control: |
Dennis Dmitriev | 81da422 | 2020-02-25 17:53:04 +0200 | [diff] [blame] | 690 | id: 415 |
| 691 | link: bond1 |
Dennis Dmitriev | ea89421 | 2020-03-12 21:36:43 +0200 | [diff] [blame^] | 692 | addresses: |
| 693 | - {{ STORAGE_FRONTEND_INTERFACE_IP }}/{{ STORAGE_FRONTEND_NETWORK_NETMASK }} |
Dennis Dmitriev | 81da422 | 2020-02-25 17:53:04 +0200 | [diff] [blame] | 694 | os-tenant: |
| 695 | id: 416 |
| 696 | link: bond1 |
| 697 | |
Dennis Dmitriev | ea89421 | 2020-03-12 21:36:43 +0200 | [diff] [blame^] | 698 | '0c:c4:7a:54:a0:50': |
| 699 | write_files: |
| 700 | - path: '/etc/netplan/99-cz7642-os-compute.yaml' |
| 701 | content: | |
| 702 | network: |
| 703 | version: 2 |
| 704 | ethernets: |
| 705 | enp3s0f0: |
| 706 | dhcp4: false |
| 707 | enp3s0f1: |
| 708 | dhcp4: false |
| 709 | enp3s0f2: |
| 710 | dhcp4: false |
| 711 | enp3s0f3: |
| 712 | dhcp4: false |
| 713 | bonds: |
| 714 | bond0: |
| 715 | dhcp4: no |
| 716 | interfaces: [enp3s0f0, enp3s0f1] |
| 717 | parameters: |
| 718 | mode: active-backup |
| 719 | mii-monitor-interval: 1 |
| 720 | bond1: |
| 721 | dhcp4: no |
| 722 | interfaces: [enp3s0f2, enp3s0f3] |
| 723 | parameters: |
| 724 | mode: active-backup |
| 725 | mii-monitor-interval: 1 |
| 726 | vlans: |
| 727 | k8s-control: |
| 728 | id: 411 |
| 729 | link: bond0 |
| 730 | addresses: |
| 731 | - 172.16.50.142/25 |
| 732 | os-floating: |
| 733 | id: 412 |
| 734 | link: bond1 |
| 735 | addresses: |
| 736 | - {{ PUBLIC_INTERFACE_IP }}/{{ PUBLIC_INTERFACE_NETMASK }} |
| 737 | k8s-metallb: |
| 738 | id: 413 |
| 739 | link: bond0 |
| 740 | management: |
| 741 | id: 414 |
| 742 | link: bond0 |
| 743 | ceph-control: |
| 744 | id: 415 |
| 745 | link: bond1 |
| 746 | addresses: |
| 747 | - {{ STORAGE_FRONTEND_INTERFACE_IP }}/{{ STORAGE_FRONTEND_NETWORK_NETMASK }} |
| 748 | os-tenant: |
| 749 | id: 416 |
| 750 | link: bond1 |
| 751 | |
| 752 | |
Dennis Dmitriev | 81da422 | 2020-02-25 17:53:04 +0200 | [diff] [blame] | 753 | functions_override: | |
| 754 | |
| 755 | function network_config { |
| 756 | |
| 757 | DEBIAN_FRONTEND=noninteractive apt -y install bridge-utils ifenslave vlan |
| 758 | sudo modprobe bonding |
| 759 | netplan --debug apply |
| 760 | sleep 15 |
| 761 | |
Dennis Dmitriev | ea89421 | 2020-03-12 21:36:43 +0200 | [diff] [blame^] | 762 | # Re-init the variables related to the just configured k8s-control network |
| 763 | CONTROL_IP_ADDRESS=$(ip route get ${CONTROL_NETWORK_CIDR%/*} | head -n1 | fgrep -v ' via ' | awk '/ src / {print $6}') |
| 764 | |
| 765 | #UCP_MASTER_HOST=${UCP_MASTER_HOST:-${CONTROL_IP_ADDRESS}} |
| 766 | # Hardcoded IP for the UCP node because the servers output contain PXE IP instead of k8s_control IP |
| 767 | UCP_MASTER_HOST=172.16.50.254 |
| 768 | UCP_IP_ADDRESS=${UCP_IP_ADDRESS:-$CONTROL_IP_ADDRESS} |
Dennis Dmitriev | 81da422 | 2020-02-25 17:53:04 +0200 | [diff] [blame] | 769 | } |