diff options
| author | Ildiko Vancsa <ildiko.vancsa@gmail.com> | 2017-12-17 17:38:11 -0500 |
|---|---|---|
| committer | Ildiko Vancsa <ildiko.vancsa@gmail.com> | 2018-01-18 14:02:35 +0100 |
| commit | baa8278ca78f44b2b0bef0fa2df2df48b2ce2e6f (patch) | |
| tree | eaa3a3bad2bef83c5b674e81d6ea0b2f9b848b44 /nova/virt/hyperv/driver.py | |
| parent | 21ad3402f1800b3ec5aba6e825293257f4edf0a1 (diff) | |
| download | nova-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/virt/hyperv/driver.py')
| -rw-r--r-- | nova/virt/hyperv/driver.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/nova/virt/hyperv/driver.py b/nova/virt/hyperv/driver.py index a36aee1b2b..effb1425c7 100644 --- a/nova/virt/hyperv/driver.py +++ b/nova/virt/hyperv/driver.py @@ -98,6 +98,7 @@ class HyperVDriver(driver.ComputeDriver): "supports_migrate_to_same_host": False, "supports_attach_interface": True, "supports_device_tagging": True, + "supports_multiattach": False } def __init__(self, virtapi): |
