Capture logs for lib/neutron services

Services supported by the new lib/neutron devstack library use neutron-
prefix not q-. Support both for the time being. Eventually we will get
rid of q- prefix.

The patch also adds neutron-l3 sample file to test suite, to make sure
we don't regress in the future.

Change-Id: I48ca66421d39a8fdd8700adf691823e20a03ab30
This commit is contained in:
Ihar Hrachyshka 2017-02-23 19:57:52 +00:00
parent 1048d8b2a4
commit 9916cb3a3d
3 changed files with 10 additions and 1 deletions

View File

@ -23,7 +23,8 @@ import os_loganalyze.util as util
# which logs support severity
SUPPORTS_SEV = re.compile(
r'/' # this uses an re.search so anchor the string
r'((screen-)?(n-|c-|q-|g-|h-|ir-|ironic-|m-|'
r'((screen-)?(n-|c-|g-|h-|ir-|ironic-|m-|'
r'q-|neutron-|' # support both lib/neutron and lib/neutron-legacy logs
r'ceil|key|sah|des|tr)' # openstack logs
# other things we understand
r'|(keystone|placement-api|tempest)\.txt|syslog)')

Binary file not shown.

View File

@ -159,6 +159,14 @@ class TestWsgiDisk(base.TestCase):
'WARNING': 48,
'ERROR': 72,
},
'screen-neutron-l3.txt.gz': {
'DEBUG': 25212,
'INFO': 85,
'AUDIT': 0,
'TRACE': 0,
'WARNING': 122,
'ERROR': 19,
},
}
@mock.patch.object(swiftclient.client.Connection, 'get_object',