[lxc-users] Upgrading from 1.0.9 to 2.0.7

Moritz Bleibtrue morritzbool at gmail.com
Thu Jun 8 17:40:29 UTC 2017


Hello,

I'm currently on Ubuntu 14.04 with 4.4 Kernel.
I have tried to upgrade LXC from 1.0.9 to 2.0.7 (ppa:ubuntu-lxc/lxc-lts).
Everything works fine until I'm trying to start some containers.

When executing "lxc-start -n vm -l DEBUG -o log" I got the following
result:

      lxc-start 20170608170553.419 INFO     lxc_start_ui -
tools/lxc_start.c:main:275 - using rcfile /var/lib/lxc/vm/config
      lxc-start 20170608170553.419 WARN     lxc_confile -
confile.c:config_pivotdir:1910 - lxc.pivotdir is ignored.  It will soon
become an error.
      lxc-start 20170608170553.420 DEBUG    lxc_monitor -
monitor.c:lxc_monitord_spawn:309 - Going to wait for pid 2904.
      lxc-start 20170608170553.420 DEBUG    lxc_monitor -
monitor.c:lxc_monitord_spawn:328 - Trying to sync with child process.
      lxc-start 20170608170553.420 INFO     lxc_start -
start.c:lxc_check_inherited:235 - Closed inherited fd: 3.
      lxc-start 20170608170553.420 INFO     lxc_start -
start.c:lxc_check_inherited:235 - Closed inherited fd: 5.
      lxc-start 20170608170553.420 DEBUG    lxc_monitor -
monitor.c:lxc_monitord_spawn:366 - Using pipe file descriptor 6 for
monitord.
      lxc-start 20170608170553.423 DEBUG    lxc_monitor -
monitor.c:lxc_monitord_spawn:343 - Sucessfully synced with child process.
      lxc-start 20170608170553.423 DEBUG    lxc_monitor -
monitor.c:lxc_monitord_spawn:312 - Finished waiting on pid 2904.
      lxc-start 20170608170553.423 INFO     lxc_container -
lxccontainer.c:do_lxcapi_start:804 - Attempting to set proc title to [lxc
monitor] /var/lib/lxc vm
      lxc-start 20170608170553.423 INFO     lxc_start -
start.c:lxc_check_inherited:235 - Closed inherited fd: 3.
      lxc-start 20170608170553.423 INFO     lxc_lsm - lsm/lsm.c:lsm_init:48
- LSM security driver AppArmor
      lxc-start 20170608170553.423 DEBUG    lxc_monitor -
monitor.c:lxc_monitord_spawn:309 - Going to wait for pid 2908.
      lxc-start 20170608170553.424 INFO     lxc_seccomp -
seccomp.c:parse_config_v2:402 - processing: .reject_force_umount  # comment
this to allow umount -f;  not recommended.
      lxc-start 20170608170553.424 INFO     lxc_seccomp -
seccomp.c:parse_config_v2:567 - Adding native rule for reject_force_umount
action 0.
      lxc-start 20170608170553.424 INFO     lxc_seccomp -
seccomp.c:do_resolve_add_rule:251 - Setting Seccomp rule to reject force
umounts.
      lxc-start 20170608170553.424 DEBUG    lxc_monitor -
monitor.c:lxc_monitord_spawn:328 - Trying to sync with child process.
      lxc-start 20170608170553.424 INFO     lxc_seccomp -
seccomp.c:parse_config_v2:570 - Adding compat rule for reject_force_umount
action 0.
      lxc-start 20170608170553.424 INFO     lxc_seccomp -
seccomp.c:do_resolve_add_rule:251 - Setting Seccomp rule to reject force
umounts.
      lxc-start 20170608170553.424 INFO     lxc_seccomp -
seccomp.c:parse_config_v2:402 - processing: .[all].
      lxc-start 20170608170553.424 INFO     lxc_seccomp -
seccomp.c:parse_config_v2:402 - processing: .kexec_load errno 1.
      lxc-start 20170608170553.424 INFO     lxc_seccomp -
seccomp.c:parse_config_v2:567 - Adding native rule for kexec_load action
327681.
      lxc-start 20170608170553.424 INFO     lxc_seccomp -
seccomp.c:parse_config_v2:570 - Adding compat rule for kexec_load action
327681.
      lxc-start 20170608170553.424 INFO     lxc_seccomp -
seccomp.c:parse_config_v2:402 - processing: .open_by_handle_at errno 1.
      lxc-start 20170608170553.424 INFO     lxc_seccomp -
seccomp.c:parse_config_v2:567 - Adding native rule for open_by_handle_at
action 327681.
      lxc-start 20170608170553.424 INFO     lxc_seccomp -
seccomp.c:parse_config_v2:570 - Adding compat rule for open_by_handle_at
action 327681.
      lxc-start 20170608170553.424 INFO     lxc_seccomp -
seccomp.c:parse_config_v2:402 - processing: .init_module errno 1.
      lxc-start 20170608170553.424 INFO     lxc_seccomp -
seccomp.c:parse_config_v2:567 - Adding native rule for init_module action
327681.
      lxc-start 20170608170553.424 INFO     lxc_seccomp -
seccomp.c:parse_config_v2:570 - Adding compat rule for init_module action
327681.
      lxc-start 20170608170553.424 INFO     lxc_seccomp -
seccomp.c:parse_config_v2:402 - processing: .finit_module errno 1.
      lxc-start 20170608170553.424 INFO     lxc_seccomp -
seccomp.c:parse_config_v2:567 - Adding native rule for finit_module action
327681.
      lxc-start 20170608170553.424 INFO     lxc_seccomp -
seccomp.c:parse_config_v2:570 - Adding compat rule for finit_module action
327681.
      lxc-start 20170608170553.424 INFO     lxc_seccomp -
seccomp.c:parse_config_v2:402 - processing: .delete_module errno 1.
      lxc-start 20170608170553.424 INFO     lxc_seccomp -
seccomp.c:parse_config_v2:567 - Adding native rule for delete_module action
327681.
      lxc-start 20170608170553.424 INFO     lxc_seccomp -
seccomp.c:parse_config_v2:570 - Adding compat rule for delete_module action
327681.
      lxc-start 20170608170553.424 INFO     lxc_seccomp -
seccomp.c:parse_config_v2:580 - Merging in the compat Seccomp ctx into the
main one.
      lxc-start 20170608170553.424 DEBUG    lxc_start -
start.c:setup_signal_fd:273 - Set SIGCHLD handler with file descriptor: 5.
      lxc-start 20170608170553.424 INFO     lxc_start -
start.c:lxc_check_inherited:235 - Closed inherited fd: 3.
      lxc-start 20170608170553.424 INFO     lxc_start -
start.c:lxc_check_inherited:235 - Closed inherited fd: 5.
      lxc-start 20170608170553.424 DEBUG    lxc_monitor -
monitor.c:lxc_monitord_spawn:366 - Using pipe file descriptor 6 for
monitord.
      lxc-start 20170608170553.424 DEBUG    console -
console.c:lxc_console_peer_default:468 - no console peer
      lxc-start 20170608170553.424 INFO     lxc_start -
start.c:lxc_init:475 - Container "vm" is initialized.
      lxc-start 20170608170553.424 DEBUG    lxc_start -
start.c:__lxc_start:1317 - Not dropping CAP_SYS_BOOT or watching utmp.
      lxc-start 20170608170553.425 INFO     lxc_conf -
conf.c:instantiate_veth:2647 - Retrieved mtu 1500 from lxcbr0
      lxc-start 20170608170553.425 INFO     lxc_conf -
conf.c:instantiate_veth:2672 - Attached 'vethIAFX0M': to the bridge
'lxcbr0':
      lxc-start 20170608170553.425 DEBUG    lxc_conf -
conf.c:instantiate_veth:2689 - instantiated veth 'vethIAFX0M/vethOBV99S',
index is '17'
      lxc-start 20170608170553.425 INFO     lxc_cgroup -
cgroups/cgroup.c:cgroup_init:68 - cgroup driver cgroupfs initing for vm
      lxc-start 20170608170553.425 ERROR    lxc_cgfs -
cgroups/cgfs.c:lxc_cgroupfs_create:901 - Could not find writable mount
point for cgroup hierarchy 13 while trying to create cgroup.
      lxc-start 20170608170553.426 ERROR    lxc_cgfs -
cgroups/cgfs.c:cgroup_rmdir:209 - Device or resource busy - cgroup_rmdir:
failed to delete /sys/fs/cgroup/dsystemd//system/systemd-journald.service
      lxc-start 20170608170553.426 ERROR    lxc_cgfs -
cgroups/cgfs.c:cgroup_rmdir:209 - Device or resource busy - cgroup_rmdir:
failed to delete /sys/fs/cgroup/dsystemd//system
      lxc-start 20170608170553.426 ERROR    lxc_cgfs -
cgroups/cgfs.c:cgroup_rmdir:209 - Device or resource busy - cgroup_rmdir:
failed to delete /sys/fs/cgroup/dsystemd/
      lxc-start 20170608170553.426 ERROR    lxc_cgfs -
cgroups/cgfs.c:cgroup_rmdir:209 - Device or resource busy - cgroup_rmdir:
failed to delete /sys/fs/cgroup/systemd//user/0.user/c2.session
      lxc-start 20170608170553.426 ERROR    lxc_cgfs -
cgroups/cgfs.c:cgroup_rmdir:209 - Device or resource busy - cgroup_rmdir:
failed to delete /sys/fs/cgroup/systemd//user/0.user
      lxc-start 20170608170553.426 ERROR    lxc_cgfs -
cgroups/cgfs.c:cgroup_rmdir:209 - Device or resource busy - cgroup_rmdir:
failed to delete /sys/fs/cgroup/systemd//user
      lxc-start 20170608170553.426 ERROR    lxc_cgfs -
cgroups/cgfs.c:cgroup_rmdir:209 - Device or resource busy - cgroup_rmdir:
failed to delete /sys/fs/cgroup/systemd/
      lxc-start 20170608170553.426 ERROR    lxc_start -
start.c:lxc_spawn:1108 - Failed creating cgroups.
      lxc-start 20170608170553.426 DEBUG    lxc_monitor -
monitor.c:lxc_monitord_spawn:343 - Sucessfully synced with child process.
      lxc-start 20170608170553.427 DEBUG    lxc_monitor -
monitor.c:lxc_monitord_spawn:312 - Finished waiting on pid 2908.
      lxc-start 20170608170553.427 INFO     lxc_monitor -
monitor.c:lxc_monitor_sock_name:185 - Using monitor socket name
"lxc/ad055575fe28ddd5//var/lib/lxc".
      lxc-start 20170608170553.472 INFO     lxc_conf -
conf.c:lxc_delete_network:3015 - Removed interface "(null)" with index 17.
      lxc-start 20170608170553.473 WARN     lxc_conf -
conf.c:lxc_delete_network:3038 - Failed to remove "vethIAFX0M" from host:
Invalid argument.
      lxc-start 20170608170553.473 ERROR    lxc_start -
start.c:__lxc_start:1346 - Failed to spawn container "vm".
      lxc-start 20170608170553.473 INFO     lxc_conf -
conf.c:run_script_argv:424 - Executing script
"/usr/share/lxcfs/lxc.reboot.hook"
for container "vm", config section "lxc".
      lxc-start 20170608170553.975 WARN     lxc_commands -
commands.c:lxc_cmd_rsp_recv:172 - Command get_cgroup failed to receive
response: Connection reset by peer.
      lxc-start 20170608170558.980 ERROR    lxc_start_ui -
tools/lxc_start.c:main:366 - The container failed to start.
      lxc-start 20170608170558.980 ERROR    lxc_start_ui -
tools/lxc_start.c:main:368 - To get more details, run the container in
foreground mode.
      lxc-start 20170608170558.980 ERROR    lxc_start_ui -
tools/lxc_start.c:main:370 - Additional information can be obtained by
setting the --logfile and --logpriority options.

I think the path for deleting those cgroup directories looks very
suspicious.
Does somebody know what's the problem here?

Appreciate your help!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linuxcontainers.org/pipermail/lxc-users/attachments/20170608/955aeb82/attachment.html>


More information about the lxc-users mailing list