diff --git a/roles/copr/backend/files/provision/provision_builder_tasks.yml b/roles/copr/backend/files/provision/provision_builder_tasks.yml index ab813b9379..8c6fcf9f34 100644 --- a/roles/copr/backend/files/provision/provision_builder_tasks.yml +++ b/roles/copr/backend/files/provision/provision_builder_tasks.yml @@ -138,27 +138,24 @@ poll: 0 when: starting_builder -- name: make sure the enable-swap service has already finished - ansible.builtin.shell: "systemctl is-active enable-swap || :" - register: enable_swap_active - until: "'inactive' in enable_swap_active.stdout or 'failed' in enable_swap_active.stdout" +- name: make sure the copr-partitions service has already finished + ansible.builtin.shell: "systemctl is-active copr-partitions || :" + register: copr_partitions_active + until: "'inactive' in copr_partitions_active.stdout or 'failed' in copr_partitions_active.stdout" retries: 20 delay: 1 when: starting_builder -- name: debug the swap failure - ansible.builtin.shell: journalctl -u enable-swap +- name: read partitioning logs + ansible.builtin.shell: journalctl -u copr-partitions register: journalctl_output when: - starting_builder - - "'failed' in enable_swap_active.stdout" -- name: print out the enable-swap failure logs +- name: print out the copr-partitions logs debug: var=journalctl_output.stdout_lines when: - starting_builder - - "'failed' in enable_swap_active.stdout" - failed_when: true - name: Collect facts about builder hardware setup: