From b5ff7217bca8b5af345a8630ce76b360022336b3 Mon Sep 17 00:00:00 2001 From: Gerry Kopec Date: Wed, 27 Mar 2019 00:35:57 -0400 Subject: [PATCH] Nova console/ip address search optionality Add options to nova to enable/disable the use of: 1. the vnc or spice server proxyclient address found by the console compute init container 2. my_ip hypervisor address found by compute init container These options can be used to prevent cases where the found addresses overwrite what has already been defined in nova.conf by per host nova compute daemonset overrides. Story: 2005259 Task: 30066 Change-Id: Idf490f8b19dcd1e71a9b5fa8934461f1198a8af8 Signed-off-by: Gerry Kopec (cherry picked from commit f5e8ad20e35b770e5967f75f6f93f0a4dc6e3b41) Signed-off-by: Robert Church --- nova/templates/bin/_nova-compute.sh.tpl | 4 ++++ nova/values.yaml | 2 ++ 2 files changed, 6 insertions(+) diff --git a/nova/templates/bin/_nova-compute.sh.tpl b/nova/templates/bin/_nova-compute.sh.tpl index 23ce347..60b0272 100644 --- a/nova/templates/bin/_nova-compute.sh.tpl +++ b/nova/templates/bin/_nova-compute.sh.tpl @@ -18,9 +18,13 @@ set -ex exec nova-compute \ --config-file /etc/nova/nova.conf \ +{{- if .Values.console.address_search_enabled }} --config-file /tmp/pod-shared/nova-console.conf \ +{{- end }} --config-file /tmp/pod-shared/nova-libvirt.conf \ {{- if and ( empty .Values.conf.nova.DEFAULT.host ) ( .Values.pod.use_fqdn.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 +{{- end }} diff --git a/nova/values.yaml b/nova/values.yaml index 6fb6237..ca92907 100644 --- a/nova/values.yaml +++ b/nova/values.yaml @@ -512,6 +512,7 @@ console: vncproxy: # IF blank, search default routing interface vncserver_proxyclient_interface: + address_search_enabled: true ssh: key_types: @@ -1658,6 +1659,7 @@ conf: # If this option is set to None, the hostname of the migration target compute node will be used. live_migration_interface: hypervisor: + address_search_enabled: true # my_ip can be set automatically through this interface name. host_interface: # This list is the keys to exclude from the config file ingested by nova-compute -- 1.8.3.1