nova: Update script to true of grep does get anything.

Change-Id: I54addea00b4ab91d8fe4925f88cacd582888a7f3
This commit is contained in:
Gupta, Sangeet (sg774j) 2021-10-06 14:02:45 +00:00
parent b75545d0c6
commit a772a30f07
3 changed files with 4 additions and 3 deletions

View File

@ -14,7 +14,7 @@ apiVersion: v1
appVersion: v1.0.0 appVersion: v1.0.0
description: OpenStack-Helm Nova description: OpenStack-Helm Nova
name: nova name: nova
version: 0.2.19 version: 0.2.20
home: https://docs.openstack.org/nova/latest/ home: https://docs.openstack.org/nova/latest/
icon: https://www.openstack.org/themes/openstack/images/project-mascots/Nova/OpenStack_Project_Nova_vertical.png icon: https://www.openstack.org/themes/openstack/images/project-mascots/Nova/OpenStack_Project_Nova_vertical.png
sources: sources:

View File

@ -18,9 +18,9 @@ set -xe
# If any non-compute service is down, then sleep for 2 times the report_interval # If any non-compute service is down, then sleep for 2 times the report_interval
# to confirm service is still down. # to confirm service is still down.
DISABLED_SVC="$(openstack compute service list -f value | grep -v 'nova-compute' | grep 'down')" DISABLED_SVC="$(openstack compute service list -f value | grep -v 'nova-compute' | grep 'down' || true)"
if [ ! -z "${DISABLED_SVC}" ]; then if [ ! -z "${DISABLED_SVC}" ]; then
sleep $((2 * {{ .Values.jobs.service_cleaner.sleep_time }})) sleep {{ .Values.jobs.service_cleaner.sleep_time }}
fi fi
NOVA_SERVICES_TO_CLEAN="$(openstack compute service list -f value -c Binary | sort | uniq | grep -v '^nova-compute$')" NOVA_SERVICES_TO_CLEAN="$(openstack compute service list -f value -c Binary | sort | uniq | grep -v '^nova-compute$')"

View File

@ -40,4 +40,5 @@ nova:
- 0.2.17 Fix disablement of helm.sh/hook for Helm v2 - 0.2.17 Fix disablement of helm.sh/hook for Helm v2
- 0.2.18 Give service time to restore - 0.2.18 Give service time to restore
- 0.2.19 Define service cleaner sleep time - 0.2.19 Define service cleaner sleep time
- 0.2.20 Update script to true of grep does get anything.
... ...