Ask Your Question

g-api complaining about 'connection_errors' in 'RabbitStrategy'

asked 2013-06-19 15:06:17 -0500


When I tried to setup a new devstack this morning, the script '' failed on starting glance-api.

Log: + screen -S stack -p g-api -X stuff 'cd /opt/stack/glance; /usr/local/bin/glance-api --config-file=/etc/glance/glance-api.conf '| touch "/opt/stack/status/stack/g-api.failure" + echo 'Waiting for g-api ( to start...' Waiting for g-api ( to start... + timeout 60 sh -c 'while ! http_proxy= wget -q -O- ; do sleep 1; done' + die 191 'g-api did not start' + local exitcode=0 + set +o xtrace [ERROR] g-api did not start

I then tried to start glance-api manually: /opt/stack/devstack$ cd /opt/stack/glance; /usr/local/bin/glance-api --config-file=/etc/glance/glance-api.conf

After some debug lines, I got a critical error: 'RabbitStrategy' object has no attribute 'connection_errors'

Last log lines: 2013-06-19 10:56:58.727 16957 DEBUG glance.common.config [-] Loading glance-api-keystone+cachemanagement from /etc/glance/glance-api-paste.ini load_paste_app /opt/stack/glance/glance/common/ 2013-06-19 10:56:58.763 16957 WARNING glance.api.v2.images [-] Could not find schema properties file schema-image.json. Continuing without custom properties 2013-06-19 10:56:58.861 16957 DEBUG glance.notifier [-] Converted strategy alias rabbit to glance.notifier.notify_kombu.RabbitStrategy __init__ /opt/stack/glance/glance/notifier/ 2013-06-19 10:56:58.870 16957 INFO glance.notifier.notify_kombu [-] Connecting to AMQP server on localhost:5672 2013-06-19 10:56:58.896 16957 CRITICAL glance [-] 'RabbitStrategy' object has no attribute 'connection_errors'

Considering this bug only seems to affect me, and git is up-to-date on my computer, have you any ideas of what could cause this error?

Thanks in advance!

edit retag flag offensive close merge delete

3 answers

Sort by ยป oldest newest most voted

answered 2013-06-19 17:31:28 -0500

Hi again,

Fixed temporarily by modifying direclty sources: file glance/notifier/, l123

'self.connection_errors = self.connection.connection_errors' replaced by 'self.connection_errors = Exception'

Maybe not very accurate but it works.

edit flag offensive delete link more

answered 2013-06-19 15:59:54 -0500

The error is generated by line 123, file glance/notifier/ Indeed, 'connection_errors' is not an attribute of RabbitStrategy.

edit flag offensive delete link more

answered 2013-06-19 15:54:47 -0500

The err

edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2013-06-19 15:06:17 -0500

Seen: 214 times

Last updated: Jun 19 '13