nova/nova/virt
melanie witt db455548a1 Use force=True for os-brick disconnect during delete
The 'force' parameter of os-brick's disconnect_volume() method allows
callers to ignore flushing errors and ensure that devices are being
removed from the host.

We should use force=True when we are going to delete an instance to
avoid leaving leftover devices connected to the compute host which
could then potentially be reused to map to volumes to an instance that
should not have access to those volumes.

We can use force=True even when disconnecting a volume that will not be
deleted on termination because os-brick will always attempt to flush
and disconnect gracefully before forcefully removing devices.

Closes-Bug: #2004555

Change-Id: I3629b84d3255a8fe9d8a7cea8c6131d7c40899e8
2023-05-10 07:09:05 -07:00
..
disk Add autopep8 to tox and pre-commit 2021-11-08 12:37:27 +00:00
hyperv Use force=True for os-brick disconnect during delete 2023-05-10 07:09:05 -07:00
image libvirt: virtuozzo instance resize support 2016-06-28 22:13:49 +03:00
ironic Check our nodes for hypervisor_hostname changes 2023-02-01 09:20:59 -08:00
libvirt Use force=True for os-brick disconnect during delete 2023-05-10 07:09:05 -07:00
vmwareapi VMware: StableMoRefProxy for moref recovery 2022-04-29 08:14:39 +00:00
zvm Fix typos 2022-05-30 17:40:00 +05:30
__init__.py
arch.py Added ability to configure default architecture for ImagePropertiesFilter 2018-05-14 16:55:13 -04:00
block_device.py block_device: Add encryption attributes to image and ephemeral disks 2022-08-02 21:25:48 +00:00
configdrive.py Remove six.text_type (1/2) 2020-12-13 11:25:31 +00:00
driver.py Check our nodes for hypervisor_hostname changes 2023-02-01 09:20:59 -08:00
event.py Port binding based on events during live migration 2018-07-19 09:09:55 -04:00
fake.py Stable compute uuid functional tests 2023-02-01 11:12:29 -08:00
hardware.py Merge "Handle zero pinned CPU in a cell with mixed policy" 2023-05-09 12:46:37 +00:00
imagecache.py Include removal of ephemeral backing files in the image cache manager 2020-10-09 12:24:06 +01:00
images.py Check VMDK create-type against an allowed list 2023-01-24 07:01:24 -08:00
interfaces.template Update the file for IPv4-only or IPv6-only network 2019-10-02 16:54:20 +00:00
netutils.py Don't provide MTU value in metadata service if DHCP is enabled 2022-11-29 15:12:24 +00:00
node.py Fixup patch for stable-compute-uuid series 2023-01-30 12:44:57 -08:00
osinfo.py Stop sending bad values from libosinfo to libvirt 2019-07-04 15:30:51 +01:00
storage_users.py Remove translation of log messages 2017-06-13 11:20:28 +07:00
virtapi.py Add a way to exit early from a wait_for_instance_event() 2019-12-02 07:00:26 -08:00