Merge "Adds support to UUID deployment-provisioning configuration"

This commit is contained in:
Zuul
2025-09-26 20:14:42 +00:00
committed by Gerrit Code Review
3 changed files with 21 additions and 0 deletions

View File

@@ -16,6 +16,16 @@ limitations under the License.
set -ex
{{- if and .Values.hosts_uuids (not .Values.manifests.compute_uuid_self_provisioning) }}
# Extract Host's uuid from helm chart and save it to the compute_id file
{{- range $host := .Values.hosts_uuids }}
hostname="{{- $host.name}}"
if [ "$hostname" == $HOSTNAME ]; then
echo "{{ $host.uuid }}" > {{ $.Values.conf.nova.DEFAULT.state_path }}/compute_id
fi
{{- end }}
{{- end }}
# Make the Nova Instances Dir as this is not autocreated.
mkdir -p /var/lib/nova/instances

View File

@@ -2676,6 +2676,7 @@ tls:
manifests:
certificates: false
compute_uuid_self_provisioning: true
configmap_bin: true
configmap_etc: true
cron_job_cell_setup: true
@@ -2728,4 +2729,10 @@ manifests:
service_spiceproxy: true
service_osapi: true
statefulset_compute_ironic: false
# List of compute hosts and its respective uuids
# Items should be in the following format
# - name: compute-node-hostname
# uuid: <compute node's UUID>
hosts_uuids: []
...

View File

@@ -0,0 +1,4 @@
---
nova:
- Adds support to UUID deployment-provisioning configuration
...