cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
468
Views
2
Helpful
2
Replies

Synchronization issue

JM Montenot
Level 1
Level 1

Hello all,

I am facing an issue I can't explain to myself:

I am synchronized with a device. Then, I modify the conf of the device without using the NSO (directly using ssh to the device).

Then, When I come back to the NSO, I can see that I lost synchronization.

But after running a compare-config command, I can see that I am synchronized again? But my question is: how is it possible? I didn't even made a sync-from or a commit!

Thank you.

1 Accepted Solution

Accepted Solutions

Jan Lindblad
Cisco Employee
Cisco Employee

There are two ways for NSO to check whether a device is in sync or not. You are seeing the interplay between them.

- check-sync is a very fast mechanism. It basically reads a time-stamp of last change, transaction-id or some similar small piece of information to see if it is the same as earlier. If not the same, check-sync will flag an out-of-sync situation. That's what triggered the out-of-sync situation you saw.

- compare-config is a slower mechanism. It reads the entire config that NSO cares about, and compares everything to what NSO has in the database, and displays any diffs. If no diffs are found, this operation resets the out-of-sync flag.

That's what happened to you; check-sync detected a local change, and flagged out-of-sync. Compare-config checked everything that NSO cares about (perhaps only the odm YANG module), and saw that everything is in sync in that part, so cleared the out-of-sync flag. So this pattern will repeat whenever changes are made locally on the device outside the area of the YANGs included in the NED.

The root cause of this effect is again the lack of YANG coverage in your NED.

View solution in original post

2 Replies 2

Jan Lindblad
Cisco Employee
Cisco Employee

There are two ways for NSO to check whether a device is in sync or not. You are seeing the interplay between them.

- check-sync is a very fast mechanism. It basically reads a time-stamp of last change, transaction-id or some similar small piece of information to see if it is the same as earlier. If not the same, check-sync will flag an out-of-sync situation. That's what triggered the out-of-sync situation you saw.

- compare-config is a slower mechanism. It reads the entire config that NSO cares about, and compares everything to what NSO has in the database, and displays any diffs. If no diffs are found, this operation resets the out-of-sync flag.

That's what happened to you; check-sync detected a local change, and flagged out-of-sync. Compare-config checked everything that NSO cares about (perhaps only the odm YANG module), and saw that everything is in sync in that part, so cleared the out-of-sync flag. So this pattern will repeat whenever changes are made locally on the device outside the area of the YANGs included in the NED.

The root cause of this effect is again the lack of YANG coverage in your NED.

Thank you Jan, you are right, it is another issue due to the lack of YANG coverage in my NED.

For those interested, answer is in another post:

https://communities.cisco.com/message/272471#272471

Thank you Jan.