copr-be: the enable-swap service has been renamed

2895ed83b9
This commit is contained in:
Pavel Raiskup
2025-10-09 12:15:30 +02:00
parent 57cf017758
commit 331c64b76f

View File

@@ -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: