summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Page <james.page@ubuntu.com>2016-05-10 10:16:06 +0100
committerJames Page <james.page@ubuntu.com>2016-05-10 10:16:06 +0100
commit4f6e2ca2512e298faf17b1db532625132623a628 (patch)
treeb5373ff6d8ab85a2ca7bb731fa7871ad3606840f
parent236bb562f132701b8563b4486ffd9445f7dc7aaa (diff)
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
Notes
Notes (review): Code-Review+2: David Ames <david.ames@canonical.com> Workflow+1: David Ames <david.ames@canonical.com> Code-Review+2: Ryan Beisner <ryan.beisner@canonical.com> Workflow+1: Ryan Beisner <ryan.beisner@canonical.com> Verified-1: Canonical CI <uosci-testing-bot@ubuntu.com> Verified+2: Jenkins Submitted-by: Jenkins Submitted-at: Wed, 08 Jun 2016 18:45:00 +0000 Reviewed-on: https://review.openstack.org/314472 Project: openstack/charm-neutron-openvswitch Branch: refs/heads/master
-rw-r--r--templates/openvswitch-switch4
1 files changed, 2 insertions, 2 deletions
diff --git a/templates/openvswitch-switch b/templates/openvswitch-switch
index bb22fd1..62ad398 100644
--- a/templates/openvswitch-switch
+++ b/templates/openvswitch-switch
@@ -5,5 +5,5 @@
5# Configuration managed by neutron-openvswitch charm 5# Configuration managed by neutron-openvswitch charm
6############################################################################### 6###############################################################################
7{% if dpdk_enabled -%} 7{% if dpdk_enabled -%}
8DPDK_OPTS='--dpdk -c {{ cpu_mask }} -n 4 --socket-mem {{ socket_memory }} {{ device_whitelist }}' 8DPDK_OPTS='--dpdk -c {{ cpu_mask }} -n 4 --socket-mem {{ socket_memory }} {{ device_whitelist }} --vhost-owner libvirt-qemu:kvm --vhost-perm 0660'
9{% endif -%} \ No newline at end of file 9{% endif -%}