Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 2203238

Summary: Backport os-brick debug logging fix
Product: Red Hat OpenStack Reporter: Eric Harney <eharney>
Component: python-os-brickAssignee: Brian Rosmaita <brian.rosmaita>
Status: CLOSED ERRATA QA Contact: Evelina Shames <eshames>
Severity: high Docs Contact:
Priority: high    
Version: 17.1 (Wallaby)CC: apevec, brian.rosmaita, geguileo, joflynn, jschluet, lhh, pgrist
Target Milestone: betaKeywords: Triaged
Target Release: 17.1   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
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.
Story Points: ---
Clone Of:
: 2204522 (view as bug list) Environment:
Last Closed: 2023-08-16 01:15:21 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 2204522    
Bug Blocks:    

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