diff options
| author | Zuul <zuul@review.opendev.org> | 2024-04-29 08:57:09 +0000 |
|---|---|---|
| committer | Gerrit Code Review <review@openstack.org> | 2024-04-29 08:57:09 +0000 |
| commit | 4486100614feba1e73bf68f41fb2d8a2592079fd (patch) | |
| tree | 83b827f1c3feb947b3759080a575302077c0b4ae | |
| parent | 55cdf7905d23a91a2fe0655e0d54add7a121a159 (diff) | |
| parent | ed1b410af98342835892494a1040cd4502fb9a7f (diff) | |
| download | kolla-ansible-4486100614feba1e73bf68f41fb2d8a2592079fd.tar.gz kolla-ansible-4486100614feba1e73bf68f41fb2d8a2592079fd.zip | |
Merge "CI: Break OVN cluster before reconfigure"
| -rwxr-xr-x | tests/reconfigure.sh | 4 | ||||
| -rw-r--r-- | tests/run.yml | 2 | ||||
| -rw-r--r-- | zuul.d/base.yaml | 1 |
3 files changed, 7 insertions, 0 deletions
diff --git a/tests/reconfigure.sh b/tests/reconfigure.sh index d3411ceaa..b619aa515 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 4fd33e6bc..8b61bc970 100644 --- a/tests/run.yml +++ b/tests/run.yml @@ -855,6 +855,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 caf592f73..e875c69a6 100644 --- a/zuul.d/base.yaml +++ b/zuul.d/base.yaml @@ -242,6 +242,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 |
