charm-ceph-radosgw/unit_tests
Cornellius Metto 31a4584169 Enable HAProxy HTTP Health Checks
Ceph radosgw supports [0] the swift health check endpoint
"/swift/healthcheck". This change adds the haproxy
configuration [1] necessary to take the response of "GET
/swift/healthcheck" into account when determining the health
of a radosgw service.

For testing, I verified that:
- HAProxy starts and responds to requests normally with this
  configuration.
- Servers with status != 2xx or 3xx are removed from the
  backend.
- Servers that take too long to respond are also removed
  from the backend. The default timeout value is 2s.

[0] https://tracker.ceph.com/issues/11682
[1] https://www.haproxy.com/documentation/hapee/2-0r1/onepage/#4.2-option%20httpchk

Closes-Bug: 1946280
Change-Id: I82634255ca3423fec3fc15c1e714dcb31db5da7a
2022-02-18 12:50:54 +03:00
..
testdata Fix create_system_user so it returns creds 2021-12-02 17:37:55 -03:00
__init__.py Switch charm runtime to python3 2019-01-18 13:31:33 +02:00
test_actions.py Use unittest.mock instead of mock 2021-12-15 11:03:09 +00:00
test_ceph.py Use unittest.mock instead of mock 2021-12-15 11:03:09 +00:00
test_ceph_radosgw_context.py Enable HAProxy HTTP Health Checks 2022-02-18 12:50:54 +03:00
test_ceph_radosgw_utils.py Use unittest.mock instead of mock 2021-12-15 11:03:09 +00:00
test_hooks.py Use unittest.mock instead of mock 2021-12-15 11:03:09 +00:00
test_multisite.py Use unittest.mock instead of mock 2021-12-15 11:03:09 +00:00
test_utils.py Use unittest.mock instead of mock 2021-12-15 11:03:09 +00:00