mirror of
https://github.com/ceph/ceph
synced 2025-01-01 16:42:29 +00:00
79c51938e8
Modify Iscsi tcmu-runner container to be run demonized in the same systemd slice as all other ceph processes Signed-off-by: Teoman ONAY <tonay@redhat.com>
30 lines
648 B
Bash
Executable File
30 lines
648 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# checks if the containers default pids-limit (4096) is removed and Iscsi
|
|
# containers continue to run
|
|
# exits 1 if fails
|
|
|
|
set -ex
|
|
|
|
ISCSI_CONT_IDS=$(sudo podman ps -qa --filter='name=iscsi')
|
|
CONT_COUNT=$(echo ${ISCSI_CONT_IDS} | wc -w)
|
|
test ${CONT_COUNT} -eq 2
|
|
|
|
for i in ${ISCSI_CONT_IDS}
|
|
do
|
|
test $(sudo podman exec ${i} cat /sys/fs/cgroup/pids/pids.max) == max
|
|
done
|
|
|
|
for i in ${ISCSI_CONT_IDS}
|
|
do
|
|
sudo podman exec ${i} /bin/sh -c 'for j in {0..20000}; do sleep 300 & done'
|
|
done
|
|
|
|
for i in ${ISCSI_CONT_IDS}
|
|
do
|
|
SLEEP_COUNT=$(sudo podman exec ${i} /bin/sh -c 'ps -ef | grep -c sleep')
|
|
test ${SLEEP_COUNT} -gt 20000
|
|
done
|
|
|
|
echo OK
|