From e44c4749b4bb8df72be2ed8b442d498a20d76f4e Mon Sep 17 00:00:00 2001 From: "Ritchie, Frank (fr801x)" Date: Mon, 6 Nov 2023 16:06:27 -0500 Subject: [PATCH] Ability to define extra commands for cell setup This PS makes to possible to add extra commands to the nova cell setup job if needed. Change-Id: I3b1f4e2ee58e60d3d830772cbb57c115dd712824 --- nova/Chart.yaml | 2 +- nova/templates/bin/_cell-setup-init.sh.tpl | 4 ++++ nova/values.yaml | 1 + releasenotes/notes/nova.yaml | 1 + 4 files changed, 7 insertions(+), 1 deletion(-) diff --git a/nova/Chart.yaml b/nova/Chart.yaml index 352cfe6c06..289aa72109 100644 --- a/nova/Chart.yaml +++ b/nova/Chart.yaml @@ -14,7 +14,7 @@ apiVersion: v1 appVersion: v1.0.0 description: OpenStack-Helm Nova name: nova -version: 0.3.27 +version: 0.3.28 home: https://docs.openstack.org/nova/latest/ icon: https://www.openstack.org/themes/openstack/images/project-mascots/Nova/OpenStack_Project_Nova_vertical.png sources: diff --git a/nova/templates/bin/_cell-setup-init.sh.tpl b/nova/templates/bin/_cell-setup-init.sh.tpl index 953508584d..3b6f8e810b 100644 --- a/nova/templates/bin/_cell-setup-init.sh.tpl +++ b/nova/templates/bin/_cell-setup-init.sh.tpl @@ -69,3 +69,7 @@ until openstack compute service list --service nova-compute -f value -c State | echo "Waiting for Nova Compute processes to register" sleep 10 done + +{{- if .Values.jobs.cell_setup.extra_command }} +{{ .Values.jobs.cell_setup.extra_command }} +{{- end }} diff --git a/nova/values.yaml b/nova/values.yaml index 4718358cb3..0472147038 100644 --- a/nova/values.yaml +++ b/nova/values.yaml @@ -101,6 +101,7 @@ jobs: enabled: false iteration: 3 duration: 5 + extra_command: null service_cleaner: cron: "0 */1 * * *" starting_deadline: 600 diff --git a/releasenotes/notes/nova.yaml b/releasenotes/notes/nova.yaml index 304d92255b..479f58336d 100644 --- a/releasenotes/notes/nova.yaml +++ b/releasenotes/notes/nova.yaml @@ -96,4 +96,5 @@ nova: - 0.3.25 Add IP addresses search control flag - 0.3.26 Improve cinder authentication support - 0.3.27 Add 2023.2 Ubuntu Jammy overrides + - 0.3.28 Add ability to define extra command(s) for the nova cell setup job ...