Dear Riccardo, Thanks a lot for your suggestions. I was struggling with these errors a lot. Now everything is working. I would like to share what I did here so that other people with the same problem would fix it, too.
- I think the problem rises with Paramiko, I had to pip install that - Then I had to install openSSH after which I got a couple of different errors on SSH keys - Then after searching a lot I found that I should generate the id_rsa keys using: ssh-keygen -m PEM -t rsa -b 2048 -f test_id_rsa I was only using ssh-keygen but it seems that won't work. - I guess changing the CPU type (flavor) in config file and also changing the regions would be good practices to set up the clusters. I'm a beginner and I'm not sure if this procedure would help in general but it worked for me. On Friday, August 21, 2020 at 10:07:22 AM UTC-7 Riccardo Murri wrote: > Hello Mahsa, > > looking closer to the log you sent, I stand corrected: in your case, > authentication to Google Cloud works fine, the VMs are started but > then you get an error when connecting to the nodes via SSH: > > > 2020-08-19 20:00:34 8b4b8daccab1 elasticluster[1] INFO Node > `frontend001` has been started. > > [...] > > 2020-08-19 20:00:35 8b4b8daccab1 elasticluster[1] DEBUG Trying to > connect to host frontend001 using IP address 35.247.91.95 ... > > [...] > > 2020-08-19 20:00:48 8b4b8daccab1 elasticluster[1] ERROR Invalid SSH host > key for frontend001 (35.247.91.95): Host key for server '35.247.91.95' does > not match: got > 'AAAAC3NzaC1lZDI1NTE5AAAAIAst0nVJA8hdGlFbWfCEc4g40ClovlxinZpo4tyWKSf1', > expected > 'AAAAC3NzaC1lZDI1NTE5AAAAIDtTlFoPtYb3Rn0m0WJ7PFyLyO632iOCdCK8udsd7puk'. > > This may be due to the SSH keys of some old VM being incorrectly > cached in the "known_hosts" file. > > Can you please try removing the `*.know_hosts` files under your > `$HOME/.elasticluster/storage` directory? This command should do it: > > rm -f -v $HOME/.elasticluster/storage/*/*.known_hosts > > After removing the files, try starting a cluster again. > > Ciao, > Riccardo > -- You received this message because you are subscribed to the Google Groups "elasticluster" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/elasticluster/5487bb0b-fa09-4682-a9a7-8b1dc09223f5n%40googlegroups.com.
