NVIDIA / pyxis

Container plugin for Slurm Workload Manager
Apache License 2.0
273 stars 31 forks source link

More verbose logging #7

Closed lukeyeager closed 4 years ago

lukeyeager commented 4 years ago

BEFORE

$ SLURMD_DEBUG=2 srun --container-image=ubuntu true
slurmstepd: pyxis: running "enroot import" ...
slurmstepd: pyxis: running "enroot create" ...
slurmstepd: pyxis: running "enroot start" ...

AFTER

$ SLURMD_DEBUG=1 srun --container-image=ubuntu true
slurmstepd: pyxis: importing docker image ...
slurmstepd: pyxis: creating container filesystem ...
slurmstepd: pyxis: starting container ...

$ SLURMD_DEBUG=2 srun --container-image=ubuntu true
slurmstepd: pyxis: importing docker image ...
slurmstepd: pyxis: [verbose] running "enroot import --output /run/pyxis/1001/94.0.squashfs docker://ubuntu" ...
slurmstepd: pyxis: creating container filesystem ...
slurmstepd: pyxis: [verbose] running "enroot create --name 94.0 /run/pyxis/1001/94.0.squashfs" ...
slurmstepd: pyxis: starting container ...
slurmstepd: pyxis: [verbose] enroot start configuration script:
slurmstepd: pyxis:     mounts() {
slurmstepd: pyxis:      echo "none /tmp x-detach,nofail,silent"
slurmstepd: pyxis:      echo "/tmp /tmp x-create=dir,rw,bind,nosuid,nodev"
slurmstepd: pyxis:      echo "${PMIX_SERVER_TMPDIR:-/dev/null} ${PMIX_SERVER_TMPDIR:-/dev/null} x-create=dir,rw,bind,nofail,silent"
slurmstepd: pyxis:     }
slurmstepd: pyxis: [verbose] running "enroot start --root --rw --conf /proc/self/fd/21 94.0 sh -c kill -STOP $$ ; exit 0" ...
lukeyeager commented 4 years ago

Addressed some feedback from @flx42.

I removed the [verbose] tags since those seem unnecessary.

$ SLURMD_DEBUG=2 srun --container-image=ubuntu hostname
slurmstepd: pyxis: importing docker image ...
slurmstepd: pyxis: running "enroot import --output /run/pyxis/1001/20.0.squashfs docker://ubuntu" ...
slurmstepd: pyxis: creating container filesystem ...
slurmstepd: pyxis: running "enroot create --name 20.0 /run/pyxis/1001/20.0.squashfs" ...
slurmstepd: pyxis: starting container ...
slurmstepd: pyxis: enroot start configuration script:
slurmstepd: pyxis:     mounts() {
slurmstepd: pyxis:      echo "none /tmp x-detach,nofail,silent"
slurmstepd: pyxis:      echo "/tmp /tmp x-create=dir,rw,bind,nosuid,nodev"
slurmstepd: pyxis:      echo "${PMIX_SERVER_TMPDIR:-/dev/null} ${PMIX_SERVER_TMPDIR:-/dev/null} x-create=dir,rw,bind,nofail,silent"
slurmstepd: pyxis:     }
slurmstepd: pyxis: running "enroot start --root --rw --conf /proc/self/fd/21 20.0 sh -c kill -STOP $$ ; exit 0" ...
flx42 commented 4 years ago

Thanks @lukeyeager!