<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
On 02/18/2013 04:34 PM, Julian Learmonth wrote:
<blockquote
cite="mid:CACKQv=xHsPQ9RAtw6Sr3s=o=pSRoCeHURXXfMkvSCU=w7E5U_g@mail.gmail.com"
type="cite">
<div dir="ltr">
<div>
<div>Hello,<br>
<br>
</div>
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:<br>
<br>
curl -d '{"passwordCredentials": {"username": "admin",
"password": "redacted"}}' -H "Content-type: application/json"
<a moz-do-not-send="true"
href="http://localhost:5000/v2.0/tokens">http://localhost:5000/v2.0/tokens</a><br>
<br>
</div>
I got the above command line from here: <a
moz-do-not-send="true"
href="http://docs.openstack.org/api/openstack-compute/programmer/content/getting-the-authentication-token.html">http://docs.openstack.org/api/openstack-compute/programmer/content/getting-the-authentication-token.html</a><br>
<div><br clear="all">
<div>
<div>
<div>And I am getting this error message when I run the
command (using the correct password):<br>
<br>
{"error": {"message": "authenticate() got an unexpected
keyword argument 'passwordCredentials'", "code": 400,
"title": "Bad Request"}}<br>
<br>
</div>
<div>Any idea what I am doing wrong? Is there another way
to generate an API key?<br>
</div>
</div>
</div>
</div>
</div>
</blockquote>
<br>
I'm using:<br>
curl -k -X 'POST' <a class="moz-txt-link-freetext" href="http://the_ip:5000/v2.0/tokens">http://the_ip:5000/v2.0/tokens</a> -d
'{"auth":{"passwordCredentials":{"username": "admin",
"password":"admin_password"},
"tenantId":"91c3b2bb35214fe6befb44c25995cfb0"}}' -H 'Content-type:
application/json'<br>
<br>
<blockquote
cite="mid:CACKQv=xHsPQ9RAtw6Sr3s=o=pSRoCeHURXXfMkvSCU=w7E5U_g@mail.gmail.com"
type="cite">
<div dir="ltr">
<div>
<div>
<div>
<div><br>
I am using OpenStack Folsom (DevStack) on Ubuntu 12.10.<br>
<br>
</div>
<div>Any help appreciated!<br>
</div>
<div>
<br>
Regards,<br>
Julian.<br>
</div>
</div>
</div>
</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
Mailing list: <a class="moz-txt-link-freetext" href="https://launchpad.net/~openstack">https://launchpad.net/~openstack</a>
Post to : <a class="moz-txt-link-abbreviated" href="mailto:openstack@lists.launchpad.net">openstack@lists.launchpad.net</a>
Unsubscribe : <a class="moz-txt-link-freetext" href="https://launchpad.net/~openstack">https://launchpad.net/~openstack</a>
More help : <a class="moz-txt-link-freetext" href="https://help.launchpad.net/ListHelp">https://help.launchpad.net/ListHelp</a>
</pre>
</blockquote>
<br>
<br>
<pre class="moz-signature" cols="72">--
Thanks,
Rami Vaknin, QE @ Red Hat, TLV, IL.
</pre>
</body>
</html>