[openstack-dev] [oslo][oslo.service] looping.RetryDecorator behavior

Joshua Harlow harlowja at fastmail.com
Thu Sep 21 15:41:39 UTC 2017


It does look like is sort of a bug,

Though in all honesty I wouldn't be using oslo.service or that looping 
code in the future for doing retrying...

https://pypi.python.org/pypi/tenacity is a much better library with more 
`natural` syntax and works more as one would expect (even under threaded 
situations).

If I could of I would of never let 'loopingcall.py' become a file that 
exists, but the past is the past, ha.

Renat Akhmerov wrote:
> Hi Oslo team,
>
> Can you please check the bug [1]?
>
> There may be a problem with how looping.RetryDecorator works. Just
> stumbled on it in Mistral. Not sure if it’s really a bug or made by
> design. If it’s by design then maybe we need to have more accurate
> documentation for it.
>
> FYI: We use this decorator in Mistral and it’s also used in Nova, [2].
>
> [1] https://bugs.launchpad.net/oslo.service/+bug/1718635
> [2]
> http://git.openstack.org/cgit/openstack/nova/tree/nova/virt/disk/mount/api.py
>
> Thanks
>
> Renat Akhmerov
> @Nokia
>
> __________________________________________________________________________
> OpenStack Development Mailing List (not for usage questions)
> Unsubscribe: OpenStack-dev-request at lists.openstack.org?subject:unsubscribe
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev



More information about the OpenStack-dev mailing list