container failed to start with lxc-clone-aufs=true

Bug #1364939 reported by Nobuto Murata
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
juju-core
Fix Released
High
@les

Bug Description

container failed to start with lxc-clone-aufs=true in utopic. on the other hand without lxc-clone-aufs, a container will be created.

$ apt-cache policy juju-core
juju-core:
  Installed: 1.20.6-0ubuntu1~14.10.1~juju1
  Candidate: 1.20.6-0ubuntu1~14.10.1~juju1
  Version table:
 *** 1.20.6-0ubuntu1~14.10.1~juju1 0
        500 http://ppa.launchpad.net/juju/stable/ubuntu/ utopic/main amd64 Packages
        100 /var/lib/dpkg/status

How to reproduce:
 1. add "lxc-clone-aufs: true" in ~/.juju/environments.yaml
 2. juju switch local
 3. juju bootstrap
 4. juju deploy cs:trusty/ubuntu

2014-09-03 13:13:58 ERROR juju.container.lxc lxc.go:249 container failed to start: container failed to start
2014-09-03 13:13:58 ERROR juju.provisioner provisioner_task.go:418 cannot start instance for machine "1": container failed to start

Revision history for this message
Nobuto Murata (nobuto) wrote :
Curtis Hovey (sinzui)
tags: added: deploy local-provider lxc
tags: added: config
tags: added: regression
Changed in juju-core:
status: New → Triaged
importance: Undecided → High
milestone: none → 1.21-alpha1
Curtis Hovey (sinzui)
Changed in juju-core:
milestone: 1.21-alpha1 → 1.21-alpha2
Curtis Hovey (sinzui)
Changed in juju-core:
milestone: 1.21-alpha2 → 1.21-alpha3
@les (alesstimec)
Changed in juju-core:
assignee: nobody → @les (alesstimec)
status: Triaged → In Progress
Revision history for this message
@les (alesstimec) wrote :

Admittedly juju deploy fails in 1.20.6 if lxc-clone-auf is set to true. However it works in the latest development version.

BUT:
The latest development version fails to deploy if there is a leftover container that failed to start in the previous deploy (say using juju version 1.20.6). Because juju fails to destroy a container that failed to start.

FIX:
Use lxc-destroy to clean up the leftover containers.

Looking into fixing this issue in the code. A question that pops to mind is why are we reusing containers anyway.

Thank you for you patience..

Curtis Hovey (sinzui)
Changed in juju-core:
milestone: 1.21-alpha3 → 1.21-beta1
Casey Marshall (cmars)
Changed in juju-core:
status: In Progress → Fix Committed
Curtis Hovey (sinzui)
Changed in juju-core:
status: Fix Committed → 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.