06-16-2020 12:17 PM
Looking for some help with best practices. After reading the ned migrate and installation guide still not finding the best practice for NSO upgrade and NED migration.
Current environment:
NSO: 5.2.1
NEDS:
IOS: ncs-5.2.1-cisco-ios-6.43.tar.gz
XR: ncs-5.2.0.4-cisco-iosxr-7.15.tar.gz
My plan:
sync-from all devices
take a backup of the current nso
Upgrade to NCS-5.2.3.3 with current neds in place following upgrade guide
Once NSO comes back online, move new neds to the packages directory
IOS: ncs-5.2.3-cisco-ios-6.58.signed.bin
XR: ncs-5.2.3-cisco-iosxr-7.28.1.signed.bin
Reload NSO with old and new neds in place, once new neds come online migrate devices to new neds.
Sync-from
Remove old neds
Reload nso
Is this best practice or how are others handling this process?
06-16-2020 02:53 PM
In general NSO and NED upgrades can be performed independently. I typically do that to limit the impact of changes and focus on fixing one problem at a time in case there are any.
I do not have personal experience with the cisco-ios* CLI NEDs, but I do know NSO 5.2.1 has a problem with the /devices/device/migrate action, if the NED involved in the migration uses set-hooks. The first version where the migrate action reliably worked for me was 5.3.1. You mention you plan on upgrading NSO to 5.2.3.3. I did not check this version, but here is the relevant changelog entry from 5.3.1:
- ncs: The /devices/device/migrate action does no longer call set-hooks
when copying the running config from the device.
A number of cases are now corrected where the migrate action crashed or
set service meta-data incorrectly on backwards compatible data model
changes.
(ENG-22894, RT:40385, RT:40429, RT:40443, PS-35465, PS-35511, PS-35525)
I actually ended up having to use NSO 5.3.2 due to poor performance in startup times on schema upgrade, but that is besides the point :)
Apart from that, I would add these steps:
Also note that executing migrate does an implicit sync-from anyway.
06-19-2020 08:03 AM
Thanks. I ended doing something similar to the above working pretty well so far. So for the reconcile that is only cdb affecting and doesn't touch the devices just updates paths in the cdb for the yang model?
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