Giter Club home page Giter Club logo

Comments (9)

koalalorenzo avatar koalalorenzo commented on July 28, 2024

Is that not working only on CoreOS?

from python-digitalocean.

cocoon-project avatar cocoon-project commented on July 28, 2024

I will give it a try ; but I guess it's True for all images.
except that for core os the ssh_keys are mandatory : no way to ssh into a coreos container with password.

from python-digitalocean.

koalalorenzo avatar koalalorenzo commented on July 28, 2024

I will test and fix it later today. Thanks!

from python-digitalocean.

andrewsomething avatar andrewsomething commented on July 28, 2024

@cocoon-project I launch droplets with SSH keys every day with code like:

        droplet = digitalocean.Droplet(token=token,
                                       name=str(image_id) + r.slug,
                                       region=r.slug,
                                       image=image_id,
                                       size='512mb',
                                       ssh_keys=[109121])

109121 is the ID the the API returns for my SSH key.

from python-digitalocean.

koalalorenzo avatar koalalorenzo commented on July 28, 2024

I'm thinking that maybe this is not a real problem: is up for the user to set the SSH_keys when installing CoreOS image. What we can really do is to say to the user that if the image is a "CoreOS image", then he have to select an ssh key to generate it. I will check how I can do it. Thanks

from python-digitalocean.

tdihp avatar tdihp commented on July 28, 2024

HI, I met the same problem here.

I've peeked into the Droplet.Create()
and the thing is: the ssh_keys never made it into the request.

import digitalocean
import httpretty
from httpretty import HTTPretty

httpretty.enable()
HTTPretty.register_uri(HTTPretty.POST, "https://api.digitalocean.com/v2/droplets",
                       body='{"droplet": {"id": 121}}',
                       content_type="application/json")

digitalocean.Droplet(token='123', name='whoopse', ssk_keys=[1,2,3], size_slug='slugyo', region='CHN?', image='foo').create()
print httpretty.last_request().path

from python-digitalocean.

tdihp avatar tdihp commented on July 28, 2024

sorry, the problem was true but seems I have a typo :-p

from python-digitalocean.

koalalorenzo avatar koalalorenzo commented on July 28, 2024

@tdihp by using the repository version or the latest one of python-digitalocean, is still there the problem?Can you check?

from python-digitalocean.

tdihp avatar tdihp commented on July 28, 2024

@koalalorenzo I was wrong. the typo was also in my "other" script.

Master branch can specify ssh_keys correctly. Sorry.

from python-digitalocean.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.