<HTML>
<HEAD>
<TITLE>Re: [Openstack] curl command</TITLE>
</HEAD>
<BODY>
<FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'>I’ve made a devstackPY tool that helps with this:<BR>
<BR>
<a href="https://github.com/yahoo/Openstack-DevstackPy/blob/master/tools/upload-img.py">https://github.com/yahoo/Openstack-DevstackPy/blob/master/tools/upload-img.py</a><BR>
<BR>
It will figure out how to extract the image archive (if any), upload it to glance...<BR>
<BR>
On 4/19/12 10:11 PM, "andrei cosmin" <<a href="andrei_tall@yahoo.com">andrei_tall@yahoo.com</a>> wrote:<BR>
<BR>
</SPAN></FONT><BLOCKQUOTE><FONT SIZE="2"><FONT FACE="Arial"><SPAN STYLE='font-size:10pt'>Hi!<BR>
<BR>
A have made a devstack instalation of openstack, and now i am trying to deploy new images but curl command doesn't work.<BR>
<BR>
when i give ths command : <BR>
curl -d '{"auth": {"tenantName": "openstackDemo", "passwordCredentials":{"username": "adminUser", "password": "secretword"}}}' -H "Content-type: application/json" <a href="http://192.168.206.130:35357/v2.0/tokens">http://192.168.206.130:35357/v2.0/tokens</a> | python -mjson.tool<BR>
 i get the following error:<BR>
<BR>
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current<BR>
                                 Dload  Upload   Total   Spent    Left  Speed<BR>
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0curl: (7) couldn't connect to host<BR>
No JSON object could be decoded<BR>
<BR>
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?<BR>
Thanks.<BR>
<BR>
Andrei-Cosmin Ion<BR>
telefon: 0727 768 281<BR>
email: <a href="andrei_tall@yahoo.com">andrei_tall@yahoo.com</a><BR>
Munceste ca si cum n-ai muri niciodata, dar ingrijeste-te de sufletul tau ca si cum ai muri maine!<BR>
</SPAN></FONT></FONT><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'><BR>
</SPAN></FONT></BLOCKQUOTE>
</BODY>
</HTML>