template 'none' doesn't work with lxc-create
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
lxc (Ubuntu) |
Fix Released
|
Medium
|
Unassigned | ||
Vivid |
Fix Released
|
Undecided
|
Unassigned | ||
Wily |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Hi,
The man page lxc-create(1) says that with the '-t' option to specify a template '"none" can be used to force lxc-create to skip rootfs creation'. This does not appear to work.
root@somehost:
lxc_container: lxccontainer.c: get_template_path: 867 No such file or directory - bad template: none
lxc_container: lxccontainer.c: lxcapi_create: 1264 bad template: none
lxc_container: lxc_create.c: main: 271 Error creating container test.lol
There is no template in the templates dir corresponding to the 'none' template. I've looked through the upstream tarballs from releases 0.5.0, 0.6.0, ... , 1.0.0, 1.1.0, and there is no 'none' template in any. Might be just a documentation mistake, I guess. Could be a missing template, or maybe 'none' has a special meaning to the lxc-create binary; I haven't looked yet.
I'll dig a little further.
I'm using lxc 1.0.7-0ubuntu0.1 on Ubuntu 14.04 .
thanks,
Kevin
ProblemType: Bug
DistroRelease: Ubuntu 15.04
Package: lxc 1.1.2-0ubuntu3
ProcVersionSign
Uname: Linux 3.19.0-18-generic x86_64
ApportVersion: 2.17.2-0ubuntu1.1
Architecture: amd64
CurrentDesktop: GNOME
Date: Thu Jun 18 11:56:34 2015
InstallationDate: Installed on 2012-01-13 (1251 days ago)
InstallationMedia: Kubuntu 11.10 "Oneiric Ocelot" - Release amd64 (20111012)
SourcePackage: lxc
UpgradeStatus: Upgraded to vivid on 2015-05-14 (34 days ago)
defaults.conf:
lxc.network.type = veth
lxc.network.link = lxcbr0
lxc.network.flags = up
lxc.network.hwaddr = 00:16:3e:xx:xx:xx
lxcsyslog:
Changed in lxc (Ubuntu): | |
importance: | Undecided → Medium |
status: | New → Triaged |
tags: |
added: verification-done removed: verification-needed |
That stuff after my signature might be misleading. The host I'm working on, my desktop, is indeed running ubuntu 15.04, with lxc 1.1.2-0ubuntu3. The host I discovered the problem on is definitely running ubuntu 14.04 with lxc 1.0.7 .
Testing on my desktop, lxc-create fails but with a less verbose error message:
$ sudo lxc-create -n test.lol -t none
[sudo] password for user:
lxc_container: lxc_create.c: main: 274 Error creating container test.lol
I've had a look through the source code for lxc-create, and 'none' doesn't appear to have special meaning, so lxc-create probably looks for an lxc-none template in the template dir.