Description of problem: Every time ceph-volume command gets executed the debug output gets registered here: /var/log/ceph/ceph-volume.log This output doesn't stop even if we set CEPH_VOLUME_DEBUG variable to 0. Version-Release number of selected component (if applicable): How reproducible: Always Steps to Reproduce: 1. ls -l /var/log/ceph/ceph-volume.log 2. CEPH_VOLUME_DEBUG=0 ceph-volume --cluster ceph lvm list >/dev/null ; ls -l /var/log/ceph/ceph-volume.log ; tail /var/log/ceph/ceph-volume.log 3. Notice the size increase and a debug version of the command output gets registered into the log file Actual results: a debug version of the command output gets registered into the log file, despite having set DEBUG to 0 Expected results: a debug version of the command output doesn't get registered into the log file, when we set CEPH_VOLUME_DEBUG=0, only the command that has been executed or even not that. Additional info:
Please specify the severity of this bug. Severity is defined here: https://bugzilla.redhat.com/page.cgi?id=fields.html#bug_severity.
Here we can see where CEPH_VOLUME_DEBUG environment variable is referred: https://github.com/ceph/ceph/search?q=CEPH_VOLUME_DEBUG&unscoped_q=CEPH_VOLUME_DEBUG Effectively in the code is only mentioned here: ( except for the src/ceph-volume/ceph_volume/tests/test_decorators.py where it is only enabled ) src/ceph-volume/ceph_volume/decorators.py logger.exception('exception caught by decorator') if os.environ.get('CEPH_VOLUME_DEBUG'): raise
Is this already in 4.2z1?
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 (Important: Red Hat Ceph Storage security, bug fix, and enhancement Update), 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/RHSA-2021:1452