[lxc-users] overlayfs error after upgrade to vivid

Serge Hallyn serge.hallyn at ubuntu.com
Fri May 1 10:15:41 UTC 2015


D'oh.  Confirmed.  To work around this, please do

sudo mkdir /var/lib/lxc/ro_nginx/olwork

lxc should obvoiusly do this on its own.  I hadn't noticed because normally
lxc-create does it, but you have a preexisting container.

-serge

Quoting david.andel at bli.uzh.ch (david.andel at bli.uzh.ch):
> Hi
> 
> After upgrade to vivid I cannot start my (privileged) containers based on overlayfs snapshots.
> 
> The interesting lines I get in the log are: 
>       lxc-start 1430327863.828 INFO     bdev - bdev.c:overlayfs_mount:2247 - overlayfs: error mounting /var/lib/lxc/ro_nginx/rootfs onto /usr/lib/x86_64-linux-gnu/lxc options upperdir=/var/lib/lxc/s0_nginx/delta0,lowerdir=/var/lib/lxc/ro_nginx/rootfs. retry with workdir
>       lxc-start 1430327863.829 ERROR    bdev - bdev.c:overlayfs_mount:2253 - Invalid argument - overlayfs: error mounting /var/lib/lxc/ro_nginx/rootfs onto /usr/lib/x86_64-linux-gnu/lxc options upperdir=/var/lib/lxc/s0_nginx/delta0,lowerdir=/var/lib/lxc/ro_nginx/rootfs,workdir=/var/lib/lxc/s0_nginx/olwork
> 
> s0_nginx is the overlayfs snapshot on top of the directory based ro_nginx.
> 
> Is this due to the changes of overlayfs in kernel 3.19 or something else?
> How can I fix this?
> 
> Thanks!
> 
> Find below the full log: 
>       lxc-start 1430327863.767 INFO     lxc_start_ui - lxc_start.c:main:264 - using rcfile /var/lib/lxc/s0_nginx/config
>       lxc-start 1430327863.769 WARN     lxc_confile - confile.c:config_pivotdir:1768 - lxc.pivotdir is ignored.  It will soon become an error.
>       lxc-start 1430327863.769 WARN     lxc_log - log.c:lxc_log_init:316 - lxc_log_init called with log already initialized
>       lxc-start 1430327863.769 WARN     lxc_cgfs - cgfs.c:lxc_cgroup_get_container_info:1100 - Not attaching to cgroup cpu unknown to /var/lib/lxc s0_nginx
>       lxc-start 1430327863.769 WARN     lxc_cgfs - cgfs.c:lxc_cgroup_get_container_info:1100 - Not attaching to cgroup cpuset unknown to /var/lib/lxc s0_nginx
>       lxc-start 1430327863.769 WARN     lxc_cgfs - cgfs.c:lxc_cgroup_get_container_info:1100 - Not attaching to cgroup devices unknown to /var/lib/lxc s0_nginx
>       lxc-start 1430327863.769 WARN     lxc_cgfs - cgfs.c:lxc_cgroup_get_container_info:1100 - Not attaching to cgroup hugetlb unknown to /var/lib/lxc s0_nginx
>       lxc-start 1430327863.769 WARN     lxc_cgfs - cgfs.c:lxc_cgroup_get_container_info:1100 - Not attaching to cgroup net_cls unknown to /var/lib/lxc s0_nginx
>       lxc-start 1430327863.769 WARN     lxc_cgfs - cgfs.c:lxc_cgroup_get_container_info:1100 - Not attaching to cgroup memory unknown to /var/lib/lxc s0_nginx
>       lxc-start 1430327863.769 WARN     lxc_cgfs - cgfs.c:lxc_cgroup_get_container_info:1100 - Not attaching to cgroup perf_event unknown to /var/lib/lxc s0_nginx
>       lxc-start 1430327863.769 WARN     lxc_cgfs - cgfs.c:lxc_cgroup_get_container_info:1100 - Not attaching to cgroup freezer unknown to /var/lib/lxc s0_nginx
>       lxc-start 1430327863.769 WARN     lxc_cgfs - cgfs.c:lxc_cgroup_get_container_info:1100 - Not attaching to cgroup blkio unknown to /var/lib/lxc s0_nginx
>       lxc-start 1430327863.770 INFO     lxc_start - start.c:lxc_check_inherited:221 - closed inherited fd 4
>       lxc-start 1430327863.774 INFO     lxc_container - lxccontainer.c:lxcapi_start:627 - Attempting to set proc title to [lxc monitor] /var/lib/lxc s0_nginx
>       lxc-start 1430327863.775 INFO     lxc_lsm - lsm/lsm.c:lsm_init:48 - LSM security driver AppArmor
>       lxc-start 1430327863.775 DEBUG    lxc_start - start.c:setup_signal_fd:259 - sigchild handler set
>       lxc-start 1430327863.776 DEBUG    lxc_console - console.c:lxc_console_peer_default:536 - no console peer
>       lxc-start 1430327863.776 INFO     lxc_start - start.c:lxc_init:451 - 's0_nginx' is initialized
>       lxc-start 1430327863.776 DEBUG    lxc_start - start.c:__lxc_start:1137 - Not dropping cap_sys_boot or watching utmp
>       lxc-start 1430327863.777 INFO     lxc_start - start.c:lxc_check_inherited:221 - closed inherited fd 4
>       lxc-start 1430327863.780 INFO     lxc_monitor - monitor.c:lxc_monitor_sock_name:177 - using monitor sock name lxc/ad055575fe28ddd5//var/lib/lxc
>       lxc-start 1430327863.782 DEBUG    lxc_conf - conf.c:instantiate_veth:2685 - instantiated veth 'vethJC8PCI/veth8A7PLH', index is '12'
>       lxc-start 1430327863.782 INFO     lxc_cgroup - cgroup.c:cgroup_init:65 - cgroup driver cgroupfs initing for s0_nginx
>       lxc-start 1430327863.785 DEBUG    lxc_cgfs - cgfs.c:do_setup_cgroup_limits:1913 - cgroup 'devices.deny' set to 'a'
>       lxc-start 1430327863.785 DEBUG    lxc_cgfs - cgfs.c:do_setup_cgroup_limits:1913 - cgroup 'devices.allow' set to 'c *:* m'
>       lxc-start 1430327863.785 DEBUG    lxc_cgfs - cgfs.c:do_setup_cgroup_limits:1913 - cgroup 'devices.allow' set to 'b *:* m'
>       lxc-start 1430327863.785 DEBUG    lxc_cgfs - cgfs.c:do_setup_cgroup_limits:1913 - cgroup 'devices.allow' set to 'c 1:3 rwm'
>       lxc-start 1430327863.785 DEBUG    lxc_cgfs - cgfs.c:do_setup_cgroup_limits:1913 - cgroup 'devices.allow' set to 'c 1:5 rwm'
>       lxc-start 1430327863.785 DEBUG    lxc_cgfs - cgfs.c:do_setup_cgroup_limits:1913 - cgroup 'devices.allow' set to 'c 5:1 rwm'
>       lxc-start 1430327863.785 DEBUG    lxc_cgfs - cgfs.c:do_setup_cgroup_limits:1913 - cgroup 'devices.allow' set to 'c 5:0 rwm'
>       lxc-start 1430327863.785 DEBUG    lxc_cgfs - cgfs.c:do_setup_cgroup_limits:1913 - cgroup 'devices.allow' set to 'c 1:9 rwm'
>       lxc-start 1430327863.785 DEBUG    lxc_cgfs - cgfs.c:do_setup_cgroup_limits:1913 - cgroup 'devices.allow' set to 'c 1:8 rwm'
>       lxc-start 1430327863.785 DEBUG    lxc_cgfs - cgfs.c:do_setup_cgroup_limits:1913 - cgroup 'devices.allow' set to 'c 136:* rwm'
>       lxc-start 1430327863.785 DEBUG    lxc_cgfs - cgfs.c:do_setup_cgroup_limits:1913 - cgroup 'devices.allow' set to 'c 5:2 rwm'
> ????? lxc-start 1430327863.785 DEBUG??? lxc_cgfs - cgfs.c:do_setup_cgroup_limits:1913 - cgroup 'devices.allow' set to 'c 254:0 rm'
> ????? lxc-start 1430327863.785 DEBUG??? lxc_cgfs - cgfs.c:do_setup_cgroup_limits:1913 - cgroup 'devices.allow' set to 'c 10:229 rwm'
> ????? lxc-start 1430327863.785 DEBUG??? lxc_cgfs - cgfs.c:do_setup_cgroup_limits:1913 - cgroup 'devices.allow' set to 'c 10:200 rwm'
> ????? lxc-start 1430327863.785 DEBUG??? lxc_cgfs - cgfs.c:do_setup_cgroup_limits:1913 - cgroup 'devices.allow' set to 'c 1:7 rwm'
> ????? lxc-start 1430327863.785 DEBUG??? lxc_cgfs - cgfs.c:do_setup_cgroup_limits:1913 - cgroup 'devices.allow' set to 'c 10:228 rwm'
> ????? lxc-start 1430327863.785 DEBUG??? lxc_cgfs - cgfs.c:do_setup_cgroup_limits:1913 - cgroup 'devices.allow' set to 'c 10:232 rwm'
> ????? lxc-start 1430327863.785 INFO???? lxc_cgfs - cgfs.c:do_setup_cgroup_limits:1917 - cgroup has been setup
> ????? lxc-start 1430327863.825 DEBUG??? lxc_conf - conf.c:lxc_assign_network:3102 - move '(null)' to '4900'
> ????? lxc-start 1430327863.828 INFO???? bdev - bdev.c:overlayfs_mount:2247 - overlayfs: error mounting /var/lib/lxc/ro_nginx/rootfs onto /usr/lib/x86_64-linux-gnu/lxc options upperdir=/var/lib/lxc/s0_nginx/delta0,lowerdir=/var/lib/lxc/ro_nginx/rootfs. retry with workdir
> ????? lxc-start 1430327863.829 ERROR??? bdev - bdev.c:overlayfs_mount:2253 - Invalid argument - overlayfs: error mounting /var/lib/lxc/ro_nginx/rootfs onto /usr/lib/x86_64-linux-gnu/lxc options upperdir=/var/lib/lxc/s0_nginx/delta0,lowerdir=/var/lib/lxc/ro_nginx/rootfs,workdir=/var/lib/lxc/s0_nginx/olwork
> ????? lxc-start 1430327863.829 ERROR??? lxc_conf - conf.c:mount_rootfs:872 - No such file or directory - failed to get real path for 'overlayfs:/var/lib/lxc/ro_nginx/rootfs:/var/lib/lxc/s0_nginx/delta0'
> ????? lxc-start 1430327863.829 ERROR??? lxc_conf - conf.c:setup_rootfs:1279 - failed to mount rootfs
> ????? lxc-start 1430327863.829 ERROR??? lxc_conf - conf.c:do_rootfs_setup:3712 - failed to setup rootfs for 's0_nginx'
> ????? lxc-start 1430327863.829 ERROR??? lxc_conf - conf.c:lxc_setup:3794 - Error setting up rootfs mount after spawn
> ????? lxc-start 1430327863.829 ERROR??? lxc_start - start.c:do_start:699 - failed to setup the container
> ????? lxc-start 1430327863.830 ERROR??? lxc_sync - sync.c:__sync_wait:51 - invalid sequence number 1. expected 2
> ????? lxc-start 1430327863.830 WARN???? lxc_conf - conf.c:lxc_delete_network:2978 - failed to remove interface '(null)'
> ????? lxc-start 1430327863.897 ERROR??? lxc_start - start.c:__lxc_start:1164 - failed to spawn 's0_nginx'
> ????? lxc-start 1430327863.899 WARN???? lxc_commands - commands.c:lxc_cmd_rsp_recv:172 - command get_cgroup failed to receive response
> ????? lxc-start 1430327863.899 WARN???? lxc_cgfs - cgfs.c:lxc_cgroup_get_container_info:1100 - Not attaching to cgroup cpu unknown to /var/lib/lxc s0_nginx
> ????? lxc-start 1430327863.899 WARN???? lxc_cgfs - cgfs.c:lxc_cgroup_get_container_info:1100 - Not attaching to cgroup cpuset unknown to /var/lib/lxc s0_nginx
> ????? lxc-start 1430327863.899 WARN???? lxc_cgfs - cgfs.c:lxc_cgroup_get_container_info:1100 - Not attaching to cgroup devices unknown to /var/lib/lxc s0_nginx
> ????? lxc-start 1430327863.899 WARN???? lxc_cgfs - cgfs.c:lxc_cgroup_get_container_info:1100 - Not attaching to cgroup hugetlb unknown to /var/lib/lxc s0_nginx
> ????? lxc-start 1430327863.899 WARN???? lxc_cgfs - cgfs.c:lxc_cgroup_get_container_info:1100 - Not attaching to cgroup net_cls unknown to /var/lib/lxc s0_nginx
> ????? lxc-start 1430327863.899 WARN???? lxc_cgfs - cgfs.c:lxc_cgroup_get_container_info:1100 - Not attaching to cgroup memory unknown to /var/lib/lxc s0_nginx
> ????? lxc-start 1430327863.899 WARN???? lxc_cgfs - cgfs.c:lxc_cgroup_get_container_info:1100 - Not attaching to cgroup perf_event unknown to /var/lib/lxc s0_nginx
> ????? lxc-start 1430327863.899 WARN???? lxc_cgfs - cgfs.c:lxc_cgroup_get_container_info:1100 - Not attaching to cgroup freezer unknown to /var/lib/lxc s0_nginx
> ????? lxc-start 1430327863.899 WARN???? lxc_cgfs - cgfs.c:lxc_cgroup_get_container_info:1100 - Not attaching to cgroup blkio unknown to /var/lib/lxc s0_nginx
> ????? lxc-start 1430327868.901 ERROR??? lxc_start_ui - lxc_start.c:main:344 - The container failed to start.
> ????? lxc-start 1430327868.902 ERROR??? lxc_start_ui - lxc_start.c:main:346 - To get more details, run the container in foreground mode.
> ????? lxc-start 1430327868.902 ERROR??? lxc_start_ui - lxc_start.c:main:348 - Additional information can be obtained by setting the --logfile and --logpriority options.

> _______________________________________________
> lxc-users mailing list
> lxc-users at lists.linuxcontainers.org
> http://lists.linuxcontainers.org/listinfo/lxc-users



More information about the lxc-users mailing list