os-brick/os_brick
Gorka Eguileor 743002cc26 RBD: Fix disconnect_volume for encrypted volumes
After change Ie373ab050dcc0a35c749d9a53b6cf5ca060bcb58 closing bugs
connector was broken for encrypted volumes:

<== disconnect_volume:
   exception (0ms) AttributeError("'RBDVolumeIOWrapper' object has
   no attribute 'startswith'") trace_logging_wrapper
   /usr/lib/python3.9/site-packages/os_brick/utils.py:162

This hapens because "_device_path_from_symlink" doesn't take into
account of the file handle, and we were missing a unit test for this
case.

Closes-Bug: #1981455
Change-Id: Ib001e2b4d1347754c2b46730bc10d86e8cdab7ad
(cherry picked from commit dde8f102b7)
2022-07-13 18:27:30 +02:00
..
caches opencas: Use BrickException instead of Exception 2020-12-17 15:21:37 +00:00
encryptors Merge "encryptors: Remove workaround for bug #1633518" 2021-08-03 15:51:00 +00:00
initiator Fix encryption symlink issues 2022-06-15 14:07:10 +00:00
local_dev LVM: Retry lv calls on segfault due to lvs failure 2021-07-26 15:19:16 +00:00
privileged Fix encryption symlink issues 2022-06-15 14:07:10 +00:00
remotefs Introduce mypy 2021-05-21 16:58:22 -04:00
tests RBD: Fix disconnect_volume for encrypted volumes 2022-07-13 18:27:30 +02:00
__init__.py doc: Remove cruft from conf.py 2017-08-08 15:44:29 +01:00
exception.py mypy: exception.py 2021-08-24 19:06:35 +00:00
executor.py Introduce mypy 2021-05-21 16:58:22 -04:00
i18n.py Update and replace http with https for doc links 2017-07-26 02:18:44 +00:00
utils.py RBD: Fix disconnect_volume for encrypted volumes 2022-07-13 18:27:30 +02:00
version.py Add reno for release notes management 2016-01-20 19:19:36 -06:00