Glance image-create fails with VersionError in Havana [closed]

asked 2013-11-22 19:11:58 -0500

desalvo gravatar image

updated 2013-11-22 19:12:52 -0500

Hi,

I'm setting up an havana controller, using the puppetlabs openstack modules so the RDO repository, on a CentOS 6.4 box. The installation of the controller itself is successful, and all the services are up. Anyway, when I try to load an image using glance image-create, it fails with:

Request returned failure status.
HTTPInternalServerError (HTTP 500)

Looking at the glance api log I see in fact:

2013-11-23 01:57:55.235 5169 ERROR glance.notifier.notify_qpid [f202f4c5-7abb-47dd-a0d2-52834be3af22 d4d20cdbc62d440990c03fc59c7a0c9e 423061e1f75f4ca0951dc98f01cdc34b] Notification error.  Priority: info Message: {'event_type': 'image.create', 'timestamp': '2013-11-23 00:57:55.202514', 'message_id': '92a4ca0c-9edf-4f89-8423-4f2e3b8af910', 'priority': 'INFO', 'publisher_id': 'atlas-cloud-fe-test.roma1.infn.it', 'payload': {u'status': u'queued', u'deleted': False, u'container_format': u'bare', u'min_ram': 0, u'updated_at': u'2013-11-23T00:57:55', u'owner': u'423061e1f75f4ca0951dc98f01cdc34b', u'min_disk': 0, u'is_public': False, u'deleted_at': None, u'id': u'f5a49e9e-fbbc-4b89-bddb-7493d7864541', u'size': 237371392, u'name': u'fedora19-x86_64', u'checksum': None, u'created_at': u'2013-11-23T00:57:55', u'disk_format': u'qcow2', u'properties': {}, u'protected': False}}
2013-11-23 01:57:55.235 5169 TRACE glance.notifier.notify_qpid Traceback (most recent call last):
2013-11-23 01:57:55.235 5169 TRACE glance.notifier.notify_qpid   File "/usr/lib/python2.6/site-packages/glance/notifier/notify_qpid.py", line 130, in _send
2013-11-23 01:57:55.235 5169 TRACE glance.notifier.notify_qpid     connection = self._open_connection()
2013-11-23 01:57:55.235 5169 TRACE glance.notifier.notify_qpid   File "/usr/lib/python2.6/site-packages/glance/notifier/notify_qpid.py", line 108, in _open_connection
2013-11-23 01:57:55.235 5169 TRACE glance.notifier.notify_qpid     connection.open()
2013-11-23 01:57:55.235 5169 TRACE glance.notifier.notify_qpid   File "<string>", line 6, in open
2013-11-23 01:57:55.235 5169 TRACE glance.notifier.notify_qpid   File "/usr/lib/python2.6/site-packages/qpid/messaging/endpoints.py", line 256, in open
2013-11-23 01:57:55.235 5169 TRACE glance.notifier.notify_qpid     self.attach()
2013-11-23 01:57:55.235 5169 TRACE glance.notifier.notify_qpid   File "<string>", line 6, in attach
2013-11-23 01:57:55.235 5169 TRACE glance.notifier.notify_qpid   File "/usr/lib/python2.6/site-packages/qpid/messaging/endpoints.py", line 274, in attach
2013-11-23 01:57:55.235 5169 TRACE glance.notifier.notify_qpid     self._ewait(lambda: self._transport_connected and not self._unlinked())
2013-11-23 01:57:55.235 5169 TRACE glance.notifier.notify_qpid   File "/usr/lib/python2.6/site-packages/qpid/messaging/endpoints.py", line 209, in _ewait
2013-11-23 01:57:55.235 5169 TRACE glance.notifier.notify_qpid     self.check_error()
2013-11-23 01:57:55.235 5169 TRACE glance.notifier.notify_qpid   File "/usr/lib/python2.6/site-packages/qpid/messaging/endpoints.py", line 202, in check_error
2013-11-23 01:57:55.235 5169 TRACE glance.notifier.notify_qpid     raise self.error
2013-11-23 01:57:55.235 5169 TRACE glance.notifier.notify_qpid VersionError: client: 0-10, server: 9-1
2013-11-23 01:57:55.235 5169 TRACE glance.notifier.notify_qpid

And in the rabbitmq server log I see also:

=ERROR REPORT==== 23-Nov-2013::01:57:55 ===
closing AMQP connection <0.854.0> ([::1]:39120 -> [::1]:5672):
{bad_version,{1,1,0,10}}

So, it seems that the client ... (more)

edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by dheeru
close date 2013-11-22 21:44:02.782060

Comments

1

I'm seeing Qpid and RabbitMQ here. Do you right configuration in glance-api.conf glance-registry.conf to use RabbitMQ ?

dheeru gravatar imagedheeru ( 2013-11-22 20:39:47 -0500 )edit

1 answer

Sort by ยป oldest newest most voted
2

answered 2013-11-22 20:48:27 -0500

desalvo gravatar image

Thanks.

In fact it turned out that the parameter notifier_strategy was missing in my glance-api.conf. So, eithe setting notifier_strategy = rabbit or notifier_strategy = noop works. Anyway I'm puzzled, since noop should be the default, or is it different in havana? Thanks

edit flag offensive delete link more

Comments

Rabbit is default in Openstack. RedHat uses QPID. Looks like you are running RabbitMQ. So you need to set the Rabbit configuration in glance conf file.

dheeru gravatar imagedheeru ( 2013-11-22 20:55:09 -0500 )edit

I see, thanks. So I was just fooled by the comment in the glance-api.conf, which must be wrong. # ============ Notification System Options ===================== # Notifications can be sent when images are create, updated or deleted. # There are three methods of sending notifications, logging (via the # log_file directive), rabbit (via a rabbitmq queue), qpid (via a Qpid # message queue), or noop (no notifications sent, the default) Anyway, it works now, thanks!

desalvo gravatar imagedesalvo ( 2013-11-22 20:59:59 -0500 )edit

This cool and your issue is resolved. I will go ahead and close the issue. If my ans below gave any direction please vote for my ans below. Just click on up arrow which is next to my ans. Have a good day.

dheeru gravatar imagedheeru ( 2013-11-22 21:43:44 -0500 )edit

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2013-11-22 19:11:58 -0500

Seen: 960 times

Last updated: Nov 22 '13