Missing os-brick commands in debug mode
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
os-brick |
Fix Released
|
Low
|
Unassigned | ||
oslo.privsep |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
To debug os-brick's attach and detach code developers and system administrators rely on seeing what commands are actually being executed by os-brick.
The os-brick library relies on the DEBUG logs from the libraries (such as ``oslo_
The default configuration in Nova no longer logs those os-brick commands when running on debug mode.
This issue was introduced when fixing bug #1784062, as the fix was to set ALL privsep calls to log only INFO level messages.
The current solution is to set the ``default_
The default for os-brick should be the other way around, it should allow emitting DEBUG messages on debug mode.
Related fix proposed to oslo.privsep master /review. opendev. org/c/openstack /oslo.privsep/ +/784098
Review: https:/
Once that is merged, released, and we update our requirements, we can fix this issue by making the following 2 changes:
--- a/nova/config.py
extra_ default_ log_levels = ['glanceclient= WARN'] log_levels. append( 'oslo.privsep. daemon= INFO') log_levels. append( 'nova.privsep= INFO')
+++ b/nova/config.py
@@ -71,7 +71,7 @@ def set_log_defaults():
# NOTE(danms): DEBUG logging in privsep will result in some large
# and potentially sensitive things being logged.
- extra_default_
+ extra_default_
--- a/nova/ privsep/ __init_ _.py privsep/ __init_ _.py PrivContext( section= 'nova_sys_ admin', __name_ _ + '.sys_admin_pctxt', name=__ name__, es=[capabilitie s.CAP_CHOWN,
capabiliti es.CAP_ DAC_OVERRIDE,
capabiliti es.CAP_ DAC_READ_ SEARCH,
+++ b/nova/
@@ -22,6 +22,7 @@ sys_admin_pctxt = priv_context.
'nova',
cfg_
pypath=
+ logger_
capabiliti