[Bug 1267367] [NEW] lxc-create shouldn't create container when template is called with --help argument
Jean-Baptiste Lallement
jean-baptiste.lallement at ubuntu.com
Thu Jan 9 08:25:15 UTC 2014
Public bug reported:
When option --help is passed as template argument, lxc-create creates
the base directory structure of the container. Then next call to lxc-
create with the same name will fail because the container already
exists.
TEST CASE:
1. $ sudo lxc-create -n test--help -t ubuntu -- -h
[...]
output of lxc-ubuntu -h
[...]
$ sudo lxc-create -n test--help -t ubuntu -- -a amd64
Container already exists
EXPECTED RESULT
Container is not created and another call to lxc-create with the same name can be executed.
ProblemType: Bug
DistroRelease: Ubuntu 14.04
Package: lxc 1.0.0~beta1-0ubuntu3
ProcVersionSignature: Ubuntu 3.12.0-7.15-generic 3.12.4
Uname: Linux 3.12.0-7-generic x86_64
ApportVersion: 2.12.7-0ubuntu6
Architecture: amd64
CurrentDesktop: Unity
Date: Thu Jan 9 09:19:01 2014
SourcePackage: lxc
UpgradeStatus: Upgraded to trusty on 2012-01-31 (708 days ago)
defaults.conf:
lxc.network.type = veth
lxc.network.link = lxcbr0
lxc.network.flags = up
** Affects: lxc (Ubuntu)
Importance: Undecided
Status: New
** Tags: amd64 apparmor apport-bug trusty
** Description changed:
When option --help is passed as template argument, lxc-create creates
the base directory structure of the container. Then next call to lxc-
create with the same name will fail because the container already
exists.
TEST CASE:
1. $ sudo lxc-create -n test--help -t ubuntu -- -h
[...]
output of lxc-ubuntu -h
[...]
$ sudo lxc-create -n test--help -t ubuntu -- -a amd64
Container already exists
EXPECTED RESULT
- Container is not create and another call to lxc-create with the same name can be executed.
+ Container is not created and another call to lxc-create with the same name can be executed.
ProblemType: Bug
DistroRelease: Ubuntu 14.04
Package: lxc 1.0.0~beta1-0ubuntu3
ProcVersionSignature: Ubuntu 3.12.0-7.15-generic 3.12.4
Uname: Linux 3.12.0-7-generic x86_64
ApportVersion: 2.12.7-0ubuntu6
Architecture: amd64
CurrentDesktop: Unity
Date: Thu Jan 9 09:19:01 2014
SourcePackage: lxc
UpgradeStatus: Upgraded to trusty on 2012-01-31 (708 days ago)
defaults.conf:
- lxc.network.type = veth
- lxc.network.link = lxcbr0
- lxc.network.flags = up
+ lxc.network.type = veth
+ lxc.network.link = lxcbr0
+ lxc.network.flags = up
--
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to lxc in Ubuntu.
https://bugs.launchpad.net/bugs/1267367
Title:
lxc-create shouldn't create container when template is called with
--help argument
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/lxc/+bug/1267367/+subscriptions
More information about the Ubuntu-server-bugs
mailing list