2017-09-27 12:38:08 |
Daniel Marks |
description |
DISTRIB_ID="OSA"
DISTRIB_RELEASE="15.1.8"
DISTRIB_CODENAME="Ocata"
DISTRIB_DESCRIPTION="OpenStack-Ansible"
When deploying the os_aodh role the backends appear as "DOWN" in the haproxy.
backend aodh_api-back
mode http
balance leastconn
stick store-request src
stick-table type ip size 256k expire 30m
option forwardfor
option httplog
option httpchk HEAD /
http-check expect status 401
The HEAD / actually returns "200 OK":
# curl -v http://ctr0002_aodh_container-3e25f851:8042/
* Trying 10.96.224.244...
* Connected to ctr0002_aodh_container-3e25f851 (10.96.224.244) port 8042 (#0)
> GET / HTTP/1.1
> Host: ctr0002_aodh_container-3e25f851:8042
> User-Agent: curl/7.47.0
> Accept: */*
>
< HTTP/1.1 200 OK
< Date: Wed, 27 Sep 2017 12:31:12 GMT
< Server: Apache
< Content-Length: 449
< Content-Type: application/json; charset=UTF-8
<
* Connection #0 to host ctr0002_aodh_container-3e25f851 left intact
{"versions": {"values": [{"status": "stable", "updated": "2013-02-13T00:00:00Z", "media-types": [{"base": "application/json", "type": "application/vnd.openstack.telemetry-v2+json"}, {"base": "application/xml", "type": "application/vnd.openstack.telemetry-v2+xml"}], "id": "v2", "links": [{"href": "http://ctr0002_aodh_container-3e25f851:8042/v2", "rel": "self"}, {"href": "http://docs.openstack.org/", "type": "text/html", "rel": "describedby"}]}]}}
The expected status would be returned by a "HEAD /v2" :
# curl --head http://ctr0002_aodh_container-3e25f851:8042/v2
HTTP/1.1 401 Unauthorized
Date: Wed, 27 Sep 2017 12:33:06 GMT
Server: Apache
x-openstack-request-id: req-965115bc-97a9-4d37-967a-47350eb24149
WWW-Authenticate: Keystone uri='http://internal-api.dev10.metro.cloud:5000'
Content-Length: 114
Content-Type: application/json
But as aodh does currently not implement the "/healthcheck" we should stick with "HEAD /" as for most of the other backends. |
DISTRIB_ID="OSA"
DISTRIB_RELEASE="15.1.8"
DISTRIB_CODENAME="Ocata"
DISTRIB_DESCRIPTION="OpenStack-Ansible"
When deploying the os_aodh role the backends appear as "DOWN" in the haproxy.
backend aodh_api-back
mode http
balance leastconn
stick store-request src
stick-table type ip size 256k expire 30m
option forwardfor
option httplog
option httpchk HEAD /
http-check expect status 401
The HEAD / actually returns "200 OK":
# curl -v http://ctr0002_aodh_container-3e25f851:8042/
* Trying 10.96.224.244...
* Connected to ctr0002_aodh_container-3e25f851 (10.96.224.244) port 8042 (#0)
> GET / HTTP/1.1
> Host: ctr0002_aodh_container-3e25f851:8042
> User-Agent: curl/7.47.0
> Accept: */*
>
< HTTP/1.1 200 OK
< Date: Wed, 27 Sep 2017 12:31:12 GMT
< Server: Apache
< Content-Length: 449
< Content-Type: application/json; charset=UTF-8
<
* Connection #0 to host ctr0002_aodh_container-3e25f851 left intact
{"versions": {"values": [{"status": "stable", "updated": "2013-02-13T00:00:00Z", "media-types": [{"base": "application/json", "type": "application/vnd.openstack.telemetry-v2+json"}, {"base": "application/xml", "type": "application/vnd.openstack.telemetry-v2+xml"}], "id": "v2", "links": [{"href": "http://ctr0002_aodh_container-3e25f851:8042/v2", "rel": "self"}, {"href": "http://docs.openstack.org/", "type": "text/html", "rel": "describedby"}]}]}}
The expected status would be returned by a "HEAD /v2" :
# curl --head http://ctr0002_aodh_container-3e25f851:8042/v2
HTTP/1.1 401 Unauthorized
Date: Wed, 27 Sep 2017 12:33:06 GMT
Server: Apache
x-openstack-request-id: req-965115bc-97a9-4d37-967a-47350eb24149
Content-Length: 114
Content-Type: application/json
But as aodh does currently not implement the "/healthcheck" we should stick with "HEAD /" as for most of the other backends. |
|