diff --git a/ci/roles/logging/tasks/main.yaml b/ci/roles/logging/tasks/main.yaml index 56263e97cc8f35b14d06906fb3fc5cb2847dcab0..d9c0e8d0f22b8989e08e95525bda7b2d1fc6deb4 100644 --- a/ci/roles/logging/tasks/main.yaml +++ b/ci/roles/logging/tasks/main.yaml @@ -1,20 +1,15 @@ --- -- name: Trigger flavor listing +- name: Trigger flavor listing to create logs openstack.cloud.compute_flavor_info: cloud: "{{ cloud }}" sdk_log_path: "{{ sdk_log_file_path }}" sdk_log_level: "DEBUG" -- name: Check log file presence - ansible.builtin.stat: - path: "{{ sdk_log_file_path }}" - register: sdk_log_file +- name: Read openstacksdk's log file + ansible.builtin.slurp: + src: "{{ sdk_log_file_path }}" + register: log -- name: Assert - ansible.builtin.assert: - that: - - "sdk_log_file.stat.exists" - -- name: Debug log file content +- name: Print contents of openstacksdk's log ansible.builtin.debug: - msg: "{{ lookup('ansible.builtin.file', sdk_log_file_path) }}" + msg: "{{ log['content'] | b64decode }}"