Discussion:
[rancid] router config diffs - emailing stale info
Ian Stong
2010-01-12 17:36:01 UTC
Permalink
Hi,



I have a rancid install that was working fine for quite awhile as it
would email any configuration differences it found. However, recently
it's been emailing config changes made weeks ago and keeps mailing old
config change differences. For example, I added a line to an existing
ACL and it acts as if that change is being made every time rancid runs
and does a diff (running on unix).



Any ideas what to check or what might have changed to cause this?



retrieving revision 1.103

diff -U 4 -r1.103 10.20.30.5

@@ -6,9 +6,9 @@





Ian Stong
Ian Stong
2010-01-12 20:05:46 UTC
Permalink
Well I see the following in the FAQ - Q. I keep receiving the same diff
for a (or set of) devices, but I know the data is not changing
repeatedly. Why? A. This is probably a CVS or filesystem permissions
problem. Check the log file from the last run for that group for clues
first; it may provide the exact cause. Note: It is very important the
following be done as the user who normally runs the rancid collection
from cron. Check the cvs status of the device's file. example: guelah
[2704] cvs status rtr.shrubbery.net

1) I checked to ensure all the rancid and CVS files are owned by rancid
(chown -R rancid:rancid *)

2) I set the CVSROOT variable (/var/CVS) and then went into
/var/CVS/site-a/configs and type cvs status 10.20.30.4,v and it says
cannot open CVS/Entries for reading: no such file cvs status: use
cvs add to create an entry File: 10.20.30.4,v Status: unknown and no
entry or revision control file.

3) In the rancid log files I see some messages as follows:
cvs commit: Up-to-date check failed for `configs/10.20.30.4'
cvs commit: Up-to-date check failed for `configs/10.20.30.3'
cvs [commit aborted]: correct above errors first!

4) Looks like a CVS issue but unclear how to resolve.


Thanks,

Ian


-----Original Message-----
From: john heasley [mailto:***@shrubbery.net]
Sent: Tuesday, January 12, 2010 1:53 PM
To: Ian Stong
Subject: Re: [rancid] router config diffs - emailing stale info
Post by Ian Stong
Hi,
I have a rancid install that was working fine for quite awhile as it
would email any configuration differences it found. However, recently
it's been emailing config changes made weeks ago and keeps mailing old
config change differences. For example, I added a line to an existing
ACL and it acts as if that change is being made every time rancid runs
and does a diff (running on unix).
Any ideas what to check or what might have changed to cause this?
see the cvs section of the faq.
Post by Ian Stong
retrieving revision 1.103
diff -U 4 -r1.103 10.20.30.5
@@ -6,9 +6,9 @@
Ian Stong
_______________________________________________
Rancid-discuss mailing list
http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss
Ian Stong
2010-01-12 20:12:00 UTC
Permalink
Correction to #2 below - once in the proper directory I am able to
verify Working and Repository revisions are the same:

~/var/site-a/configs $ cvs status 10.20.30.4
===================================================================
File: 10.20.30.4 Status: Locally Modified

Working revision: 1.744 2009-12-28 12:01:20 -0500
Repository revision: 1.744
/home/rancid/var/CVS/site-a/configs/10.20.30.4,v


Thanks,

Ian

-----Original Message-----
From: rancid-discuss-***@shrubbery.net
[mailto:rancid-discuss-***@shrubbery.net] On Behalf Of Ian Stong
Sent: Tuesday, January 12, 2010 3:06 PM
To: rancid-***@shrubbery.net
Subject: [rancid] Re: router config diffs - emailing stale info

Well I see the following in the FAQ - Q. I keep receiving the same diff
for a (or set of) devices, but I know the data is not changing
repeatedly. Why? A. This is probably a CVS or filesystem permissions
problem. Check the log file from the last run for that group for clues
first; it may provide the exact cause. Note: It is very important the
following be done as the user who normally runs the rancid collection
from cron. Check the cvs status of the device's file. example: guelah
[2704] cvs status rtr.shrubbery.net

1) I checked to ensure all the rancid and CVS files are owned by rancid
(chown -R rancid:rancid *)

2) I set the CVSROOT variable (/var/CVS) and then went into
/var/CVS/site-a/configs and type cvs status 10.20.30.4,v and it says
cannot open CVS/Entries for reading: no such file cvs status: use
cvs add to create an entry File: 10.20.30.4,v Status: unknown and no
entry or revision control file.

3) In the rancid log files I see some messages as follows:
cvs commit: Up-to-date check failed for `configs/10.20.30.4'
cvs commit: Up-to-date check failed for `configs/10.20.30.3'
cvs [commit aborted]: correct above errors first!

4) Looks like a CVS issue but unclear how to resolve.


Thanks,

Ian


-----Original Message-----
From: john heasley [mailto:***@shrubbery.net]
Sent: Tuesday, January 12, 2010 1:53 PM
To: Ian Stong
Subject: Re: [rancid] router config diffs - emailing stale info
Post by Ian Stong
Hi,
I have a rancid install that was working fine for quite awhile as it
would email any configuration differences it found. However, recently
it's been emailing config changes made weeks ago and keeps mailing old
config change differences. For example, I added a line to an existing
ACL and it acts as if that change is being made every time rancid runs
and does a diff (running on unix).
Any ideas what to check or what might have changed to cause this?
see the cvs section of the faq.
Post by Ian Stong
retrieving revision 1.103
diff -U 4 -r1.103 10.20.30.5
@@ -6,9 +6,9 @@
Ian Stong
_______________________________________________
Rancid-discuss mailing list
http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss
Ian Stong
2010-01-12 20:26:54 UTC
Permalink
Updates to below - I did find some entries that have a Status: Needs
Checkout when running cvs status. So I ran cvs update and now says
Up-to-date. I'll keep poking around unless someone has some advice as
an experienced rancid user :)

Ian

-----Original Message-----
From: rancid-discuss-***@shrubbery.net
[mailto:rancid-discuss-***@shrubbery.net] On Behalf Of Ian Stong
Sent: Tuesday, January 12, 2010 3:12 PM
To: rancid-***@shrubbery.net
Subject: [rancid] Re: router config diffs - emailing stale info

Correction to #2 below - once in the proper directory I am able to
verify Working and Repository revisions are the same:

~/var/site-a/configs $ cvs status 10.20.30.4
===================================================================
File: 10.20.30.4 Status: Locally Modified

Working revision: 1.744 2009-12-28 12:01:20 -0500
Repository revision: 1.744
/home/rancid/var/CVS/site-a/configs/10.20.30.4,v


Thanks,

Ian

-----Original Message-----
From: rancid-discuss-***@shrubbery.net
[mailto:rancid-discuss-***@shrubbery.net] On Behalf Of Ian Stong
Sent: Tuesday, January 12, 2010 3:06 PM
To: rancid-***@shrubbery.net
Subject: [rancid] Re: router config diffs - emailing stale info

Well I see the following in the FAQ - Q. I keep receiving the same diff
for a (or set of) devices, but I know the data is not changing
repeatedly. Why? A. This is probably a CVS or filesystem permissions
problem. Check the log file from the last run for that group for clues
first; it may provide the exact cause. Note: It is very important the
following be done as the user who normally runs the rancid collection
from cron. Check the cvs status of the device's file. example: guelah
[2704] cvs status rtr.shrubbery.net

1) I checked to ensure all the rancid and CVS files are owned by rancid
(chown -R rancid:rancid *)

2) I set the CVSROOT variable (/var/CVS) and then went into
/var/CVS/site-a/configs and type cvs status 10.20.30.4,v and it says
cannot open CVS/Entries for reading: no such file cvs status: use
cvs add to create an entry File: 10.20.30.4,v Status: unknown and no
entry or revision control file.

3) In the rancid log files I see some messages as follows:
cvs commit: Up-to-date check failed for `configs/10.20.30.4'
cvs commit: Up-to-date check failed for `configs/10.20.30.3'
cvs [commit aborted]: correct above errors first!

4) Looks like a CVS issue but unclear how to resolve.


Thanks,

Ian


-----Original Message-----
From: john heasley [mailto:***@shrubbery.net]
Sent: Tuesday, January 12, 2010 1:53 PM
To: Ian Stong
Subject: Re: [rancid] router config diffs - emailing stale info
Post by Ian Stong
Hi,
I have a rancid install that was working fine for quite awhile as it
would email any configuration differences it found. However, recently
it's been emailing config changes made weeks ago and keeps mailing old
config change differences. For example, I added a line to an existing
ACL and it acts as if that change is being made every time rancid runs
and does a diff (running on unix).
Any ideas what to check or what might have changed to cause this?
see the cvs section of the faq.
Post by Ian Stong
retrieving revision 1.103
diff -U 4 -r1.103 10.20.30.5
@@ -6,9 +6,9 @@
Ian Stong
_______________________________________________
Rancid-discuss mailing list
http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss
john heasley
2010-01-13 00:03:36 UTC
Permalink
Post by Ian Stong
Updates to below - I did find some entries that have a Status: Needs
Checkout when running cvs status. So I ran cvs update and now says
Up-to-date. I'll keep poking around unless someone has some advice as
an experienced rancid user :)
Ian
-----Original Message-----
Sent: Tuesday, January 12, 2010 3:12 PM
Subject: [rancid] Re: router config diffs - emailing stale info
Correction to #2 below - once in the proper directory I am able to
~/var/site-a/configs $ cvs status 10.20.30.4
===================================================================
File: 10.20.30.4 Status: Locally Modified
it shouldn't be. remove the file and cvs udpate.
Post by Ian Stong
Working revision: 1.744 2009-12-28 12:01:20 -0500
Repository revision: 1.744
/home/rancid/var/CVS/site-a/configs/10.20.30.4,v
Thanks,
Ian
-----Original Message-----
Sent: Tuesday, January 12, 2010 3:06 PM
Subject: [rancid] Re: router config diffs - emailing stale info
Well I see the following in the FAQ - Q. I keep receiving the same diff
for a (or set of) devices, but I know the data is not changing
repeatedly. Why? A. This is probably a CVS or filesystem permissions
problem. Check the log file from the last run for that group for clues
first; it may provide the exact cause. Note: It is very important the
following be done as the user who normally runs the rancid collection
from cron. Check the cvs status of the device's file. example: guelah
[2704] cvs status rtr.shrubbery.net
1) I checked to ensure all the rancid and CVS files are owned by rancid
(chown -R rancid:rancid *)
2) I set the CVSROOT variable (/var/CVS) and then went into
/var/CVS/site-a/configs and type cvs status 10.20.30.4,v and it says
cannot open CVS/Entries for reading: no such file cvs status: use
cvs add to create an entry File: 10.20.30.4,v Status: unknown and no
entry or revision control file.
cvs commit: Up-to-date check failed for `configs/10.20.30.4'
cvs commit: Up-to-date check failed for `configs/10.20.30.3'
cvs [commit aborted]: correct above errors first!
4) Looks like a CVS issue but unclear how to resolve.
Thanks,
Ian
-----Original Message-----
Sent: Tuesday, January 12, 2010 1:53 PM
To: Ian Stong
Subject: Re: [rancid] router config diffs - emailing stale info
Post by Ian Stong
Hi,
I have a rancid install that was working fine for quite awhile as it
would email any configuration differences it found. However, recently
it's been emailing config changes made weeks ago and keeps mailing old
config change differences. For example, I added a line to an existing
ACL and it acts as if that change is being made every time rancid runs
and does a diff (running on unix).
Any ideas what to check or what might have changed to cause this?
see the cvs section of the faq.
Post by Ian Stong
retrieving revision 1.103
diff -U 4 -r1.103 10.20.30.5
@@ -6,9 +6,9 @@
Ian Stong
_______________________________________________
Rancid-discuss mailing list
http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss
_______________________________________________
Rancid-discuss mailing list
http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss
_______________________________________________
Rancid-discuss mailing list
http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss
_______________________________________________
Rancid-discuss mailing list
http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss
Loading...