1a9c40d469
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
27 lines
875 B
YAML
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
|