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

Salt-cloud does not check for duplicate ssh keys when using provider such as DigitalOcean #25079

Closed
jondonas opened this issue Jun 30, 2015 · 4 comments
Assignees
Labels
Bug broken, incorrect, or confusing behavior fixed-pls-verify fix is linked, bug author to confirm fix P3 Priority 3 RIoT Relates to integration with cloud providers, hypervisors, API-based services, etc. Salt-Cloud severity-medium 3rd level, incorrect or bad functionality, confusing and lacks a work around
Milestone

Comments

@jondonas
Copy link

When making a new minion with salt-cloud, if you have more than one ssh key with the same name with a provider (such as digital ocean) there is no warning issued. This can lead to 'Permission Denied" issues when trying to deploy a minion. Would be useful for salt to check for duplicate names and show a warning.

@UtahDave
Copy link
Contributor

Thanks for the report!

Can you provide the output of salt-cloud --versions-report on your master?

Do you mean that there are multiple keys with the same name created in the DigitialOcean interface itself or on the Salt Master?

Also, can you provide the exact command you ran as well as all the output you received?

Thanks!

@UtahDave UtahDave added Bug broken, incorrect, or confusing behavior severity-medium 3rd level, incorrect or bad functionality, confusing and lacks a work around Salt-Cloud P3 Priority 3 RIoT Relates to integration with cloud providers, hypervisors, API-based services, etc. labels Jun 30, 2015
@UtahDave
Copy link
Contributor

I've confirmed that DigitalOcean's web gui allows for creating multiple keys with the same name, although their fingerprints are unique.

@justinta justinta added this to the Approved milestone Jul 1, 2015
@jondonas
Copy link
Author

jondonas commented Jul 2, 2015

Thanks for your response.

Salt: 2015.5.0
                Python: 2.7.6 (default, Jun 22 2015, 17:58:13)
                Jinja2: 2.7.2
              M2Crypto: 0.21.1
        msgpack-python: 0.3.0
          msgpack-pure: Not Installed
              pycrypto: 2.6.1
               libnacl: Not Installed
                PyYAML: 3.10
                 ioflo: Not Installed
                 PyZMQ: 14.0.1
                  RAET: Not Installed
                   ZMQ: 4.0.4
                  Mako: 0.9.1
       Apache Libcloud: 0.17.0
 Debian source package: 2015.5.0+ds-1trusty1

This is related to multiple keys with the same name on the DigitalOcean interface. It would be useful for salt-cloud to check for this situation as it could potentially save some troubleshooting time!

It occurred when running salt-cloud -p ubuntu_512MB_ny3 minionname
Output included multiple lines of Permission denied (publickey,password)
followed by Failed to start salt.

Thanks again for your help!

@rallytime
Copy link
Contributor

@jondonas I have fixed this in #27245. Thanks for catching this!

@rallytime rallytime added the fixed-pls-verify fix is linked, bug author to confirm fix label Sep 18, 2015
@rallytime rallytime modified the milestones: B 12, Approved Sep 18, 2015
@rallytime rallytime self-assigned this Sep 18, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug broken, incorrect, or confusing behavior fixed-pls-verify fix is linked, bug author to confirm fix P3 Priority 3 RIoT Relates to integration with cloud providers, hypervisors, API-based services, etc. Salt-Cloud severity-medium 3rd level, incorrect or bad functionality, confusing and lacks a work around
Projects
None yet
Development

No branches or pull requests

4 participants