From d75fd974b788199dada42918f271f49b9497c1b7 Mon Sep 17 00:00:00 2001 From: Michal Dubiel Date: Thu, 21 Apr 2016 16:18:18 +0200 Subject: [PATCH] Introduce changes necessary for vrtio multiqueue support Due to the changes introduced in libvirt that allows for multiqueue with kernel vRouter, we need to change read/write permissions of /dev/vhost-net. Change-Id: Ic923ab4082e60191be2d3b6b3d999c630c49c45c Partial-Bug: #1573067 --- fabfile/tasks/provision.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/fabfile/tasks/provision.py b/fabfile/tasks/provision.py index 05bf65a13..5a4900271 100644 --- a/fabfile/tasks/provision.py +++ b/fabfile/tasks/provision.py @@ -1565,6 +1565,13 @@ def setup_only_vrouter_node(manage_nova_compute='yes', configure_nova='yes', *ar if detect_ostype() == 'ubuntu': with settings(warn_only=True): sudo('rm /etc/init/supervisor-vrouter.override') + # Fix /dev/vhost-net permissions. It is required for + # multiqueue operation + sudo('echo \'KERNEL=="vhost-net", GROUP="kvm", MODE="0660"\' > /etc/udev/rules.d/vhost-net.rules') + # The vhost-net module has to be loaded at startup to + # ensure the correct permissions while the qemu is being + # launched + sudo('echo "vhost-net" >> /etc/modules') with cd(INSTALLER_DIR): print cmd sudo(cmd)