summaryrefslogtreecommitdiff
path: root/nova/conf
diff options
context:
space:
mode:
authorIldiko Vancsa <ildiko.vancsa@gmail.com>2017-12-17 17:38:11 -0500
committerIldiko Vancsa <ildiko.vancsa@gmail.com>2018-01-18 14:02:35 +0100
commitbaa8278ca78f44b2b0bef0fa2df2df48b2ce2e6f (patch)
treeeaa3a3bad2bef83c5b674e81d6ea0b2f9b848b44 /nova/conf
parent21ad3402f1800b3ec5aba6e825293257f4edf0a1 (diff)
downloadnova-baa8278ca78f44b2b0bef0fa2df2df48b2ce2e6f.tar.gz
[libvirt] Allow multiple volume attachments
Add multiattach support to libvirt driver, by updating the xml configuration info if the multiattach support is turned on for a volume and set the virt driver capability 'support_multiattach' to true. This capability is set to false for all the other drivers. Also the attach function in nova/virt/block_device.py is updated to call out to Cinder in case of each attachment request for multiattach volumes, which is needed for Cinder in order to track all attachments for a volume and be able to detach properly. Co-Authored-By: Matt Riedemann <mriedem.os@gmail.com> Partially-implements: blueprint multi-attach-volume Change-Id: I947bf0ad34a48e9182a3dc016f47f0c9f71c9d7b
Diffstat (limited to 'nova/conf')
-rw-r--r--nova/conf/libvirt.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/nova/conf/libvirt.py b/nova/conf/libvirt.py
index 1481010d42..b1339faa80 100644
--- a/nova/conf/libvirt.py
+++ b/nova/conf/libvirt.py
@@ -554,7 +554,9 @@ Possible cache modes:
barriers), then data integrity can be ensured. However, because the host
page cache is disabled, the read performance in the guest would not be as
good as in the modes where the host page cache is enabled, such as
- writethrough mode.
+ writethrough mode. Shareable disk devices, like for a multi-attachable block
+ storage volume, will have their cache mode set to 'none' regardless of
+ configuration.
* writethrough: writethrough mode is the default caching mode. With
caching set to writethrough mode, the host page cache is enabled, but the
disk write cache is disabled for the guest. Consequently, this caching mode