[Bug 1591124] [NEW] LXC: Cannot create a container with the specific alias "tasks"
Simos Xenitellis
1591124 at bugs.launchpad.net
Fri Jun 10 10:12:54 UTC 2016
Public bug reported:
When trying to launch a container with the specific alias "tasks", it
fails to launch.
$ lxc launch d23ee1f4fd28 tasks
Creating tasks
Starting tasks
error: Error calling 'lxd forkstart tasks /var/lib/lxd/containers /var/log/lxd/tasks/lxc.conf': err='exit status 1'
Try `lxc info --show-log tasks` for more info
Exit 1
The reason is that in /sys/fs/cgroup/systemd/lxc/ there is already a file called "tasks". In that directory, any new containers is created as a new directory that has as a name the alias that we have given.
Since "tasks" is reserved", lxc fails to continue.
Here are the contents of the directory
$ ls -l /sys/fs/cgroup/systemd/lxc/
total 0
drwxrwxr-x 5 root 165536 0 Ιούν 10 12:32 c1
-rw-r--r-- 1 root root 0 Ιούν 10 12:53 cgroup.clone_children
-rw-r--r-- 1 root root 0 Ιούν 10 12:53 cgroup.procs
-rw-r--r-- 1 root root 0 Ιούν 10 12:53 notify_on_release
-rw-r--r-- 1 root root 0 Ιούν 10 12:53 tasks
Currently, there is potential conflict with "tasks" only as the other filenames are invalid hostnames (contain dots or underscores).
Presumably in the future there might be more such files.
Among the solutions,
1. the container directories in /sys/fs/cgroup/systemd/lxc/ should have something like ".lxd" appended to them so that there is no future conflict.
** Affects: open-iscsi (Ubuntu)
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to open-iscsi in Ubuntu.
https://bugs.launchpad.net/bugs/1591124
Title:
LXC: Cannot create a container with the specific alias "tasks"
Status in open-iscsi package in Ubuntu:
New
Bug description:
When trying to launch a container with the specific alias "tasks", it
fails to launch.
$ lxc launch d23ee1f4fd28 tasks
Creating tasks
Starting tasks
error: Error calling 'lxd forkstart tasks /var/lib/lxd/containers /var/log/lxd/tasks/lxc.conf': err='exit status 1'
Try `lxc info --show-log tasks` for more info
Exit 1
The reason is that in /sys/fs/cgroup/systemd/lxc/ there is already a file called "tasks". In that directory, any new containers is created as a new directory that has as a name the alias that we have given.
Since "tasks" is reserved", lxc fails to continue.
Here are the contents of the directory
$ ls -l /sys/fs/cgroup/systemd/lxc/
total 0
drwxrwxr-x 5 root 165536 0 Ιούν 10 12:32 c1
-rw-r--r-- 1 root root 0 Ιούν 10 12:53 cgroup.clone_children
-rw-r--r-- 1 root root 0 Ιούν 10 12:53 cgroup.procs
-rw-r--r-- 1 root root 0 Ιούν 10 12:53 notify_on_release
-rw-r--r-- 1 root root 0 Ιούν 10 12:53 tasks
Currently, there is potential conflict with "tasks" only as the other filenames are invalid hostnames (contain dots or underscores).
Presumably in the future there might be more such files.
Among the solutions,
1. the container directories in /sys/fs/cgroup/systemd/lxc/ should have something like ".lxd" appended to them so that there is no future conflict.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/open-iscsi/+bug/1591124/+subscriptions
More information about the foundations-bugs
mailing list