nvazquez commented on code in PR #7304:
URL: https://github.com/apache/cloudstack/pull/7304#discussion_r1123670940


##########
scripts/util/keystore-cert-import:
##########
@@ -121,6 +121,10 @@ if [ -f "$LIBVIRTD_FILE" ]; then
     ln -sf /etc/pki/libvirt/servercert.pem /etc/pki/libvirt-vnc/server-cert.pem
     ln -sf /etc/pki/libvirt/private/serverkey.pem 
/etc/pki/libvirt-vnc/server-key.pem
     cloudstack-setup-agent -s > /dev/null
+
+    QEMU_GROUP=$(cat /etc/group | awk -F: '{ print $1}' | grep qemu)
+    chgrp $QEMU_GROUP /etc/pki/libvirt /etc/pki/libvirt-vnc /etc/pki/CA 
/etc/pki/libvirt/private /etc/pki/libvirt/servercert.pem 
/etc/pki/libvirt/private/serverkey.pem /etc/pki/CA/cacert.pem 
/etc/pki/libvirt-vnc/ca-cert.pem /etc/pki/libvirt-vnc/server-cert.pem 
/etc/pki/libvirt-vnc/server-key.pem

Review Comment:
   That's a good idea @weizhouapache, thanks. I've created a documentation PR 
with a note for the limitation you spotted: 
https://github.com/apache/cloudstack-documentation/pull/306 but I think using 
the qemu.conf is a better approach cc @borisstoyanov 



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to