-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fedora tests run only on kvm-tier-0 This commit resolves #666, till full support in podman c9s, added fix in set-ffi-env-e2e Signed-off-by: Yariv Rachmani <[email protected]>
- Loading branch information
Showing
10 changed files
with
68 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
[containers] | ||
default_ulimits = [] | ||
default_sysctls = [] | ||
|
||
cgroup_conf=[ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
summary: Test podman ulimits qm are set | ||
test: /bin/bash ./check_qm_podman_ulimits_are_set.sh | ||
duration: 10m | ||
tier: 0 | ||
tag: [kvm,setup] | ||
#Need to run first for Fedora use case | ||
order: 40 | ||
framework: shell |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
#!/bin/bash -x | ||
|
||
# shellcheck disable=SC1091 | ||
source ../e2e/lib/utils | ||
|
||
U_NOFILE_PRCTG=${NOFILE_RATIO:-0.5} | ||
U_NPROC_PRCTG=${NPROC_RATIO:-0.75} | ||
QM_CTR_CFG=/etc/qm/containers/containers.conf | ||
|
||
# Verify podman run and exec container inside qm with service file | ||
check_qm_podman_ulimits_are_set(){ | ||
local ulimit_nofile | ||
local ulimit_nproc= | ||
info_message "check_qm_podman_ulimits_are_set(): \ | ||
prepare qm containers.conf file | ||
refer issue #666" | ||
info_message "check_qm_podman_ulimits_are_set(): qm-sanity-test update qm ulimits" | ||
exec_cmd "test -e ${QM_CTR_CFG}" | ||
ulimit_nofile=$(printf %.0f "$(echo "$(ulimit -n) * $U_NOFILE_PRCTG" | bc)") | ||
ulimit_nproc=$(printf %.0f "$(echo "$(ulimit -u) * $U_NPROC_PRCTG" | bc)") | ||
exec_cmd "sed -i -E 's/(default_ulimits = \[)/\1\"nproc=$ulimit_nproc:$ulimit_nproc\",\"nofile=$ulimit_nofile:$ulimit_nofile\"/' $QM_CTR_CFG" | ||
info_message "check_qm_podman_ulimits_are_set(): qm-sanity-test verify limits are set" | ||
exec_cmd "grep -oP \(nproc.*\",\|nofile.*\"\) ${QM_CTR_CFG} | tr -d '\t\",' " | ||
exit 0 | ||
} | ||
|
||
check_qm_podman_ulimits_are_set |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters