I've got orchestra installed and running, and I have managed to build my first three nodes. Now I want to get down to the business of managing their environments.
I've installed JuJu on my main orchestra server, and I have generated the keys needed, and I have run the juju bootstrap
When I run juju status, I get the following error:
Cannot connect to machine MTMyODcyMjk5MS4wMTAwNDY4LjQ1NTcxMg (perhaps still initializing): Invalid SSH key
2012-02-08 20:19:21,565 ERROR Cannot connect to machine MTMyODcyMjk5MS4wMTAwNDY4LjQ1NTcxMg (perhaps still initializing): Invalid SSH key
Do I need to copy the public key over to the machines? There is nothing in authorized_keys for the user that juju is connecting as...
Do I need to be logged in as that user on the master server when I run the juju bootstrap command?
I'm using Orchestra to build these machines, and they create an ubuntu user on them, but there is no ubuntu user on the machine that is running orchestra.
UPDATE:
I have created an ubuntu user on the orchestra server since there is an ubuntu user on the nodes that I want to manage. I have also copied the public keys to the nodes themselves.
Now I get a very different error:
ubuntu@sid:~$ juju bootstrap
2012-02-09 09:14:47,931 INFO Bootstrapping environment 'orchestra' (type: orchestra)...
2012-02-09 09:14:48,043 INFO juju environment previously bootstrapped.
2012-02-09 09:14:48,045 INFO 'bootstrap' command finished successfully
ubuntu@sid:~$ juju status
2012-02-09 09:14:52,737 INFO Connecting to environment.
2012-02-09 09:14:53,800 ERROR Connection refused
Unhandled error in Deferred:
Unhandled Error
Traceback (most recent call last):
Failure: txzookeeper.client.ConnectionTimeoutException: could not connect before timeout
Cannot connect to machine MTMyODcyMjk5MS4wMTAwNDY4LjQ1NTcxMg (perhaps still initializing): could not connect before timeout after 2 retries
2012-02-09 09:15:22,925 ERROR Cannot connect to machine MTMyODcyMjk5MS4wMTAwNDY4LjQ1NTcxMg (perhaps still initializing): could not connect before timeout after 2 retries
Here's another thing I'd like to learn: How can you Un-Bootstrap an environment? In my case, I really think that something is screwed up, and I cant go and do another
juju bootstrap
because juju says that the environment has already been bootstrapped. can I undo this, and redo the bootstrap process?
Here is my environments.yaml file.
juju: environments
environments:
orchestra:
type: orchestra
# Specify the orchestra server
orchestra-server: '192.168.*.*'
# Specify storage.
storage-url: 'http://192.168.*.*/webdav'
# Specify cobbler's user/pass
orchestra-user: cobbler
orchestra-pass: *******
admin-secret: *******
# Mangement classes
acquired-mgmt-class: orchestra-juju-acquired
available-mgmt-class: orchestra-juju-available
default-series: natty