nova/nova/virt
Kashyap Chamarthy ca03fe8737 libvirt: Don't disregard cache mode for instance boot disks
One of the things this commit:

    commit 14c38ac0f2
    Author: Kashyap Chamarthy <kchamart@redhat.com>
    Date:   Thu Jul 20 19:01:23 2017 +0200

        libvirt: Post-migration, set cache value for Cinder volume(s)

    [...]

did was to supposedly remove "duplicate" calls to _set_cache_mode().

But that came back to bite us.

Now, while the Cinder volumes are taken care of w.r.t handling its cache
value during migration, but the above referred commit (14c38ac) seemed
to introduce a regression because it disregards the 'disk_cachemodes'
Nova config parameter altogether for boot disks -- i.e. even though if
a user set the cache mode to be 'writeback', it's ignored and
instead 'none' is set unconditionally.

Add the _set_cache_mode() calls back in _get_guest_storage_config().

Co-Authored-By: melanie witt <melwittt@gmail.com>

Closes-Bug: #1727558

 Conflicts:
	nova/virt/libvirt/driver.py

NOTE(melwitt): The conflict is from a helper function
_get_scsi_controller in ocata that doesn't exist in newton.

Change-Id: I7370cc2942a6c8c51ab5355b50a9e5666cca042e
(cherry picked from commit 24e79bcbf7)
(cherry picked from commit 60d6e87cac)
(cherry picked from commit fc10b54f25)
2017-10-26 22:47:20 +00:00
..
disk Guestfs handle no passwd or group in image 2017-01-11 18:18:45 +00:00
hyperv Hyper-V: fix image handling when shared storage is being used 2016-11-25 18:32:34 +00:00
image libvirt: virtuozzo instance resize support 2016-06-28 22:13:49 +03:00
ironic Ensure we mark baremetal links as phy links 2017-01-20 10:13:35 +00:00
libvirt libvirt: Don't disregard cache mode for instance boot disks 2017-10-26 22:47:20 +00:00
vmwareapi Using get() method to prevent KeyError 2016-12-01 09:19:23 +00:00
xenapi Merge "Add support for vd2 user context to other drivers" 2016-08-31 02:40:59 +00:00
__init__.py Declare nova.virt namespace 2016-04-28 15:01:44 +00:00
block_device.py Remove virt.block_device._NoLegacy exception 2016-06-16 09:31:25 +01:00
configdrive.py Config options: centralize "configdrive" options 2016-04-06 09:35:51 +03:00
diagnostics.py Diagnostics: add validation for types 2014-08-05 01:49:17 -07:00
driver.py Fix s390 "connector not found" issue 2017-03-09 11:19:10 +01:00
event.py Add 'suspended' lifecycle event 2015-04-03 03:59:20 +03:00
fake.py driver.pre_live_migration migrate_data is always an object 2016-08-22 12:12:24 -04:00
firewall.py Fix spelling mistake 2016-06-28 08:41:09 +02:00
hardware.py Merge "scheduler: Don't modify RequestSpec.numa_topology" into stable/newton 2017-02-11 02:17:42 +00:00
imagecache.py Rename ImageCacheManager._list_base_images to _scan_base_images 2016-05-26 14:45:42 +01:00
images.py Bump prlimit cpu time for qemu from 2 to 8 2016-12-12 12:48:03 +00:00
interfaces.template Fixes interfaces template identification issue 2014-12-07 17:52:34 +02:00
netutils.py Fix network mtu in network_metadata 2016-05-15 11:45:23 +02:00
osinfo.py Trivial-Fix: Fix typos 2016-06-13 06:41:08 +00:00
storage_users.py Use oslo.log 2015-02-22 07:56:40 -05:00
virtapi.py Remove unused provider firewall rules functionality in nova 2016-02-01 15:50:04 +01:00
volumeutils.py nova.utils._get_root_helper() should be public 2015-08-19 04:00:50 +00:00
watchdog_actions.py Add watchdog device support to libvirt driver 2014-03-03 14:59:58 -05:00