Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Keypair elasticluster is present but has different fingerprint #697

Open
jrieffel opened this issue Apr 3, 2021 · 5 comments
Open

Keypair elasticluster is present but has different fingerprint #697

jrieffel opened this issue Apr 3, 2021 · 5 comments

Comments

@jrieffel
Copy link

jrieffel commented Apr 3, 2021

When trying to start a cluster via openstack, I get the above error.

Keypair elasticluster is present but has different fingerprint

Here's the -vvv

2021-04-03 11:03:09 Johns-MacBook-Pro.local elasticluster[15140] DEBUG Checking keypair elasticluster ...
2021-04-03 11:03:10 Johns-MacBook-Pro.local elasticluster[15140] ERROR Could not start node worker004: Keypair elasticluster is present but has different fingerprint. Aborting! -- <class 'elasticluster.exceptions.KeypairError'>

Could you explain where these keypairs are stored and what they are checked against? The relevant part of my config is below. Changing the user_key_name has no effect, it still checks for keypair elasticluster.

# the `login` section collects information about how to log-in to VMs, including
# SSH key to use for connections
[login/ubuntu]
image_user=ubuntu
image_user_sudo=root
image_sudo=True
# name of SSH key the cloud controller will inject into VMs
#user_key_name=rieffel-laptop-rsa
user_key_name=elasticluster
# these should match the SSH key named above
user_key_private=~/.ssh/id_rsa
user_key_public=~/.ssh/id_rsa.pub
@jrieffel
Copy link
Author

jrieffel commented Apr 3, 2021

Updates:

  • elasticluster is correctly uploading a new key called 'elasticluster' to my openstack account
  • sometimes, one of the keypairs matchines and the instance is created (but elasticluster fails to connect via SSH, but that's a different problem)

@jrieffel
Copy link
Author

jrieffel commented Apr 3, 2021

I was able to fix this in a kludgy way by commenting out the lines that throw the exception in openstack.py in the elasticluster code -- and have been able to proceed. But I don't think this is a good long-term solution.

@onstring
Copy link

onstring commented Jul 1, 2021

I met with the same issue, and it turned out OpenStack provider loads the key as a DSA key, instead of RSA.
https://github.com/elasticluster/elasticluster/blob/master/elasticluster/providers/openstack.py#L924

@jrieffel
Copy link
Author

jrieffel commented Jul 1, 2021 via email

@jeffctr
Copy link

jeffctr commented Jul 7, 2021

Having the same issue but, this problem is from paramiko it also was reported issue #1839. Then, I decided to replace paramiko for something more stable so I decide to go with paramiko-ng that is a fork of it. I update the package in the setup.py file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants