[rancid] Issues with f5rancid

Derek Andree derek.andree at nuance.com
Tue Jun 23 18:01:44 UTC 2009


Has anyone noticed issues getting the configuration for the standby F5 in an
HA pair?  What is strange is that I can do rancid-run from the command line
and it will actually get the configuration fine.  When run from cron, it
does not.  I created a "rancid-daemon" which does rancid-run every hour and
just kicked that off in the background, but interestingly it succeeds the
first run, then every run thereafter fails for only the standby F5s.

My initial thoughts were that there was some problem with the prompt for the
standby, as it's prompt contains "Standby" instead of "Active", but when I
realized I could successfully get the configuration by running rancid-run
from the command line I abandoned this theory.

The only thing I can think of now is that it has to do with some environment
variable getting monkeyed up after the first run.  I've noticed in f5rancid
it sets env{TERM} = 'vt100'.  If I comment out that line f5rancid fails for
both active and standby F5 load balancers.  I've even tried exporting
TERM=vt100 in the crontab such as this:

1 * * * * export TERM=vt100 ; /home/rancid/bin/rancid-run

This doesn't help.

If anyone has any ideas I'm all ears at this point, I'm about to re-write
f5rancid if I can't figure this out.

Here's the logfile when it fails (not very helpful), if there is any other
info that would be helpful please let me know and I will post it.

Trying to get all of the configs.
lb02: missed cmd(s): ls --full-time --color=never /config/ssl/ssl.crt,ls
--full-time --color=never /config/ssl/ssl.key
=====================================
Getting missed routers: round 1.
lb02: missed cmd(s): ls --full-time --color=never /config/ssl/ssl.crt,ls
--full-time --color=never /config/ssl/ssl.key
=====================================
Getting missed routers: round 2.
lb02: missed cmd(s): ls --full-time --color=never /config/ssl/ssl.crt,ls
--full-time --color=never /config/ssl/ssl.key
=====================================
Getting missed routers: round 3.
lb02: missed cmd(s): ls --full-time --color=never /config/ssl/ssl.crt,ls
--full-time --color=never /config/ssl/ssl.key
=====================================
Getting missed routers: round 4.
lb02: missed cmd(s): ls --full-time --color=never /config/ssl/ssl.crt,ls
--full-time --color=never /config/ssl/ssl.key

Thanks,
-Derek



More information about the Rancid-discuss mailing list