07-16-2018 08:35 PM - edited 03-01-2019 04:12 AM
Hi all,
Does anybody know how to migrate services' configuration?
I tried to copy the CDB files, but the target NSO only have the operation configuration, the services' configuration is not migrated successfully.
Then i tried another method.
Could anyone give me some recommendations about this issue?
Thank you!
Logs:
Old NSO:
! Refcount: 2
! Backpointer: [ /l3vpn-svc:l3vpn-svc/l3vpn-svc:sites/l3vpn-svc:site[l3vpn-svc:site-id='cus-119-site-1'] ]
cisco-ios-xr:class-map match-any DCI-CNC-GOLD
match precedence 4 5
end-class-map
New NSO:
! Refcount: 1
! Backpointer: [ /l3vpn-svc:l3vpn-svc/l3vpn-svc:sites/l3vpn-svc:site[l3vpn-svc:site-id='cus-119-site-1'] ]
cisco-ios-xr:class-map match-any DCI-CNC-GOLD
match precedence 4 5
end-class-map
!
07-17-2018 12:42 AM
Is this an upgrade of NSO version only, or are you upgrading some of your packages at the same time?
If you're only upgrading NSO, take a backup of the CDB directory, then just start the new NSO version in the same runtime directory. NSO should automatically take care of any upgrade chores, if any.
What you did is also possible in principle, but the refcount would normally be 1 to too high (as you observe) until you reconcile your service instances. If some service instances do not show the right refcount after reconcile, that indicates that the config on the device does not perfectly match your service code. Time to run another iteration of brownfield service archeology, and figure out why the config NSO pushes out doesn't exactly match what's in the network.
If you like more info on service reconciliation, we have this favorite from last year:
https://communities.cisco.com/docs/DOC-74144
and a couple of fresh videos that might be relevant:
07-17-2018 07:35 PM
Hi Jan,
Thanks for your help.
We just need to upgrade the NSO version, no changes in packages.
But what is "just start the new NSO version in the same runtime directory"?
We are using system-install, seem like donot need to start NSO in a specific directory, like local-install.
I have tried move the CDB files, but failed in migrating services configuration. So you are successful before? Do you know what i should take care when copying this CDB files?
Thanks again!
07-18-2018 05:09 AM
So take a backup (which you only need to use if you ever want to downgrade to the original NSO version again), then install the new NSO version on your system. You can keep or remove the old NSO version. There's no need to copy or move CDB, just leave it where it is. NSO will upgrade the contents to the new version, if necessary.
07-18-2018 09:48 AM
For System Install upgrade is quite simple...
See the NSO System Install/NSO Upgrade section of the NSO Installation guide, pretty good step-by-step instructions on backup, install new version, update current NSO link...
-Larry
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide