From 737439aab51089c27e71137fc30388a87474dc25 Mon Sep 17 00:00:00 2001 From: Tim Rozet Date: Mon, 26 Feb 2018 17:42:33 -0500 Subject: [PATCH] Fixes OpenDaylight healthcheck Due to Jetty XML config changes for OpenDaylight, healtcheck no longer works. This patch moves the healtcheck to use the pax web config file, which should be a more consistent method of finding the values for host IP/port (INI settings). Also adds logic to support healthcheck with TLS based deployments. Closes-Bug: 1751928 Change-Id: I94f351ee3c71ddefe0b5c2bfdcd784d303ccbb24 Signed-off-by: Tim Rozet --- healthcheck/common.sh | 2 +- healthcheck/opendaylight-api | 13 +++++++++---- ...x-opendaylight-healthcheck-f9bc1d2e067c4680.yaml | 4 ++++ 3 files changed, 14 insertions(+), 5 deletions(-) create mode 100644 releasenotes/notes/fix-opendaylight-healthcheck-f9bc1d2e067c4680.yaml diff --git a/healthcheck/common.sh b/healthcheck/common.sh index 7d05f333b..85eb9a186 100644 --- a/healthcheck/common.sh +++ b/healthcheck/common.sh @@ -3,7 +3,7 @@ : ${HEALTHCHECK_CURL_WRITE_OUT:='\n%{http_code} %{remote_ip}:%{remote_port} %{time_total} seconds\n'} healthcheck_curl () { - curl -g -q --fail \ + curl -g -k -q --fail \ --max-time "${HEALTHCHECK_CURL_MAX_TIME}" \ --user-agent "${HEALTHCHECK_CURL_USER_AGENT}" \ --write-out "${HEALTHCHECK_CURL_WRITE_OUT}" \ diff --git a/healthcheck/opendaylight-api b/healthcheck/opendaylight-api index 0f5a1e43e..e43c2bff3 100644 --- a/healthcheck/opendaylight-api +++ b/healthcheck/opendaylight-api @@ -2,8 +2,13 @@ . ${HEALTHCHECK_SCRIPTS:-/usr/share/openstack-tripleo-common/healthcheck}/common.sh -file=/opt/opendaylight/etc/jetty.xml -bind_host=$(grep -r '' $file | awk -F'>' FNR==1'{print $2}') -bind_port=$(grep -r '