nova/nova/tests/unit/virt
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
..
disk Fix misuse of assertTrue in console and virt tests 2016-02-22 16:09:21 +09:00
hyperv hyper-v: Copies back files on failed migration 2016-03-12 01:50:44 +02:00
image virt: introduce model for describing local image metadata 2015-06-04 13:46:59 +01:00
ironic [Ironic]Match vif-pif mac address before setting 'vif_port_id' 2016-03-08 16:06:05 +08:00
libvirt stop setting mtu when plugging vhost-user ports 2016-03-22 11:54:12 -04:00
vmwareapi VMware: remove deprecation warnings from oslo_versionedobjects 2016-03-07 07:46:10 +00:00
xenapi xenapi: Fix when auto block_migration in the API 2016-03-21 11:50:18 +00:00
__init__.py
fakelibosinfo.py Fix misuse of assertTrue in console and virt tests 2016-02-22 16:09:21 +09:00
test_block_device.py Revert "Pass host when call attach to Cinder" 2016-01-27 16:21:08 +00:00
test_configdrive.py force_config_drive: StrOpt -> BoolOpt 2015-11-11 19:59:22 +00:00
test_diagnostics.py
test_driver.py virt: refactor method compute_driver_matches 2016-03-10 00:27:13 +08:00
test_events.py
test_fake.py fake: fix public API signatures to match virt driver 2015-02-19 11:44:00 +00:00
test_hardware.py Revert "virt: reserved hugepages on compute host" 2016-03-14 10:26:23 +00:00
test_imagecache.py DriverBlockDevice must receive a BDM object, not a dict 2015-12-28 06:35:21 -08:00
test_images.py libvirt: Race condition leads to instance in error 2016-02-05 20:48:58 +00:00
test_osinfo.py Fix misuse of assertTrue in console and virt tests 2016-02-22 16:09:21 +09:00
test_virt.py Replace stubs.Set with stub_out (os) 2016-01-14 22:35:53 -05:00
test_virt_drivers.py Use migrate_data.block_migration instead of block_migration 2016-03-11 16:32:21 +01:00
test_volumeutils.py Switch to using os-brick 2015-07-27 10:47:22 -07:00