keystonemiddleware/releasenotes/notes/bug-1747655-6e563d9317bb0f13.yaml
Chris Dent d3352ff422 Identify the keystone service when raising 503
When the keystonemiddleware is used directly in the WSGI stack of an
application, the 503 that is raised when the keystone service errors
or cannot be reached needs to identify that keystone is the service
that has failed, otherwise it appears to the client that it is the
service they are trying to access is down, which is misleading.

This addresses the problem in the most straightforward way possible:
the exception that causes the 503 is given a message including the
word "Keystone".

The call method in BaseAuthTokenTestCase gains an
expected_body_string kwarg. If not None, the response body (as
a six.text_type) is compared with the value.

Change-Id: Idf211e7bc99139744af232f5ea3ecb4be41551ca
Closes-Bug: #1747655
Closes-Bug: #1749797
2018-02-20 17:32:41 +01:00

10 lines
443 B
YAML

---
fixes:
- |
[`bug/1747655 <https://bugs.launchpad.net/keystonemiddleware/+bug/1747655>`_]
When keystone is temporarily unavailable, keystonemiddleware correctly
sends a 503 response to the HTTP client but was not identifying which
service was down, leading to confusion on whether it was keystone or the
service using keystonemiddleware that was unavailable. This change
identifies keystone in the error response.