mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Don't die when kernel memory accounting is not supported by runc build. (#53163)
This commit is contained in:
parent
c9a79f12b4
commit
e4c2cbcca2
1 changed files with 5 additions and 0 deletions
|
@ -1891,6 +1891,7 @@
|
|||
kernel_memory: 8M
|
||||
state: started
|
||||
register: kernel_memory_1
|
||||
ignore_errors: yes
|
||||
|
||||
- name: kernel_memory (idempotency)
|
||||
docker_container:
|
||||
|
@ -1900,6 +1901,7 @@
|
|||
kernel_memory: 8M
|
||||
state: started
|
||||
register: kernel_memory_2
|
||||
ignore_errors: yes
|
||||
|
||||
- name: kernel_memory (change)
|
||||
docker_container:
|
||||
|
@ -1910,6 +1912,7 @@
|
|||
state: started
|
||||
force_kill: yes
|
||||
register: kernel_memory_3
|
||||
ignore_errors: yes
|
||||
|
||||
- name: cleanup
|
||||
docker_container:
|
||||
|
@ -1917,12 +1920,14 @@
|
|||
state: absent
|
||||
force_kill: yes
|
||||
diff: no
|
||||
ignore_errors: yes
|
||||
|
||||
- assert:
|
||||
that:
|
||||
- kernel_memory_1 is changed
|
||||
- kernel_memory_2 is not changed
|
||||
- kernel_memory_3 is changed
|
||||
when: kernel_memory_1 is not failed or 'kernel memory accounting disabled in this runc build' not in kernel_memory_1.msg
|
||||
|
||||
####################################################################
|
||||
## kill_signal #####################################################
|
||||
|
|
Loading…
Reference in a new issue