-
Notifications
You must be signed in to change notification settings - Fork 17
Description
I followed the READMEs for cgcloud-core and cgcloud-toil to set up on my (firewalled) podcloud VM.
Because I already had a key registered (from my old VM, which crashed and took its id_rsa.pub with it), I used cgcloud register-key --force ~/.ssh/id_rsa.pub
cgcloud create-cluster --leader-instance-type m3.medium --instance-type c3.8xlarge --share shared/ --spot-bid 1.0 -s 1 toil failed at the rsync step to copy from shared/, so I tried the same command without that option.
The cluster was created:
cgcloud list toil-leader
INFO: Using zone 'us-west-2a' and namespace '/jeltje.van.baren/'
i-abcb3770 jeltje.van.baren_toil-leader 0 172.31.31.92 52.40.118.17 i-abcb3770 2016-05-26T17:48:29.000Z running
However, cgcloud ssh toil-leader gets an ssh error (full error pasted below)
I can't ping the machine either.
Ping and ssh to other machines work fine from the VM, so I'm assuming the authentication at EC2 is somehow messed up?
Full error:
INFO: Using zone 'us-west-2a' and namespace '/jeltje.van.baren/'
INFO: Binding to instance ...
INFO: ... waiting for instance i-abcb3770 ...
INFO: ... running, waiting for assignment of public IP ...
INFO: ... assigned, waiting for SSH port ...
INFO: ... open ...
INFO: ... instance ready.
Permission denied (publickey).
Traceback (most recent call last):
File "/home/ubuntu/cgcloud/bin/cgcloud", line 9, in <module>
load_entry_point('cgcloud-core==1.3.8', 'console_scripts', 'cgcloud')()
File "/home/ubuntu/cgcloud/local/lib/python2.7/site-packages/cgcloud/core/cli.py", line 49, in main
app.run( args )
File "/home/ubuntu/cgcloud/local/lib/python2.7/site-packages/cgcloud/lib/util.py", line 300, in run
command.run( options )
File "/home/ubuntu/cgcloud/local/lib/python2.7/site-packages/cgcloud/core/commands.py", line 81, in run
return self.run_in_ctx( options, ctx )
File "/home/ubuntu/cgcloud/local/lib/python2.7/site-packages/cgcloud/core/commands.py", line 105, in run_in_ctx
return self.run_on_role( options, ctx, role )
File "/home/ubuntu/cgcloud/local/lib/python2.7/site-packages/cgcloud/core/commands.py", line 124, in run_on_role
return self.run_on_box( options, box )
File "/home/ubuntu/cgcloud/local/lib/python2.7/site-packages/cgcloud/core/commands.py", line 164, in run_on_box
self.run_on_instance( options, box )
File "/home/ubuntu/cgcloud/local/lib/python2.7/site-packages/cgcloud/core/commands.py", line 232, in run_on_instance
self.ssh( options, box )
File "/home/ubuntu/cgcloud/local/lib/python2.7/site-packages/cgcloud/core/commands.py", line 219, in ssh
status = box.ssh( user=self._user( box, options ), command=options.command )
File "/home/ubuntu/cgcloud/local/lib/python2.7/site-packages/cgcloud/core/box.py", line 1050, in ssh
raise RuntimeError( 'ssh failed' )
RuntimeError: ssh failed