nova/nova/tests/unit/virt/libvirt
Mohammed Naser 643f53f5e9 libvirt: Avoid setting MTU during live migration if unset
If there is a live migration of an instance that was launched
before change Iecc265fb25e88fa00a66f1fd38e215cad53e7669, it
would not have an mtu set and therefore it wouldn't have it in
the XML.

When live migrating, the mtu is added which changes the
guest ABI[1], causing the live migration to fail.  The failure
occurs when trying to live migrate an instance that:

- Launched before change Iecc265fb25e88fa00a66f1fd38e215cad53e7669
- It has not been rebooted (i.e. XML has not changed since)
- It's using bridge/tap networking
- Migration attempted after change Iecc265fb25e88fa00a66f1fd38e215cad53e7669

This patch prevents this by avoiding setting MTU if the running
instance does not have one configured in its domain XML.

[1]: https://bugzilla.redhat.com/show_bug.cgi?id=1449346

Closes-Bug #1800511
Change-Id: I6e2e6437a7c826dc425d8b353c38670d6eece0b5
2018-10-29 21:20:15 +01:00
..
storage Use uuidsentinel from oslo.utils 2018-09-05 09:08:54 -05:00
volume Use uuidsentinel from oslo.utils 2018-09-05 09:08:54 -05:00
__init__.py
fake_imagebackend.py libvirt: update logic to configure device for scsi controller 2017-07-03 03:23:53 -04:00
fake_libvirt_utils.py Add method to get cpu traits 2018-07-24 12:37:46 +00:00
fake_os_brick_connector.py Switch to using os-brick 2015-07-27 10:47:22 -07:00
fakelibvirt.py Merge "Revert "libvirt: add method to configure migration speed"" 2018-09-18 22:49:49 +00:00
test_blockinfo.py libvirt: fix disk_bus handling for root disk 2018-09-21 17:46:13 +01:00
test_compat.py Workaround for race condition in libvirt 2015-03-14 20:17:41 -03:00
test_config.py Use uuidsentinel from oslo.utils 2018-09-05 09:08:54 -05:00
test_designer.py add mtu to libvirt xml for ethernet and bridge types 2018-06-06 09:39:40 -04:00
test_driver.py Merge "libvirt: fix disk_bus handling for root disk" 2018-10-24 21:22:54 +00:00
test_fakelibvirt.py conf: Deprecate 'keymap' options 2018-03-07 10:18:23 +00:00
test_firewall.py Use uuidsentinel from oslo.utils 2018-09-05 09:08:54 -05:00
test_guest.py Merge "Revert "libvirt: add method to configure migration speed"" 2018-09-18 22:49:49 +00:00
test_host.py Use uuidsentinel from oslo.utils 2018-09-05 09:08:54 -05:00
test_imagebackend.py Move image conversion to privsep. 2018-05-15 10:09:01 -04:00
test_imagecache.py Use uuidsentinel from oslo.utils 2018-09-05 09:08:54 -05:00
test_migration.py libvirt: Avoid setting MTU during live migration if unset 2018-10-29 21:20:15 +01:00
test_utils.py Use uuidsentinel from oslo.utils 2018-09-05 09:08:54 -05:00
test_vif.py Merge "libvirt: Drop MIN_LIBVIRT_VHOSTUSER_MQ" 2018-09-20 08:26:21 +00:00