Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: OpenStack: Dev

API Key Generation

 

 

OpenStack dev RSS feed   Index | Next | Previous | View Threaded


julian.learmonth at mobius

Feb 18, 2013, 6:34 AM

Post #1 of 3 (421 views)
Permalink
API Key Generation

Hello,

I've very new to OpenStack (3 days) so this could be a simple issue. I'm
trying to generate an API key for Veeam Backup Cloud Edition to use a demo
instance of DevStack. I'm using the following command line on the machine
with DevStack installed:

curl -d '{"passwordCredentials": {"username": "admin", "password":
"redacted"}}' -H "Content-type: application/json"
http://localhost:5000/v2.0/tokens

I got the above command line from here:
http://docs.openstack.org/api/openstack-compute/programmer/content/getting-the-authentication-token.html

And I am getting this error message when I run the command (using the
correct password):

{"error": {"message": "authenticate() got an unexpected keyword argument
'passwordCredentials'", "code": 400, "title": "Bad Request"}}

Any idea what I am doing wrong? Is there another way to generate an API key?

I am using OpenStack Folsom (DevStack) on Ubuntu 12.10.

Any help appreciated!

Regards,
Julian.


rvaknin at redhat

Feb 18, 2013, 6:51 AM

Post #2 of 3 (402 views)
Permalink
Re: API Key Generation [In reply to]

On 02/18/2013 04:34 PM, Julian Learmonth wrote:
> Hello,
>
> I've very new to OpenStack (3 days) so this could be a simple issue.
> I'm trying to generate an API key for Veeam Backup Cloud Edition to
> use a demo instance of DevStack. I'm using the following command line
> on the machine with DevStack installed:
>
> curl -d '{"passwordCredentials": {"username": "admin", "password":
> "redacted"}}' -H "Content-type: application/json"
> http://localhost:5000/v2.0/tokens
>
> I got the above command line from here:
> http://docs.openstack.org/api/openstack-compute/programmer/content/getting-the-authentication-token.html
>
> And I am getting this error message when I run the command (using the
> correct password):
>
> {"error": {"message": "authenticate() got an unexpected keyword
> argument 'passwordCredentials'", "code": 400, "title": "Bad Request"}}
>
> Any idea what I am doing wrong? Is there another way to generate an
> API key?

I'm using:
curl -k -X 'POST' http://the_ip:5000/v2.0/tokens -d
'{"auth":{"passwordCredentials":{"username": "admin",
"password":"admin_password"},
"tenantId":"91c3b2bb35214fe6befb44c25995cfb0"}}' -H 'Content-type:
application/json'

>
> I am using OpenStack Folsom (DevStack) on Ubuntu 12.10.
>
> Any help appreciated!
>
> Regards,
> Julian.
>
>
> _______________________________________________
> Mailing list: https://launchpad.net/~openstack
> Post to : openstack [at] lists
> Unsubscribe : https://launchpad.net/~openstack
> More help : https://help.launchpad.net/ListHelp


--

Thanks,

Rami Vaknin, QE @ Red Hat, TLV, IL.


julian.learmonth at mobius

Feb 18, 2013, 7:37 AM

Post #3 of 3 (405 views)
Permalink
Re: API Key Generation [In reply to]

Thank you very much, this worked. :)


On 18 February 2013 14:51, Rami Vaknin <rvaknin [at] redhat> wrote:

> On 02/18/2013 04:34 PM, Julian Learmonth wrote:
>
> Hello,
>
> I've very new to OpenStack (3 days) so this could be a simple issue. I'm
> trying to generate an API key for Veeam Backup Cloud Edition to use a demo
> instance of DevStack. I'm using the following command line on the machine
> with DevStack installed:
>
> curl -d '{"passwordCredentials": {"username": "admin", "password":
> "redacted"}}' -H "Content-type: application/json"
> http://localhost:5000/v2.0/tokens
>
> I got the above command line from here:
> http://docs.openstack.org/api/openstack-compute/programmer/content/getting-the-authentication-token.html
>
> And I am getting this error message when I run the command (using the
> correct password):
>
> {"error": {"message": "authenticate() got an unexpected keyword argument
> 'passwordCredentials'", "code": 400, "title": "Bad Request"}}
>
> Any idea what I am doing wrong? Is there another way to generate an API
> key?
>
>
> I'm using:
> curl -k -X 'POST' http://the_ip:5000/v2.0/tokens -d
> '{"auth":{"passwordCredentials":{"username": "admin",
> "password":"admin_password"},
> "tenantId":"91c3b2bb35214fe6befb44c25995cfb0"}}' -H 'Content-type:
> application/json'
>
>
> I am using OpenStack Folsom (DevStack) on Ubuntu 12.10.
>
> Any help appreciated!
>
> Regards,
> Julian.
>
>
> _______________________________________________
> Mailing list: https://launchpad.net/~openstack
> Post to : openstack [at] lists
> Unsubscribe : https://launchpad.net/~openstack
> More help : https://help.launchpad.net/ListHelp
>
>
>
> --
>
> Thanks,
>
> Rami Vaknin, QE @ Red Hat, TLV, IL.
>
>

OpenStack dev RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.