lxc-create (or clone) of cloud template with '--cloud' exits failure
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
lxc (Ubuntu) |
Fix Released
|
Low
|
Serge Hallyn |
Bug Description
$ sudo lxc-create -n lxc-precise-
ubuntu-
wget is /usr/bin/wget
Extracting container rootfs
lxc-create: container creation template for lxc-precise-
lxc-create: Error creating container lxc-precise-
The issue is silly.
/usr/share/
but since no '-v' flags were provided, it exited non-zero.
fix is to fix debug()
ProblemType: Bug
DistroRelease: Ubuntu 13.10
Package: lxc 1.0.0~alpha1-
ProcVersionSign
Uname: Linux 3.11.0-9-generic x86_64
ApportVersion: 2.12.5-0ubuntu1
Architecture: amd64
Date: Wed Oct 9 13:47:51 2013
EcryptfsInUse: Yes
InstallationDate: Installed on 2011-10-19 (721 days ago)
InstallationMedia: Ubuntu 11.10 "Oneiric Ocelot" - Release amd64 (20111012)
MarkForUpload: True
SourcePackage: lxc
UpgradeStatus: Upgraded to saucy on 2013-05-20 (142 days ago)
defaults.conf:
lxc.network.type = veth
lxc.network.link = lxcbr0
lxc.network.flags = up
lxcsyslog:
Changed in lxc (Ubuntu): | |
importance: | Undecided → Low |
Changed in lxc (Ubuntu): | |
status: | In Progress → Fix Released |
$ diff -u /usr/share/ lxc/hooks/ ubuntu- cloud-prep. dist /usr/share/ lxc/hooks/ ubuntu- cloud-prep lxc/hooks/ ubuntu- cloud-prep. dist 2013-10-09 17:42:03.138819999 +0000 lxc/hooks/ ubuntu- cloud-prep 2013-10-09 17:42:10.098820001 +0000
--- /usr/share/
+++ /usr/share/
@@ -16,7 +16,7 @@
VERBOSITY="0"
error() { echo "$@" 1>&2; }
-debug() { [ "$VERBOSITY" -ge "$1" ] || return; shift; error "$@"; }
+debug() { [ "$VERBOSITY" -ge "$1" ] || return 0; shift; error "$@"; }
fail() { [ $# -eq 0 ] || error "$@"; exit 1; }
prep_usage() {