[lxc-users] raw.idmap with multiple entries

Vlad Ciubotariu vlad at oanda.com
Thu Nov 9 18:31:56 UTC 2017


Hi,

I'm running into an issue on LXD 2.0.9  mapping multiple user ids:

Both the following commands achieve the desired effect:

echo -e "both 1002 1002" | lxc config set quants01 raw.idmap -
echo -e "both 2003 2003" | lxc config set quants01 raw.idmap -

However after setting the idmap following

echo -e "both 2003 2003\nboth 1002 1002" | lxc config set quants01
raw.idmap -

the container fails to restart.

thanks for your help
vlad

error: Error calling 'lxd forkstart quants01 /var/lib/lxd/containers
/var/log/lxd/quants01/lxc.conf': err='exit status 1'
  lxc 20171109133025.763 ERROR lxc_cgfsng -
cgroups/cgfsng.c:cgfsng_create:1072 - No such file or directory - Failed to
create /sys/fs/cgroup/cpuset//lxc/quants01: No such file or directory
  lxc 20171109133025.763 ERROR lxc_cgfsng -
cgroups/cgfsng.c:cgfsng_create:1072 - No such file or directory - Failed to
create /sys/fs/cgroup/cpuset//lxc/quants01-1: No such file or directory
  lxc 20171109133025.763 ERROR lxc_cgfsng -
cgroups/cgfsng.c:cgfsng_create:1072 - No such file or directory - Failed to
create /sys/fs/cgroup/cpuset//lxc/quants01-2: No such file or directory
  lxc 20171109133025.763 ERROR lxc_cgfsng -
cgroups/cgfsng.c:cgfsng_create:1072 - No such file or directory - Failed to
create /sys/fs/cgroup/cpuset//lxc/quants01-3: No such file or directory
  lxc 20171109133025.763 ERROR lxc_cgfsng -
cgroups/cgfsng.c:cgfsng_create:1072 - No such file or directory - Failed to
create /sys/fs/cgroup/cpuset//lxc/quants01-4: No such file or directory
  lxc 20171109133025.763 ERROR lxc_cgfsng -
cgroups/cgfsng.c:cgfsng_create:1072 - No such file or directory - Failed to
create /sys/fs/cgroup/cpuset//lxc/quants01-5: No such file or directory
  lxc 20171109133025.763 ERROR lxc_cgfsng -
cgroups/cgfsng.c:cgfsng_create:1072 - No such file or directory - Failed to
create /sys/fs/cgroup/cpuset//lxc/quants01-6: No such file or directory
  lxc 20171109133025.763 ERROR lxc_cgfsng -
cgroups/cgfsng.c:cgfsng_create:1072 - No such file or directory - Failed to
create /sys/fs/cgroup/cpuset//lxc/quants01-7: No such file or directory
  lxc 20171109133025.763 ERROR lxc_cgfsng -
cgroups/cgfsng.c:cgfsng_create:1072 - No such file or directory - Failed to
create /sys/fs/cgroup/cpuset//lxc/quants01-8: No such file or directory
  lxc 20171109133025.763 ERROR lxc_cgfsng -
cgroups/cgfsng.c:cgfsng_create:1072 - No such file or directory - Failed to
create /sys/fs/cgroup/cpuset//lxc/quants01-9: No such file or directory
  lxc 20171109133025.763 ERROR lxc_cgfsng -
cgroups/cgfsng.c:cgfsng_create:1072 - No such file or directory - Failed to
create /sys/fs/cgroup/cpuset//lxc/quants01-10: No such file or directory
  lxc 20171109133025.763 ERROR lxc_cgfsng -
cgroups/cgfsng.c:cgfsng_create:1072 - No such file or directory - Failed to
create /sys/fs/cgroup/cpuset//lxc/quants01-11: No such file or directory
  lxc 20171109133025.763 ERROR lxc_cgfsng -
cgroups/cgfsng.c:cgfsng_create:1072 - No such file or directory - Failed to
create /sys/fs/cgroup/cpuset//lxc/quants01-12: No such file or directory
  lxc 20171109133025.763 ERROR lxc_cgfsng -
cgroups/cgfsng.c:cgfsng_create:1072 - No such file or directory - Failed to
create /sys/fs/cgroup/cpuset//lxc/quants01-13: No such file or directory
  lxc 20171109133025.763 ERROR lxc_cgfsng -
cgroups/cgfsng.c:cgfsng_create:1072 - No such file or directory - Failed to
create /sys/fs/cgroup/cpuset//lxc/quants01-14: No such file or directory
  lxc 20171109133025.763 ERROR lxc_cgfsng -
cgroups/cgfsng.c:cgfsng_create:1072 - No such file or directory - Failed to
create /sys/fs/cgroup/cpuset//lxc/quants01-15: No such file or directory
  lxc 20171109133025.763 ERROR lxc_cgfsng -
cgroups/cgfsng.c:cgfsng_create:1072 - No such file or directory - Failed to
create /sys/fs/cgroup/cpuset//lxc/quants01-16: No such file or directory
  lxc 20171109133025.763 ERROR lxc_cgfsng -
cgroups/cgfsng.c:cgfsng_create:1072 - No such file or directory - Failed to
create /sys/fs/cgroup/cpuset//lxc/quants01-17: No such file or directory
  lxc 20171109133025.763 ERROR lxc_cgfsng -
cgroups/cgfsng.c:cgfsng_create:1072 - No such file or directory - Failed to
create /sys/fs/cgroup/cpuset//lxc/quants01-18: No such file or directory
  lxc 20171109133025.763 ERROR lxc_cgfsng -
cgroups/cgfsng.c:cgfsng_create:1072 - No such file or directory - Failed to
create /sys/fs/cgroup/cpuset//lxc/quants01-19: No such file or directory
  lxc 20171109133025.786 ERROR lxc_conf - conf.c:userns_exec_1:4334 - Error
setting up child mappings
  lxc 20171109133025.786 ERROR lxc_cgfsng -
cgroups/cgfsng.c:cgfsns_chown:1194 - Error requesting cgroup chown in new
namespace
  lxc 20171109133025.813 ERROR lxc_start - start.c:__lxc_start:1354 -
failed to spawn 'quants01'
  lxc 20171109133026.387 ERROR lxc_conf - conf.c:run_buffer:347 - Script
exited with status 1
  lxc 20171109133026.387 ERROR lxc_start - start.c:lxc_fini:555 - failed to
run post-stop hooks for container 'quants01'.
  lxc 20171109133026.390 ERROR lxc_conf - conf.c:userns_exec_1:4334 - Error
setting up child mappings
  lxc 20171109133026.390 ERROR lxc_cgfsng -
cgroups/cgfsng.c:recursive_destroy:983 - Error destroying
/sys/fs/cgroup/cpuset//lxc/quants01-20
  lxc 20171109133026.392 ERROR lxc_conf - conf.c:userns_exec_1:4334 - Error
setting up child mappings
  lxc 20171109133026.392 ERROR lxc_cgfsng -
cgroups/cgfsng.c:recursive_destroy:983 - Error destroying
/sys/fs/cgroup/cpu//lxc/quants01-20
  lxc 20171109133026.395 ERROR lxc_conf - conf.c:userns_exec_1:4334 - Error
setting up child mappings
  lxc 20171109133026.395 ERROR lxc_cgfsng -
cgroups/cgfsng.c:recursive_destroy:983 - Error destroying
/sys/fs/cgroup/cpuacct//lxc/quants01-20
  lxc 20171109133026.398 ERROR lxc_conf - conf.c:userns_exec_1:4334 - Error
setting up child mappings
  lxc 20171109133026.398 ERROR lxc_cgfsng -
cgroups/cgfsng.c:recursive_destroy:983 - Error destroying
/sys/fs/cgroup/blkio//lxc/quants01-20
  lxc 20171109133026.401 ERROR lxc_conf - conf.c:userns_exec_1:4334 - Error
setting up child mappings
  lxc 20171109133026.401 ERROR lxc_cgfsng -
cgroups/cgfsng.c:recursive_destroy:983 - Error destroying
/sys/fs/cgroup/memory//lxc/quants01-20
  lxc 20171109133026.404 ERROR lxc_conf - conf.c:userns_exec_1:4334 - Error
setting up child mappings
  lxc 20171109133026.404 ERROR lxc_cgfsng -
cgroups/cgfsng.c:recursive_destroy:983 - Error destroying
/sys/fs/cgroup/devices//lxc/quants01-20
  lxc 20171109133026.406 ERROR lxc_conf - conf.c:userns_exec_1:4334 - Error
setting up child mappings
  lxc 20171109133026.406 ERROR lxc_cgfsng -
cgroups/cgfsng.c:recursive_destroy:983 - Error destroying
/sys/fs/cgroup/freezer//lxc/quants01-20
  lxc 20171109133026.409 ERROR lxc_conf - conf.c:userns_exec_1:4334 - Error
setting up child mappings
  lxc 20171109133026.409 ERROR lxc_cgfsng -
cgroups/cgfsng.c:recursive_destroy:983 - Error destroying
/sys/fs/cgroup/net_cls//lxc/quants01-20
  lxc 20171109133026.412 ERROR lxc_conf - conf.c:userns_exec_1:4334 - Error
setting up child mappings
  lxc 20171109133026.412 ERROR lxc_cgfsng -
cgroups/cgfsng.c:recursive_destroy:983 - Error destroying
/sys/fs/cgroup/perf_event//lxc/quants01-20
  lxc 20171109133026.414 ERROR lxc_conf - conf.c:userns_exec_1:4334 - Error
setting up child mappings
  lxc 20171109133026.414 ERROR lxc_cgfsng -
cgroups/cgfsng.c:recursive_destroy:983 - Error destroying
/sys/fs/cgroup/net_prio//lxc/quants01-20
  lxc 20171109133026.417 ERROR lxc_conf - conf.c:userns_exec_1:4334 - Error
setting up child mappings
  lxc 20171109133026.417 ERROR lxc_cgfsng -
cgroups/cgfsng.c:recursive_destroy:983 - Error destroying
/sys/fs/cgroup/hugetlb//lxc/quants01-20
  lxc 20171109133026.419 ERROR lxc_conf - conf.c:userns_exec_1:4334 - Error
setting up child mappings
  lxc 20171109133026.419 ERROR lxc_cgfsng -
cgroups/cgfsng.c:recursive_destroy:983 - Error destroying
/sys/fs/cgroup/systemd//lxc/quants01-20
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linuxcontainers.org/pipermail/lxc-users/attachments/20171109/fefbe75c/attachment.html>


More information about the lxc-users mailing list