From 4f6e2ca2512e298faf17b1db532625132623a628 Mon Sep 17 00:00:00 2001 From: James Page Date: Tue, 10 May 2016 10:16:06 +0100 Subject: [PATCH] Set correct permissions for vhostuser sockets The latest updates to DPDK in 16.04 and above introduce two new parameters for DPDK initialization which avoid the need to run qemu processes with vhostuser sockets as root. Use these options to ensure that sockets are created with the correct ownership and permissions for OpenStack/KVM. Change-Id: I04bbd514d1bdb9b3249ed69e8d64eb66d9839944 Closes-Bug: 1546565 --- templates/openvswitch-switch | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/openvswitch-switch b/templates/openvswitch-switch index bb22fd19..62ad3980 100644 --- a/templates/openvswitch-switch +++ b/templates/openvswitch-switch @@ -5,5 +5,5 @@ # Configuration managed by neutron-openvswitch charm ############################################################################### {% if dpdk_enabled -%} -DPDK_OPTS='--dpdk -c {{ cpu_mask }} -n 4 --socket-mem {{ socket_memory }} {{ device_whitelist }}' -{% endif -%} \ No newline at end of file +DPDK_OPTS='--dpdk -c {{ cpu_mask }} -n 4 --socket-mem {{ socket_memory }} {{ device_whitelist }} --vhost-owner libvirt-qemu:kvm --vhost-perm 0660' +{% endif -%}