[rancid] rancid-run repeating to test device on errors that are not recoverable

Mischa Diehm mischa.diehm at unibas.ch
Fri Jan 13 14:16:13 UTC 2017


Hi,

trying to get the logs from rancid into our monitoring system I noticed that rancid would try to login to systems $ROUND times even though the error is clear in terms of being unrecoverable during a rancid-run e.g.:

rancid at noc-XXX:~/logs$ grep 'Update the SSH known_hosts file accordingly.'  RZ-ROUTER.20170113.054748 | grep routerXYZ
routerXYZ-fa-0-1.urz.p.unibas.ch clogin error: Error: The host key for routerXYZ-fa-0-1.urz.p.unibas.ch has changed.  Update the SSH known_hosts file accordingly.
routerXYZ-fa-0-1.urz.p.unibas.ch clogin error: Error: The host key for routerXYZ-fa-0-1.urz.p.unibas.ch has changed.  Update the SSH known_hosts file accordingly.
routerXYZ-fa-0-1.urz.p.unibas.ch clogin error: Error: The host key for routerXYZ-fa-0-1.urz.p.unibas.ch has changed.  Update the SSH known_hosts file accordingly.
routerXYZ-fa-0-1.urz.p.unibas.ch clogin error: Error: The host key for routerXYZ-fa-0-1.urz.p.unibas.ch has changed.  Update the SSH known_hosts file accordingly.
routerXYZ-fa-0-1.urz.p.unibas.ch clogin error: Error: The host key for routerXYZ-fa-0-1.urz.p.unibas.ch has changed.  Update the SSH known_hosts file accordingly.

in our case MAX_ROUNDS=4… I checked but couldn’t find an fast easy way to fix this. Same for „check your password“ et al. What do you think? Is there an easy way to prevent retrying in case of unrecoverable errors?

Thanks,
-m

--
Mischa Diehm | Network Team (NINS)
UniBasel | IT-Services (ITS)
Klingebergstr. 70 | CH-4056 Basel
Tel. +41 61 267 1574 | https://its.unibas.ch<https://its.unibas.ch/>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20170113/9ce269b8/attachment.html>


More information about the Rancid-discuss mailing list