Monday, December 23, 2013

Fixing Rancid update problems (same diffs every day).

Rancid was email reports indicating the same changes were being made every day.  Basically new changes were not getting pushed into Rancid like they were supposed to.  

File permissions came to mind when I initially found the problem.   There is a FAQ that tells you how to resolve this.   We have had similar problem when someone ran Rancid as the 'root' user instead of 'rancid' like they should be.

This was not our problem, the problem was CVS was out of sync.


First check the status by running:

`cvs status`:

===================================================================
File: bn-001-0.nts.wustl.edu Status: Needs Checkout
   Working revision: 1.39 2013-12-22 22:43:15 -0600
   Repository revision: 1.39 /var/lib/rancid/CVS/wcdc/configs/bn-001-0.nts.wustl.edu,v
   Commit Identifier: boZWMtfaLtmxtsdx
   Sticky Tag: (none)
   Sticky Date: (none)
   Sticky Options: (none)
===================================================================
File: bn-002-0.nts.wustl.edu Status: Locally Modified
   Working revision: 1.18 2013-12-15 22:43:34 -0600
   Repository revision: 1.18 /var/lib/rancid/CVS/wcdc/configs/bn-002-0.nts.wustl.edu,v
   Commit Identifier: e6kEdcNzUdSp456x
   Sticky Tag: (none)
   Sticky Date: (none)
   Sticky Options: (none)


Run a update:

`cvs update`:

U bn-001-0.nts.wustl.edu
M bn-002-0.nts.wustl.edu


 Then run Rancid to see if this solved the problem:

`/var/lib/rancid/bin/rancid-run switches`


You will probably have to run it two times.   One to update and do a final check in.    One more run to make sure no more emails are generated.





Verify this fixed the problem:


`cvs status`:

===================================================================
File: bn-001-0.nts.wustl.edu    Status: Up-to-date
   Working revision:    1.39    2013-12-23 09:53:51 -0600
   Repository revision: 1.39    /var/lib/rancid/CVS/wcdc/configs/bn-001-0.nts.wustl.edu,v
   Commit Identifier:   boZWMtfaLtmxtsdx
   Sticky Tag:          (none)
   Sticky Date:         (none)
   Sticky Options:      -ko
===================================================================
File: bn-002-0.nts.wustl.edu    Status: Up-to-date
   Working revision:    1.19    2013-12-23 09:55:43 -0600
   Repository revision: 1.19    /var/lib/rancid/CVS/wcdc/configs/bn-002-0.nts.wustl.edu,v
   Commit Identifier:   maPVWYSoXBBu0hix
   Sticky Tag:          (none)
   Sticky Date:         (none)
   Sticky Options:      -ko




No comments:

Post a Comment

Followers