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
|
kernel_memory: 8M
|
||||||
state: started
|
state: started
|
||||||
register: kernel_memory_1
|
register: kernel_memory_1
|
||||||
|
ignore_errors: yes
|
||||||
|
|
||||||
- name: kernel_memory (idempotency)
|
- name: kernel_memory (idempotency)
|
||||||
docker_container:
|
docker_container:
|
||||||
|
@ -1900,6 +1901,7 @@
|
||||||
kernel_memory: 8M
|
kernel_memory: 8M
|
||||||
state: started
|
state: started
|
||||||
register: kernel_memory_2
|
register: kernel_memory_2
|
||||||
|
ignore_errors: yes
|
||||||
|
|
||||||
- name: kernel_memory (change)
|
- name: kernel_memory (change)
|
||||||
docker_container:
|
docker_container:
|
||||||
|
@ -1910,6 +1912,7 @@
|
||||||
state: started
|
state: started
|
||||||
force_kill: yes
|
force_kill: yes
|
||||||
register: kernel_memory_3
|
register: kernel_memory_3
|
||||||
|
ignore_errors: yes
|
||||||
|
|
||||||
- name: cleanup
|
- name: cleanup
|
||||||
docker_container:
|
docker_container:
|
||||||
|
@ -1917,12 +1920,14 @@
|
||||||
state: absent
|
state: absent
|
||||||
force_kill: yes
|
force_kill: yes
|
||||||
diff: no
|
diff: no
|
||||||
|
ignore_errors: yes
|
||||||
|
|
||||||
- assert:
|
- assert:
|
||||||
that:
|
that:
|
||||||
- kernel_memory_1 is changed
|
- kernel_memory_1 is changed
|
||||||
- kernel_memory_2 is not changed
|
- kernel_memory_2 is not changed
|
||||||
- kernel_memory_3 is 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 #####################################################
|
## kill_signal #####################################################
|
||||||
|
|
Loading…
Reference in a new issue