nova/nova/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 Merge "Revert "Re-using the code of os brick cinder"" 2018-06-19 02:08:35 +00:00
volume Merge "Add enhanced KVM storage QoS quotas" 2018-06-14 15:47:45 +00:00
__init__.py Remove vi modelines 2014-02-03 14:19:44 +00:00
blockinfo.py libvirt: fix disk_bus handling for root disk 2018-09-21 17:46:13 +01:00
compat.py Remove translation of log messages 2017-06-13 11:20:28 +07:00
config.py libvirt: remove unused attribute driver for LibvirtConfigNodeDevice 2018-07-18 02:58:46 -04:00
designer.py add mtu to libvirt xml for ethernet and bridge types 2018-06-06 09:39:40 -04:00
driver.py Pick next minimum libvirt / QEMU versions for "T" release 2018-09-26 13:12:11 +02:00
firewall.py Replaces uuid.uuid4 with uuidutils.generate_uuid() 2017-07-25 10:45:03 +05:30
guest.py Merge "Revert "libvirt: add method to configure migration speed"" 2018-09-18 22:49:49 +00:00
host.py Transform libvirt.error notification 2018-09-18 07:06:09 +00:00
imagebackend.py We don't need utils.trycmd any more. 2018-05-15 10:09:06 -04:00
imagecache.py Move the dac_admin privsep code to a new location. 2017-09-18 23:14:11 +10:00
instancejobtracker.py Remove translation of log messages 2017-06-13 11:20:28 +07:00
migration.py libvirt: Avoid setting MTU during live migration if unset 2018-10-29 21:20:15 +01:00
utils.py Add method to get cpu traits 2018-07-24 12:37:46 +00:00
vif.py Merge "libvirt: Drop MIN_LIBVIRT_VHOSTUSER_MQ" 2018-09-20 08:26:21 +00:00