← Back to team overview

maas-devel team mailing list archive

Re: ERROR Invalid SSH key

 

Hi all,
It had come to the time to re-visit MAAS to see if I could get past my
initial problem and given that I'm replying to this email over a month
later - I've not managed it.

I'm following the instructions at
https://help.ubuntu.com/community/UbuntuCloudInfrastructure

I've got just 2 nodes.  One is running MAAS and I've gone through the
process of installing another with Precise installed.  MAAS reports this as
Green and ready.

I then continue the instructions:

I log into the MAAS server as a normal user.
I create the environments.yaml file with the following contents:

environments:
   maas:
       type: maas
       maas-server: 'http://172.16.0.250:80/MAAS'
       maas-oauth:
'tcWxFpwbWqyeBFDd4P:HTCSqrsw7XQKBcvm8n:bp67u5TkSLu2wf2b7wUS2ckLjwELCZED'
       admin-secret: 'nothing'
       default-series: precise

I then create an ssh key

ssh-keygen

then I do the juju bootstrap

juju bootstrap


2012-06-06 21:51:06,959 INFO Bootstrapping environment 'maas' (origin:
distro type: maas)...
2012-06-06 21:51:09,598 INFO 'bootstrap' command finished successfully

When running juju status I still get the error about the keys.

juju status
2012-06-06 21:52:15,600 INFO Connecting to environment...
2012-06-06 21:52:16,081 ERROR Invalid SSH key

Running with verbose

2012-06-06 21:52:24,341 DEBUG Initializing juju status runtime
2012-06-06 21:52:24,349 INFO Connecting to environment...
2012-06-06 21:52:24,434 DEBUG Connecting to environment using
node-080027dd1de4.local...
2012-06-06 21:52:24,435 DEBUG Spawning SSH process with
remote_user="ubuntu" remote_host="node-080027dd1de4.local"
remote_port="2181" local_port="52568".
2012-06-06 21:52:24,543 ERROR Invalid SSH key
2012-06-06 21:52:24,942:4525(0x7fcdd688d700):ZOO_INFO@log_env@658: Client
environment:zookeeper.version=zookeeper C client 3.3.5
2012-06-06 21:52:24,942:4525(0x7fcdd688d700):ZOO_INFO@log_env@662: Client
environment:host.name=maas
2012-06-06 21:52:24,943:4525(0x7fcdd688d700):ZOO_INFO@log_env@669: Client
environment:os.name=Linux
2012-06-06 21:52:24,943:4525(0x7fcdd688d700):ZOO_INFO@log_env@670: Client
environment:os.arch=3.2.0-24-generic
2012-06-06 21:52:24,944:4525(0x7fcdd688d700):ZOO_INFO@log_env@671: Client
environment:os.version=#39-Ubuntu SMP Mon May 21 16:52:17 UTC 2012
2012-06-06 21:52:24,945:4525(0x7fcdd688d700):ZOO_INFO@log_env@679: Client
environment:user.name=openstack
2012-06-06 21:52:24,945:4525(0x7fcdd688d700):ZOO_INFO@log_env@687: Client
environment:user.home=/home/openstack
2012-06-06 21:52:24,946:4525(0x7fcdd688d700):ZOO_INFO@log_env@699: Client
environment:user.dir=/home/openstack
2012-06-06 21:52:24,946:4525(0x7fcdd688d700):ZOO_INFO@zookeeper_init@727:
Initiating client connection, host=localhost:52568 sessionTimeout=10000
watcher=0x7fcdd48316b0 sessionId=0 sessionPasswd=<null> context=0x30fdaf0
flags=0
2012-06-06
21:52:24,947:4525(0x7fcdd15cc700):ZOO_ERROR@handle_socket_error_msg@1579:
Socket [127.0.0.1:52568] zk retcode=-4, errno=111(Connection refused):
server refused to accept the client
2012-06-06
21:52:28,284:4525(0x7fcdd15cc700):ZOO_ERROR@handle_socket_error_msg@1579:
Socket [127.0.0.1:52568] zk retcode=-4, errno=111(Connection refused):
server refused to accept the client
2012-06-06
21:52:31,621:4525(0x7fcdd15cc700):ZOO_ERROR@handle_socket_error_msg@1579:
Socket [127.0.0.1:52568] zk retcode=-4, errno=111(Connection refused):
server refused to accept the client
2012-06-06
21:52:34,957:4525(0x7fcdd15cc700):ZOO_ERROR@handle_socket_error_msg@1579:
Socket [127.0.0.1:52568] zk retcode=-4, errno=111(Connection refused):
server refused to accept the client

Any help appreciated!

Cheers,

Kev

On 30 April 2012 03:09, Francis J. Lacoste <francis.lacoste@xxxxxxxxxxxxx>wrote:

> On 12-04-28 07:28 AM, Kevin Jackson wrote:
> > Hi yes, the reason for this post is that it's not working for me.
> > The adding key to MAAS was a last resort. Leading up to this I generated
> > my key then juju bootstrap. This succeeds but then issuing juju status
> > gives this error.
> >
> > I've seen a few posts on just do this, then that and unfortunately it
> > doesn't work for me.
> >
> > I'll create another account and go through the steps again.
> >
> > Else if there are ways to debug its appreciated.
> >
>
> I've encountered that error from time to time, but never really got into
> the guts of it. It looks like a Juju problem. Every time I've
> encountered it, I've done: juju destroy-environment and then the next
> bootstrap worked.
>
> Cheers
>
>
> --
> Francis J. Lacoste
> francis.lacoste@xxxxxxxxxxxxx
>
>


-- 
Kevin Jackson
@itarchitectkev

Follow ups

References