bld4: building pj4fmin4dzgmw6y1rhyy5l2y5852f3zj-container-test-ubuntu-22-04-state-v0-v1-migration-deactivate.drv Running type check Success: no issues found in 1 source file Linting test script additionally exposed symbols: ubuntu-22-04-state-v0-v1-migration-deactivate, start_all, subtest, machines, driver, Machine Starting ubuntu-22-04-state-v0-v1-migration-deactivate [0.0s] Container process started Waiting for ubuntu-22-04-state-v0-v1-migration-deactivate to boot... Getting container PID for ubuntu-22-04-state-v0-v1-migration-deactivate... Looking for child process of nspawn PID 52 [ubuntu-22-04-state-v0-v1-migration-deactivate] Note: in a future version of systemd-nspawn the default set of permitted socket address families will be restricted to AF_INET, AF_INET6 and AF_UNIX. Use --restrict-address-families= to configure the set of permitted socket address families, or set RestrictAddressFamilies= in a .nspawn file. [ubuntu-22-04-state-v0-v1-migration-deactivate] ░ Spawning container ubuntu-22-04-state-v0-v1-migration-deactivate on /build/tmp2zmvptm7/ubuntu-22-04-state-v0-v1-migration-deactivate. [ubuntu-22-04-state-v0-v1-migration-deactivate] Using default interface naming scheme 'v261'. [ubuntu-22-04-state-v0-v1-migration-deactivate] Network interface name 'vb-ubuntu-22-04-state-v0-v1-migration-deactivate' has been changed to 'vb-ubuntu-2mlED' to fit length constraints. [ubuntu-22-04-state-v0-v1-migration-deactivate] systemd 249.11-0ubuntu3.17 running in system mode (+PAM +AUDIT +SELINUX +APPARMOR +IMA +SMACK +SECCOMP +GCRYPT +GNUTLS +OPENSSL +ACL +BLKID +CURL +ELFUTILS +FIDO2 +IDN2 -IDN +IPTC +KMOD +LIBCRYPTSETUP +LIBFDISK +PCRE2 -PWQUALITY -P11KIT -QRENCODE +BZIP2 +LZ4 +XZ +ZLIB +ZSTD -XKBCOMMON +UTMP +SYSVINIT default-hierarchy=unified) [ubuntu-22-04-state-v0-v1-migration-deactivate] Detected virtualization systemd-nspawn. [ubuntu-22-04-state-v0-v1-migration-deactivate] Detected architecture arm64. [ubuntu-22-04-state-v0-v1-migration-deactivate] [ubuntu-22-04-state-v0-v1-migration-deactivate] Welcome to Ubuntu 22.04.5 LTS! [ubuntu-22-04-state-v0-v1-migration-deactivate] [ubuntu-22-04-state-v0-v1-migration-deactivate] Hostname set to . [ubuntu-22-04-state-v0-v1-migration-deactivate] Initializing machine ID from container UUID. [ubuntu-22-04-state-v0-v1-migration-deactivate] Configuration file /run/systemd/system/netplan-ovs-cleanup.service is marked world-inaccessible. This has no effect as configuration data is accessible via APIs without restrictions. Proceeding anyway. [ubuntu-22-04-state-v0-v1-migration-deactivate] Queued start job for default target Graphical Interface. [ubuntu-22-04-state-v0-v1-migration-deactivate] [ OK ] Created slice Slice /system/modprobe. [ubuntu-22-04-state-v0-v1-migration-deactivate] [ OK ] Created slice User and Session Slice. [ubuntu-22-04-state-v0-v1-migration-deactivate] [ OK ] Started Forward Password Requests to Wall Directory Watch. [ubuntu-22-04-state-v0-v1-migration-deactivate] [ OK ] Reached target Slice Units. [ubuntu-22-04-state-v0-v1-migration-deactivate] [ OK ] Reached target Swaps. [ubuntu-22-04-state-v0-v1-migration-deactivate] [ OK ] Reached target Local Verity Protected Volumes. [ubuntu-22-04-state-v0-v1-migration-deactivate] [ OK ] Listening on Device-mapper event daemon FIFOs. [ubuntu-22-04-state-v0-v1-migration-deactivate] [ OK ] Listening on LVM2 poll daemon socket. [ubuntu-22-04-state-v0-v1-migration-deactivate] [ OK ] Listening on Syslog Socket. [ubuntu-22-04-state-v0-v1-migration-deactivate] [ OK ] Listening on initctl Compatibility Named Pipe. [ubuntu-22-04-state-v0-v1-migration-deactivate] [ OK ] Listening on Journal Socket (/dev/log). [ubuntu-22-04-state-v0-v1-migration-deactivate] [ OK ] Listening on Journal Socket. [ubuntu-22-04-state-v0-v1-migration-deactivate] [ OK ] Listening on Network Service Netlink Socket. [ubuntu-22-04-state-v0-v1-migration-deactivate] Starting Journal Service... [ubuntu-22-04-state-v0-v1-migration-deactivate] Starting Set the console keyboard layout... [ubuntu-22-04-state-v0-v1-migration-deactivate] Starting Apply Kernel Variables... [ubuntu-22-04-state-v0-v1-migration-deactivate] Starting Create System Users... [ubuntu-22-04-state-v0-v1-migration-deactivate] [ OK ] Started Journal Service. [ubuntu-22-04-state-v0-v1-migration-deactivate] Starting Flush Journal to Persistent Storage... [ubuntu-22-04-state-v0-v1-migration-deactivate] [ OK ] Finished Apply Kernel Variables. [ubuntu-22-04-state-v0-v1-migration-deactivate] [ OK ] Finished Create System Users. [ubuntu-22-04-state-v0-v1-migration-deactivate] Starting Create Static Device Nodes in /dev... [ubuntu-22-04-state-v0-v1-migration-deactivate] [ OK ] Finished Flush Journal to Persistent Storage. [ubuntu-22-04-state-v0-v1-migration-deactivate] [ OK ] Finished Create Static Device Nodes in /dev. [ubuntu-22-04-state-v0-v1-migration-deactivate] [ OK ] Finished Set the console keyboard layout. [ubuntu-22-04-state-v0-v1-migration-deactivate] [ OK ] Reached target Preparation for Local File Systems. [ubuntu-22-04-state-v0-v1-migration-deactivate] [ OK ] Reached target Local File Systems. [ubuntu-22-04-state-v0-v1-migration-deactivate] Starting Set console font and keymap... [ubuntu-22-04-state-v0-v1-migration-deactivate] Starting Create final runtime dir for shutdown pivot root... [ubuntu-22-04-state-v0-v1-migration-deactivate] Starting Tell Plymouth To Write Out Runtime Data... [ubuntu-22-04-state-v0-v1-migration-deactivate] [ OK ] Started Dispatch Password Requests to Console Directory Watch. [ubuntu-22-04-state-v0-v1-migration-deactivate] [ OK ] Reached target Local Encrypted Volumes. [ubuntu-22-04-state-v0-v1-migration-deactivate] Starting Create Volatile Files and Directories... [ubuntu-22-04-state-v0-v1-migration-deactivate] Starting Uncomplicated firewall... [ubuntu-22-04-state-v0-v1-migration-deactivate] [ OK ] Finished Create final runtime dir for shutdown pivot root. [ubuntu-22-04-state-v0-v1-migration-deactivate] [ OK ] Finished Uncomplicated firewall. [ubuntu-22-04-state-v0-v1-migration-deactivate] [ OK ] Reached target Preparation for Network. [ubuntu-22-04-state-v0-v1-migration-deactivate] Starting Network Configuration... [ubuntu-22-04-state-v0-v1-migration-deactivate] [ OK ] Finished Create Volatile Files and Directories. [ubuntu-22-04-state-v0-v1-migration-deactivate] [ OK ] Reached target System Time Set. [ubuntu-22-04-state-v0-v1-migration-deactivate] Starting Record System Boot/Shutdown in UTMP... [ubuntu-22-04-state-v0-v1-migration-deactivate] [ OK ] Finished Tell Plymouth To Write Out Runtime Data. [ubuntu-22-04-state-v0-v1-migration-deactivate] [ OK ] Finished Record System Boot/Shutdown in UTMP. [ubuntu-22-04-state-v0-v1-migration-deactivate] [ OK ] Reached target System Initialization. [ubuntu-22-04-state-v0-v1-migration-deactivate] [ OK ] Started Daily apt download activities. [ubuntu-22-04-state-v0-v1-migration-deactivate] [ OK ] Started Daily apt upgrade and clean activities. [ubuntu-22-04-state-v0-v1-migration-deactivate] [ OK ] Started Daily dpkg database backup timer. [ubuntu-22-04-state-v0-v1-migration-deactivate] [ OK ] Started Periodic ext4 Online Metadata Check for All Filesystems. [ubuntu-22-04-state-v0-v1-migration-deactivate] [ OK ] Started Daily rotation of log files. [ubuntu-22-04-state-v0-v1-migration-deactivate] [ OK ] Started Daily man-db regeneration. [ubuntu-22-04-state-v0-v1-migration-deactivate] [ OK ] Started Message of the Day. [ubuntu-22-04-state-v0-v1-migration-deactivate] [ OK ] Started Daily Cleanup of Temporary Directories. [ubuntu-22-04-state-v0-v1-migration-deactivate] [ OK ] Reached target Path Units. [ubuntu-22-04-state-v0-v1-migration-deactivate] [ OK ] Listening on Unix socket for apport crash forwarding. [ubuntu-22-04-state-v0-v1-migration-deactivate] [ OK ] Listening on D-Bus System Message Bus Socket. [ubuntu-22-04-state-v0-v1-migration-deactivate] [ OK ] Listening on Open-iSCSI iscsid Socket. [ubuntu-22-04-state-v0-v1-migration-deactivate] [ OK ] Listening on UUID daemon activation socket. [ubuntu-22-04-state-v0-v1-migration-deactivate] [ OK ] Reached target Socket Units. [ubuntu-22-04-state-v0-v1-migration-deactivate] [ OK ] Reached target Basic System. [ubuntu-22-04-state-v0-v1-migration-deactivate] [ OK ] Started D-Bus System Message Bus. [ubuntu-22-04-state-v0-v1-migration-deactivate] [ OK ] Started Save initial kernel messages after boot. [ubuntu-22-04-state-v0-v1-migration-deactivate] Starting Dispatcher daemon for systemd-networkd... [ubuntu-22-04-state-v0-v1-migration-deactivate] Starting System Logging Service... [ubuntu-22-04-state-v0-v1-migration-deactivate] Starting User Login Management... [ubuntu-22-04-state-v0-v1-migration-deactivate] [ OK ] Started System Logging Service. [1.0s] Found container PID: 55 Container ubuntu-22-04-state-v0-v1-migration-deactivate has PID 55 [0.0s] Container ubuntu-22-04-state-v0-v1-migration-deactivate status: starting [ubuntu-22-04-state-v0-v1-migration-deactivate] [ OK ] Started Network Configuration. [ubuntu-22-04-state-v0-v1-migration-deactivate] [ OK ] Reached target Network. [ubuntu-22-04-state-v0-v1-migration-deactivate] [ OK ] Reached target Network is Online. [ubuntu-22-04-state-v0-v1-migration-deactivate] [ OK ] Started Download data for packages …at failed at package install time. [ubuntu-22-04-state-v0-v1-migration-deactivate] [ OK ] Started Check to see whether there …a new version of Ubuntu available. [ubuntu-22-04-state-v0-v1-migration-deactivate] [ OK ] Reached target Timer Units. [ubuntu-22-04-state-v0-v1-migration-deactivate] [ OK ] Reached target Preparation for Remote File Systems. [ubuntu-22-04-state-v0-v1-migration-deactivate] [ OK ] Reached target Remote File Systems. [ubuntu-22-04-state-v0-v1-migration-deactivate] Starting LSB: automatic crash report generation... [ubuntu-22-04-state-v0-v1-migration-deactivate] [ OK ] Finished Availability of block devices. [ubuntu-22-04-state-v0-v1-migration-deactivate] [ OK ] Started Regular background program processing daemon. [ubuntu-22-04-state-v0-v1-migration-deactivate] Starting OpenBSD Secure Shell server... [ubuntu-22-04-state-v0-v1-migration-deactivate] Starting Permit User Sessions... [ubuntu-22-04-state-v0-v1-migration-deactivate] [ OK ] Started Dispatcher daemon for systemd-networkd. [ubuntu-22-04-state-v0-v1-migration-deactivate] [ OK ] Finished Permit User Sessions. [ubuntu-22-04-state-v0-v1-migration-deactivate] Starting Hold until boot process finishes up... [ubuntu-22-04-state-v0-v1-migration-deactivate] Starting Terminate Plymouth Boot Screen... [ubuntu-22-04-state-v0-v1-migration-deactivate] [ OK ] Finished Hold until boot process finishes up. [ubuntu-22-04-state-v0-v1-migration-deactivate] [ OK ] Finished Set console font and keymap. [ubuntu-22-04-state-v0-v1-migration-deactivate] [ OK ] Started Console Getty. [ubuntu-22-04-state-v0-v1-migration-deactivate] [ OK ] Created slice Slice /system/getty. [ubuntu-22-04-state-v0-v1-migration-deactivate] [ OK ] Reached target Login Prompts. [ubuntu-22-04-state-v0-v1-migration-deactivate] [ OK ] Finished Terminate Plymouth Boot Screen. [ubuntu-22-04-state-v0-v1-migration-deactivate] [ OK ] Started LSB: automatic crash report generation. [ubuntu-22-04-state-v0-v1-migration-deactivate] [FAILED] Failed to start OpenBSD Secure Shell server. [ubuntu-22-04-state-v0-v1-migration-deactivate] See 'systemctl status ssh.service' for details. [ubuntu-22-04-state-v0-v1-migration-deactivate] [ OK ] Started User Login Management. [ubuntu-22-04-state-v0-v1-migration-deactivate] [ OK ] Started Unattended Upgrades Shutdown. [ubuntu-22-04-state-v0-v1-migration-deactivate] [ OK ] Reached target Multi-User System. [ubuntu-22-04-state-v0-v1-migration-deactivate] [ OK ] Reached target Graphical Interface. [ubuntu-22-04-state-v0-v1-migration-deactivate] Starting Record Runlevel Change in UTMP... [ubuntu-22-04-state-v0-v1-migration-deactivate] [ OK ] Finished Record Runlevel Change in UTMP. [1.1s] Container ubuntu-22-04-state-v0-v1-migration-deactivate status: running [1.1s] Container ubuntu-22-04-state-v0-v1-migration-deactivate boot complete: running [2.1s] Boot complete ubuntu-22-04-state-v0-v1-migration-deactivate: Installing Nix via nix-installer [ubuntu-22-04-state-v0-v1-migration-deactivate] [ubuntu-22-04-state-v0-v1-migration-deactivate] [ubuntu-22-04-state-v0-v1-migration-deactivate] Ubuntu 22.04.5 LTS ubuntu console [ubuntu-22-04-state-v0-v1-migration-deactivate] ubuntu-22-04-state-v0-v1-migration-deactivate: waiting for unit 'nix-daemon.socket' (finished: waiting for unit 'nix-daemon.socket', in 0.01 seconds) (finished: Installing Nix via nix-installer, in 3.56 seconds) [3.6s] Nix installation complete ubuntu-22-04-state-v0-v1-migration-deactivate: Copying profile /nix/store/zf5mq1pcxzbxaj3a36kzmn0w4a58wnv1-system-manager to container Copying 288 store paths... (finished: Copying profile /nix/store/zf5mq1pcxzbxaj3a36kzmn0w4a58wnv1-system-manager to container, in 11.13 seconds) [11.1s] Profile copy complete [16.8s] All containers ready To attach to container ubuntu-22-04-state-v0-v1-migration-deactivate run on the same machine that runs the test: sudo nsenter --target 55 --mount --uts --ipc --net --pid --cgroup -- /usr/bin/env PATH=/run/current-system/sw/bin:/nix/var/nix/profiles/default/bin:/usr/sbin:/sbin:/usr/bin:/bin:/usr/local/sbin:/usr/local/bin /bin/bash ubuntu-22-04-state-v0-v1-migration-deactivate: waiting for unit 'multi-user.target' (finished: waiting for unit 'multi-user.target', in 0.01 seconds) ubuntu-22-04-state-v0-v1-migration-deactivate: must succeed: /nix/store/qmzarxqkwsa41mvczirknnr2xd8dm588-system-manager/bin/activate (finished: must succeed: /nix/store/qmzarxqkwsa41mvczirknnr2xd8dm588-system-manager/bin/activate, in 0.53 seconds) ubuntu-22-04-state-v0-v1-migration-deactivate: waiting for unit 'system-manager.target' (finished: waiting for unit 'system-manager.target', in 0.02 seconds) subtest: Verify correct files are created (finished: subtest: Verify correct files are created, in 0.07 seconds) ubuntu-22-04-state-v0-v1-migration-deactivate: must succeed: /nix/store/qmzarxqkwsa41mvczirknnr2xd8dm588-system-manager/bin/activate (finished: must succeed: /nix/store/qmzarxqkwsa41mvczirknnr2xd8dm588-system-manager/bin/activate, in 0.27 seconds) ubuntu-22-04-state-v0-v1-migration-deactivate: must succeed: /nix/store/zf5mq1pcxzbxaj3a36kzmn0w4a58wnv1-system-manager/bin/deactivate (finished: must succeed: /nix/store/zf5mq1pcxzbxaj3a36kzmn0w4a58wnv1-system-manager/bin/deactivate, in 0.33 seconds) subtest: v1 deactivation restores the backups from a v0 generated state ubuntu-22-04-state-v0-v1-migration-deactivate: must succeed: test -f /etc/b/bar (finished: must succeed: test -f /etc/b/bar, in 0.01 seconds) ubuntu-22-04-state-v0-v1-migration-deactivate: must succeed: test -f /etc/b/link (finished: must succeed: test -f /etc/b/link, in 0.00 seconds) (finished: subtest: v1 deactivation restores the backups from a v0 generated state, in 0.04 seconds)