Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

/healthcheck does not report problem #958

Open
czunker opened this issue Aug 8, 2018 · 3 comments
Open

/healthcheck does not report problem #958

czunker opened this issue Aug 8, 2018 · 3 comments

Comments

@czunker
Copy link

czunker commented Aug 8, 2018

I'm not sure whether this is a gnocchi problem or oslo_middleware.
We are using Gnocchi in an OpenStack setup (openstack-ansible with Pike) with redis as incoming storage. Recently we had the problem, that redis died and gnocchi didn't answer API requests. a request to metric status was answered by a HTTP 500. Our HAProxy in front of the gnocchi API is configured to query /healthcheck. But it didn't report the backends as down.

Which version of Gnocchi are you using

gnocchi-4.0.5.dev8

How to reproduce your problem

Kill redis server, used as incoming storage. But that's just an example

What is the result that you get

/healthcheck returns HTTP 200

What is result that you expected

According to the oslo docs, I would expect a HTTP 503

@sileht
Copy link
Member

sileht commented Aug 8, 2018

Gnocchi does not implements any advanced feature of oslo.middleware.healthcheck.

So by default it always return 200.

The only available oslo.middleware.healthcheck backends are disable_by_file, disable_by_files_ports

@czunker
Copy link
Author

czunker commented Aug 8, 2018

Thanks for the info.
We will then work around that in another way.

@jd
Copy link
Member

jd commented Aug 16, 2018

We should replace that middleware by something better that actually implements what @czunker expects.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

3 participants