← Back to team overview

openstack team mailing list archive

Re: curl command

 

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@xxxxxxxxx> 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@xxxxxxxxx
Munceste ca si cum n-ai muri niciodata, dar ingrijeste-te de sufletul tau ca si cum ai muri maine!


References