Console broken, as novncProxyPort is incorrectly formed.

During testing of VM workload on kolla-kubernetes I
found that the console tab did not work - the
novncproxy_base_url was not replaced by the correct IP Addr.

Remove the code that tried to create this, use the value from
the nova.conf file.

Change-Id: I41a5a9f78775f918a8b8a296bde99d70e7b5725b
This commit is contained in:
rwellum 2017-09-21 12:21:06 -04:00
parent 6e48a8bfa8
commit 35d60eaf36
1 changed files with 0 additions and 2 deletions

View File

@ -8,7 +8,6 @@
{{- $privileged := true }}
{{- $novncProxyHost := include "kolla_val_get_str" (dict "key" "host" "searchPath" $novncSearchPath "Values" .Values) }}
{{- $novncProxyPort := include "kolla_val_get_str" (dict "key" "port" "searchPath" $novncSearchPath "Values" .Values) }}
{{- $novncProxyBaseUrl := printf "http://%s:%s/vnc_auto.html" $novncProxyHost $novncProxyPort }}
{{- $c := dict "searchPath" $searchPath "Values" .Values }}
{{- $_ := set $c "contName" "nova-compute" }}
{{- $_ := set $c "imageName" "image_full" }}
@ -68,7 +67,6 @@ spec:
crudini --set /nova/nova.conf vnc novncproxy_host $IP;
crudini --set /nova/nova.conf vnc vncserver_listen $IP;
crudini --set /nova/nova.conf vnc vncserver_proxyclient_address $IP;
crudini --set /nova/nova.conf vnc novncproxy_base_url {{ $novncProxyBaseUrl }};
{{- if $localVals.libvirt_tcp }}
sed -i ''s|^connection_uri.*=.*|connection_uri=\"qemu+tcp://127.0.0.1/system\"|g'' /nova/nova.conf;
{{- end }}