]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Update ensure()/reconnect() to catch MessagingError
authorRussell Bryant <rbryant@redhat.com>
Wed, 9 Apr 2014 15:32:44 +0000 (11:32 -0400)
committerThomas Goirand <thomas@goirand.fr>
Mon, 9 Jun 2014 15:06:54 +0000 (23:06 +0800)
commit47c72a77fe4ae9febbe0f09e3a90a0fac4e06e4a
treeae21426c655649054a1acc4c1f273d36ecdc9cc3
parentb5f6ae41af496a44dcaf5cc46bc8527c9cbf131a
Update ensure()/reconnect() to catch MessagingError

The error handling code that gets connections reset if necessary
caught ConnectionError. It really needs to catch MessagingError,
which ConnectionError inherits from. There are other types of
MessagingErrors that may occur, such as InternalError, and they need
to cause the connection to reset, as well.

This fix has already been merged into oslo.messaging.

--

Cherry-picked from oslo-incubator 234f64d608266f43d8856ff98c89ceba6699d752
See also https://bugzilla.redhat.com/show_bug.cgi?id=1086077

Closes-bug: #1303890
Change-Id: Ic5082b74a362ded8b35cbc75cf178fe6e0db62d0
(cherry picked from commit 9a830b370551019a4bd3a0c7504f48961e755bd4)
neutron/openstack/common/rpc/impl_qpid.py