nova/nova
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
..
CA
api Catch InstanceNotFound exception 2017-10-17 14:35:35 -04:00
cells Remove straggling use of main db flavors in cellsv1 code 2017-02-14 15:44:14 -05:00
cert
cloudpipe conf: Move cloudpipe options to a group 2016-08-22 09:31:03 +01:00
cmd Fix --max-count handling for nova-manage cell_v2 map_instances 2017-09-26 10:19:41 -04:00
common
compute Merge "Provide original fault message when BFV fails" into stable/newton 2017-10-17 21:01:46 +00:00
conductor Do not try to backport when db has older object version 2016-10-17 08:22:43 +00:00
conf Remove unused placement_database config options 2017-10-24 10:04:04 -04:00
console Fixed typos in nova: compute, console and conf dir 2016-08-01 21:14:32 +00:00
consoleauth
db Exclude deleted service records when calling hypervisor statistics 2017-06-08 12:12:28 +00:00
hacking Remove hacking check [N347] for config options. 2016-08-11 14:23:21 +02:00
image Determine disk_format for volume-backed snapshot from schema 2016-09-26 14:07:20 -04:00
ipv6 Fix test_ipv6 and simplify to_global() 2016-06-28 20:42:32 +02:00
keymgr Deprecate barbican options 2016-07-29 15:36:28 -05:00
locale Imported Translations from Zanata 2017-02-27 08:55:47 +00:00
network neutron: handle binding:profile=None during migration 2017-09-21 13:48:39 -04:00
notifications Merge "Make notification objects use flavor capacity attributes" 2016-08-06 05:58:09 +00:00
objects Warn the user about orphaned extra records during keypair migration 2017-05-08 16:25:57 +00:00
pci Fix crashing during guest config with pci_devices=None 2016-12-12 15:07:18 +00:00
policies Merge "Fix server operations' policies to admin only" 2016-08-11 06:07:52 +00:00
scheduler Merge "Fresh resource provider in RT must have generation 0" into stable/newton 2017-03-07 12:44:33 +00:00
servicegroup
tests libvirt: Don't disregard cache mode for instance boot disks 2017-10-26 22:47:20 +00:00
virt libvirt: Don't disregard cache mode for instance boot disks 2017-10-26 22:47:20 +00:00
vnc
volume encryptors: Workaround mangled passphrases 2016-11-10 15:31:07 +00:00
wsgi
__init__.py
availability_zones.py
baserpc.py
block_device.py Allow None for block_device_mapping_v2.boot_index 2017-02-09 10:33:35 -05:00
cache_utils.py
config.py Add the ability to configure glanceclient debug logging 2016-08-04 00:32:37 +00:00
context.py Cache database and message queue connection objects 2017-05-19 22:24:21 +00:00
crypto.py
debugger.py
exception.py libvirt: Always disconnect_volume after rebase failures 2017-08-11 19:33:52 +01:00
exception_wrapper.py do not include context to exception notification 2017-03-17 13:06:25 -04:00
filters.py
hash_ring.py Ironic: allow multiple compute services 2016-08-04 23:51:13 +00:00
hooks.py
i18n.py
loadables.py
manager.py
policy.py Emit warning when use 'user_id' in policy rule 2016-08-29 11:46:15 +00:00
quota.py incorrect description in nova-api.log about quota check 2016-09-02 17:00:14 +09:00
rpc.py Merge "Account for compute.metrics.update in legacy notification whitelist" into stable/newton 2017-10-17 23:58:01 +00:00
safe_utils.py
service.py Device tagging API support 2016-06-29 20:55:16 -07:00
signature_utils.py Trivial-Fix: Fix typos 2016-06-13 06:41:08 +00:00
test.py Cache database and message queue connection objects 2017-05-19 22:24:21 +00:00
utils.py Merge "Properly quote IPv6 address in RsyncDriver" 2016-08-18 13:17:19 +00:00
version.py
weights.py
wsgi.py