Bug 1084995

Summary: Disable iso8601 in debug logs by default
Product: Red Hat OpenStack Reporter: Russell Bryant <rbryant>
Component: openstack-novaAssignee: Eoghan Glynn <eglynn>
Status: CLOSED WORKSFORME QA Contact: Shai Revivo <srevivo>
Severity: high Docs Contact:
Priority: high    
Version: 4.0CC: cpelland, dasmith, eglynn, rhallise, sgordon, srevivo
Target Milestone: ---Keywords: ZStream
Target Release: 7.0 (Kilo)   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-06-05 16:55:26 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:    
Bug Blocks: 1040649    

Description Russell Bryant 2014-04-07 13:40:10 UTC
While debugging an issue with a partner, I asked them to turn on debug=True for Nova to collect some more information.  After collecting the debug log file from the compute node, I noticed that over 70% of the log file was taken up with entries like this:

2014-04-06 03:25:46.039 125211 DEBUG iso8601.iso8601 [-] Got u'2014' for 'year' with default None to_int /usr/lib/python2.6/site-packages/iso8601/iso8601.py:124
2014-04-06 03:25:46.039 125211 DEBUG iso8601.iso8601 [-] Got u'04' for 'month' with default None to_int /usr/lib/python2.6/site-packages/iso8601/iso8601.py:124
2014-04-06 03:25:46.039 125211 DEBUG iso8601.iso8601 [-] Got u'04' for 'day' with default None to_int /usr/lib/python2.6/site-packages/iso8601/iso8601.py:124
2014-04-06 03:25:46.040 125211 DEBUG iso8601.iso8601 [-] Got u'01' for 'hour' with default None to_int /usr/lib/python2.6/site-packages/iso8601/iso8601.py:124
2014-04-06 03:25:46.040 125211 DEBUG iso8601.iso8601 [-] Got u'54' for 'minute' with default None to_int /usr/lib/python2.6/site-packages/iso8601/iso8601.py:124
2014-04-06 03:25:46.040 125211 DEBUG iso8601.iso8601 [-] Got u'55' for 'second' with default None to_int /usr/lib/python2.6/site-packages/iso8601/iso8601.py:124
2014-04-06 03:25:46.040 125211 DEBUG iso8601.iso8601 [-] Parsed 2014-04-04T02:00:44Z into {'tz_sign': None, 'second_fraction': None, 'hour': u'02', 'tz_hour': None, 'month': u'04', 'timezone': u'Z', 'second': u'44', 'tz_minute': None, 'year': u'2014', 'separator': u'T', 'day': u'04', 'minute': u'00'} with default timezone <iso8601.iso8601.Utc object at 0x2052e90> parse_date /usr/lib/python2.6/site-packages/iso8601/iso8601.py:166


This output is overly verbose and not useful.  It should be disabled by default.    RHOS 5.0 already has this disabled by default, so it would be helpful to backport this particular change to RHOS 4.0.

The change is to add "iso8601=WARN" to the default list of values of the config option "default_log_levels".

Comment 7 Red Hat Bugzilla 2023-09-14 02:05:58 UTC
The needinfo request[s] on this closed bug have been removed as they have been unresolved for 1000 days