diff --git a/libvirt/templates/bin/_libvirt.sh.tpl b/libvirt/templates/bin/_libvirt.sh.tpl index 81813f4f5b..56daa56e19 100644 --- a/libvirt/templates/bin/_libvirt.sh.tpl +++ b/libvirt/templates/bin/_libvirt.sh.tpl @@ -19,9 +19,9 @@ set -ex # NOTE(mnaser): This will move the VNC certificates into the expected location. if [ -f /tmp/vnc.crt ]; then mkdir -p /etc/pki/libvirt-vnc - mv /tmp/vnc.key /etc/pki/libvirt-vnc/server-key.pem - mv /tmp/vnc.crt /etc/pki/libvirt-vnc/server-cert.pem - mv /tmp/vnc-ca.crt /etc/pki/libvirt-vnc/ca-cert.pem + cp /tmp/vnc.key /etc/pki/libvirt-vnc/server-key.pem + cp /tmp/vnc.crt /etc/pki/libvirt-vnc/server-cert.pem + cp /tmp/vnc-ca.crt /etc/pki/libvirt-vnc/ca-cert.pem fi if [ -n "$(cat /proc/*/comm 2>/dev/null | grep -w libvirtd)" ]; then diff --git a/releasenotes/notes/libvirt-f81d6fc0b0094209.yaml b/releasenotes/notes/libvirt-f81d6fc0b0094209.yaml new file mode 100644 index 0000000000..568481f539 --- /dev/null +++ b/releasenotes/notes/libvirt-f81d6fc0b0094209.yaml @@ -0,0 +1,7 @@ +--- +libvirt: + - | + Keeping vnc ca/key/cert in /tmp so in case container (not pod) restarts + it could copy them one again to the proper place. This allows to handle + libvirt crashes properly without restarting libvirt pods. +...