nova/nova/tests/unit/virt/libvirt
Sean Mooney c7eb823fe7 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.

Change-Id: I2e17723d5052d57cd1557bd8a173c06ea0dcb2d4
Closes-Bug: #1533876
(cherry picked from commit adf7ba61dd)
2016-03-22 11:54:12 -04:00
..
storage libvirt: make snapshot use RBD snapshot/clone when available 2016-01-20 15:36:05 -08:00
volume Catch iscsi VolumeDeviceNotFound when detaching 2016-02-24 10:05:19 +08:00
__init__.py move all tests to nova/tests/unit 2014-11-12 15:31:08 -05:00
fake_imagebackend.py libvirt: Split out resize_image logic from create_image 2015-09-14 18:05:28 -07:00
fake_libvirt_utils.py libvirt: Race condition leads to instance in error 2016-02-05 20:48:58 +00:00
fake_os_brick_connector.py Switch to using os-brick 2015-07-27 10:47:22 -07:00
fakelibvirt.py Allow block live migration of an instance with attached volumes 2016-02-10 13:09:44 +01:00
test_blockinfo.py libvirt: use osinfo when configuring the disk bus 2016-02-04 10:59:13 -05:00
test_compat.py Workaround for race condition in libvirt 2015-03-14 20:17:41 -03:00
test_config.py libvirt: implement LibvirtConfigGuestInterface.parse_dom 2016-02-09 09:26:25 -08:00
test_designer.py libvirt: add unit tests for the designer utility methods 2015-09-21 11:25:53 -07:00
test_driver.py Fix conversion of config disks to qcow2 during resize/migration 2016-03-21 12:55:02 +01:00
test_fakelibvirt.py Fix invalid import order 2016-01-20 05:03:41 -08:00
test_firewall.py Remove unused provider firewall rules functionality in nova 2016-02-01 15:50:04 +01:00
test_guest.py libvirt: check for interface when detach_interface fails 2016-02-09 09:26:25 -08:00
test_host.py libvirt: don't attempt to get baseline cpu features if host cpu model is None 2016-03-01 20:05:50 -05:00
test_imagebackend.py Use imageutils from oslo.utils 2016-02-16 18:34:43 +08:00
test_imagecache.py libvirt: Race condition leads to instance in error 2016-02-05 20:48:58 +00:00
test_utils.py Replace stubs.Set with stub_out (os) 2016-01-14 22:35:53 -05:00
test_vif.py stop setting mtu when plugging vhost-user ports 2016-03-22 11:54:12 -04:00