[openstack-dev] [oslo] RPC call not appearing to retry

Mehdi Abaakouk sileht at sileht.net
Tue Aug 16 16:28:53 UTC 2016


Hi,

Le 2016-08-15 04:50, Eric K a écrit :
> Hi all, I'm running into an issue with oslo-messaging PRC call not
> appearing to retry. If I do oslo_messaging.RPCClient(transport, target,
> timeout=5, retry=10).call(self.context, method, **kwargs) using a topic
> with no listeners, I consistently get the MessagingTimeout exception in 
> 5
> seconds, with no apparent retry attempt. Any tips on whether this is a
> user error or a bug or a feature? Thanks so much!

About retry, from 
http://docs.openstack.org/developer/oslo.messaging/rpcclient.html:

"By default, cast() and call() will block until the message is 
successfully sent. However, the retry parameter can be used to have 
message sending fail with a MessageDeliveryFailure after the given 
number of retries."

It looks like it retries in case of MessageDeliveryFailure not 
MessagingTimeout.

Cheers,

-- 
Mehdi Abaakouk
mail: sileht at sileht.net
irc: sileht



More information about the OpenStack-dev mailing list