Rename VNC deprecated opts

vncserver_listen and vncserver_proxyclient_address were deprecated,
this change aims to replace them with the versioned name.

Test plan:
PASS: Verify that vncserver_listen was changed to server_listen inside
      nova openstack manifest (system helm-override-show).

Story: 2009783
Task: 44273

Signed-off-by: Iago Estrela <IagoFilipe.EstrelaBarros@windriver.com>
Change-Id: I7bc9087bce8926595fd1f0dbc82d722fd26b45a0
This commit is contained in:
Iago Estrela 2022-01-12 13:54:38 -03:00
parent da84f84ecb
commit 1623a2bc72
6 changed files with 147 additions and 4 deletions

View File

@ -30,6 +30,7 @@ Patch08: 0008-Disabling-helm3_hook.patch
Patch09: 0009-Add-flavor-extra-spec-hw-pci_irq_affinity_mask.patch Patch09: 0009-Add-flavor-extra-spec-hw-pci_irq_affinity_mask.patch
Patch10: 0010-Enable-taint-toleration-for-Openstack-services.patch Patch10: 0010-Enable-taint-toleration-for-Openstack-services.patch
Patch11: 0011-Fix-nova-compute-ssh-init-to-execute-as-runAsUser.patch Patch11: 0011-Fix-nova-compute-ssh-init-to-execute-as-runAsUser.patch
Patch12: 0012-Replace-deprecated-Nova-VNC-configurations.patch
BuildRequires: helm BuildRequires: helm
BuildRequires: openstack-helm-infra BuildRequires: openstack-helm-infra
@ -52,6 +53,7 @@ Openstack Helm charts
%patch09 -p1 %patch09 -p1
%patch10 -p1 %patch10 -p1
%patch11 -p1 %patch11 -p1
%patch12 -p1
%build %build
# Stage helm-toolkit in the local repo # Stage helm-toolkit in the local repo

View File

@ -0,0 +1,70 @@
From 1cf04aef5dcfec540b71f5ccb2b9702d81ca0184 Mon Sep 17 00:00:00 2001
From: Iago Estrela <IagoFilipe.EstrelaBarros@windriver.com>
Date: Wed, 12 Jan 2022 17:46:10 -0300
Subject: [PATCH] Replace deprecated Nova VNC configurations
Replace deprecated opts of Nova VNC Server configurations.
Signed-off-by: Iago Estrela <IagoFilipe.EstrelaBarros@windriver.com>
Change-Id: I7103d2ae77bec442790a0bbed3aac53fe1e7641e
---
nova/templates/bin/_nova-console-compute-init.sh.tpl | 2 +-
nova/templates/bin/_nova-console-proxy-init.sh.tpl | 8 ++++----
nova/values.yaml | 2 +-
3 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/nova/templates/bin/_nova-console-compute-init.sh.tpl b/nova/templates/bin/_nova-console-compute-init.sh.tpl
index 6718fabb..cb333305 100644
--- a/nova/templates/bin/_nova-console-compute-init.sh.tpl
+++ b/nova/templates/bin/_nova-console-compute-init.sh.tpl
@@ -53,7 +53,7 @@ if [ "${console_kind}" == "novnc" ] ; then
cat > /tmp/pod-shared/nova-console.conf <<EOF
[vnc]
server_proxyclient_address = $client_address
-vncserver_listen = $listen_ip
+server_listen = $listen_ip
EOF
elif [ "${console_kind}" == "spice" ] ; then
cat > /tmp/pod-shared/nova-console.conf <<EOF
diff --git a/nova/templates/bin/_nova-console-proxy-init.sh.tpl b/nova/templates/bin/_nova-console-proxy-init.sh.tpl
index 6218d295..310df591 100644
--- a/nova/templates/bin/_nova-console-proxy-init.sh.tpl
+++ b/nova/templates/bin/_nova-console-proxy-init.sh.tpl
@@ -19,9 +19,9 @@ set -ex
console_kind="{{- .Values.console.console_kind -}}"
if [ "${console_kind}" == "novnc" ] ; then
- client_address="{{- .Values.conf.nova.vnc.vncserver_proxyclient_address -}}"
+ client_address="{{- .Values.conf.nova.vnc.server_proxyclient_address -}}"
client_interface="{{- .Values.console.novnc.vncproxy.vncserver_proxyclient_interface -}}"
- listen_ip="{{- .Values.conf.nova.vnc.vncserver_listen -}}"
+ listen_ip="{{- .Values.conf.nova.vnc.server_listen -}}"
elif [ "${console_kind}" == "spice" ] ; then
client_address="{{- .Values.conf.nova.spice.server_proxyclient_address -}}"
client_interface="{{- .Values.console.spice.proxy.server_proxyclient_interface -}}"
@@ -49,8 +49,8 @@ fi
if [ "${console_kind}" == "novnc" ] ; then
cat <<EOF>/tmp/pod-shared/nova-vnc.ini
[vnc]
-vncserver_proxyclient_address = $client_address
-vncserver_listen = $listen_ip
+server_proxyclient_address = $client_address
+server_listen = $listen_ip
EOF
elif [ "${console_kind}" == "spice" ] ; then
cat <<EOF>/tmp/pod-shared/nova-spice.ini
diff --git a/nova/values.yaml b/nova/values.yaml
index cdb14575..f663c805 100644
--- a/nova/values.yaml
+++ b/nova/values.yaml
@@ -1446,7 +1446,7 @@ conf:
resume_guests_state_on_host_boot: True
vnc:
novncproxy_host: 0.0.0.0
- vncserver_listen: 0.0.0.0
+ server_listen: 0.0.0.0
# This would be set by each compute nodes's ip
# server_proxyclient_address: 127.0.0.1
spice:
--
2.17.1

View File

@ -9,3 +9,4 @@
0009-Add-flavor-extra-spec-hw-pci_irq_affinity_mask.patch 0009-Add-flavor-extra-spec-hw-pci_irq_affinity_mask.patch
0010-Enable-taint-toleration-for-Openstack-services.patch 0010-Enable-taint-toleration-for-Openstack-services.patch
0011-Fix-nova-compute-ssh-init-to-execute-as-runAsUser.patch 0011-Fix-nova-compute-ssh-init-to-execute-as-runAsUser.patch
0012-Replace-deprecated-Nova-VNC-configurations.patch

View File

@ -0,0 +1,70 @@
From 1cf04aef5dcfec540b71f5ccb2b9702d81ca0184 Mon Sep 17 00:00:00 2001
From: Iago Estrela <IagoFilipe.EstrelaBarros@windriver.com>
Date: Wed, 12 Jan 2022 17:46:10 -0300
Subject: [PATCH] Replace deprecated Nova VNC configurations
Replace deprecated opts of Nova VNC Server configurations.
Signed-off-by: Iago Estrela <IagoFilipe.EstrelaBarros@windriver.com>
Change-Id: I7103d2ae77bec442790a0bbed3aac53fe1e7641e
---
nova/templates/bin/_nova-console-compute-init.sh.tpl | 2 +-
nova/templates/bin/_nova-console-proxy-init.sh.tpl | 8 ++++----
nova/values.yaml | 2 +-
3 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/nova/templates/bin/_nova-console-compute-init.sh.tpl b/nova/templates/bin/_nova-console-compute-init.sh.tpl
index 6718fabb..cb333305 100644
--- a/nova/templates/bin/_nova-console-compute-init.sh.tpl
+++ b/nova/templates/bin/_nova-console-compute-init.sh.tpl
@@ -53,7 +53,7 @@ if [ "${console_kind}" == "novnc" ] ; then
cat > /tmp/pod-shared/nova-console.conf <<EOF
[vnc]
server_proxyclient_address = $client_address
-vncserver_listen = $listen_ip
+server_listen = $listen_ip
EOF
elif [ "${console_kind}" == "spice" ] ; then
cat > /tmp/pod-shared/nova-console.conf <<EOF
diff --git a/nova/templates/bin/_nova-console-proxy-init.sh.tpl b/nova/templates/bin/_nova-console-proxy-init.sh.tpl
index 6218d295..310df591 100644
--- a/nova/templates/bin/_nova-console-proxy-init.sh.tpl
+++ b/nova/templates/bin/_nova-console-proxy-init.sh.tpl
@@ -19,9 +19,9 @@ set -ex
console_kind="{{- .Values.console.console_kind -}}"
if [ "${console_kind}" == "novnc" ] ; then
- client_address="{{- .Values.conf.nova.vnc.vncserver_proxyclient_address -}}"
+ client_address="{{- .Values.conf.nova.vnc.server_proxyclient_address -}}"
client_interface="{{- .Values.console.novnc.vncproxy.vncserver_proxyclient_interface -}}"
- listen_ip="{{- .Values.conf.nova.vnc.vncserver_listen -}}"
+ listen_ip="{{- .Values.conf.nova.vnc.server_listen -}}"
elif [ "${console_kind}" == "spice" ] ; then
client_address="{{- .Values.conf.nova.spice.server_proxyclient_address -}}"
client_interface="{{- .Values.console.spice.proxy.server_proxyclient_interface -}}"
@@ -49,8 +49,8 @@ fi
if [ "${console_kind}" == "novnc" ] ; then
cat <<EOF>/tmp/pod-shared/nova-vnc.ini
[vnc]
-vncserver_proxyclient_address = $client_address
-vncserver_listen = $listen_ip
+server_proxyclient_address = $client_address
+server_listen = $listen_ip
EOF
elif [ "${console_kind}" == "spice" ] ; then
cat <<EOF>/tmp/pod-shared/nova-spice.ini
diff --git a/nova/values.yaml b/nova/values.yaml
index cdb14575..f663c805 100644
--- a/nova/values.yaml
+++ b/nova/values.yaml
@@ -1446,7 +1446,7 @@ conf:
resume_guests_state_on_host_boot: True
vnc:
novncproxy_host: 0.0.0.0
- vncserver_listen: 0.0.0.0
+ server_listen: 0.0.0.0
# This would be set by each compute nodes's ip
# server_proxyclient_address: 127.0.0.1
spice:
--
2.17.1

View File

@ -507,12 +507,12 @@ class NovaHelm(openstack.OpenstackBaseHelm):
default_config.update({'my_ip': cluster_host_ip}) default_config.update({'my_ip': cluster_host_ip})
if ip_family == 4: if ip_family == 4:
vnc_config.update({'vncserver_listen': '0.0.0.0'}) vnc_config.update({'server_listen': '0.0.0.0'})
elif ip_family == 6: elif ip_family == 6:
vnc_config.update({'vncserver_listen': '::0'}) vnc_config.update({'server_listen': '::0'})
libvirt_config.update({'live_migration_inbound_addr': cluster_host_ip}) libvirt_config.update({'live_migration_inbound_addr': cluster_host_ip})
vnc_config.update({'vncserver_proxyclient_address': cluster_host_ip}) vnc_config.update({'server_proxyclient_address': cluster_host_ip})
def _get_ssh_subnet(self): def _get_ssh_subnet(self):
address_pool = self.dbapi.address_pool_get(self.cluster_host_network.pool_uuid) address_pool = self.dbapi.address_pool_get(self.cluster_host_network.pool_uuid)

View File

@ -1275,7 +1275,7 @@ data:
auth_url: http://keystone.openstack.svc.cluster.local:80/v3 auth_url: http://keystone.openstack.svc.cluster.local:80/v3
vnc: vnc:
novncproxy_host: "::" novncproxy_host: "::"
vncserver_listen: "::" server_listen: "::"
spice: spice:
html5proxy_host: "::" html5proxy_host: "::"
server_listen: "::" server_listen: "::"