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().
Reviewed: https:/ /review. openstack. org/515543 /git.openstack. org/cgit/ openstack/ nova/commit/ ?id=ca03fe87371 d8c13fc2895f8ff 3e7e1ca88cfe79
Committed: https:/
Submitter: Zuul
Branch: stable/newton
commit ca03fe87371d8c1 3fc2895f8ff3e7e 1ca88cfe79
Author: Kashyap Chamarthy <email address hidden>
Date: Mon Oct 23 16:27:01 2017 +0200
libvirt: Don't disregard cache mode for instance boot disks
One of the things this commit:
commit 14c38ac0f253036 da79f9d07aedf7d fd5778fde8
Author: Kashyap Chamarthy <email address hidden>
Date: Thu Jul 20 19:01:23 2017 +0200
[...]
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 <email address hidden>
Closes-Bug: #1727558
Conflicts: virt/libvirt/ driver. py
nova/
NOTE(melwitt): The conflict is from a helper function scsi_controller in ocata that doesn't exist in newton.
_get_
Change-Id: I7370cc2942a6c8 c51ab5355b50a9e 5666cca042e f4fea2cbdf06659 9cc746c2dc) f95a028c6176e76 8214ec8b77) e780b110928bda3 a19e4c03f0)
(cherry picked from commit 24e79bcbf7790d1
(cherry picked from commit 60d6e87cac10ff1
(cherry picked from commit fc10b54f25023d7