← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1675343] Re: vif_type='tap' fails with permission error on /dev/net/tun

 

Adding openstack-manuals so we can document the qemu.conf permissions
required.

** No longer affects: nova

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1675343

Title:
  vif_type='tap' fails with permission error on /dev/net/tun

Status in devstack:
  In Progress
Status in openstack-manuals:
  New

Bug description:
  *On master branch.*

  I'm working on switching the Linux Bridge plugin in Neutron to return
  vif_type='tap' to Nova so we can avoid the race condition of Nova and
  the Neutron agent trying to create the network bridge and conditional
  logic guessing whether or not the agent should try to add a given port
  to a bridge.[1]

  
  However, Nova can't seem to boot instances with that vif_type with errors like the following:

  libvirtError: internal error: process exited while connecting to
  monitor: 2017-03-22T16:37:48.246587Z qemu-system-x86_64: -netdev
  tap,ifname=tap2b1add98-31,script=,id=hostnet0: could not open
  /dev/net/tun: Operation not permitted

  Here is the full gate run for that error above:
  http://logs.openstack.org/50/447150/5/check/gate-tempest-dsvm-neutron-
  linuxbridge-ubuntu-
  xenial/9153647/logs/screen-n-cpu.txt.gz?level=TRACE#_2017-03-22_16_37_48_708

  
  I see https://review.openstack.org/#/c/448203/ was supposed to fix it, but it didn't seem to work even though 'script=' is visible in the qemu call.


  1. https://review.openstack.org/#/c/447150/

To manage notifications about this bug go to:
https://bugs.launchpad.net/devstack/+bug/1675343/+subscriptions


References