nova/nova/virt/libvirt
Alexandre Arents c075e3a76d Do not update root_device_name during guest config
_get_guest_config() is currently updating instance.root_device_name
and called in many ways like:

_hard_reboot(), rescue(), spawn(), resume(), finish_migration(),
finish_revert_migration()

It is an issue because root_device_name is initally set during instance
build and should remain the same after:

manager.py: _do_build_and_run_instance()
             ..
               _default_block_device_names() <-here
               ..
               driver.spawn()

This may lead to edge case, like in rescue where this value can be mistakenly
updated to reflect disk bus property of rescue image (hw_disk_bus).
Further more, a _get* method should not modify instance object.

Note that test test_get_guest_config_bug_1118829 is removed because no more
relevant with current code.

Change-Id: I1787f9717618d0837208844e8065840d30341cf7
Closes-Bug: #1835926
(cherry picked from commit 5e0ed5e7fe)
(cherry picked from commit 5e858d0cbd)
(cherry picked from commit 9f9f8d330a)
2019-12-09 19:34:54 +00:00
..
storage Fix python3 compatibility of rbd get_fsid 2019-07-31 20:29:23 +00:00
volume Fixes multi-registry config in Quobyte driver 2019-06-03 07:42:32 +00:00
__init__.py Remove vi modelines 2014-02-03 14:19:44 +00:00
blockinfo.py Rename block_device_info_get_root 2018-01-11 20:46:13 +00:00
compat.py Remove translation of log messages 2017-06-13 11:20:28 +07:00
config.py Implement discard for file backed memory 2018-06-21 11:45:31 -05:00
designer.py add mtu to libvirt xml for ethernet and bridge types 2018-06-06 09:39:40 -04:00
driver.py Do not update root_device_name during guest config 2019-12-09 19:34:54 +00:00
firewall.py Replaces uuid.uuid4 with uuidutils.generate_uuid() 2017-07-25 10:45:03 +05:30
guest.py Avoid logging traceback when detach device not found 2019-08-01 15:07:15 +00:00
host.py libvirt: Don't react to VIR_DOMAIN_EVENT_SUSPENDED_MIGRATED events 2018-08-23 14:44:22 -04:00
imagebackend.py libvirt: flatten rbd images when unshelving an instance 2019-06-28 10:07:59 +01: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 22:46:06 +01:00
utils.py Add method to get cpu traits 2018-07-24 12:37:46 +00:00
vif.py Ignore hw_vif_type for direct, direct-physical vNIC types 2019-07-02 14:11:28 +00:00