nova/nova/virt
Kashyap Chamarthy fc10b54f25 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/tests/unit/virt/libvirt/test_driver.py

NOTE(melwitt): The conflict is from unit tests in pike that don't exist
in ocata.

Change-Id: I7370cc2942a6c8c51ab5355b50a9e5666cca042e
(cherry picked from commit 24e79bcbf7)
(cherry picked from commit 60d6e87cac)
2017-10-26 22:40:49 +00:00
..
disk Fix a typo in documents 2017-01-06 22:10:27 +08:00
hyperv hyperv: Fixes Generation 2 VMs volume boot order 2017-08-11 17:13:16 +00:00
image libvirt: virtuozzo instance resize support 2016-06-28 22:13:49 +03:00
ironic Handle ironicclient failures in Ironic driver 2017-08-08 11:14:53 -04:00
libvirt libvirt: Don't disregard cache mode for instance boot disks 2017-10-26 22:40:49 +00:00
vmwareapi [2/3]Replace six.iteritems() with .items() 2017-01-09 09:11:00 +00:00
xenapi Merge "XenAPI: Create linux bridge in dest host during live migration" into stable/ocata 2017-08-11 18:24:12 +00:00
__init__.py Declare nova.virt namespace 2016-04-28 15:01:44 +00:00
block_device.py [2/3]Replace six.iteritems() with .items() 2017-01-09 09:11:00 +00:00
configdrive.py Fixes python 3 unit tests 2016-09-23 20:10:24 +00:00
diagnostics.py [2/3]Replace six.iteritems() with .items() 2017-01-09 09:11:00 +00:00
driver.py Support Ironic interface attach/detach in nova virt 2017-01-19 22:13:16 -05:00
event.py
fake.py Fixes to get all functional tests working on py35 2017-01-14 13:06:56 -05:00
firewall.py Fix spelling mistake 2016-06-28 08:41:09 +02:00
hardware.py objects: add new field cpuset_reserved in NUMACell 2017-01-24 19:37:55 +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-08 10:41:31 -05:00
interfaces.template
netutils.py Limit exposure of network device types to the guest. 2017-06-21 15:56:16 +00:00
osinfo.py Do not attempt to load osinfo if we do not have os_distro 2017-03-30 05:11:40 +00:00
storage_users.py
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