glance image-create time out

Asked by Adam Iwanowski

Hello.

Im trying to install OpenStack using this manual - http://docs.openstack.org/folsom/basic-install/content/basic-install_intro.html
After encoutering few problems i came across one that i can't solve.

root@controller:~# glance image-create --location http://uec-images.ubuntu.com/releases/12.04/release/ubuntu-12.04-server-cloudimg-amd64-disk1.img --is-public true --disk-format qcow2 --container-format bare --name "Ubuntu"
Error communicating with /v1/images: timed out

and

root@controller:~# glance image-list
Error communicating with /v1/images/detail?limit=20: timed out

I followed manual step by step, did same network config ect. Any ideas what to do with?
I can include listings of my conf files if needed.

Question information

Language:
English Edit question
Status:
Answered
For:
Glance Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Brian Waldon (bcwaldon) said :
#1

You should look in your glance-api log for any ERROR or TRACE lines. It's not obvious from your report what exactly is failing. Did you attempt to download this image through Glance, or just view the metadata?

Revision history for this message
Adam Iwanowski (a-iwanowski) said :
#2

Hey.

I tryied to download image through Glance. This is listing of my glance api log :

2013-03-04 11:55:06 1541 INFO glance.notifier.notify_kombu [-] Reconnecting to AMQP server on localhost:5672
2013-03-04 11:55:09 1541 ERROR glance.notifier.notify_kombu [-] AMQP server on localhost:5672 is unreachable: Socket closed. Trying again in 30 seconds.
2013-03-04 11:55:09 1541 TRACE glance.notifier.notify_kombu Traceback (most recent call last):
2013-03-04 11:55:09 1541 TRACE glance.notifier.notify_kombu File "/usr/lib/python2.7/dist-packages/glance/notifier/notify_kombu.py", line 130, in reconnect
2013-03-04 11:55:09 1541 TRACE glance.notifier.notify_kombu self._connect()
2013-03-04 11:55:09 1541 TRACE glance.notifier.notify_kombu File "/usr/lib/python2.7/dist-packages/glance/notifier/notify_kombu.py", line 102, in _connect
2013-03-04 11:55:09 1541 TRACE glance.notifier.notify_kombu self.connection.connect()
2013-03-04 11:55:09 1541 TRACE glance.notifier.notify_kombu File "/usr/lib/python2.7/dist-packages/kombu/connection.py", line 146, in connect
2013-03-04 11:55:09 1541 TRACE glance.notifier.notify_kombu return self.connection
2013-03-04 11:55:09 1541 TRACE glance.notifier.notify_kombu File "/usr/lib/python2.7/dist-packages/kombu/connection.py", line 574, in connection
2013-03-04 11:55:09 1541 TRACE glance.notifier.notify_kombu self._connection = self._establish_connection()
2013-03-04 11:55:09 1541 TRACE glance.notifier.notify_kombu File "/usr/lib/python2.7/dist-packages/kombu/connection.py", line 533, in _establish_connection
2013-03-04 11:55:09 1541 TRACE glance.notifier.notify_kombu conn = self.transport.establish_connection()
2013-03-04 11:55:09 1541 TRACE glance.notifier.notify_kombu File "/usr/lib/python2.7/dist-packages/kombu/transport/amqplib.py", line 279, in establish_connection
2013-03-04 11:55:09 1541 TRACE glance.notifier.notify_kombu connect_timeout=conninfo.connect_timeout)
2013-03-04 11:55:09 1541 TRACE glance.notifier.notify_kombu File "/usr/lib/python2.7/dist-packages/kombu/transport/amqplib.py", line 89, in __init__
2013-03-04 11:55:09 1541 TRACE glance.notifier.notify_kombu super(Connection, self).__init__(*args, **kwargs)
2013-03-04 11:55:09 1541 TRACE glance.notifier.notify_kombu File "/usr/lib/python2.7/dist-packages/amqplib/client_0_8/connection.py", line 144, in __init__
2013-03-04 11:55:09 1541 TRACE glance.notifier.notify_kombu (10, 30), # tune
2013-03-04 11:55:09 1541 TRACE glance.notifier.notify_kombu File "/usr/lib/python2.7/dist-packages/amqplib/client_0_8/abstract_channel.py", line 95, in wait
2013-03-04 11:55:09 1541 TRACE glance.notifier.notify_kombu self.channel_id, allowed_methods)
2013-03-04 11:55:09 1541 TRACE glance.notifier.notify_kombu File "/usr/lib/python2.7/dist-packages/amqplib/client_0_8/connection.py", line 202, in _wait_method
2013-03-04 11:55:09 1541 TRACE glance.notifier.notify_kombu self.method_reader.read_method()
2013-03-04 11:55:09 1541 TRACE glance.notifier.notify_kombu File "/usr/lib/python2.7/dist-packages/amqplib/client_0_8/method_framing.py", line 221, in read_method
2013-03-04 11:55:09 1541 TRACE glance.notifier.notify_kombu raise m
2013-03-04 11:55:09 1541 TRACE glance.notifier.notify_kombu IOError: Socket closed

Revision history for this message
Brian Waldon (bcwaldon) said :
#3

It's pretty obvious that Glance can't talk to your amqp server to send it's notifications. Glance admittedly isn't handling this failure very well, but you could get around this by either tracking down why that connection fails or by turning off notifications altogether.

Revision history for this message
Gowri (gouribudal) said :
#4

Hi Adam Iwanowski,

 Can you tell me whether this problem is solved ? I wanted to know how I can download images from Glance. I tried to download but I was unsuccessful.Can you help me with this ?

Thanks,
Gowri

Can you help with this problem?

Provide an answer of your own, or ask Adam Iwanowski for more information if necessary.

To post a message you must log in.