Merge "nova: ensure /etc/nova/nova.conf.d is always loaded"

This commit is contained in:
Zuul
2025-09-23 19:15:43 +00:00
committed by Gerrit Code Review
10 changed files with 38 additions and 10 deletions

View File

@@ -26,7 +26,9 @@ Script returns failure to Kubernetes only when
sys.stderr.write() writes to pod's events on failures.
Usage example for Nova Compute:
# python health-probe.py --config-file /etc/nova/nova.conf \
# python health-probe.py \
# --config-file /etc/nova/nova.conf \
# --config-dir /etc/nova/nova.conf.d \
# --service-queue-name compute
"""
@@ -204,7 +206,7 @@ def test_rpc_liveness():
cfg.CONF.register_cli_opt(cfg.BoolOpt('use-fqdn', default=False,
required=False))
cfg.CONF(sys.argv[1:])
cfg.CONF(sys.argv[1:], project='nova')
log.logging.basicConfig(level=log.{{ .Values.health_probe.logging.level }})

View File

@@ -18,4 +18,5 @@ set -ex
exec nova-compute \
--config-file /etc/nova/nova-compute.conf \
--config-file /etc/nova/nova-ironic.conf
--config-file /etc/nova/nova-ironic.conf \
--config-dir /etc/nova/nova.conf.d

View File

@@ -28,5 +28,6 @@ exec nova-compute \
--config-file /tmp/pod-shared/nova-compute-fqdn.conf \
{{- end }}
{{- if .Values.conf.hypervisor.address_search_enabled }}
--config-file /tmp/pod-shared/nova-hypervisor.conf
--config-file /tmp/pod-shared/nova-hypervisor.conf \
{{- end }}
--config-dir /etc/nova/nova.conf.d

View File

@@ -16,4 +16,5 @@ limitations under the License.
set -x
exec nova-conductor \
--config-file /etc/nova/nova.conf
--config-file /etc/nova/nova.conf \
--config-dir /etc/nova/nova.conf.d

View File

@@ -20,13 +20,16 @@ console_kind="{{- .Values.console.console_kind -}}"
if [ "${console_kind}" == "novnc" ] ; then
exec nova-novncproxy \
--config-file /etc/nova/nova.conf \
--config-file /tmp/pod-shared/nova-vnc.ini
--config-file /tmp/pod-shared/nova-vnc.ini \
--config-dir /etc/nova/nova.conf.d
elif [ "${console_kind}" == "spice" ] ; then
exec nova-spicehtml5proxy\
--config-file /etc/nova/nova.conf \
--config-file /tmp/pod-shared/nova-spice.ini
--config-file /tmp/pod-shared/nova-spice.ini \
--config-dir /etc/nova/nova.conf.d
elif [ "${console_kind}" == "serial" ] ; then
exec nova-serialproxy\
--config-file /etc/nova/nova.conf \
--config-file /tmp/pod-shared/nova-serial.ini
fi
--config-file /tmp/pod-shared/nova-serial.ini \
--config-dir /etc/nova/nova.conf.d
fi

View File

@@ -17,4 +17,5 @@ limitations under the License.
set -xe
exec nova-scheduler \
--config-file /etc/nova/nova.conf
--config-file /etc/nova/nova.conf \
--config-dir /etc/nova/nova.conf.d

View File

@@ -19,6 +19,8 @@ exec:
- /tmp/health-probe.py
- --config-file
- /etc/nova/nova.conf
- --config-dir
- /etc/nova/nova.conf.d
- --service-queue-name
- compute
- --liveness-probe
@@ -34,6 +36,8 @@ exec:
- /tmp/health-probe.py
- --config-file
- /etc/nova/nova.conf
- --config-dir
- /etc/nova/nova.conf.d
- --service-queue-name
- compute
{{- if .Values.pod.use_fqdn.compute }}
@@ -48,6 +52,8 @@ exec:
- /tmp/health-probe.py
- --config-file
- /etc/nova/nova.conf
- --config-dir
- /etc/nova/nova.conf.d
- --service-queue-name
- compute
- --liveness-probe

View File

@@ -19,6 +19,8 @@ exec:
- /tmp/health-probe.py
- --config-file
- /etc/nova/nova.conf
- --config-dir
- /etc/nova/nova.conf.d
- --service-queue-name
- conductor
- --liveness-probe
@@ -31,6 +33,8 @@ exec:
- /tmp/health-probe.py
- --config-file
- /etc/nova/nova.conf
- --config-dir
- /etc/nova/nova.conf.d
- --service-queue-name
- conductor
{{- end }}

View File

@@ -19,6 +19,8 @@ exec:
- /tmp/health-probe.py
- --config-file
- /etc/nova/nova.conf
- --config-dir
- /etc/nova/nova.conf.d
- --service-queue-name
- scheduler
- --liveness-probe
@@ -31,6 +33,8 @@ exec:
- /tmp/health-probe.py
- --config-file
- /etc/nova/nova.conf
- --config-dir
- /etc/nova/nova.conf.d
- --service-queue-name
- scheduler
{{- end }}

View File

@@ -0,0 +1,5 @@
---
nova:
- |
Ensure that the nova chart always loads config overrides from /etc/nova/nova.conf.d
...