<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; color: rgb(0, 0, 0); font-size: 14px; font-family: Calibri, sans-serif;">
<div>Try </div>
<div>glance image-create --name "cirros" --is-public true --disk-format raw --file cirros-0.3.2-x86_64-disk.raw --container-format bare</div>
<div><br>
</div>
<div>See if you are facing any issue</div>
<div><br>
</div>
<div>NOTE: you need to source the rc file and run it from the folder where the raw or qcow2 image is present…</div>
<div><br>
</div>
<div>Thanks</div>
<div>Satya</div>
<div><br>
</div>
<span id="OLK_SRC_BODY_SECTION">
<div style="font-family:Calibri; font-size:11pt; text-align:left; color:black; BORDER-BOTTOM: medium none; BORDER-LEFT: medium none; PADDING-BOTTOM: 0in; PADDING-LEFT: 0in; PADDING-RIGHT: 0in; BORDER-TOP: #b5c4df 1pt solid; BORDER-RIGHT: medium none; PADDING-TOP: 3pt">
<span style="font-weight:bold">From: </span>Srinivasreddy R <<a href="mailto:srinivasreddy4390@gmail.com">srinivasreddy4390@gmail.com</a>><br>
<span style="font-weight:bold">Date: </span>Thursday, 11 September 2014 9:10 pm<br>
<span style="font-weight:bold">To: </span>"<a href="mailto:openstack@lists.openstack.org">openstack@lists.openstack.org</a>" <<a href="mailto:openstack@lists.openstack.org">openstack@lists.openstack.org</a>>, "<a href="mailto:kuvaja@hp.com">kuvaja@hp.com</a>"
 <<a href="mailto:kuvaja@hp.com">kuvaja@hp.com</a>><br>
<span style="font-weight:bold">Subject: </span>[Openstack] Fwd: error connection refused while creating glance image<br>
</div>
<div><br>
</div>
<div>
<div>
<div dir="ltr">
<div>
<div>hi,<br>
</div>
glance image-create not working for me .below is the command i tried .<br>
</div>
pls help me .<br>
  <br>
<div>
<div>
<div><br>
<p class="MsoNormal">root@user-ThinkCentre-M73:/tmp/images# glance image-create --property name "cirros-0.3.2-x86_64" --property disk-format qcow2 --property container-format bare property is-public True<span style=""> 
</span>< cirros-0.3.2-x86_64-disk.img</p>
<p class="MsoNormal">No handlers could be found for logger "glanceclient.common.http"</p>
<p class="MsoNormal">usage: glance [--version] [-d] [-v] [--get-schema] [--timeout TIMEOUT]</p>
<p class="MsoNormal"><span style="">              </span>[--no-ssl-compression] [-f] [--os-image-url OS_IMAGE_URL]</p>
<p class="MsoNormal"><span style="">              </span>[--os-image-api-version OS_IMAGE_API_VERSION] [-k]</p>
<p class="MsoNormal"><span style="">              </span>[--os-cert OS_CERT] [--cert-file OS_CERT] [--os-key OS_KEY]</p>
<p class="MsoNormal"><span style="">              </span>[--key-file OS_KEY] [--os-cacert <ca-certificate-file>]</p>
<p class="MsoNormal"><span style="">              </span>[--ca-file OS_CACERT] [--os-username OS_USERNAME]</p>
<p class="MsoNormal"><span style="">              </span>[--os-user-id OS_USER_ID]</p>
<p class="MsoNormal"><span style="">              </span>[--os-user-domain-id OS_USER_DOMAIN_ID]</p>
<p class="MsoNormal"><span style="">              </span>[--os-user-domain-name OS_USER_DOMAIN_NAME]</p>
<p class="MsoNormal"><span style="">              </span>[--os-project-id OS_PROJECT_ID]</p>
<p class="MsoNormal"><span style="">              </span>[--os-project-name OS_PROJECT_NAME]</p>
<p class="MsoNormal"><span style="">              </span>[--os-project-domain-id OS_PROJECT_DOMAIN_ID]</p>
<p class="MsoNormal"><span style="">              </span>[--os-project-domain-name OS_PROJECT_DOMAIN_NAME]</p>
<p class="MsoNormal"><span style="">              </span>[--os-password OS_PASSWORD] [--os-tenant-id OS_TENANT_ID]</p>
<p class="MsoNormal"><span style="">              </span>[--os-tenant-name OS_TENANT_NAME] [--os-auth-url OS_AUTH_URL]</p>
<p class="MsoNormal"><span style="">              </span>[--os-region-name OS_REGION_NAME]</p>
<p class="MsoNormal"><span style="">              </span>[--os-auth-token OS_AUTH_TOKEN]</p>
<p class="MsoNormal"><span style="">              </span>[--os-service-type OS_SERVICE_TYPE]</p>
<p class="MsoNormal"><span style="">              </span>[--os-endpoint-type OS_ENDPOINT_TYPE]</p>
<p class="MsoNormal"><span style="">              </span><subcommand> ...</p>
<p class="MsoNormal">glance: error: unrecognized arguments: qcow2 bare property is-public True</p>
<p class="MsoNormal"><br>
</p>
<p class="MsoNormal">root@user-ThinkCentre-M73:/tmp/images# glance image-create --property name "cirros-0.3.2-x86_64" --property disk-format=qcow2 --property container-format=bare --property is-public=True<span style=""> 
</span>< cirros-0.3.2-x86_64-disk.img</p>
<p class="MsoNormal">No handlers could be found for logger "glanceclient.common.http"</p>
<p class="MsoNormal">Request returned failure status 404.</p>
<p class="MsoNormal"><html></p>
<p class="MsoNormal"><span style=""> </span><head></p>
<p class="MsoNormal"><span style="">  </span><title>404 Not Found</title></p>
<p class="MsoNormal"><span style=""> </span></head></p>
<p class="MsoNormal"><span style=""> </span><body></p>
<p class="MsoNormal"><span style="">  </span><h1>404 Not Found</h1></p>
<p class="MsoNormal"><span style="">  </span>The resource could not be found.<br /><br /></p>
<p class="MsoNormal"> </p>
<p class="MsoNormal"><span style=""> </span></body></p>
<p class="MsoNormal"></html> (HTTP 404)</p>
<br>
<div>
<div>
<div class="gmail_quote"><br>
<br>
</div>
<div class="gmail_quote">Thanks,<br>
srinivas.<br>
<br>
</div>
<div class="gmail_quote">
<div dir="ltr"><br>
<div class="gmail_quote">hi Erno ,<br>
</div>
<div class="gmail_quote"> Thanks alot ..<br>
</div>
<div class="gmail_quote">i have set the  OS_IMAGE_URL=2 .<br>
<br>
</div>
<div class="gmail_quote">After that i have run glance image-create . Now i am getting different error .<br>
</div>
<div class="gmail_quote">pls help me .<br>
</div>
<div class="gmail_quote"><br>
root@user-ThinkCentre-M73:/tmp/images# glance image-create --name "cirros-0.3.2-x86_64" --disk-format qcow2 --container-format bare --is-public True --progress < cirros-0.3.2-x86_64-disk.img<br>
usage: glance [--version] [-d] [-v] [--get-schema] [--timeout TIMEOUT]<br>
              [--no-ssl-compression] [-f] [--os-image-url OS_IMAGE_URL]<br>
              [--os-image-api-version OS_IMAGE_API_VERSION] [-k]<br>
              [--os-cert OS_CERT] [--cert-file OS_CERT] [--os-key OS_KEY]<br>
              [--key-file OS_KEY] [--os-cacert <ca-certificate-file>]<br>
              [--ca-file OS_CACERT] [--os-username OS_USERNAME]<br>
              [--os-user-id OS_USER_ID]<br>
              [--os-user-domain-id OS_USER_DOMAIN_ID]<br>
              [--os-user-domain-name OS_USER_DOMAIN_NAME]<br>
              [--os-project-id OS_PROJECT_ID]<br>
              [--os-project-name OS_PROJECT_NAME]<br>
              [--os-project-domain-id OS_PROJECT_DOMAIN_ID]<br>
              [--os-project-domain-name OS_PROJECT_DOMAIN_NAME]<br>
              [--os-password OS_PASSWORD] [--os-tenant-id OS_TENANT_ID]<br>
              [--os-tenant-name OS_TENANT_NAME] [--os-auth-url OS_AUTH_URL]<br>
              [--os-region-name OS_REGION_NAME]<br>
              [--os-auth-token OS_AUTH_TOKEN]<br>
              [--os-service-type OS_SERVICE_TYPE]<br>
              [--os-endpoint-type OS_ENDPOINT_TYPE]<br>
              <subcommand> ...<br>
glance: error: unrecognized arguments: --name --disk-format qcow2 --container-format bare --is-public True --progress<br>
<br>
<br>
</div>
<div class="gmail_quote"><br>
</div>
<div class="gmail_quote">Thanks,<br>
srinivas.<br>
</div>
<div>
<div class="h5">
<div class="gmail_quote"><br>
</div>
<div class="gmail_quote"><br>
<div link="blue" vlink="purple" lang="EN-US">
<div>
<p class="MsoNormal"><span style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(31, 73, 125);">Hi srinivas,<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(31, 73, 125);"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(31, 73, 125);">If you issue just command glance, it will give you help text. The 4<sup>th</sup> from the bottom is –os-image-api-version which defaults to 1. I’m
 pretty sure you have not set this for yourself.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(31, 73, 125);"><u></u> <u></u></span></p>
<p><u></u><span style="font-size:11pt;font-family:"Calibri","sans-serif";color:rgb(31,73,125)"><span>-<span style="font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-family: 'Times New Roman';">         
</span></span></span><u></u><span style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(31, 73, 125);">Erno<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(31, 73, 125);"><u></u> <u></u></span></p>
<div style="border-width:medium medium medium 1.5pt;border-style:none none none solid;border-color:-moz-use-text-color -moz-use-text-color -moz-use-text-color blue;padding:0cm 0cm 0cm 4pt">
<div>
<div style="border-width:1pt medium medium;border-style:solid none none;border-color:rgb(225,225,225) -moz-use-text-color -moz-use-text-color;padding:3pt 0cm 0cm">
<p class="MsoNormal"><b><span style="font-size: 11pt; font-family: Calibri, sans-serif;">From:</span></b><span style="font-size: 11pt; font-family: Calibri, sans-serif;"> Srinivasreddy R [mailto:<a href="mailto:srinivasreddy4390@gmail.com" target="_blank">srinivasreddy4390@gmail.com</a>]
<br>
<b>Sent:</b> 11 September 2014 11:06<br>
<b>To:</b> <a href="mailto:openstack@lists.openstack.org" target="_blank">openstack@lists.openstack.org</a><br>
<b>Subject:</b> [Openstack] error connection refused while creating glance image<u></u><u></u></span></p>
</div>
</div>
<div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<div>
<p class="MsoNormal" style="margin-bottom:12pt">hi ,<u></u><u></u></p>
</div>
<p class="MsoNormal" style="margin-bottom:12pt">i am creating openstack 3 node setup .  following then installation guide .<br>
<br>
<a href="http://docs.openstack.org/icehouse/install-guide/install/apt/content/" target="_blank">http://docs.openstack.org/icehouse/install-guide/install/apt/content/</a><u></u><u></u></p>
<div>
<p class="MsoNormal" style="margin-bottom:12pt">i am getting connection refused error . someone pls help me .<br>
<br>
<br>
glance image-create --name "cirros-0.3.2-x86_64" --disk-format qcow2 --container-format bare --is-public True --progress < cirros-0.3.2-x86_64-disk.img<br>
Error finding address for <a href="http://controller:9292/v1/images" target="_blank">
http://controller:9292/v1/images</a>: [Errno 111] Connection refused<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal" style="margin-bottom:12pt">i have configured fo v2 but in error log it is v1.<br>
<br>
thanks,<br>
srinivas.<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<br>
</div>
</div>
</div>
</div>
<br>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</span>
</body>
</html>