LXC container failed to start on 12.04

Haitao Jiang jianghaitao at gmail.com
Mon May 7 19:15:01 UTC 2012


Hi,

I recently upgraded my OS from 11.10 to 12.04 and upgrade juju/lxc as well.

But when I did following

juju boostrap
juju deploy mysql

I noticed that machine-agent.log has following error. the mysql
service always in the pending state as the result.

Any idea how to resolve this? I tired lcx-create and it create a
container without any problem.

Thanks

Haitao

--------------------------machine-agent.log----------------------
2012-05-07 10:39:57,370:8627(0x7f2ea1cf6700):ZOO_INFO at zookeeper_init@727:
Initiating client connection, host=192.168.122.1:47419
sessionTimeout=10000 watcher=0x7f2e9e7526b0 sessionId=0
sessionPasswd=<null> context=0x21eff10 flags=0
2012-05-07 10:39:57,371:8627(0x7f2e9c20c700):ZOO_INFO at check_events@1585:
initiated connection to server [192.168.122.1:47419]
2012-05-07 10:39:57,376:8627(0x7f2e9c20c700):ZOO_INFO at check_events@1632:
session establishment complete on server [192.168.122.1:47419],
sessionId=0x1372862d0e60001, negotiated timeout=10000
2012-05-07 10:39:57,389: juju.agents.machine at INFO: Machine agent
started id:0 deploy:<class
'juju.machine.unit.UnitContainerDeployment'> provider:'local'
2012-05-07 10:40:23,892: juju.agents.machine at DEBUG: Units changed
old:set([]) new:set(['mysql/0'])
2012-05-07 10:40:23,892: juju.agents.machine at DEBUG: Starting service
unit: mysql/0 ...
2012-05-07 10:40:23,934: juju.agents.machine at DEBUG: Downloading charm
local:precise/mysql-122 to /home/haitaoj/lxc/haitaoj-local/charms
2012-05-07 10:40:24,003: juju.agents.machine at DEBUG: Starting service
unit mysql/0
2012-05-07 10:40:24,003: unit.deploy at DEBUG: Creating master container...
2012-05-07 10:40:24,059: twisted at ERROR: debootstrap is /usr/sbin/debootstrap
2012-05-07 10:40:24,059: twisted at ERROR: failed to execute template 'ubuntu'
2012-05-07 10:40:24,059: twisted at ERROR: aborted
2012-05-07 10:40:24,059: twisted at ERROR:
2012-05-07 10:40:24,061: juju.agents.machine at ERROR: Error starting unit: mysql/0
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/juju-0.5-py2.7.egg/juju/agents/machine.py",
line 126, in watch_service_units
    yield self.start_service_unit(unit_name)
  File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py",
line 1037, in _inlineCallbacks
    result = result.throwExceptionIntoGenerator(g)
  File "/usr/lib/python2.7/dist-packages/twisted/python/failure.py",
line 382, in throwExceptionIntoGenerator
    return g.throw(self.type, self.value, self.tb)
  File "/usr/local/lib/python2.7/dist-packages/juju-0.5-py2.7.egg/juju/agents/machine.py",
line 156, in start_service_unit
    self.get_machine_id(), self.client.servers, bundle)
  File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py",
line 1037, in _inlineCallbacks
    result = result.throwExceptionIntoGenerator(g)
  File "/usr/lib/python2.7/dist-packages/twisted/python/failure.py",
line 382, in throwExceptionIntoGenerator
    return g.throw(self.type, self.value, self.tb)
  File "/usr/local/lib/python2.7/dist-packages/juju-0.5-py2.7.egg/juju/machine/unit.py",
line 301, in start
    public_key)
  File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py",
line 1037, in _inlineCallbacks
    result = result.throwExceptionIntoGenerator(g)
  File "/usr/lib/python2.7/dist-packages/twisted/python/failure.py",
line 382, in throwExceptionIntoGenerator
    return g.throw(self.type, self.value, self.tb)
  File "/usr/local/lib/python2.7/dist-packages/juju-0.5-py2.7.egg/juju/machine/unit.py",
line 276, in _get_container
    machine_id, zookeeper_hosts, public_key)
  File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py",
line 1037, in _inlineCallbacks
    result = result.throwExceptionIntoGenerator(g)
  File "/usr/lib/python2.7/dist-packages/twisted/python/failure.py",
line 382, in throwExceptionIntoGenerator
    return g.throw(self.type, self.value, self.tb)
  File "/usr/local/lib/python2.7/dist-packages/juju-0.5-py2.7.egg/juju/machine/unit.py",
line 264, in _get_master_template
    yield master_template.create()
  File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py",
line 1037, in _inlineCallbacks
    result = result.throwExceptionIntoGenerator(g)
  File "/usr/lib/python2.7/dist-packages/twisted/python/failure.py",
line 382, in throwExceptionIntoGenerator
    return g.throw(self.type, self.value, self.tb)
  File "/usr/local/lib/python2.7/dist-packages/juju-0.5-py2.7.egg/juju/lib/lxc/__init__.py",
line 277, in create
    yield deferToThread(self._create_wait)
  File "/usr/lib/python2.7/dist-packages/twisted/python/threadpool.py",
line 207, in _worker
    result = context.call(ctx, function, *args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/twisted/python/context.py",
line 118, in callWithContext
    return self.currentContext().callWithContext(ctx, func, *args, **kw)
  File "/usr/lib/python2.7/dist-packages/twisted/python/context.py",
line 81, in callWithContext
    return func(*args,**kw)
  File "/usr/local/lib/python2.7/dist-packages/juju-0.5-py2.7.egg/juju/lib/lxc/__init__.py",
line 270, in _create_wait
    release=self.series)
  File "/usr/local/lib/python2.7/dist-packages/juju-0.5-py2.7.egg/juju/lib/lxc/__init__.py",
line 57, in _lxc_create
    return _cmd(args)
  File "/usr/local/lib/python2.7/dist-packages/juju-0.5-py2.7.egg/juju/lib/lxc/__init__.py",
line 42, in _cmd
    raise LXCError(stdout_data)
LXCError: debootstrap is /usr/sbin/debootstrap
failed to execute template 'ubuntu'
aborted
-----------------------



More information about the Juju mailing list