Public bug reported: Container host and container are running DISTRIB_ID=Ubuntu DISTRIB_RELEASE=16.04 DISTRIB_CODENAME=xenial DISTRIB_DESCRIPTION="Ubuntu 16.04 LTS"
LXD 2.0.2 ZFS When apt-get update/upgrade is issued in the container followed by a reboot Container doesn't start and its rootfs dissapears Name: cont-ubuntu-xen2 Architecture: x86_64 Created: 2016/06/29 23:08 UTC Status: Stopped Type: persistent Profiles: default Log: lxc 20160909090243.569 INFO lxc_start - start.c:lxc_check_inherited:251 - closed inherited fd 3 lxc 20160909090243.569 INFO lxc_start - start.c:lxc_check_inherited:251 - closed inherited fd 9 lxc 20160909090243.572 INFO lxc_container - lxccontainer.c:do_lxcapi_start:797 - Attempting to set proc title to [lxc monitor] /var/lib/lxd/containers cont-ubuntu-xen2 lxc 20160909090243.573 INFO lxc_start - start.c:lxc_check_inherited:251 - closed inherited fd 9 lxc 20160909090243.573 INFO lxc_lsm - lsm/lsm.c:lsm_init:48 - LSM security driver AppArmor lxc 20160909090243.573 INFO lxc_seccomp - seccomp.c:parse_config_v2:342 - processing: .reject_force_umount # comment this to allow umount -f; not recommended. lxc 20160909090243.573 INFO lxc_seccomp - seccomp.c:parse_config_v2:446 - Adding native rule for reject_force_umount action 0 lxc 20160909090243.573 INFO lxc_seccomp - seccomp.c:do_resolve_add_rule:216 - Setting seccomp rule to reject force umounts lxc 20160909090243.573 INFO lxc_seccomp - seccomp.c:parse_config_v2:449 - Adding compat rule for reject_force_umount action 0 lxc 20160909090243.573 INFO lxc_seccomp - seccomp.c:do_resolve_add_rule:216 - Setting seccomp rule to reject force umounts lxc 20160909090243.573 INFO lxc_seccomp - seccomp.c:parse_config_v2:342 - processing: .[all]. lxc 20160909090243.573 INFO lxc_seccomp - seccomp.c:parse_config_v2:342 - processing: .kexec_load errno 1. lxc 20160909090243.573 INFO lxc_seccomp - seccomp.c:parse_config_v2:446 - Adding native rule for kexec_load action 327681 lxc 20160909090243.573 INFO lxc_seccomp - seccomp.c:parse_config_v2:449 - Adding compat rule for kexec_load action 327681 lxc 20160909090243.573 INFO lxc_seccomp - seccomp.c:parse_config_v2:342 - processing: .open_by_handle_at errno 1. lxc 20160909090243.573 INFO lxc_seccomp - seccomp.c:parse_config_v2:446 - Adding native rule for open_by_handle_at action 327681 lxc 20160909090243.573 INFO lxc_seccomp - seccomp.c:parse_config_v2:449 - Adding compat rule for open_by_handle_at action 327681 lxc 20160909090243.573 INFO lxc_seccomp - seccomp.c:parse_config_v2:342 - processing: .init_module errno 1. lxc 20160909090243.573 INFO lxc_seccomp - seccomp.c:parse_config_v2:446 - Adding native rule for init_module action 327681 lxc 20160909090243.573 INFO lxc_seccomp - seccomp.c:parse_config_v2:449 - Adding compat rule for init_module action 327681 lxc 20160909090243.573 INFO lxc_seccomp - seccomp.c:parse_config_v2:342 - processing: .finit_module errno 1. lxc 20160909090243.573 INFO lxc_seccomp - seccomp.c:parse_config_v2:446 - Adding native rule for finit_module action 327681 lxc 20160909090243.573 INFO lxc_seccomp - seccomp.c:parse_config_v2:449 - Adding compat rule for finit_module action 327681 lxc 20160909090243.574 INFO lxc_seccomp - seccomp.c:parse_config_v2:342 - processing: .delete_module errno 1. lxc 20160909090243.574 INFO lxc_seccomp - seccomp.c:parse_config_v2:446 - Adding native rule for delete_module action 327681 lxc 20160909090243.574 INFO lxc_seccomp - seccomp.c:parse_config_v2:449 - Adding compat rule for delete_module action 327681 lxc 20160909090243.574 INFO lxc_seccomp - seccomp.c:parse_config_v2:456 - Merging in the compat seccomp ctx into the main one lxc 20160909090243.574 INFO lxc_conf - conf.c:run_script_argv:367 - Executing script '/usr/bin/lxd callhook /var/lib/lxd 2 start' for container 'cont-ubuntu-xen2', config section 'lxc' lxc 20160909090243.574 INFO lxc_start - start.c:lxc_check_inherited:251 - closed inherited fd 3 lxc 20160909090243.574 INFO lxc_start - start.c:lxc_check_inherited:251 - closed inherited fd 9 lxc 20160909090243.577 INFO lxc_monitor - monitor.c:lxc_monitor_sock_name:178 - using monitor sock name lxc/d78a9d7e97b4b375//var/lib/lxd/containers lxc 20160909090243.611 DEBUG lxc_start - start.c:setup_signal_fd:289 - sigchild handler set lxc 20160909090243.612 DEBUG lxc_console - console.c:lxc_console_peer_default:469 - no console peer lxc 20160909090243.612 INFO lxc_start - start.c:lxc_init:488 - 'cont-ubuntu-xen2' is initialized lxc 20160909090243.612 DEBUG lxc_start - start.c:__lxc_start:1326 - Not dropping cap_sys_boot or watching utmp lxc 20160909090243.612 INFO lxc_start - start.c:resolve_clone_flags:1013 - Cloning a new user namespace lxc 20160909090243.617 DEBUG lxc_conf - conf.c:instantiate_veth:2614 - instantiated veth 'vethX90L3O/vethBUWU52', index is '215' lxc 20160909090243.617 INFO lxc_cgroup - cgroup.c:cgroup_init:68 - cgroup driver cgroupfs-ng initing for cont-ubuntu-xen2 lxc 20160909090243.621 INFO lxc_confile - confile.c:config_idmap:1500 - read uid map: type u nsid 0 hostid 100000 range 65536 lxc 20160909090243.621 INFO lxc_confile - confile.c:config_idmap:1500 - read uid map: type g nsid 0 hostid 100000 range 65536 lxc 20160909090243.706 DEBUG lxc_conf - conf.c:lxc_assign_network:3048 - move 'eth0' to '105619' lxc 20160909090243.707 NOTICE lxc_start - start.c:do_start:777 - switching to gid/uid 0/0 in new user namespace lxc 20160909090243.707 ERROR lxc_conf - conf.c:mount_rootfs:807 - No such file or directory - failed to get real path for '/var/lib/lxd/containers/cont-ubuntu-xen2/rootfs' lxc 20160909090243.707 ERROR lxc_conf - conf.c:setup_rootfs:1221 - failed to mount rootfs lxc 20160909090243.707 ERROR lxc_conf - conf.c:do_rootfs_setup:3612 - failed to setup rootfs for 'cont-ubuntu-xen2' lxc 20160909090243.707 ERROR lxc_conf - conf.c:lxc_setup:3694 - Error setting up rootfs mount after spawn lxc 20160909090243.707 ERROR lxc_start - start.c:do_start:833 - failed to setup the container lxc 20160909090243.707 ERROR lxc_sync - sync.c:__sync_wait:57 - An error occurred in another process (expected sequence number 3) lxc 20160909090243.707 WARN lxc_conf - conf.c:lxc_delete_network:2909 - failed to remove interface 215 'eth0' lxc 20160909090243.707 ERROR lxc_start - start.c:__lxc_start:1353 - failed to spawn 'cont-ubuntu-xen2' lxc 20160909090243.742 INFO lxc_conf - conf.c:run_script_argv:367 - Executing script '/usr/share/lxcfs/lxc.reboot.hook' for container 'cont-ubuntu-xen2', config section 'lxc' lxc 20160909090244.245 INFO lxc_conf - conf.c:run_script_argv:367 - Executing script '/usr/bin/lxd callhook /var/lib/lxd 2 stop' for container 'cont-ubuntu-xen2', config section 'lxc' lxc 20160909090244.377 WARN lxc_commands - commands.c:lxc_cmd_rsp_recv:172 - command get_cgroup failed to receive response lxc 20160909090244.377 WARN lxc_commands - commands.c:lxc_cmd_rsp_recv:172 - command get_cgroup failed to receive response lxc 20160909090244.424 INFO lxc_confile - confile.c:config_idmap:1500 - read uid map: type u nsid 0 hostid 100000 range 65536 lxc 20160909090244.424 INFO lxc_confile - confile.c:config_idmap:1500 - read uid map: type g nsid 0 hostid 100000 range 65536 lxc 20160909090303.487 INFO lxc_confile - confile.c:config_idmap:1500 - read uid map: type u nsid 0 hostid 100000 range 65536 lxc 20160909090303.487 INFO lxc_confile - confile.c:config_idmap:1500 - read uid map: type g nsid 0 hostid 100000 range 65536 lxc 20160909090303.498 INFO lxc_confile - confile.c:config_idmap:1500 - read uid map: type u nsid 0 hostid 100000 range 65536 lxc 20160909090303.498 INFO lxc_confile - confile.c:config_idmap:1500 - read uid map: type g nsid 0 hostid 100000 range 65536 The underlying storage appears fineNAME SIZE ALLOC FREE EXPANDSZ FRAG CAP DEDUP HEALTH ALTROOT lxd 556G 36.0G 520G - 37% 6% 1.00x ONLINE - Cheers Craig ** Affects: lxd (Ubuntu) Importance: Undecided Status: New -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1621638 Title: Lxd deletes container after container update and reboot To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/lxd/+bug/1621638/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs