[Openstack] Fwd: error connection refused while creating glance image
Satya Routray (satroutr)
satroutr at cisco.com
Thu Sep 11 16:02:56 UTC 2014
Try
glance image-create --name "cirros" --is-public true --disk-format raw --file cirros-0.3.2-x86_64-disk.raw --container-format bare
See if you are facing any issue
NOTE: you need to source the rc file and run it from the folder where the raw or qcow2 image is present…
Thanks
Satya
From: Srinivasreddy R <srinivasreddy4390 at gmail.com<mailto:srinivasreddy4390 at gmail.com>>
Date: Thursday, 11 September 2014 9:10 pm
To: "openstack at lists.openstack.org<mailto:openstack at lists.openstack.org>" <openstack at lists.openstack.org<mailto:openstack at lists.openstack.org>>, "kuvaja at hp.com<mailto:kuvaja at hp.com>" <kuvaja at hp.com<mailto:kuvaja at hp.com>>
Subject: [Openstack] Fwd: error connection refused while creating glance image
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<mailto:srinivasreddy4390 at gmail.com>]
Sent: 11 September 2014 11:06
To: openstack at lists.openstack.org<mailto: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/0c429df4/attachment.html>
More information about the Openstack
mailing list