[Openstack] curl command

Joshua Harlow harlowja at yahoo-inc.com
Fri Apr 20 05:22:53 UTC 2012


I've made a devstackPY tool that helps with this:

https://github.com/yahoo/Openstack-DevstackPy/blob/master/tools/upload-img.py

It will figure out how to extract the image archive (if any), upload it to glance...

On 4/19/12 10:11 PM, "andrei cosmin" <andrei_tall at yahoo.com> wrote:

Hi!

A have made a devstack instalation of openstack, and now i am trying to deploy new images but curl command doesn't work.

when i give ths command :
curl -d '{"auth": {"tenantName": "openstackDemo", "passwordCredentials":{"username": "adminUser", "password": "secretword"}}}' -H "Content-type: application/json" http://192.168.206.130:35357/v2.0/tokens | python -mjson.tool
 i get the following error:

  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0curl: (7) couldn't connect to host
No JSON object could be decoded

i used my ip and the rest i leaved as it is. Where do i find my tenantName and password credentials? What can be the problem?
Thanks.

Andrei-Cosmin Ion
telefon: 0727 768 281
email: andrei_tall at yahoo.com
Munceste ca si cum n-ai muri niciodata, dar ingrijeste-te de sufletul tau ca si cum ai muri maine!

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack/attachments/20120419/3003f1b0/attachment.html>


More information about the Openstack mailing list