os-brick/os_brick
Gorka Eguileor a82b2ffce5 Support separate privsep logging levels
Currently we don't have os_brick DEBUG log levels in Nova when setting
the service to debug mode.

That happens because Nova is forcefully setting oslo.privsep.daemon
levels to INFO to prevent leaking instance XML details (bug #1784062).

Oslo Privsep now supports per-context debug log levels, so this patch
sets the log level name for its only os_brick privsep context to
"os_brick.privileged" to differentiate it from the service it runs under
which uses the default "oslo_privsep.daemon".

This way even though Nova is still disabling its own privileged calls it
won't affect os-brick privileged calls, allowing us to properly debug
block device attach/detach operations.

Closes-Bug: #1922052
Related-Bug: #1784062
Change-Id: I0de32021eb90ca045845a6c7c7e3d27e52895948
2023-01-26 17:02:22 +01:00
..
caches opencas: Use BrickException instead of Exception 2020-12-17 15:21:37 +00:00
encryptors mypy: os_brick/encryptors/__init__.py 2022-08-23 15:12:04 +00:00
initiator Merge "mypy: Annotate utils.get_device_size" 2023-01-20 17:37:30 +00:00
local_dev mypy: lvm.py 2022-08-25 14:00:42 +00:00
privileged Support separate privsep logging levels 2023-01-26 17:02:22 +01:00
remotefs Introduce mypy 2021-05-21 16:58:22 -04:00
tests Handle FileNotFoundError on get_system_uuid() 2022-10-24 20:37:49 -03:00
__init__.py Support independent file lock path 2022-07-15 09:21:19 +00:00
exception.py mypy: Update format to future __annotations__ 2022-08-23 15:21:17 +00:00
executor.py mypy: Update format to future __annotations__ 2022-08-23 15:21:17 +00:00
i18n.py Update and replace http with https for doc links 2017-07-26 02:18:44 +00:00
opts.py Support independent file lock path 2022-07-15 09:21:19 +00:00
utils.py mypy: Annotate utils.get_device_size 2022-11-15 13:03:21 -05:00
version.py Add reno for release notes management 2016-01-20 19:19:36 -06:00