[lxc-users] overlayfs error after upgrade to vivid

david.andel at bli.uzh.ch david.andel at bli.uzh.ch
Fri May 1 09:35:03 UTC 2015


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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linuxcontainers.org/pipermail/lxc-users/attachments/20150501/86775f4b/attachment.html>


More information about the lxc-users mailing list