Skip to content

Instantly share code, notes, and snippets.

@srhb
Created August 21, 2019 07:19
Show Gist options
  • Save srhb/5355fd5b2970bf86596f6373530ba951 to your computer and use it in GitHub Desktop.
Save srhb/5355fd5b2970bf86596f6373530ba951 to your computer and use it in GitHub Desktop.
machine: must succeed: nixos-container destroy foo
machine# [ 47.087873] systemd[1]: Stopping Container 'foo'...
machine# [ 47.095529] systemd-machined[3926]: Failed to drop reference to machine scope, ignoring: Unit has not been referenced yet.
machine# [ 47.106594] nscd[722]: 722 monitoring file `/etc/passwd` (1)
machine# [ 47.109695] nscd[722]: 722 monitoring directory `/etc` (2)
machine# [ 47.113461] nscd[722]: 722 monitoring file `/etc/group` (3)
machine# [ 47.117609] container foo[8800]: cat: /run/containers/foo.pid: No such file or directory
machine# [ 47.119245] nscd[722]: 722 monitoring directory `/etc` (2)
machine# [ 47.120492] systemd[1]: [email protected]: Control process exited, code=exited, status=1/FAILURE
machine# [ 47.122389] nscd[722]: 722 monitoring file `/etc/resolv.conf` (5)
machine# [ 47.123647] nscd[722]: 722 monitoring directory `/etc` (2)
machine# [ 137.191441] systemd[1]: [email protected]: State 'stop-sigterm' timed out. Killing.
machine# [ 137.198224] systemd[1]: [email protected]: Killing process 4401 (systemd-nspawn) with signal SIGKILL.
machine# [ 137.204592] container foo[4401]: foo login:
machine# [ 137.205746] systemd[1]: [email protected]: Killing process 4408 (systemd) with signal SIGKILL.
machine# [ 137.209509] systemd[1]: [email protected]: Killing process 4598 (systemd-journal) with signal SIGKILL.
machine# [ 137.218516] systemd[1]: [email protected]: Killing process 4653 (nscd) with signal SIGKILL.
machine# [ 137.221139] systemd[1]: [email protected]: Killing process 4656 (dbus-daemon) with signal SIGKILL.
machine# [ 137.223669] systemd[1]: [email protected]: Killing process 4703 (systemd-logind) with signal SIGKILL.
machine# [ 137.227411] systemd[1]: [email protected]: Killing process 4770 (agetty) with signal SIGKILL.
machine# [ 137.231129] systemd[1]: [email protected]: Main process exited, code=killed, status=9/KILL
machine# [ 137.233861] systemd[1]: [email protected]: Failed with result 'exit-code'.
machine# [ 137.236638] systemd[1]: Stopped Container 'foo'.
machine# [ 137.239384] systemd-machined[3926]: Machine foo terminated.
machine# [ 137.700601] systemd[1]: id2\x2dbindmount-very-important-data.mount: Succeeded.
machine# [ 137.702107] systemd[1]: var-lib-containers-foo-very-important-data.mount: Succeeded.
machine# rm: cannot remove '/var/lib/containers/foo': Device or resource busy
machine# [ 137.728307] systemd[1]: var-lib-containers-foo.mount: Succeeded.
machine: exit status 0
(91.04 seconds)
machine: must succeed: nixos-container destroy foo-0
machine# [ 138.107015] systemd[1]: var-lib-containers-foo\x2d0-very-important-data.mount: Succeeded.
machine: exit status 0
(0.38 seconds)
machine: must succeed: grep -qF 'important data' /nested-bindmount/dummy
machine: exit status 0
(0.01 seconds)
machine: must succeed: test ! -e /var/lib/containers/foo
machine: exit status 0
(0.00 seconds)
(139.07 seconds)
collecting coverage data
machine: running command: test -e /sys/kernel/debug/gcov
machine: exit status 1
(0.00 seconds)
(0.00 seconds)
syncing
machine: running command: sync
machine: exit status 0
(0.01 seconds)
(0.01 seconds)
test script finished in 139.08s
cleaning up
killing machine (pid 594)
(0.00 seconds)
vde_switch: EOF on stdin, cleaning up and exiting
vde_switch: Could not remove ctl dir '/build/vde1.ctl': Directory not empty
/nix/store/hxpkawzb2jnhysms2s0ajwls6f9ax868-vm-test-run-containers-imperative
machine: must succeed: nixos-container destroy foo
machine# [ 46.284384] systemd[1]: Stopping Container 'foo'...
machine# [ 46.291423] systemd-machined[3913]: Failed to drop reference to machine scope, ignoring: Unit has not been referenced yet.
machine# [ 46.302694] nscd[720]: 720 monitoring file `/etc/passwd` (1)
machine# [ 46.306178] nscd[720]: 720 monitoring directory `/etc` (2)
machine# [ 46.308962] nscd[720]: 720 monitoring file `/etc/group` (3)
machine# [ 46.312736] nscd[720]: 720 monitoring directory `/etc` (2)
machine# [ 46.317832] nscd[720]: 720 monitoring file `/etc/resolv.conf` (5)
machine# [ 46.322564] nscd[720]: 720 monitoring directory `/etc` (2)
machine# [ 46.344659] container foo[4387]: foo login: [ OK ] Stopped target Timers.
machine# [ 46.347677] container foo[4387]: [ OK ] Stopped target Multi-User System.
machine# [ 46.350397] container foo[4387]: Stopping Login Service...
machine# [ 46.353826] container foo[4387]: Stopping D-Bus System Message Bus...
machine# [ 46.357136] container foo[4387]: [ OK ] Removed slice system-getty.slice.
machine# [ 46.360605] container foo[4387]: [ OK ] Stopped target Login Prompts.
machine# [ 46.363447] container foo[4387]: Stopping Console Getty...
machine# [ 46.366436] container foo[4387]: [ OK ] Stopped Daily Cleanup of Temporary Directories.
machine# [ 46.368982] container foo[4387]: [ OK ] Stopped target Host and Network Name Lookups.
machine# [ 46.373344] container foo[4387]: [ OK ] Stopped target Network is Online.
machine# [ 46.375281] container foo[4387]: [ OK ] Stopped D-Bus System Message Bus.
machine# [ 46.377925] container foo[4387]: [ OK ] Stopped Login Service.
machine# [ 46.381248] container foo[4387]: [ OK ] Stopped Console Getty.
machine# [ 46.383453] container foo[4387]: Stopping Permit User Sessions...
machine# [ 46.410395] container foo[4387]: [ OK ] Stopped Permit User Sessions.
machine# [ 46.413214] container foo[4387]: [ OK ] Stopped target Remote File Systems.
machine# [ 46.415861] container foo[4387]: [ OK ] Stopped target Network.
machine# [ 46.418070] container foo[4387]: [ OK ] Stopped target All Network Interfaces (deprecated).
machine# [ 46.420765] container foo[4387]: [ OK ] Stopped Extra networking commands..
machine# [ 46.424151] container foo[4387]: [ OK ] Stopped Networking Setup.
machine# [ 46.426408] container foo[4387]: [ OK ] Stopped target Network (Pre).
machine# [ 46.428577] container foo[4387]: [ OK ] Stopped resolvconf update.
machine# [ 46.432489] container foo[4387]: [ OK ] Stopped target User and Group Name Lookups.
machine# [ 46.434850] container foo[4387]: Stopping Name Service Cache Daemon...
machine# [ 46.438672] container foo[4387]: [ OK ] Stopped Name Service Cache Daemon.
machine# [ 46.439968] container foo[4387]: [ OK ] Stopped target Basic System.
machine# [ 46.444342] container foo[4387]: [ OK ] Stopped target Slices.
machine# [ 46.446356] container foo[4387]: [ OK ] Removed slice User and Session Slice.
machine# [ 46.448976] container foo[4387]: [ OK ] Stopped target Paths.
machine# [ 46.452339] container foo[4387]: [ OK ] Stopped Forward Password Requests to Wall Directory Watch.
machine# [ 46.454798] container foo[4387]: [ OK ] Stopped Dispatch Password Requests to Console Directory Watch.
machine# [ 46.457235] container foo[4387]: [ OK ] Stopped target Sockets.
machine# [ 46.460018] container foo[4387]: [ OK ] Closed D-Bus System Message Bus Socket.
machine# [ 46.463154] container foo[4387]: [ OK ] Stopped target System Initialization.
machine# [ 46.467163] container foo[4387]: [ OK ] Stopped Apply Kernel Variables.
machine# [ 46.469417] container foo[4387]: Stopping Update UTMP about System Boot/Shutdown...
machine# [ 46.486694] container foo[4387]: [ OK ] Stopped Update UTMP about System Boot/Shutdown.
machine# [ 46.489799] container foo[4387]: [ OK ] Stopped Create Volatile Files and Directories.
machine# [ 46.492965] container foo[4387]: [ OK ] Stopped target Local File Systems.
machine# [ 46.495107] container foo[4387]: Unmounting /run/systemd/nspawn/incoming...
machine# [ 46.499097] container foo[4387]: Unmounting /run/wrappers...
machine# [ 46.502126] container foo[4387]: Unmounting /nix/var/nix/db...
machine# [ 46.509823] container foo[4387]: Unmounting /run/keys...
machine# [ 46.516379] container foo[4387]: Unmounting /nix/var/nix/profiles...
machine# [ 46.528158] container foo[4387]: Unmounting /nix/var/nix/gcroots...
machine# [ 46.537091] container foo[4387]: Unmounting /tmp...
machine# [ 46.543471] container foo[4387]: Unmounting /very/important/data...
machine# [ 46.550410] container foo[4387]: Unmounting /nix/var/nix/daemon-socket...
machine# [ 46.571328] container foo[4387]: [ OK ] Unmounted /run/systemd/nspawn/incoming.
machine# [ 46.574283] container foo[4387]: [ OK ] Unmounted /run/wrappers.
machine# [ 46.577120] container foo[4387]: [ OK ] Unmounted /nix/var/nix/db.
machine# [ 46.580134] container foo[4387]: [ OK ] Unmounted /run/keys.
machine# [ 46.583147] container foo[4387]: [ OK ] Unmounted /nix/var/nix/profiles.
machine# [ 46.586065] container foo[4387]: [ OK ] Unmounted /nix/var/nix/gcroots.
machine# [ 46.589090] container foo[4387]: [ OK ] Unmounted /tmp.
machine# [ 46.592077] container foo[4387]: [ OK ] Unmounted /very/important/data.
machine# [ 46.594071] container foo[4387]: [ OK ] Unmounted /nix/var/nix/daemon-socket.
machine# [ 46.597638] container foo[4387]: [ OK ] Reached target Unmount All Filesystems.
machine# [ 46.600376] container foo[4387]: [ OK ] Stopped target Swap.
machine# [ 46.603064] container foo[4387]: [ OK ] Stopped target Local File Systems (Pre).
machine# [ 46.605597] container foo[4387]: [ OK ] Stopped Create Static Device Nodes in /dev.
machine# [ 46.609079] container foo[4387]: [ OK ] Reached target Shutdown.
machine# [ 46.610665] container foo[4387]: [ OK ] Reached target Final Step.
machine# [ 46.612123] container foo[4387]: [ OK ] Started Power-Off.
machine# [ 46.613486] container foo[4387]: [ OK ] Reached target Power-Off.
machine# [ 46.665422] systemd-machined[3913]: Failed to drop reference to machine scope, ignoring: Unit has not been referenced yet.
machine# [ 46.667809] nscd[720]: 720 monitoring file `/etc/passwd` (1)
machine# [ 46.669226] nscd[720]: 720 monitoring directory `/etc` (2)
machine# [ 46.672787] nscd[720]: 720 monitoring file `/etc/group` (3)
machine# [ 46.674380] container foo[4387]: Container foo has been shut down.
machine# [ 46.676182] nscd[720]: 720 monitoring directory `/etc` (2)
machine# [ 46.683015] systemd[1]: [email protected]: Succeeded.
machine# [ 46.685518] nscd[720]: 720 monitoring file `/etc/resolv.conf` (5)
machine# [ 46.689266] systemd[1]: Stopped Container 'foo'.
machine# [ 46.691263] nscd[720]: 720 monitoring directory `/etc` (2)
machine# [ 46.696092] systemd-machined[3913]: Machine foo terminated.
machine# [ 47.174606] systemd[1]: id2\x2dbindmount-very-important-data.mount: Succeeded.
machine# [ 47.176089] systemd[1]: var-lib-containers-foo-very-important-data.mount: Succeeded.
machine# rm: cannot remove '/var/lib/containers/foo': Device or resource busy
machine# [ 47.206266] systemd[1]: var-lib-containers-foo.mount: Succeeded.
machine: exit status 0
(1.36 seconds)
machine: must succeed: nixos-container destroy foo-0
machine# [ 47.618536] systemd[1]: var-lib-containers-foo\x2d0-very-important-data.mount: Succeeded.
machine: exit status 0
(0.41 seconds)
machine: must succeed: grep -qF 'important data' /nested-bindmount/dummy
machine: exit status 0
(0.01 seconds)
machine: must succeed: test ! -e /var/lib/containers/foo
machine: exit status 0
(0.00 seconds)
(48.54 seconds)
collecting coverage data
machine: running command: test -e /sys/kernel/debug/gcov
machine: exit status 1
(0.00 seconds)
(0.00 seconds)
syncing
machine: running command: sync
machine: exit status 0
(0.02 seconds)
(0.02 seconds)
test script finished in 48.56s
cleaning up
killing machine (pid 594)
(0.00 seconds)
vde_switch: EOF on stdin, cleaning up and exiting
vde_switch: Could not remove ctl dir '/build/vde1.ctl': Directory not empty
/nix/store/9fr03awgclmmx1ff1x60ajrb1i7jywlq-vm-test-run-containers-imperative
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment