diff --git a/tests/reconfigure.sh b/tests/reconfigure.sh index d3411ceaa3fd517b6d094af59de74c277ad481f1..b619aa51581346d5d38a2d63e4743820bd280bcf 100755 --- a/tests/reconfigure.sh +++ b/tests/reconfigure.sh @@ -14,6 +14,10 @@ function reconfigure { # TODO(jeffrey4l): make some configure file change and # trigger a real reconfigure + # NOTE(mnasiadka): Remove OVN DB containers and volumes on primary to test recreation + if [[ $SCENARIO == "ovn" ]]; then + sudo ${CONTAINER_ENGINE} rm -f ovn_nb_db ovn_sb_db && sudo ${CONTAINER_ENGINE} volume rm ovn_nb_db ovn_sb_db + fi kolla-ansible -i ${RAW_INVENTORY} -vvv prechecks &> /tmp/logs/ansible/reconfigure-prechecks kolla-ansible -i ${RAW_INVENTORY} -vvv reconfigure &> /tmp/logs/ansible/reconfigure } diff --git a/tests/run.yml b/tests/run.yml index 4675657433119aa8c29d30429dcd69e85fb7d964..37839fafedd4a067fc866232690227ef6ba3a396 100644 --- a/tests/run.yml +++ b/tests/run.yml @@ -835,6 +835,8 @@ chdir: "{{ kolla_ansible_src_dir }}" environment: KOLLA_ANSIBLE_VENV_PATH: "{{ kolla_ansible_venv_path }}" + SCENARIO: "{{ scenario }}" + CONTAINER_ENGINE: "{{ container_engine }}" when: - not is_upgrade - scenario != "bifrost" diff --git a/zuul.d/base.yaml b/zuul.d/base.yaml index 4c5b590ac955af1c5994ea74620af72b0efce4ed..8aeac0ccf0d2aa401a4ad8274952f0bebef2685e 100644 --- a/zuul.d/base.yaml +++ b/zuul.d/base.yaml @@ -259,6 +259,7 @@ - ^ansible/roles/(neutron|octavia|openvswitch|ovn-controller|ovn-db)/ - ^tests/test-ovn.sh - ^tests/test-core-openstack.sh + - ^tests/reconfigure.sh vars: scenario: ovn