Skip to content

Commit

Permalink
Merge pull request #515 from redhatci/multibench_cleanup
Browse files Browse the repository at this point in the history
Wait twice longer for crucible ns to be destroyed
  • Loading branch information
tkrishtop authored Jan 2, 2025
2 parents 99912f1 + 25a4cf5 commit ec6bc84
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
12 changes: 9 additions & 3 deletions roles/get_logs_from_namespace/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@
path: "{{ glfn_dir }}"
register: dir_stat
when: glfn_dir is defined
failed_when: not dir_stat.stat.exists
failed_when:
- glfn_dir is defined
- not dir_stat.stat.exists

- name: Create logs directory when not provided
when: glfn_dir is not defined
Expand All @@ -22,13 +24,17 @@
register: logs

- name: Set logs directory
set_fact:
ansible.builtin.set_fact:
glfn_dir: "{{ logs.path }}"

- name: Logs path
debug:
ansible.builtin.debug:
msg: "{{ job_logs.path }}"

- name: Display the logs directory path
ansible.builtin.debug:
msg: "Logs directory is set to: {{ glfn_dir }}"

- name: "Get a list of all pods from {{ glfn_ns }}"
community.kubernetes.k8s_info:
api_version: v1
Expand Down
2 changes: 1 addition & 1 deletion roles/multibench_run/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@
name: crucible-rickshaw
register: _multibench_run_namespace_info
until: _multibench_run_namespace_info.resources | length == 0
retries: 10
retries: 20
delay: 5

- name: "Retry launching the multibench workload"
Expand Down

0 comments on commit ec6bc84

Please sign in to comment.