[Openstack] Fwd: error connection refused while creating glance image

Srinivasreddy R srinivasreddy4390 at gmail.com
Thu Sep 11 15:41:52 UTC 2014


hi,
glance image-create not working for me .below is the command i tried .
pls help me .


root at 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  <
cirros-0.3.2-x86_64-disk.img

No handlers could be found for logger "glanceclient.common.http"

usage: glance [--version] [-d] [-v] [--get-schema] [--timeout TIMEOUT]

              [--no-ssl-compression] [-f] [--os-image-url OS_IMAGE_URL]

              [--os-image-api-version OS_IMAGE_API_VERSION] [-k]

              [--os-cert OS_CERT] [--cert-file OS_CERT] [--os-key OS_KEY]

              [--key-file OS_KEY] [--os-cacert <ca-certificate-file>]

              [--ca-file OS_CACERT] [--os-username OS_USERNAME]

              [--os-user-id OS_USER_ID]

              [--os-user-domain-id OS_USER_DOMAIN_ID]

              [--os-user-domain-name OS_USER_DOMAIN_NAME]

              [--os-project-id OS_PROJECT_ID]

              [--os-project-name OS_PROJECT_NAME]

              [--os-project-domain-id OS_PROJECT_DOMAIN_ID]

              [--os-project-domain-name OS_PROJECT_DOMAIN_NAME]

              [--os-password OS_PASSWORD] [--os-tenant-id OS_TENANT_ID]

              [--os-tenant-name OS_TENANT_NAME] [--os-auth-url OS_AUTH_URL]

              [--os-region-name OS_REGION_NAME]

              [--os-auth-token OS_AUTH_TOKEN]

              [--os-service-type OS_SERVICE_TYPE]

              [--os-endpoint-type OS_ENDPOINT_TYPE]

              <subcommand> ...

glance: error: unrecognized arguments: qcow2 bare property is-public True


root at 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  <
cirros-0.3.2-x86_64-disk.img

No handlers could be found for logger "glanceclient.common.http"

Request returned failure status 404.

<html>

 <head>

  <title>404 Not Found</title>

 </head>

 <body>

  <h1>404 Not Found</h1>

  The resource could not be found.<br /><br />



 </body>

</html> (HTTP 404)



Thanks,
srinivas.


hi Erno ,
 Thanks alot ..
i have set the  OS_IMAGE_URL=2 .

After that i have run glance image-create . Now i am getting different
error .
pls help me .

root at 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
usage: glance [--version] [-d] [-v] [--get-schema] [--timeout TIMEOUT]
              [--no-ssl-compression] [-f] [--os-image-url OS_IMAGE_URL]
              [--os-image-api-version OS_IMAGE_API_VERSION] [-k]
              [--os-cert OS_CERT] [--cert-file OS_CERT] [--os-key OS_KEY]
              [--key-file OS_KEY] [--os-cacert <ca-certificate-file>]
              [--ca-file OS_CACERT] [--os-username OS_USERNAME]
              [--os-user-id OS_USER_ID]
              [--os-user-domain-id OS_USER_DOMAIN_ID]
              [--os-user-domain-name OS_USER_DOMAIN_NAME]
              [--os-project-id OS_PROJECT_ID]
              [--os-project-name OS_PROJECT_NAME]
              [--os-project-domain-id OS_PROJECT_DOMAIN_ID]
              [--os-project-domain-name OS_PROJECT_DOMAIN_NAME]
              [--os-password OS_PASSWORD] [--os-tenant-id OS_TENANT_ID]
              [--os-tenant-name OS_TENANT_NAME] [--os-auth-url OS_AUTH_URL]
              [--os-region-name OS_REGION_NAME]
              [--os-auth-token OS_AUTH_TOKEN]
              [--os-service-type OS_SERVICE_TYPE]
              [--os-endpoint-type OS_ENDPOINT_TYPE]
              <subcommand> ...
glance: error: unrecognized arguments: --name --disk-format qcow2
--container-format bare --is-public True --progress



Thanks,
srinivas.


 Hi srinivas,



If you issue just command glance, it will give you help text. The 4th from
the bottom is –os-image-api-version which defaults to 1. I’m pretty sure
you have not set this for yourself.



-          Erno



*From:* Srinivasreddy R [mailto:srinivasreddy4390 at gmail.com]
*Sent:* 11 September 2014 11:06
*To:* openstack at lists.openstack.org
*Subject:* [Openstack] error connection refused while creating glance image



hi ,

i am creating openstack 3 node setup .  following then installation guide .

http://docs.openstack.org/icehouse/install-guide/install/apt/content/

i am getting connection refused error . someone pls help me .


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
Error finding address for http://controller:9292/v1/images: [Errno 111]
Connection refused

i have configured fo v2 but in error log it is v1.

thanks,
srinivas.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack/attachments/20140911/fb395e34/attachment.html>


More information about the Openstack mailing list