** Description changed:
- .
+ 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 figure 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.
** Description changed:
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.
+ 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 figure there might be more such files.
+ 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.
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1591124
Title:
LXC: Cannot create a container with the specific alias "tasks"
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/open-iscsi/+bug/1591124/+subscriptions
--
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs