libcloud-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "dustin oberloh (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (LIBCLOUD-629) Joyent driver failing to list_nodes()
Date Sun, 26 Oct 2014 21:56:33 GMT

    [ https://issues.apache.org/jira/browse/LIBCLOUD-629?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14184676#comment-14184676
] 

dustin oberloh commented on LIBCLOUD-629:
-----------------------------------------

the version i am using (0.15.1) does not exist in the bug creation page.


> Joyent driver failing to list_nodes()
> -------------------------------------
>
>                 Key: LIBCLOUD-629
>                 URL: https://issues.apache.org/jira/browse/LIBCLOUD-629
>             Project: Libcloud
>          Issue Type: Bug
>          Components: Compute
>    Affects Versions: 0.13.3
>         Environment: Mac OSX
>            Reporter: dustin oberloh
>            Priority: Critical
>              Labels: initialization, joyent
>
> When I am trying to use the list_nodes() function in the joyent driver, I am getting
the following error message:
> libcloud.common.types.InvalidCredsError: u'InvalidCredentials: You must make authenticated
requests to use CloudAPI'
> My code to initialize and list looks like this:
> driver_conn = get_driver(Provider.JOYENT)
> driver_conn(
>                         key = '<account_name>',
>                         secret = '<fingerprint_for_an_ssh_key_on_the_acct>',
>                         location = 'us-west-1',
>                     )
> nodes = driver_conn.list_nodes()
> Here is some debug output from libcloud:
> # -------- begin 4338820160 request ----------
> curl -i -X GET -H 'X-Api-Version: ~6.5' -H 'Host: us-west-1.api.joyentcloud.com' -H 'Accept:
application/json' -H 'Accept-Encoding: gzip,deflate' -H 'X-LC-Request-ID: 4338820160' -H 'Content-Type:
application/json; charset=UTF-8' -H 'Authorization: Basic UFROT0RFVjpkMDpjNjo0YzpjZjoxMjo3ODo3Mjo2ZjpkZDowMTplNzpkMjpmOTowMDozMjozNA=='
-H 'User-Agent: libcloud/0.15.1 (Joyent) ' --compress https://us-west-1.api.joyentcloud.com:443/my/datasets
> # -------- begin 4338820160:4338820664 response ----------
> HTTP/1.1 401 Unauthorized
> Content-Length: 94
> Access-Control-Allow-Headers: Accept, Accept-Version, Content-Length, Content-MD5, Content-Type,
Date, Api-Version, Response-Time
> Access-Control-Expose-Headers: Api-Version, Request-Id, Response-Time
> Response-Time: 247
> Request-Id: 04b809c0-5d59-11e4-94e4-858c314f4d80
> Strict-Transport-Security: max-age=6570000
> Server: Joyent SmartDataCenter 7.1.1
> Api-Version: 7.2.0
> Connection: Keep-Alive
> Access-Control-Allow-Methods: GET, HEAD
> Date: Sun, 26 Oct 2014 21:42:44 GMT
> Access-Control-Allow-Origin: *
> Content-Md5: ZHr/q0kH6ganClU5iLN5zA==
> Content-Type: application/json
> {"code":"InvalidCredentials","message":"You must make authenticated requests to use CloudAPI"}
> # -------- end 4338820160:4338820664 response ----------
> Am I doing something wrong, or is this an issue that needs to be solved?



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message