Revert "Revert "oran-shell-release: release image for F""
[pti/rtp.git] / meta-starlingx / meta-stx-flock / stx-openstack-armada-app / openstack-helm / 0003-Nova-console-ip-address-search-optionality.patch
1 From 64b22037b53e6423c465367c26a6d7255768ae17 Mon Sep 17 00:00:00 2001
2 From: Gerry Kopec <Gerry.Kopec@windriver.com>
3 Date: Wed, 27 Mar 2019 00:35:57 -0400
4 Subject: [PATCH 03] Nova console/ip address search optionality
5
6 Add options to nova to enable/disable the use of:
7 1. the vnc or spice server proxyclient address found by the console
8    compute init container
9 2. my_ip hypervisor address found by compute init container
10
11 These options can be used to prevent cases where the found addresses
12 overwrite what has already been defined in nova.conf by per host nova
13 compute daemonset overrides.
14
15 Story: 2005259
16 Task: 30066
17 Change-Id: Idf490f8b19dcd1e71a9b5fa8934461f1198a8af8
18 Signed-off-by: Gerry Kopec <Gerry.Kopec@windriver.com>
19 (cherry picked from commit f5e8ad20e35b770e5967f75f6f93f0a4dc6e3b41)
20 Signed-off-by: Robert Church <robert.church@windriver.com>
21 ---
22  nova/templates/bin/_nova-compute.sh.tpl | 6 +++++-
23  nova/values.yaml                        | 3 ++-
24  2 files changed, 7 insertions(+), 2 deletions(-)
25
26 diff --git a/nova/templates/bin/_nova-compute.sh.tpl b/nova/templates/bin/_nova-compute.sh.tpl
27 index c80da6d..4927908 100644
28 --- a/nova/templates/bin/_nova-compute.sh.tpl
29 +++ b/nova/templates/bin/_nova-compute.sh.tpl
30 @@ -20,6 +20,10 @@ set -ex
31  
32  exec nova-compute \
33        --config-file /etc/nova/nova.conf \
34 +{{- if .Values.console.address_search_enabled }}
35        --config-file /tmp/pod-shared/nova-console.conf \
36 +{{- end }}
37        --config-file /tmp/pod-shared/nova-libvirt.conf \
38 -      --config-file /tmp/pod-shared/nova-hypervisor.conf
39 \ No newline at end of file
40 +{{- if .Values.conf.hypervisor.address_search_enabled }}
41 +      --config-file /tmp/pod-shared/nova-hypervisor.conf
42 +{{- end }}
43 diff --git a/nova/values.yaml b/nova/values.yaml
44 index 29512ca..7ba2925 100644
45 --- a/nova/values.yaml
46 +++ b/nova/values.yaml
47 @@ -461,7 +461,7 @@ console:
48      vncproxy:
49        # IF blank, search default routing interface
50        vncserver_proxyclient_interface:
51 -
52 +  address_search_enabled: true
53  ssh:
54    key_types:
55      - rsa
56 @@ -1598,6 +1598,7 @@ conf:
57      # If this option is set to None, the hostname of the migration target compute node will be used.
58      live_migration_interface:
59    hypervisor:
60 +    address_search_enabled: true
61      # my_ip can be set automatically through this interface name.
62      host_interface:
63    # This list is the keys to exclude from the config file ingested by nova-compute
64 -- 
65 2.7.4
66