From 360ee8255ee3998f243486aa8f517dc4b9efca8f Mon Sep 17 00:00:00 2001 From: "hagun.kim" Date: Fri, 19 Apr 2019 16:42:36 +0900 Subject: [PATCH] Fix novnc init asset copy options When novnc pod is re-run because of host reboot and so on, novnc pod has existing volume /tmp/usr/share, which has 0444 permissions. So init container occurs an error while it tries to copy asset files. cp: cannot create regular file '/tmp/usr/share/novnc/index.html': Permission denied With -f option, the init container can copy without errors. Change-Id: I56d928b7f4a30a6be29b47560357a3b4f5eec764 Signed-off-by: hagun.kim --- nova/templates/bin/_nova-console-proxy-init-assets.sh.tpl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/nova/templates/bin/_nova-console-proxy-init-assets.sh.tpl b/nova/templates/bin/_nova-console-proxy-init-assets.sh.tpl index 396d7970d5..7338c1dd42 100644 --- a/nova/templates/bin/_nova-console-proxy-init-assets.sh.tpl +++ b/nova/templates/bin/_nova-console-proxy-init-assets.sh.tpl @@ -20,7 +20,7 @@ set -ex console_kind="{{- .Values.console.console_kind -}}" if [ "${console_kind}" == "novnc" ] ; then - cp -vaR /usr/share/novnc/* /tmp/usr/share/novnc/ + cp -vaRf /usr/share/novnc/* /tmp/usr/share/novnc/ elif [ "${console_kind}" == "spice" ] ; then - cp -vaR /usr/share/spice-html5/* /tmp/usr/share/spice-html5/ -fi \ No newline at end of file + cp -vaRf /usr/share/spice-html5/* /tmp/usr/share/spice-html5/ +fi