nova/nova/tests/unit/virt/hyperv
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
..
__init__.py Move optional build dependencies to 'extras' 2022-01-28 12:27:06 +00:00
test_base.py Use unittest.mock instead of third party mock 2022-08-01 17:46:26 +02:00
test_block_device_manager.py Use unittest.mock instead of third party mock 2022-08-01 17:46:26 +02:00
test_driver.py Use unittest.mock instead of third party mock 2022-08-01 17:46:26 +02:00
test_eventhandler.py Use unittest.mock instead of third party mock 2022-08-01 17:46:26 +02:00
test_hostops.py Use unittest.mock instead of third party mock 2022-08-01 17:46:26 +02:00
test_imagecache.py Use unittest.mock instead of third party mock 2022-08-01 17:46:26 +02:00
test_livemigrationops.py Use unittest.mock instead of third party mock 2022-08-01 17:46:26 +02:00
test_migrationops.py Use unittest.mock instead of third party mock 2022-08-01 17:46:26 +02:00
test_pathutils.py Use unittest.mock instead of third party mock 2022-08-01 17:46:26 +02:00
test_rdpconsoleops.py Use unittest.mock instead of third party mock 2022-08-01 17:46:26 +02:00
test_serialconsolehandler.py Use unittest.mock instead of third party mock 2022-08-01 17:46:26 +02:00
test_serialconsoleops.py Use unittest.mock instead of third party mock 2022-08-01 17:46:26 +02:00
test_serialproxy.py Use unittest.mock instead of third party mock 2022-08-01 17:46:26 +02:00
test_snapshotops.py Use unittest.mock instead of third party mock 2022-08-01 17:46:26 +02:00
test_vif.py Use unittest.mock instead of third party mock 2022-08-01 17:46:26 +02:00
test_vmops.py Use force=True for os-brick disconnect during delete 2023-05-10 07:09:05 -07:00
test_volumeops.py Use force=True for os-brick disconnect during delete 2023-05-10 07:09:05 -07:00