Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
48 changes: 48 additions & 0 deletions playbooks/bgp/prepare-bgp-computes.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -59,3 +59,51 @@
iptables -t filter -I LIBVIRT_FWI -s 100.64.10.0/24 -i ocpbm -j ACCEPT &&
iptables -t filter -I LIBVIRT_FWI -d 100.64.10.0/24 -o ocpbm -j ACCEPT
changed_when: false

# Workaround for OSPRH-30900 - should be removed when the bug is fixed
- name: Restart neutron pods due to OSPRH-30900
hosts: controller-0
tasks:
- name: Get current neutron pod names
ansible.builtin.command:
cmd: >-
oc get pod -n openstack -l service=neutron
-o jsonpath='{.items[*].metadata.name}'
register: _neutron_pod_names
changed_when: false

- name: Delete all neutron pods
ansible.builtin.command:
cmd: >-
oc delete pod -n openstack -l service=neutron
changed_when: true

- name: Wait for old neutron pods to terminate
ansible.builtin.command:
cmd: >-
oc wait pod -n openstack {{ item }}
--for=delete --timeout=120s
changed_when: false
failed_when: false
loop: "{{ _neutron_pod_names.stdout.split() }}"

- name: Wait for new neutron pods to be ready
ansible.builtin.command:
cmd: >-
oc wait pod -n openstack
-l service=neutron
--for=condition=Ready
--timeout=300s
changed_when: false
retries: 4
delay: 10
register: _neutron_pods_ready
until: _neutron_pods_ready.rc == 0

- name: Wait for OpenStackControlPlane to reconcile
ansible.builtin.command:
cmd: >-
oc wait --for=condition=Ready
openstackcontrolplane/controlplane
-n openstack --timeout=1200s
changed_when: false
13 changes: 0 additions & 13 deletions playbooks/bgp/prepare-bgp-spines-leaves.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -272,19 +272,6 @@
state: present
when: _ip_version == 6

- name: Add provider network gateway IP to router loopback
become: true
community.general.nmcli:
autoconnect: true
conn_name: lo
ip4:
- 127.0.0.1/8
- 192.168.133.1/32
method4: manual
ip6: "::1/128"
method6: manual
state: present

- name: Configure FRR
vars:
_router_id: "{{ '' if _ip_version == 4 else '1.1.1.1' }}"
Expand Down
Loading