singularity
singularity copied to clipboard
singularity not cleanup crypt when signal terminated
Version of Apptainer
What version of Apptainer (or Singularity) are you using? Run
singularity-ce version 3.10.1
Expected behavior
when singularity child process was killed by sigterm, should cleanup its crypt automatically
Actual behavior
after kill the starter-suid process,a crypt not closed
$sudo dmsetup info -C
Name Maj Min Stat Open Targ Event UUID
349bdc51-323e-4c72-b455-f6e766abf971 253 2 L--r 0 1 0 CRYPT-LUKS2-c16902f5cc6d4044a0e36fe10347aa53-349bdc51-323e-4c72-b455-f6e766abf971
Steps to reproduce this behavior
singularity exec encrpy.sif
# kill {pid} of starter-suid process
losetup
# a crypt not closed
What OS/distro are you running
$ cat /etc/os-release
NAME="CentOS Linux"
VERSION="7 (Core)"
ID="centos"
ID_LIKE="rhel fedora"
VERSION_ID="7"
PRETTY_NAME="CentOS Linux 7 (Core)"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:centos:centos:7"
HOME_URL="https://www.centos.org/"
BUG_REPORT_URL="https://bugs.centos.org/"
CENTOS_MANTISBT_PROJECT="CentOS-7"
CENTOS_MANTISBT_PROJECT_VERSION="7"
REDHAT_SUPPORT_PRODUCT="centos"
REDHAT_SUPPORT_PRODUCT_VERSION="7"
How did you install Apptainer
RPM
Thanks for your bug report. We will start to investigate this issue.