Patrole tests occasionally fail while executing tests that test the
Identity v3 Extensions API [0]. Previously, this was not the case when
we used Fernet tokens and used a time.sleep(1) to allow for
role-switching to work correctly. However, we recently changed over to
UUID tokens in the Patrole gates to avoid doing a time.sleep(1), as a
time efficiency change. Ordinarily -- for well over 500 or so tests --
this approach works successfully, with the exception of what appears
to be *random* v3 API extension tests [1][2] (random means different
tests pass or fail randomly across separate test runs).

While there are a few solutions that come to mind on how to solve this
Patrole-side (like re-introducing a time.sleep() for specific APIs or
even avoiding role-switching altogether which is not as
straightforward as it sounds), we would still not understand *why* the
issue is happening in the first place. Is it a data-race condition?
Something specific to the identity v3 extensions API? A potential bug
or intended behavior somewhere?


OpenStack Development Mailing List (not for usage questions)

Reply via email to