Bug 2203238 - Backport os-brick debug logging fix
Summary: Backport os-brick debug logging fix
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: python-os-brick
Version: 17.1 (Wallaby)
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: beta
: 17.1
Assignee: Brian Rosmaita
QA Contact: Evelina Shames
URL:
Whiteboard:
Depends On: 2204522
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-05-11 15:33 UTC by Eric Harney
Modified: 2023-08-16 01:15 UTC (History)
7 users (show)

Fixed In Version: python-os-brick-4.3.4-1.20230519133330.cf69f92.el9ost
Doc Type: Bug Fix
Doc Text:
Before this update, for the nova-compute log to record os-brick privileged commands for debugging purposes, you had to apply the workaround outlined in https://access.redhat.com/articles/5906971. This update makes the workaround redundant and provides a better solution that separates logging by the nova-compute service so that the privileged commands of os-brick are logged at the debug level but the privileged commands of nova are not.
Clone Of:
: 2204522 (view as bug list)
Environment:
Last Closed: 2023-08-16 01:15:21 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
OpenStack gerrit 784098 0 None MERGED Allow finer grained log levels 2023-05-11 15:33:45 UTC
OpenStack gerrit 871835 0 None MERGED Support separate privsep logging levels 2023-05-11 15:33:45 UTC
Red Hat Issue Tracker OSP-25032 0 None None None 2023-05-11 15:34:22 UTC
Red Hat Product Errata RHEA-2023:4577 0 None None None 2023-08-16 01:15:48 UTC

Description Eric Harney 2023-05-11 15:33:45 UTC
These fixes resolve a problem where os-brick logs don't appear in Nova when debug logging is enabled.  We will want these in 17.1 for debugging customer issues.

https://review.opendev.org/c/openstack/os-brick/+/871835

https://review.opendev.org/c/openstack/oslo.privsep/+/784098

Comment 9 Brian Rosmaita 2023-06-06 22:38:24 UTC
Added some suggested doc text.  Not sure it's really necessary because what this fix does is make things work the way you'd expect without you having to do anything.  That being said, without this fix you had to apply a workaround that was kind of dangerous and could easily flood the logs if left in place too long, so maybe it's good to tell an operator who used that workaround in the past that it's not required any more?  Or maybe it's less confusing to simply not say anything.

Comment 14 Evelina Shames 2023-06-13 15:11:06 UTC
Verified on python3-os-brick-4.3.4-1.20230519133330.cf69f92.el9ost.noarch

os-brick logs can be controlled separately now and are available in nova log when debug is enabled. 

Moving to 'Verified'.

Comment 23 errata-xmlrpc 2023-08-16 01:15:21 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (Release of components for Red Hat OpenStack Platform 17.1 (Wallaby)), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHEA-2023:4577


Note You need to log in before you can comment on or make changes to this bug.