nova/nova/virt/libvirt
Sean Mooney 98464d54d0 stop setting mtu when plugging vhost-user ports
vhost-user is a userspace protocol to establish connectivity
between a virto-net frontend typically qemu and a
userspace virtio backend such as ovs with dpdk.

vhost-user interfaces exist only in userspace from the host perspective
and are not represented in the linux networking stack as kernel netdevs.
As a result attempting to set the mtu on a vhost-user interface
using ifconfig or ip link will fail with a device not found error.

- this change removes a call to _set_device_mtu when plugging
  vhost-user interfaces.
- this change prevents the device not found error from occurring
  which stopped vms booting with vhost-user interfaces
  due to an uncaught exception resulting in a failure to set the
  interface type in ovs.
- this change make creating vhost-user interface
  an atomic action.

This latent bug is only triggered when the mtu value is set to a
value other than 0 which was the default proir to mitaka.

Conflicts:
	nova/network/model.py
	nova/tests/unit/virt/libvirt/test_vif.py
	nova/virt/libvirt/vif.py

Change-Id: I2e17723d5052d57cd1557bd8a173c06ea0dcb2d4
Closes-Bug: #1533876
(cherry picked from commit adf7ba61dd)
2016-04-14 13:27:25 +02:00
..
storage libvirt: Fix/implement revert-resize for RBD-backed images 2016-02-18 12:41:25 +11:00
volume Merge "Fix a few typos" 2015-09-15 11:24:36 +00:00
__init__.py Remove vi modelines 2014-02-03 14:19:44 +00:00
blockinfo.py libvirt: check if ImageMeta.disk_format is set before accessing it 2015-10-02 14:47:46 -07:00
compat.py Workaround for race condition in libvirt 2015-03-14 20:17:41 -03:00
config.py Merge "libvirt-vif: Allow to configure a script on bridge interface" 2015-09-16 00:04:37 +00:00
designer.py Merge "libvirt: fix direct OVS plugging" 2015-09-21 11:47:55 +00:00
driver.py Merge "libvirt: Fix/implement revert-resize for RBD-backed images" into stable/liberty 2016-02-26 16:36:00 +00:00
firewall.py libvirt: retry to undefine network filters during _post_live_migration 2015-04-29 10:48:23 -07:00
guest.py Add retry logic for detaching device using LibVirt 2016-02-12 17:31:47 +00:00
host.py libvirt: move domain info to guest 2015-08-26 10:01:28 -04:00
imagebackend.py libvirt: Fix/implement revert-resize for RBD-backed images 2016-02-18 12:41:25 +11:00
imagecache.py Switch to the oslo_utils.fileutils 2015-07-24 14:10:44 +03:00
instancejobtracker.py libvirt: Kill rsync/scp processes before deleting instance 2015-07-29 02:00:50 -07:00
utils.py libvirt: Fix/implement revert-resize for RBD-backed images 2016-02-18 12:41:25 +11:00
vif.py stop setting mtu when plugging vhost-user ports 2016-04-14 13:27:25 +02:00