
Actualicé a ubuntu 12.04 ayer. e instalar el juju con:
sudo add-apt-repository ppa:juju/pkgs
sudo apt-get update && sudo apt-get install juju
Y también instalo el lxc. Luego implemento un acceso, pero el servicio no se inicia. y el registro muestra un error de Python.
2012-05-03 03:57:20,439: twisted@ERROR: I: Retrieving inetutils-ping
2012-05-03 03:57:20,440: twisted@ERROR: I: Validating inetutils-ping
2012-05-03 03:57:20,440: twisted@ERROR: E: Couldn't download packages: libnih1 libglib2.0-0 libpython2.7 hostname liblocale-
gettext-perl libfribidi0 sysvinit-utils libapt-pkg4.11 libnih-dbus1 openssh-client findutils libmagic1 libbz2-1.0 login libm
ount1 base-passwd
2012-05-03 03:57:20,440: twisted@ERROR: failed to execute template 'ubuntu'
2012-05-03 03:57:20,441: twisted@ERROR: aborted
2012-05-03 03:57:20,441: twisted@ERROR:
2012-05-03 03:57:20,442: juju.agents.machine@ERROR: Error starting unit: cloudfoundry/0
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/juju/agents/machine.py", line 97, in watch_service_units
yield self.unit_deployer.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/lib/python2.7/dist-packages/juju/unit/deploy.py", line 92, in start_service_unit
self.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/lib/python2.7/dist-packages/juju/machine/unit.py", line 227, in start
machine_id, bundle, 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/lib/python2.7/dist-packages/juju/machine/unit.py", line 204, in _get_container
machine_id, 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/lib/python2.7/dist-packages/juju/machine/unit.py", line 192, 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/lib/python2.7/dist-packages/juju/lib/lxc/__init__.py", line 281, 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/lib/python2.7/dist-packages/juju/lib/lxc/__init__.py", line 274, in _create_wait
config_file=lxc_config)
File "/usr/lib/python2.7/dist-packages/juju/lib/lxc/__init__.py", line 60, in _lxc_create
return _cmd(args)
File "/usr/lib/python2.7/dist-packages/juju/lib/lxc/__init__.py", line 46, in _cmd
raise LXCError(stdout_data)
LXCError: debootstrap is /usr/sbin/debootstrap
y otro registro de errores:
2012-05-03 03:57:20,558: juju.agents.machine@DEBUG: Units changed old:set(['cloudfoundry/0']) new:set(['cloudfoundry/2'])
2012-05-03 03:57:20,558: juju.agents.machine@DEBUG: Stopping service unit: cloudfoundry/0 ...
2012-05-03 03:57:20,559: unit.deploy@INFO: Stopping service unit cloudfoundry/0...
2012-05-03 03:57:20,559: unit.deploy@DEBUG: Destroying container...
2012-05-03 03:57:20,610: twisted@ERROR: 'dragon-sample-cloudfoundry-0' does not exist
2012-05-03 03:57:20,610: twisted@ERROR:
2012-05-03 03:57:20,611: juju.agents.machine@ERROR: Error stopping unit: cloudfoundry/0
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/juju/agents/machine.py", line 90, in watch_service_units
yield self.unit_deployer.kill_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/lib/python2.7/dist-packages/juju/unit/deploy.py", line 104, in kill_service_unit
yield deployment.destroy()
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/lib/python2.7/dist-packages/juju/machine/unit.py", line 287, in destroy
yield self.container.destroy()
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/lib/python2.7/dist-packages/juju/lib/lxc/__init__.py", line 329, in destroy
yield deferToThread(_lxc_destroy, self.container_name)
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/lib/python2.7/dist-packages/juju/lib/lxc/__init__.py", line 77, in _lxc_destroy
return _cmd(["sudo", "lxc-destroy", "-n", container_name])
File "/usr/lib/python2.7/dist-packages/juju/lib/lxc/__init__.py", line 46, in _cmd
raise LXCError(stdout_data)
LXCError: 'dragon-sample-cloudfoundry-0' does not exist
Por cierto, encuentro muchos registros de instalación en machine-agent.log. ¿Es normal la primera vez?
Gracias.
Respuesta1
2012-05-03 03:57:20,440: twisted@ERROR: E: Couldn't download packages: libnih1 libglib2.0-0 libpython2.7 hostname liblocale-gettext-perl libfribidi0 sysvinit-utils libapt-pkg4.11 libnih-dbus1 openssh-client findutils libmagic1 libbz2-1.0 login libmount1 base-passwd
Este es un error legítimo, que dice que no se pudieron descargar estos paquetes mientras se compilaba el ubuntu mínimo. En este caso, es posible que deba eliminar el sistema de arranque en caché:
sudo rm -rf /var/cache/lxc/precise
Y luego inténtalo de nuevo. Asegúrese de poder acceder a archive.ubuntu.com
, ya que es lo que se utiliza para las descargas de paquetes.