Ask Your Question

connection refused during image-create on glance

asked 2014-10-15 15:45:17 -0500

Durrani gravatar image

updated 2014-10-17 14:59:46 -0500

smaffulli gravatar image

i am getting error while creating image

my env vars are :

declare -x OS_AUTH_URL="http://controller:35357/v2.0"
declare -x OS_IMAGE_API_VERSION="2"
declare -x OS_PASSWORD="stack"
declare -x OS_TENANT_NAME="admin"
declare -x OS_USERNAME="admin"

Issue # 1:

1 )empty positional argument (unavailable) - how to populate/retreive them by running connection parameters

root@ubuntu-08:~# glance help image-create
usage: glance image-create [--property <key=value>] <unavailable>

Create a new image.

Positional arguments:
  <unavailable>         Please run with connection parameters set to retrieve
                        the schema for generating help for this command  <========= Empty list .. 

Optional arguments:
  --property <key=value>
                        Arbitrary property to associate with image. May be
                        used multiple times.

Issue # 2:

seeing connection refuse while attempting to create image ... i saw previous thread on it but couldn't find satisfying answer.

root@ubuntu-08:~# 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 

Error finding address for HTTPConnectionPool(host='', port=9292): Max retries exceeded with url: /v2/schemas/image (Caused by <class 'socket.error'>: [Errno 111] Connection refused)
edit retag flag offensive close merge delete


check your glance services, whether they are up and running

Syed Awais Ali gravatar imageSyed Awais Ali ( 2014-10-15 15:58:23 -0500 )edit

Yeah - I have checked that pasting here, look like service is running

root@ubuntu-08:~# ps aux | grep glance glance 7812 0.0 0.0 108676 37576 ? Rs 14:38 0:00 /usr/bin/python /usr/bin/glance-api root 7818 0.0 0.0 15940 920 pts/7 S+ 14:38 0:00 grep --color=auto glance

Durrani gravatar imageDurrani ( 2014-10-15 16:39:28 -0500 )edit

Also, is actually the ip address of the system on which glance is running?

larsks gravatar imagelarsks ( 2014-10-15 20:12:22 -0500 )edit

1 answer

Sort by ยป oldest newest most voted

answered 2014-10-15 20:10:43 -0500

larsks gravatar image

updated 2014-10-15 20:11:03 -0500

"Connection refused" is a clear error; it means the service is not actually listening. Don't use ps to verify that it is running; use netstat to verify that something is listening on port 9292. Please update your question rather than adding comments (it's easier to read that way).

edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2014-10-15 15:45:17 -0500

Seen: 4,133 times

Last updated: Oct 17 '14