21 lines
846 B
YAML
21 lines
846 B
YAML
---
|
|
- name: Get the neutron container ID
|
|
shell:
|
|
podman ps --filter "name=neutron-server-ovn" --format {% raw %}"{{.ID}}"{% endraw %}
|
|
register: neutron_id
|
|
|
|
- name: Sync neutron db with OVN db (container) - Run 1
|
|
command: podman exec "{{ neutron_id.stdout }}"
|
|
neutron-ovn-db-sync-util --config-file /etc/neutron/neutron.conf
|
|
--config-file /etc/neutron/plugins/ml2/ml2_conf.ini
|
|
--ovn-neutron_sync_mode repair
|
|
|
|
- name: Sync neutron db with OVN db (container) - Run 2
|
|
command: podman exec "{{ neutron_id.stdout }}"
|
|
neutron-ovn-db-sync-util --config-file /etc/neutron/neutron.conf
|
|
--config-file /etc/neutron/plugins/ml2/ml2_conf.ini
|
|
--ovn-neutron_sync_mode repair
|
|
|
|
- name: Pause and let ovn-controllers settle before doing the final activation (5 minute)
|
|
pause: minutes=5
|