From fb6fe520f183563dee99c87a20cfbee68e4014aa Mon Sep 17 00:00:00 2001 From: Daniel Pawlik Date: Fri, 10 Oct 2025 14:42:10 +0200 Subject: [PATCH] DNM Checking os gather latest dir We would like to see what is the path for latest dir in os must gather Signed-off-by: Daniel Pawlik --- roles/os_must_gather/tasks/main.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/roles/os_must_gather/tasks/main.yml b/roles/os_must_gather/tasks/main.yml index 7df2086910..6c212d0b55 100644 --- a/roles/os_must_gather/tasks/main.yml +++ b/roles/os_must_gather/tasks/main.yml @@ -83,12 +83,30 @@ depth: 1 register: _os_gather_latest_dir + - name: Print interesting folder info + ansible.builtin.debug: + msg: | + cifmw_os_must_gather_output_log_dir: {{ cifmw_os_must_gather_output_log_dir }} + _os_gather_latest_dir: {{ _os_gather_latest_dir.files }} + latest os gather {{ (_os_gather_latest_dir.files | sort(attribute='mtime', reverse=True) | first).path | basename }} + ignore_errors: true + - name: Create a symlink to newest os-must-gather directory ansible.builtin.file: src: "{{ (_os_gather_latest_dir.files | sort(attribute='mtime', reverse=True) | first).path | basename }}" dest: "{{ cifmw_os_must_gather_output_log_dir }}/latest" state: link + - name: List directory + ansible.builtin.shell: | + ls -la {{ cifmw_os_must_gather_output_log_dir }} + register: _daniel_test + + - name: Print list directory if zuul will ignore it + ansible.builtin.debug: + msg: | + daniel here {{ _daniel_test.stdout }} + rescue: - name: Openstack-must-gather failure block: