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