[LIBCLOUD-703] packet bare metal cloud provider integration#527
[LIBCLOUD-703] packet bare metal cloud provider integration#527crunchywelch wants to merge 1 commit into
Conversation
a4bb91a to
d526287
Compare
|
I have faxed in my ICLA today as well. Thanks! |
|
Great, thanks. I will try to have a look ASAP (hopefully over the weekend). |
There was a problem hiding this comment.
Looks like you should be able to implement ssh key management functionality using key pair management methods which are part of the libcloud standard API - https://github.com/apache/libcloud/blob/trunk/libcloud/compute/base.py#L1183
This also means getting rid of SSHKey class in favor of libcloud.compute.base.KeyPair.
In your case, you can use store id in the name attribute and description in the extra dict.
|
thanks @Kami, will make some adjustments! |
d526287 to
f3bd4a5
Compare
f3bd4a5 to
762d803
Compare
|
Ok, I think I got all those notes, lmk if you see anything else I should adjust! Cheers, |
|
I tries to test the driver using a dummy token and looks like an API returns 404 on invalid token. Something like 401 would be better and then Libcloud would also correctly throw Or maybe exception is related to the project not existing? In any case, 401 would be more appropriate (and hopefully token validation happens before project validation anyway) :) # -------- begin 140127380731600 request ----------
curl -i -X GET -H 'Host: api.packet.net' -H 'X-LC-Request-ID: 140127380731600' -H 'Accept-Encoding: gzip,deflate' -H 'X-Consumer-Token: kcrhMn7hwG8Ceo2hAhGFa2qpxLBvVHxEjS9ue8iqmsNkeeB2iQgMq4dNc1893pYu' -H 'X-Auth-Token: accesskeyid' -H 'Content-Type: application/json' -H 'User-Agent: libcloud/0.17.1-dev (Packet) ' --compress 'https://api.packet.net:443/projects/aaaaa/devices?include=plan'
# -------- begin 140127380731600:140127380758680 response ----------
HTTP/1.1 404 Not Found
Status: 404 Not Found
X-Request-Id: ec216d58-04b5-432b-92ad-60efc377e9fd
X-Xss-Protection: 1; mode=block
X-Content-Type-Options: nosniff
Transfer-Encoding: chunked
Server: nginx/1.6.2
X-Runtime: 0.005357
Cache-Control: no-cache
Date: Sun, 24 May 2015 14:49:02 GMT
X-Frame-Options: SAMEORIGIN
Content-Type: application/json; charset=utf-8
15
{"error":"Not found"}
0
# -------- end 140127380731600:140127380758680 response ---------- |
|
I made a minor change ( Thanks. |
|
great, thanks ! Do I need to provide the patch on the jira issue next? Looking at step 11 here: |
|
No, it's fine, I already merged it using a patch from Github :) |
|
Sweet, thanks man! And thank you for being a maintainer! On Sun, May 24, 2015 at 5:26 PM, Tomaz Muraus notifications@github.com
Aaron Welch SVP of Product212.933.9785 x301 |
I humbly submit this PR which adds support for our bare metal cloud hosting platform, Packet. Let me know if this looks ok, or if it requires additional work. The JIRA issue is here:
https://issues.apache.org/jira/browse/LIBCLOUD-703
Thanks!