nova/nova/cmd
melanie witt efb01985db 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
(cherry picked from commit db455548a1)
2023-05-10 14:56:18 +00:00
..
__init__.py Eventlet monkey patching should be as early as possible 2019-03-22 09:27:16 +00:00
api.py config: Explicitly register 'remote_debug' CLI opts 2020-05-07 12:35:21 +00:00
api_metadata.py config: Explicitly register 'remote_debug' CLI opts 2020-05-07 12:35:21 +00:00
api_os_compute.py config: Explicitly register 'remote_debug' CLI opts 2020-05-07 12:35:21 +00:00
baseproxy.py config: Explicitly register 'remote_debug' CLI opts 2020-05-07 12:35:21 +00:00
common.py db: Unify 'nova.db.api', 'nova.db.sqlalchemy.api' 2021-08-09 15:34:40 +01:00
compute.py db: Unify 'nova.db.api', 'nova.db.sqlalchemy.api' 2021-08-09 15:34:40 +01:00
conductor.py config: Explicitly register 'remote_debug' CLI opts 2020-05-07 12:35:21 +00:00
manage.py add header alingment for PrettyTable 3.4.0 2022-09-02 13:42:15 +01:00
novncproxy.py xenapi: Remove Xen-only code paths 2020-09-11 14:09:06 +01:00
policy.py db: Unify 'nova.db.api', 'nova.db.sqlalchemy.api' 2021-08-09 15:34:40 +01:00
scheduler.py Drop support for custom schedulers 2021-02-09 17:26:22 +00:00
serialproxy.py config: Explicitly register 'remote_debug' CLI opts 2020-05-07 12:35:21 +00:00
spicehtml5proxy.py config: Explicitly register 'remote_debug' CLI opts 2020-05-07 12:35:21 +00:00
status.py Use force=True for os-brick disconnect during delete 2023-05-10 14:56:18 +00:00