copr-builders: debug the swap issues
Relates: copr#3053
This commit is contained in:
parent
58e8e48965
commit
fe9f0e6f75
1 changed files with 15 additions and 1 deletions
|
@ -123,11 +123,25 @@
|
|||
- name: make sure the enable-swap service has already finished
|
||||
shell: "systemctl is-active enable-swap || :"
|
||||
register: enable_swap_active
|
||||
until: "'inactive' in enable_swap_active.stdout"
|
||||
until: "'inactive' in enable_swap_active.stdout or 'failed' in enable_swap_active.stdout"
|
||||
retries: 20
|
||||
delay: 1
|
||||
when: starting_builder
|
||||
|
||||
- name: debug the swap failure
|
||||
shell: journalctl -u enable-swap
|
||||
register: journalctl_output
|
||||
when:
|
||||
- starting_builder
|
||||
- "'failed' in enable_swap_active.stdout"
|
||||
|
||||
- name: print out the output
|
||||
debug: var=enable_swap_active.stdout_lines
|
||||
when:
|
||||
- starting_builder
|
||||
- "'failed' in enable_swap_active.stdout"
|
||||
failed_when: true
|
||||
|
||||
- name: Collect facts about builder hardware
|
||||
setup:
|
||||
gather_subset:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue