Eu quero construir uma implementação de juju em uma nuvem openstack. Um tipo de ambiente ec2 funciona, mas eu quero usar o tipo de ambiente openstack_s3, que não funciona.
Hera são alguns detalhes:
juju: environments default: s3 environments: s3: type: openstack_s3 control-bucket: juju-... admin-secret: 1a15743cab5... combined-key: 6cfba71eec6... secret-key: d82e45f647074... ec2-uri: http://IP:8773/services/Cloud s3-uri: http://IP:3333 default-series: precise default-image-id: fb2ba7a7... auth-url: http://IP:5000/v2.0/ username: openstack user password: openstack user-pass project-name: openstack-project
O juju bootstrap
está ok, a primeira instância foi iniciada e eu posso ssh. Se eu implantar um serviço, uma nova instância deve ser iniciada, mas nada acontece no Painel do Openstack.
Esta é a saída de juju status
:
machines: 0: agent-state: running dns-name: 192.168.X.X instance-id: ca659b15... instance-state: running 1: instance-id: pending services: wordpress: charm: cs:precise/wordpress-10 relations: loadbalancer: - wordpress units: wordpress/0: agent-state: pending machine: 1 public-address: null
Eu tenho apenas este erro no provision-agent.log no nó bootstrap, mas isso me ajudou até agora.
ubuntu@juju-s3-instance-0:~$ cat /var/log/juju/ machine-agent.log provision-agent.log ubuntu@juju-s3-instance-0:~$ cat /var/log/juju/provision-agent.log 2013-02-28 12:20:39,008: twisted@ERROR: Unhandled error in Deferred: 2013-02-28 12:20:39,115: twisted@ERROR: Unhandled Error Traceback (most recent call last): File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 391, in errback self._startRunCallbacks(fail) File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 458, in _startRunCallbacks self._runCallbacks() File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 545, in _runCallbacks current.result = callback(current.result, *args, **kw) File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 1095, in gotResult _inlineCallbacks(r, g, deferred) --- --- 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/agents/base.py", line 245, in startService yield self.start() 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/agents/provision.py", line 36, in start self.environment = yield self.configure_environment() 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/agents/provision.py", line 88, in configure_environment environment = yield watch_d File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 1039, in _inlineCallbacks result = g.send(result) File "/usr/lib/python2.7/dist-packages/juju/agents/provision.py", line 92, in configure_environment config.parse(environment_data) File "/usr/lib/python2.7/dist-packages/juju/environment/config.py", line 138, in parse config = SCHEMA.coerce(config, []) File "/usr/lib/python2.7/dist-packages/juju/lib/schema.py", line 266, in coerce new_dict[k] = self.schema[k].coerce(v, path) File "/usr/lib/python2.7/dist-packages/juju/lib/schema.py", line 233, in coerce new_subvalue = self.value_schema.coerce(subvalue, value_path) File "/usr/lib/python2.7/dist-packages/juju/lib/schema.py", line 301, in coerce return self.schemas[selected].coerce(value, path) exceptions.KeyError: 'openstack_s3'
Alguém pode me dar um conselho, onde eu possa localizar o problema?
Obrigado!