Add healthcheck middleware

Bug #1338745 reported by John Dewey
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Identity (keystone)
Invalid
Wishlist
John Dewey

Bug Description

Would be useful for keystone to support a healthcheck URL for consumption by load balancers.

This middleware should provide the ability to manually disable the service via the existence of a file on the system's local disk. This middleware should also perform a basic application functionality [1] check prior to reporting OK.

Having this middleware would give us some flexibility around LB health checks we do not have today, and IMO would be beneficial. This is fairly similar to what swift [2] is doing as well.

[1] https://github.com/CiscoSystems/puppet-monit/blob/a459a7314ac4f0250ad8b9c6956a872b949840f1/files/healthcheck.py#L37
[2] https://github.com/openstack/swift/blob/0b594bc3afbffe942edebe9cdf02f60c06e627ab/swift/common/middleware/healthcheck.py

Tags: ops
John Dewey (retr0h)
description: updated
description: updated
Revision history for this message
Dolph Mathews (dolph) wrote :

It looks like swifts middleware could be moved to oslo, as there's nothing swift-specific about it. There's nothing stopping you from deploying that middleware in front of Keystone or swift, regardless of whether it lives in oslo or swift.

description: updated
Changed in keystone:
status: New → Opinion
importance: Undecided → Wishlist
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to keystone (master)

Fix proposed to branch: master
Review: https://review.openstack.org/105311

Changed in keystone:
assignee: nobody → John Dewey (retr0h)
status: Opinion → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on keystone (master)

Change abandoned by John Dewey (<email address hidden>) on branch: master
Review: https://review.openstack.org/105311
Reason: Moving to oslo-incubator per ML discussions.

John Dewey (retr0h)
Changed in keystone:
status: In Progress → Invalid
Revision history for this message
John Dewey (retr0h) wrote :
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.