mojo tries to start LXC containers with 'F' which is only available in more recent versions of lxc

Bug #1421514 reported by Haw Loeung
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mojo: Continuous Delivery for Juju
Won't Fix
Undecided
Haw Loeung

Bug Description

Hi,

Trying to get a mojo spec run on a precise host with lxc-1.0.4-0ubuntu0.1~ctools0 it seems to fail as follows:

| 2015-02-13 12:40:45 [INFO] Installing apt repos and packages
| 2015-02-13 12:40:46 [INFO] Running command in container 'mojo-stg-u1-sca.trusty': sudo -E -u root env DEBIAN_FRONTEND=noninteractive apt-get update
| lxc-start: invalid option -- 'F'
| Usage: lxc-start --name=NAME -- COMMAND

We should either detect the version of LXC to see if we should start containers with '-F' or make the version of lxc which adds '-F' as a dependency.

| -F, --foreground Start with the current tty attached to /dev/console (default)

In fact, since it defaults to on when supported, we should just omit passing '-F' to lxc-start.

Haw Loeung (hloeung)
description: updated
Haw Loeung (hloeung)
Changed in mojo:
assignee: nobody → Haw Loeung (hloeung)
status: New → In Progress
Revision history for this message
Tom Haddon (mthaddon) wrote :

Since trusty-updates now has 1.0.8 I'm tempted to mark this as invalid/won't fix. Will confirm outside of bug comments and update as appropriate.

Revision history for this message
Tom Haddon (mthaddon) wrote :

Confirmed since this is now in trusty-updates, we won't bother fixing it.

Changed in mojo:
status: In Progress → Won't Fix
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.