Due to eventlet threading weirdness, it appears that sometimes a request
that is destined for the compute api fixture ends up on the placement
api fixture. The latter uses a no auth middleware that 401s when it does
not get a token.
The change retries the auth request a few times before failing.
If this has no effect, doing an eventlet.sleep() before the retry might
be something worth trying.
Reviewed: https:/ /review. openstack. org/486190 /git.openstack. org/cgit/ openstack/ nova/commit/ ?id=068f85dc384 58af122ded035d3 6d2451b6bd5af6
Committed: https:/
Submitter: Jenkins
Branch: master
commit 068f85dc38458af 122ded035d36d24 51b6bd5af6
Author: Chris Dent <email address hidden>
Date: Fri Jul 21 19:13:43 2017 +0100
retry on authentication failure in api_client
Due to eventlet threading weirdness, it appears that sometimes a request
that is destined for the compute api fixture ends up on the placement
api fixture. The latter uses a no auth middleware that 401s when it does
not get a token.
The change retries the auth request a few times before failing.
If this has no effect, doing an eventlet.sleep() before the retry might
be something worth trying.
Change-Id: I9ca2022ca956be 5ea67f4c40bed80 115f2fae29d
Related-Bug: #1705753