update heartbeat vars to check response
Several API services use 300 to indicate it's up, this change add the ability to check for that. Change-Id: Ic85f6cff3bc225b29ae0e3e8fbd19eceece00441 Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
This commit is contained in:
parent
4a7651c6d2
commit
422b13fd86
@ -217,6 +217,8 @@ heartbeat.monitors:
|
|||||||
#body:
|
#body:
|
||||||
|
|
||||||
# Expected response settings
|
# Expected response settings
|
||||||
|
{% if item.check_response is defined %}
|
||||||
|
check.response: {{ item.check_response }}
|
||||||
#check.response:
|
#check.response:
|
||||||
# Expected status code. If not configured or set to 0 any status code not
|
# Expected status code. If not configured or set to 0 any status code not
|
||||||
# being 404 is accepted.
|
# being 404 is accepted.
|
||||||
@ -227,6 +229,7 @@ heartbeat.monitors:
|
|||||||
|
|
||||||
# Required response contents.
|
# Required response contents.
|
||||||
#body:
|
#body:
|
||||||
|
{% endif %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
@ -89,6 +89,8 @@ heartbeat_services:
|
|||||||
type: http
|
type: http
|
||||||
method: HEAD
|
method: HEAD
|
||||||
path: "/"
|
path: "/"
|
||||||
|
check_response:
|
||||||
|
status: 300
|
||||||
- group: "{{ groups['heat_api'] | default([]) }}"
|
- group: "{{ groups['heat_api'] | default([]) }}"
|
||||||
name: heat api
|
name: heat api
|
||||||
ports:
|
ports:
|
||||||
@ -96,6 +98,8 @@ heartbeat_services:
|
|||||||
type: http
|
type: http
|
||||||
method: HEAD
|
method: HEAD
|
||||||
path: "/"
|
path: "/"
|
||||||
|
check_response:
|
||||||
|
status: 300
|
||||||
- group: "{{ groups['keystone_all'] | default([]) }}"
|
- group: "{{ groups['keystone_all'] | default([]) }}"
|
||||||
name: keystone api
|
name: keystone api
|
||||||
ports:
|
ports:
|
||||||
@ -104,6 +108,8 @@ heartbeat_services:
|
|||||||
type: http
|
type: http
|
||||||
method: HEAD
|
method: HEAD
|
||||||
path: "/"
|
path: "/"
|
||||||
|
check_response:
|
||||||
|
status: 300
|
||||||
- group: "{{ groups['neutron_server'] | default([]) }}"
|
- group: "{{ groups['neutron_server'] | default([]) }}"
|
||||||
name: neutron server
|
name: neutron server
|
||||||
ports:
|
ports:
|
||||||
@ -146,6 +152,8 @@ heartbeat_services:
|
|||||||
type: http
|
type: http
|
||||||
method: HEAD
|
method: HEAD
|
||||||
path: "/"
|
path: "/"
|
||||||
|
check_response:
|
||||||
|
status: 300
|
||||||
- group: "{{ groups['horizon_all'] | default([]) }}"
|
- group: "{{ groups['horizon_all'] | default([]) }}"
|
||||||
name: horizon
|
name: horizon
|
||||||
ports:
|
ports:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user