From 222ea88b2a443f775aa81e0f9b19c86887c46aca Mon Sep 17 00:00:00 2001 From: Rafael Zalamena Date: Wed, 8 Nov 2017 16:23:14 -0200 Subject: [PATCH] topotest/topogen: demote some messages level The messages level of this commit were downgraded because some of them happen on 'non-error' situations. This should help diminish the error log verbosity on the CI-system run. --- tests/topotests/lib/topogen.py | 2 +- tests/topotests/lib/topotest.py | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/tests/topotests/lib/topogen.py b/tests/topotests/lib/topogen.py index 8e0d68e86d..43a886befb 100644 --- a/tests/topotests/lib/topogen.py +++ b/tests/topotests/lib/topogen.py @@ -354,7 +354,7 @@ class Topogen(object): def set_error(self, message, code=None): "Sets an error message and signal other tests to skip." - logger.error(message) + logger.info(message) # If no code is defined use a sequential number if code is None: diff --git a/tests/topotests/lib/topotest.py b/tests/topotests/lib/topotest.py index ccdea83393..8f456846c0 100644 --- a/tests/topotests/lib/topotest.py +++ b/tests/topotests/lib/topotest.py @@ -566,7 +566,7 @@ class Router(Node): self.cmd('chown %s:%s /etc/%s/%s.conf' % (self.routertype, self.routertype, self.routertype, daemon)) self.waitOutput() else: - logger.warning('No daemon {} known'.format(daemon)) + logger.info('No daemon {} known'.format(daemon)) # print "Daemons after:", self.daemons def startRouter(self): # Disable integrated-vtysh-config @@ -584,20 +584,20 @@ class Router(Node): if self.daemons['ldpd'] == 1: ldpd_path = os.path.join(self.daemondir, 'ldpd') if not os.path.isfile(ldpd_path): - logger.warning("LDP Test, but no ldpd compiled or installed") + logger.info("LDP Test, but no ldpd compiled or installed") return "LDP Test, but no ldpd compiled or installed" if version_cmp(platform.release(), '4.5') < 0: - logger.warning("LDP Test need Linux Kernel 4.5 minimum") + logger.info("LDP Test need Linux Kernel 4.5 minimum") return "LDP Test need Linux Kernel 4.5 minimum" # Check if required kernel modules are available with a dryrun modprobe # Silent accept of modprobe command assumes ok status if self.cmd('/sbin/modprobe -n mpls-router' ) != "": - logger.warning("LDP Test needs mpls-router kernel module") + logger.info("LDP Test needs mpls-router kernel module") return "LDP Test needs mpls-router kernel module" if self.cmd('/sbin/modprobe -n mpls-iptunnel') != "": - logger.warning("LDP Test needs mpls-iptunnel kernel module") + logger.info("LDP Test needs mpls-iptunnel kernel module") return "LDP Test needs mpls-router kernel module" self.cmd('/sbin/modprobe mpls-router') @@ -607,7 +607,7 @@ class Router(Node): if self.daemons['eigrpd'] == 1: eigrpd_path = os.path.join(self.daemondir, 'eigrpd') if not os.path.isfile(eigrpd_path): - logger.warning("EIGRP Test, but no eigrpd compiled or installed") + logger.info("EIGRP Test, but no eigrpd compiled or installed") return "EIGRP Test, but no eigrpd compiled or installed" # Init done - now restarting daemons -- 2.39.5