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.
This commit is contained in:
Rafael Zalamena 2017-11-08 16:23:14 -02:00 committed by Donald Sharp
parent 034237db12
commit 222ea88b2a
2 changed files with 7 additions and 7 deletions

View File

@ -354,7 +354,7 @@ class Topogen(object):
def set_error(self, message, code=None): def set_error(self, message, code=None):
"Sets an error message and signal other tests to skip." "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 no code is defined use a sequential number
if code is None: if code is None:

View File

@ -566,7 +566,7 @@ class Router(Node):
self.cmd('chown %s:%s /etc/%s/%s.conf' % (self.routertype, self.routertype, self.routertype, daemon)) self.cmd('chown %s:%s /etc/%s/%s.conf' % (self.routertype, self.routertype, self.routertype, daemon))
self.waitOutput() self.waitOutput()
else: else:
logger.warning('No daemon {} known'.format(daemon)) logger.info('No daemon {} known'.format(daemon))
# print "Daemons after:", self.daemons # print "Daemons after:", self.daemons
def startRouter(self): def startRouter(self):
# Disable integrated-vtysh-config # Disable integrated-vtysh-config
@ -584,20 +584,20 @@ class Router(Node):
if self.daemons['ldpd'] == 1: if self.daemons['ldpd'] == 1:
ldpd_path = os.path.join(self.daemondir, 'ldpd') ldpd_path = os.path.join(self.daemondir, 'ldpd')
if not os.path.isfile(ldpd_path): 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" return "LDP Test, but no ldpd compiled or installed"
if version_cmp(platform.release(), '4.5') < 0: 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" return "LDP Test need Linux Kernel 4.5 minimum"
# Check if required kernel modules are available with a dryrun modprobe # Check if required kernel modules are available with a dryrun modprobe
# Silent accept of modprobe command assumes ok status # Silent accept of modprobe command assumes ok status
if self.cmd('/sbin/modprobe -n mpls-router' ) != "": 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" return "LDP Test needs mpls-router kernel module"
if self.cmd('/sbin/modprobe -n mpls-iptunnel') != "": 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" return "LDP Test needs mpls-router kernel module"
self.cmd('/sbin/modprobe mpls-router') self.cmd('/sbin/modprobe mpls-router')
@ -607,7 +607,7 @@ class Router(Node):
if self.daemons['eigrpd'] == 1: if self.daemons['eigrpd'] == 1:
eigrpd_path = os.path.join(self.daemondir, 'eigrpd') eigrpd_path = os.path.join(self.daemondir, 'eigrpd')
if not os.path.isfile(eigrpd_path): 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" return "EIGRP Test, but no eigrpd compiled or installed"
# Init done - now restarting daemons # Init done - now restarting daemons