From 2224bfbe981bf37a351dac4891081ff8beb41492 Mon Sep 17 00:00:00 2001 From: Sean Dague Date: Fri, 7 Feb 2014 09:13:41 -0500 Subject: [PATCH] ensure all the required files are there add in neutron, glance, and n-net logs as required files when appropriate. This will help ensure that we don't miss a pattern because we searched before the log was in the system. Change-Id: Ia8f2cdedfc9964f1d9589fda253174e972fcc770 --- elastic_recheck/elasticRecheck.py | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/elastic_recheck/elasticRecheck.py b/elastic_recheck/elasticRecheck.py index bbb8c1f9..464215d1 100644 --- a/elastic_recheck/elasticRecheck.py +++ b/elastic_recheck/elasticRecheck.py @@ -37,9 +37,20 @@ def required_files(job): 'logs/screen-n-api.txt', 'logs/screen-n-cpu.txt', 'logs/screen-n-sch.txt', + 'logs/screen-g-api.txt', 'logs/screen-c-api.txt', 'logs/screen-c-vol.txt', 'logs/syslog.txt']) + # we could probably add more neutron files + # but currently only q-svc is used in queries + if re.match("neutron", job): + files.extend([ + 'logs/screen-q-svc.txt', + ]) + else: + files.extend([ + 'logs/screen-n-net.txt', + ]) return files