From 2becf42dc66b327c84c024b3bb1e9e4dd2dbbd0d Mon Sep 17 00:00:00 2001 From: aguilard Date: Thu, 10 Aug 2023 07:45:44 +0000 Subject: [PATCH] Add check on installation of helm-charts in install_ngsa.sh Increased timeout for deploying Airflow helm-chart. Change-Id: Ib2d9c1802739dc2288ed9b827e23ea6f7c22d07c Signed-off-by: aguilard Signed-off-by: garciadeblas --- installers/install_ngsa.sh | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/installers/install_ngsa.sh b/installers/install_ngsa.sh index fb86817e..56da955c 100755 --- a/installers/install_ngsa.sh +++ b/installers/install_ngsa.sh @@ -36,11 +36,11 @@ function install_airflow() { # if it does not exist, create secrets and install helm repo add apache-airflow https://airflow.apache.org helm repo update - helm -n osm install airflow apache-airflow/airflow -f ${OSM_HELM_WORK_DIR}/airflow-values.yaml --version ${AIRFLOW_HELM_VERSION} + helm -n osm install airflow apache-airflow/airflow -f ${OSM_HELM_WORK_DIR}/airflow-values.yaml --version ${AIRFLOW_HELM_VERSION} --timeout 10m || FATAL_TRACK ngsa "Failed installing airflow helm chart" else # if it exists, upgrade helm repo update - helm -n osm upgrade airflow apache-airflow/airflow -f ${OSM_HELM_WORK_DIR}/airflow-values.yaml --version ${AIRFLOW_HELM_VERSION} + helm -n osm upgrade airflow apache-airflow/airflow -f ${OSM_HELM_WORK_DIR}/airflow-values.yaml --version ${AIRFLOW_HELM_VERSION} || FATAL_TRACK ngsa "Failed installing airflow helm chart" fi [ -z "${DEBUG_INSTALL}" ] || DEBUG end of function } @@ -52,11 +52,11 @@ function install_prometheus_pushgateway() { # if it does not exist, install helm repo add prometheus-community https://prometheus-community.github.io/helm-charts helm repo update - helm -n osm install pushgateway prometheus-community/prometheus-pushgateway --version ${PROMPUSHGW_HELM_VERSION} + helm -n osm install pushgateway prometheus-community/prometheus-pushgateway --version ${PROMPUSHGW_HELM_VERSION} || FATAL_TRACK ngsa "Failed installing pushgateway helm chart" else # if it exists, upgrade helm repo update - helm -n osm upgrade pushgateway prometheus-community/prometheus-pushgateway --version ${PROMPUSHGW_HELM_VERSION} + helm -n osm upgrade pushgateway prometheus-community/prometheus-pushgateway --version ${PROMPUSHGW_HELM_VERSION} || FATAL_TRACK ngsa "Failed installing pushgateway helm chart" fi [ -z "${DEBUG_INSTALL}" ] || DEBUG end of function } @@ -71,11 +71,11 @@ function install_prometheus_alertmanager() { # if it does not exist, install helm repo add prometheus-community https://prometheus-community.github.io/helm-charts helm repo update - helm -n osm install alertmanager prometheus-community/alertmanager -f ${OSM_HELM_WORK_DIR}/alertmanager-values.yaml --version ${ALERTMANAGER_HELM_VERSION} + helm -n osm install alertmanager prometheus-community/alertmanager -f ${OSM_HELM_WORK_DIR}/alertmanager-values.yaml --version ${ALERTMANAGER_HELM_VERSION} || FATAL_TRACK ngsa "Failed installing alertmanager helm chart" else # if it exists, upgrade helm repo update - helm -n osm upgrade alertmanager prometheus-community/alertmanager -f ${OSM_HELM_WORK_DIR}/alertmanager-values.yaml --version ${ALERTMANAGER_HELM_VERSION} + helm -n osm upgrade alertmanager prometheus-community/alertmanager -f ${OSM_HELM_WORK_DIR}/alertmanager-values.yaml --version ${ALERTMANAGER_HELM_VERSION} || FATAL_TRACK ngsa "Failed installing alertmanager helm chart" fi [ -z "${DEBUG_INSTALL}" ] || DEBUG end of function } -- 2.25.1