Re: [systemd-devel] systemd-nspawn leaves leftovers in /tmp
On Fri, 04.11.16 15:54, Bill Lipa (d...@masterleep.com) wrote: > This might be due to trying to use systemd-nspawn -x with a raw image > inside the btrfs /var/lib/machines volume. It doesn't work in the > sense that the container isn't ephemeral, but there's no error message > either, and this leftover gets created. > > If I jump through elaborate hoops to create the container as a btrfs > subvolume instead of using the pull-raw one liner, the -x flag works > as expected and there is no leftover in /tmp. "-x" should work with raw images too. If it doesn't, that'd be a bug. Please file a github issue about this bug! Thanks, Lennart -- Lennart Poettering, Red Hat ___ systemd-devel mailing list systemd-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/systemd-devel
Re: [systemd-devel] systemd-nspawn leaves leftovers in /tmp
This might be due to trying to use systemd-nspawn -x with a raw image inside the btrfs /var/lib/machines volume. It doesn't work in the sense that the container isn't ephemeral, but there's no error message either, and this leftover gets created. If I jump through elaborate hoops to create the container as a btrfs subvolume instead of using the pull-raw one liner, the -x flag works as expected and there is no leftover in /tmp. On Thu, Nov 3, 2016 at 11:54 AM, Lennart Poetteringwrote: > On Thu, 03.11.16 11:34, Bill Lipa (d...@masterleep.com) wrote: > >>> I am using systemd-nspawn to run a short lived process in a container. >> This is a fairly frequent operation (once every few seconds). Each >> time systemd-nspawn runs, it leaves a temporary empty directory like >> /tmp/nspawn-root-CPeQjR. These directories don't seem to get cleaned >> up. > > Generally, temporary files like this should not be left around by > commands that exit cleanly. If they do, then that's a bug, please file > a bug. (but first, please retry on the two most current systemd > versions, we only track issues with those upstream). ___ systemd-devel mailing list systemd-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/systemd-devel
Re: [systemd-devel] systemd-nspawn leaves leftovers in /tmp
On Thu, 03.11.16 11:34, Bill Lipa (d...@masterleep.com) wrote: > Hello, > > I am using systemd-nspawn to run a short lived process in a container. > This is a fairly frequent operation (once every few seconds). Each > time systemd-nspawn runs, it leaves a temporary empty directory like > /tmp/nspawn-root-CPeQjR. These directories don't seem to get cleaned > up. > > I'm using systemd 229 on Ubuntu 16.04. The command line looks like: > > sudo systemd-nspawn -axq --private-network --drop-capability=all -u user > --chdir /home/user/work -M ubuntu-16.10 --bind > /home/outer/work:/home/user/work > > I'm a little worried that there are going to be hundreds of thousands > of these directories clogging up /tmp after a few weeks. Is this > expected? Generally, temporary files like this should not be left around by commands that exit cleanly. If they do, then that's a bug, please file a bug. (but first, please retry on the two most current systemd versions, we only track issues with those upstream). Lennart -- Lennart Poettering, Red Hat ___ systemd-devel mailing list systemd-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/systemd-devel
[systemd-devel] systemd-nspawn leaves leftovers in /tmp
Hello, I am using systemd-nspawn to run a short lived process in a container. This is a fairly frequent operation (once every few seconds). Each time systemd-nspawn runs, it leaves a temporary empty directory like /tmp/nspawn-root-CPeQjR. These directories don't seem to get cleaned up. I'm using systemd 229 on Ubuntu 16.04. The command line looks like: sudo systemd-nspawn -axq --private-network --drop-capability=all -u user --chdir /home/user/work -M ubuntu-16.10 --bind /home/outer/work:/home/user/work I'm a little worried that there are going to be hundreds of thousands of these directories clogging up /tmp after a few weeks. Is this expected? Thank you! Bill Lipa ___ systemd-devel mailing list systemd-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/systemd-devel