-t ubuntu -- -h still creates container

Bug #1031043 reported by Robert Collins
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
lxc (Ubuntu)
Fix Released
Medium
Unassigned

Bug Description

$ sudo lxc-create -n sso -t ubuntu -- --help

No config file specified, using the default config
/usr/lib/lxc/templates/lxc-ubuntu -h|--help [-a|--arch] [-b|--bindhome <user>] [--trim] [-d|--debug]
   [-F | --flush-cache] [-r|--release <release>] [ -S | --auth-key <keyfile>]
release: the ubuntu release (e.g. precise): defaults to host release on ubuntu, otherwise uses latest LTS
trim: make a minimal (faster, but not upgrade-safe) container
bindhome: bind <user>'s home into the container
          The ubuntu user will not be created, and <user> will have
          sudo access.
arch: the container architecture (e.g. amd64): defaults to host arch
auth-key: SSH Public key file to inject into container
'ubuntu' template installed
'sso' created

Related branches

Changed in lxc (Ubuntu):
importance: Undecided → High
status: New → Triaged
importance: High → Medium
Revision history for this message
Serge Hallyn (serge-hallyn) wrote :

Note that "lxc-create -t ubuntu -h" would give the ubuntu template help output and not leave a partially created container.

Because of the architecture of the lxc templates, there doesn't seem to be a simple, clean way of having the lxc-create script clean up after the ubuntu template was called with -h or --help. Two options are (1) have lxc-create look for -h or --help in the template arguments, or (2) have the ubuntu template return 1 (error) after --help.

I will take the first approach.

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package lxc - 0.8.0~rc1-4ubuntu25

---------------
lxc (0.8.0~rc1-4ubuntu25) quantal; urgency=low

  * debian/control: only depend on libseccomp-dev on i386 and amd64, and
    switch to upstream-submitted seccomp patch (LP: #1037701)
  * debian/rules: add '--with autoreconf' to force recreation of
    configure from configure.ac
  * 0099-cleanup-after-template-help: don't leave a partially created
    container when -h is passed after '--'. (LP: #1031043)
 -- Serge Hallyn <email address hidden> Thu, 16 Aug 2012 17:03:07 -0500

Changed in lxc (Ubuntu):
status: Triaged → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.