|
137 | 137 | script: "{{ _source_cmd }}; {{ _vip_provision_cmd }}" |
138 | 138 |
|
139 | 139 | - name: Create tripleo ansible inventory |
| 140 | + when: not (cifmw_adoption_osp_deploy_bgp | bool) |
140 | 141 | delegate_to: "osp-undercloud-0" |
141 | 142 | ansible.builtin.template: |
142 | 143 | src: "tripleo-ansible-inventory.yaml.j2" |
143 | 144 | dest: "{{ ansible_user_dir }}/overcloud-deploy/{{ _overcloud_name }}/tripleo-ansible-inventory.yaml" |
144 | 145 | mode: "0644" |
145 | 146 |
|
| 147 | + - name: Create tripleo ansible inventory (BGP) |
| 148 | + when: cifmw_adoption_osp_deploy_bgp | bool |
| 149 | + delegate_to: "osp-undercloud-0" |
| 150 | + ansible.builtin.template: |
| 151 | + src: "tripleo-ansible-inventory_bgp.yaml.j2" |
| 152 | + dest: "{{ ansible_user_dir }}/overcloud-deploy/{{ _overcloud_name }}/tripleo-ansible-inventory.yaml" |
| 153 | + mode: "0644" |
| 154 | + |
146 | 155 | - name: Ensure os-net-config and openvswitch is installed in overcloud nodes |
147 | 156 | become: true |
148 | 157 | delegate_to: "{{ overcloud_vm }}" |
|
184 | 193 | loop: "{{ _tripleo_nodes_stack[_overcloud_name] }}" |
185 | 194 | loop_control: |
186 | 195 | loop_var: overcloud_vm |
| 196 | + when: not (cifmw_adoption_osp_deploy_bgp | bool) |
| 197 | + |
| 198 | + - name: Generate os-net-config file for overcloud nodes (bgp) |
| 199 | + become: true |
| 200 | + delegate_to: "{{ overcloud_vm }}" |
| 201 | + vars: |
| 202 | + _node_net: "{{ cifmw_networking_env_definition.instances[overcloud_vm] }}" |
| 203 | + _dns_server: "{{ _ctlplane_net.[dns_version|default('dns_v4')] }}" |
| 204 | + _interface_mtu: 1500 |
| 205 | + vms: |
| 206 | + osp-r0-compute-0: |
| 207 | + ctlplane: '192.168.122.100' |
| 208 | + left: '100.64.0.2' |
| 209 | + right: '100.65.0.2' |
| 210 | + main: '99.99.0.7' |
| 211 | + main6: 'f00d:f00d:f00d:f00d:f00d:f00d:f00d:0004' |
| 212 | + osp-r0-compute-1: |
| 213 | + ctlplane: '192.168.122.101' |
| 214 | + left: '100.64.0.6' |
| 215 | + right: '100.65.0.6' |
| 216 | + main: '99.99.0.8' |
| 217 | + main6: 'f00d:f00d:f00d:f00d:f00d:f00d:f00d:0005' |
| 218 | + osp-r1-compute-0: |
| 219 | + ctlplane: '192.168.123.105' |
| 220 | + left: '100.64.1.2' |
| 221 | + right: '100.65.1.2' |
| 222 | + main: '99.99.1.7' |
| 223 | + main6: 'f00d:f00d:f00d:f00d:f00d:f00d:f00d:0006' |
| 224 | + osp-r1-compute-1: |
| 225 | + ctlplane: '192.168.123.106' |
| 226 | + left: '100.64.1.6' |
| 227 | + right: '100.65.1.6' |
| 228 | + main: '99.99.1.8' |
| 229 | + main6: 'f00d:f00d:f00d:f00d:f00d:f00d:f00d:0007' |
| 230 | + osp-r2-compute-0: |
| 231 | + ctlplane: '192.168.124.110' |
| 232 | + left: '100.64.2.2' |
| 233 | + right: '100.65.2.2' |
| 234 | + main: '99.99.2.7' |
| 235 | + main6: 'f00d:f00d:f00d:f00d:f00d:f00d:f00d:0008' |
| 236 | + osp-r2-compute-1: |
| 237 | + ctlplane: '192.168.124.111' |
| 238 | + left: '100.64.2.6' |
| 239 | + right: '100.65.2.6' |
| 240 | + main: '99.99.2.8' |
| 241 | + main6: 'f00d:f00d:f00d:f00d:f00d:f00d:f00d:0009' |
| 242 | + osp-r0-controller-0: |
| 243 | + ctlplane: '192.168.122.140' |
| 244 | + left: '100.64.0.26' |
| 245 | + right: '100.65.0.26' |
| 246 | + main: '99.99.0.9' |
| 247 | + main6: 'f00d:f00d:f00d:f00d:f00d:f00d:f00d:0001' |
| 248 | + osp-r1-controller-0: |
| 249 | + ctlplane: '192.168.123.142' |
| 250 | + left: '100.64.1.26' |
| 251 | + right: '100.65.1.26' |
| 252 | + main: '99.99.1.9' |
| 253 | + main6: 'f00d:f00d:f00d:f00d:f00d:f00d:f00d:0002' |
| 254 | + osp-r2-controller-0: |
| 255 | + ctlplane: '192.168.124.144' |
| 256 | + left: '100.64.2.26' |
| 257 | + right: '100.65.2.26' |
| 258 | + main: '99.99.2.9' |
| 259 | + main6: 'f00d:f00d:f00d:f00d:f00d:f00d:f00d:0003' |
| 260 | + ansible.builtin.template: |
| 261 | + src: "os_net_config_overcloud_bgp.yml.j2" |
| 262 | + dest: /etc/os-net-config/tripleo_config.yaml |
| 263 | + mode: "0644" |
| 264 | + loop: "{{ _tripleo_nodes_stack[_overcloud_name] }}" |
| 265 | + loop_control: |
| 266 | + loop_var: overcloud_vm |
| 267 | + when: cifmw_adoption_osp_deploy_bgp | bool |
187 | 268 |
|
188 | 269 | - name: Configure network interfaces for overcloud nodes |
189 | 270 | become: true |
|
208 | 289 | loop: "{{ _tripleo_nodes_stack[_overcloud_name] }}" |
209 | 290 | loop_control: |
210 | 291 | loop_var: overcloud_vm |
| 292 | + |
| 293 | + - name: Apply patch to increase cinder-api timeout (bgp) |
| 294 | + when: cifmw_adoption_osp_deploy_bgp | bool |
| 295 | + delegate_to: "osp-undercloud-0" |
| 296 | + become: true |
| 297 | + block: |
| 298 | + - name: Ensure patch package is installed in undercloud |
| 299 | + ansible.builtin.dnf: |
| 300 | + name: patch |
| 301 | + state: present |
| 302 | + |
| 303 | + - name: BGP workaround apply patch |
| 304 | + ansible.posix.patch: |
| 305 | + src: "{{ item.patch_file }}" |
| 306 | + dest: "{{ item.dest_file }}" |
| 307 | + strip: 1 |
| 308 | + loop: |
| 309 | + - patch_file: files/bgp-tht-cinder-patch |
| 310 | + dest_file: /usr/share/openstack-tripleo-heat-templates/deployment/cinder/cinder-api-container-puppet.yaml |
| 311 | + - patch_file: files/bgp-tht-frr-patch |
| 312 | + dest_file: /usr/share/openstack-tripleo-heat-templates/deployment/frr/frr-container-ansible.yaml |
0 commit comments