Skip to content

Commit

Permalink
Introduce changes necessary for vrtio multiqueue support
Browse files Browse the repository at this point in the history
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
  • Loading branch information
majkijin committed Apr 28, 2016
1 parent 06e8801 commit d75fd97
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions fabfile/tasks/provision.py
Expand Up @@ -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)
Expand Down

0 comments on commit d75fd97

Please sign in to comment.