Files
Martin Kopec 1a9c40d469 Enable tempest cleanup with record_resources in jobs
This enables tempest cleanup with record_resources in the tempest-all job
to create a list of all the resources created during the tempest run.
Then the list will be used to run 'tempest cleanup' to clean only
the resources in the list.

Also, enable the dry cleanup with record_resources in tempest-extra-tests
job.

Change-Id: Ia64a1c09d4b5e9815ff5926161d550b56433ec64
2024-05-20 13:05:15 +00:00

27 lines
875 B
YAML

---
- name: Run tempest cleanup dry-run
become: yes
become_user: tempest
command: tox -evenv-tempest -- tempest cleanup --dry-run --debug
args:
chdir: "{{ devstack_base_dir }}/tempest"
when:
- not run_tempest_cleanup_prefix
- run_tempest_cleanup_resource_list is not defined or not run_tempest_cleanup_resource_list
- name: Run tempest cleanup dry-run with tempest prefix
become: yes
become_user: tempest
command: tox -evenv-tempest -- tempest cleanup --dry-run --debug --prefix tempest
args:
chdir: "{{ devstack_base_dir }}/tempest"
when: run_tempest_cleanup_prefix
- name: Run tempest cleanup with tempest resource list
become: yes
become_user: tempest
command: tox -evenv-tempest -- tempest cleanup --dry-run --debug --resource-list
args:
chdir: "{{ devstack_base_dir }}/tempest"
when: run_tempest_cleanup_resource_list