Upgrading Prime Infrastructure: Difference between revisions
From Rabbi Blog
(Created page with "This was a rather painful journey upgrading Cisco Prime Infrastructure. Along the way the drive needed to be expanded and the love of vm snapshots was made even more solid th...") |
m (→3.4 to 3.6) |
||
(3 intermediate revisions by the same user not shown) | |||
Line 187: | Line 187: | ||
** Step 3 Click Sync. | ** Step 3 Click Sync. | ||
[[Category: | =Roll Up= | ||
Had a fun time with the upgrade, even TAC had problems at some of the issues, in the end I kept reverting back to my VM snapshot and trying things out, eventually making it up to the latest version. The 2800 APs are now showing up in inventory and Prime actually seems a little snappier in places (though initial map AP loading is a little slower). | |||
==Things worth noting== | |||
* 2.x to 3.0 upgrade took 7 hours for the database phase to finish | |||
* 3.0 to 3.1 upgrade took 4 hours for the database phase to finish | |||
* Root does not appear to be accessible once you get to 3.1 (you still have it in 3.0.x). It was helpful having that there and getting out of v2.x.x. Firing off a wget from root and being in defaultRepo/ was handy. | |||
* If OptVol drive space gets filled up when going to 3.x.x, my suggestion is to revert back to 2.x.x snapshot and then add a disk drive of desired size to the VM. * The OS will see it on boot up and absorb it into it's drive config. | |||
** Note: root level "df" and Prime's disk usage appeared to be off in the drive size read out (df showed the correct size), however both agreed on the % in use. | |||
** IIRC, you can add two extra drives max over time. | |||
** Don't waste a lot of time using NCS CLEANUP if 2.x.x disk usage is 85% or more. We ran into a lot of issues with the database and TAC spent a couple of hours attempting to resurrect the db after the attempt to upgrade was done immediately after an NCS CLEANUP. Reverting to snapshot and adding disk space saved the day. | |||
* Prior to 3.1, the routine of "install patch\upgrade\etc" and then do an NCS STOP\START from CLI was the way to go. In 3.1, the GUI now alerts you that it will be doing the restart for you. Notes: | |||
** Maintenance patches appear to reboot the entire OS | |||
** Have patience. With NCS STOP, you can watch Prime go down systematically. When the GUI does it, you do not see any progress and that is discerning. I waited about 30 minutes and then did a power cycle, which ended drastically at the GRUB screen. Revert to Snapshot and then did the following: | |||
*** Issued patch update through GUI | |||
*** Logged into VSphere and then into Prime via CLI | |||
*** Left the screen up in eye view. Some 20 minutes later, I started seeing OS level (linux) services being halted in the usual linux fashion. It paused on NCS *** Service for a long time (10 minutes), then exited, rebooted the OS, came up, Prime started. | |||
** DevicePatches did not appear to reload or reboot, waited awhile (30 minutes) and then did the NCS STOP\START out of prior course of habit. All was well. | |||
Will this be your experience? Probably (hopefully) not. Hopefully the above helps identify the slight changes (like the OS reboot via GUI) that sometimes leaves one wondering if the system is doing anything. | |||
=3.2 to 3.4= | |||
* Somewhere along the way, via the Software Upgrade interface, we got up to 3.4. | |||
=3.4 to 3.6= | |||
* Downloaded PI-Upgrade-3.4_to_3.6.0.0.172.tar.gz from Cisco and got it over to defaultrepo/ | |||
* Cleaned out older files from defaultRepo (it will error and tell you want to remove if needed) | |||
* Getting to shell is helpful | |||
<pre> | |||
admin#shell | |||
<password> | |||
sudo -s | |||
cd /localdisk/defaultRepo | |||
wget http:// someapacheserver/PI-Upgrade-3.4_to_3.6.0.0.172.tar.gz | |||
exit | |||
exit | |||
admin# ncs stop | |||
admin# application upgrade PI-Upgrade-3.4_to_3.6.0.0.172.tar.gz defaultRepo | |||
</pre> | |||
[[Category:Networking]] |
Latest revision as of 15:13, 6 April 2021
This was a rather painful journey upgrading Cisco Prime Infrastructure. Along the way the drive needed to be expanded and the love of vm snapshots was made even more solid that before. The following is not intended to be gospel, only a detail of getting from Prime 2.2.0.0.158 up to 3.1.3 that had it's "fun"
References
- http://www.cisco.com/c/en/us/td/docs/net_mgmt/prime/infrastructure/3-0/quickstart/guide/cpi_qsg.html#pgfId-124831
- https://mrncciew.com/2014/01/12/upgrade-prime-using-cli/
- http://www.cisco.com/c/en/us/td/docs/net_mgmt/prime/infrastructure/3-1/quickstart/guide/cpi_qsg.html#pgfId-133088
General Approach
- Backup the VM \ Create a copy of VM \ turn off source
- Working from the VM copy and do thing ala the following:
- download and verify PI-Upgrade-3.0.0.0.78.tar.gz.zip - 678c86f1d9d36a74daafcdf483845c4b
- extract PI-Upgrade-3.0.0.0.78.tar.gz.zip and verify checksum: 03446c34f1a4ffd5d445c070ee17bfb9
- Copy file to VM copy
- CLI: admin# ncs stop
- CLI: admin# application upgrade PI-Upgrade-3.0.0.0.78.tar.gz defaultRepo
- Get Coffee & await completion
- CLI: admin# ncs start
- verify Prime is running
- double check RADIUS auth
- Resync WLC configurations
- Synchronize devices
- If fail, turn off VM and revert to copy
Random
- enable ftp
- set ftp user password: ncs password ftpuser admin password password
- ftp to prime, upload file
- disable ftp
- CLI: root
- CLI: mv /ftp/<name of file> ../defaultRepo
- CLI: exit
- OR
- Prime root does wget! (well, apparently it did do root until 3.1.x)
- CLI: cd /localdisk/defaultRepo
- CLI: wget http://<url>/PI_3_1_3-1.0.16.ubf
- Drive Space - if you run into optvol drive space issues after going to 3.0x from 2.x, revert back to the snapshot, add the drive in 2.x, then go forward. A happy Prime is what we want here. In my instance, many NCS CLEANUPs were done to squeeze drive space and eventually the 3.x database appeared to eat itself to the point that TAC could not rescue it. Reverted to snapshot and all things went well following the better path.
- Compatibility
- Make sure you've checked your WLC code compatibility - it is possible to upgrade the WLC to the point where it is not compatible with Prime. This occurred with new 2800 APs requiring the latest WLC code and then loads of fun ensued.
Preparation
- VMWare Copied Prime01 to Prime01_1
- Verified 2.2 was operable
- On Prime01_1
- reverted to snapshot v2.2.0
- ncs stop
- halt
- VMWare
- REF: https://supportforums.cisco.com/document/9871606/adding-disk-space-prime-infrastructure
- Prime01_1 -> Edit Settings
- Add
- Hard Disk
- Create a new virtual disk
- added 100GB drive
- SCSI 0:1
- Finish
- powering on host
- Verified 2.2 was operable
- verify df shows new drive space
- root df
- /dev/mapper/smosvg-optvol 295801392 147598280 53% /opt
- Prime UI Administration -> Appliance
- /dev/mapper/smosvg-optvol 132937592 147598280 53
- root df
- snapshot (VM)
Install PI-Upgrade-3.0.0.0.78.tar.gz.zip
- Copy file to VM copy (enable ftp, et al)
- CLI: admin# ncs stop
- CLI: admin# application upgrade PI-Upgrade-3.0.0.0.78.tar.gz defaultRepo
- Get Coffee & await completion
- CLI: admin# ncs start
- verify Prime is running
- double check RADIUS auth
- Resync WLC configurations
- Step 1 Choose Configuration > Network > Network Devices, then select Device Type > Wireless Controller.
- Step 2 Select the check box(es) of the applicable controller(s).
- Step 3 Click Sync.
- Step 4 Click Yes to proceed.
- Verify operability
- snapshot (VM)
Install pi302-16.ubf patch
- WLC - Wireless Global Conf
- set Login Credentials (see password vault)
- Apply
- Save Configuration
- Prime - Resync WLC configurations
- Install pi302-16.ubf patch
- https://cisco.app.box.com/s/mi07sahlzn14mt2f7mv00uctky05wscp
- Upload via PI
- Install via PI
- ncs stop
- ncs start
- est wait: 15 minutes
- verify operability
- snapshot (VM)
- WLC - Wireless Global Conf
Notes
- 3.0.0.0.78
- PI 3.0.2
- Prime Insight Agent 1.0.0
Install pi_technology_package-3.0.2-1.0.56.ubf patch
- https://software.cisco.com/download/release.html?mdfid=286285348&reltype=latest&relind=AVAILABLE&dwnld=true&softwareid=284272933&rellifecycle=&atcFlag=N&release=3.0.2&dwldImageGuid=B00B2C878E43EB8A4DD4FB16F1CA5298ABA0D7D7&flowid=76142
- Download via PI (warning received "Tech Pack 1.0.3" unknown origin)
- Install via PI
- ncs stop
- ncs start
- est wait: 15 minutes
- verify operability
- snapshot (VM)
Notes
- 3.0.0.0.78
- PI 3.0.2 2.0.0
- Prime Insight Agent 1.0.0
- PI 3.0 TECH PACK 1.0.3
Install pi303-10.ubf patch
- Download via PI (warning received unknown origin)
- Install via PI
- ncs stop
- ncs start
- est wait: 15 minutes
- verify operability
- snapshot (VM)
Install pi303_update_02-1.0.10.ubf patch
pi303_update_03-1.0.8.ubf
- Going with pi303_update_03-1.0.8.ubf from the download list in PI
- PI download
- PI install
- ncs stop
- ncs start
- est wait: 15 minutes
- verify operability
- snapshot (VM)
PI-Upgrade-3.0.X_to_3.1.0.0.132.tar.gz
- Copy file to VM
- CLI: admin# ncs stop
- CLI: admin# application upgrade PI-Upgrade-3.0.X_to_3.1.0.0.132.tar.gz defaultRepo
- Get Coffee & await completion (est wait: 7 hours)
- CLI: admin# ncs start
- verify Prime is running
- double check RADIUS auth
- Resync WLC configurations
- Synchronize devices
- snapshot (VM)
Notes
- Have patience with 3.1 installing - power cycling the VM can result in a damaged system (ex: grub menu appeared after one such attempt). Snapshot at each successful point.
- There appears to be no 'root' enabled in 3.1.x, not that it was entirely needed but it had come in handy prior.
Install PI_3_1_3-1.0.16.ubf patch
- https://software.cisco.com/download/release.html?mdfid=286304360&flowid=79748&softwareid=284272933&release=3.1.3&relind=AVAILABLE&rellifecycle=&reltype=latest
- PI gui install
- GUI forces restart
- Note: there appears to be no visible indicator of what the system is doing once the GUI intitiates the reboot. I kept the VM console up and was logged in to the account. "ncs status" would sometimes work, but with no good information. Eventually (30+ minutes) I saw the OS indicator that services were being shutdown and then it took NCS STOPPING roughly 15 more minutes to finish out. After that, the system came up fine.
- GUI forces restart
- est wait: 45 minutes
- verify operability
- snapshot (VM)
Install Device-Pack-3-PI3.1-14.ubf
- https://software.cisco.com/download/release.html?mdfid=286304360&flowid=79748&softwareid=286208063&release=3.1.3&relind=AVAILABLE&rellifecycle=&reltype=latest
- PI gui install
- GUI forces restart
- Note: Did not see any noticeable reboot of Prime at the CLI. Eventually I put in an NCS STOP and then NCS START (and the NCS STOP took nearly 5 minutes to show a response at the CLI).
- GUI forces restart
- est wait: 20 minutes
- verify operability
- snapshot (VM)
Configure NTP
- PRIME01/admin(config)# ntp server 10.10.2.170
- PRIME01/admin(config)# exit
- PRIME01/admin# wri me
- ncs stop
- reload
- Verify NTP & Time
Resync
- Resync WLC configurations
- Step 1 Choose Configuration > Network > Network Devices, then select Device Type > Wireless Controller.
- Step 2 Select the check box(es) of the applicable controller(s).
- Step 3 Click Sync.
- Step 4 Click Yes to proceed.
- Synchronize devices (devices will not show the correct software until this patch has been applied)
- Step 1 Choose Inventory > Device Management > Network Devices.
- Step 2 Select the device whose configuration you want synchronized with the configuration stored in the Prime Infrastructure database.
- Select WLC first, then do APs
- Step 3 Click Sync.
Roll Up
Had a fun time with the upgrade, even TAC had problems at some of the issues, in the end I kept reverting back to my VM snapshot and trying things out, eventually making it up to the latest version. The 2800 APs are now showing up in inventory and Prime actually seems a little snappier in places (though initial map AP loading is a little slower).
Things worth noting
- 2.x to 3.0 upgrade took 7 hours for the database phase to finish
- 3.0 to 3.1 upgrade took 4 hours for the database phase to finish
- Root does not appear to be accessible once you get to 3.1 (you still have it in 3.0.x). It was helpful having that there and getting out of v2.x.x. Firing off a wget from root and being in defaultRepo/ was handy.
- If OptVol drive space gets filled up when going to 3.x.x, my suggestion is to revert back to 2.x.x snapshot and then add a disk drive of desired size to the VM. * The OS will see it on boot up and absorb it into it's drive config.
- Note: root level "df" and Prime's disk usage appeared to be off in the drive size read out (df showed the correct size), however both agreed on the % in use.
- IIRC, you can add two extra drives max over time.
- Don't waste a lot of time using NCS CLEANUP if 2.x.x disk usage is 85% or more. We ran into a lot of issues with the database and TAC spent a couple of hours attempting to resurrect the db after the attempt to upgrade was done immediately after an NCS CLEANUP. Reverting to snapshot and adding disk space saved the day.
- Prior to 3.1, the routine of "install patch\upgrade\etc" and then do an NCS STOP\START from CLI was the way to go. In 3.1, the GUI now alerts you that it will be doing the restart for you. Notes:
- Maintenance patches appear to reboot the entire OS
- Have patience. With NCS STOP, you can watch Prime go down systematically. When the GUI does it, you do not see any progress and that is discerning. I waited about 30 minutes and then did a power cycle, which ended drastically at the GRUB screen. Revert to Snapshot and then did the following:
- Issued patch update through GUI
- Logged into VSphere and then into Prime via CLI
- Left the screen up in eye view. Some 20 minutes later, I started seeing OS level (linux) services being halted in the usual linux fashion. It paused on NCS *** Service for a long time (10 minutes), then exited, rebooted the OS, came up, Prime started.
- DevicePatches did not appear to reload or reboot, waited awhile (30 minutes) and then did the NCS STOP\START out of prior course of habit. All was well.
Will this be your experience? Probably (hopefully) not. Hopefully the above helps identify the slight changes (like the OS reboot via GUI) that sometimes leaves one wondering if the system is doing anything.
3.2 to 3.4
- Somewhere along the way, via the Software Upgrade interface, we got up to 3.4.
3.4 to 3.6
- Downloaded PI-Upgrade-3.4_to_3.6.0.0.172.tar.gz from Cisco and got it over to defaultrepo/
- Cleaned out older files from defaultRepo (it will error and tell you want to remove if needed)
- Getting to shell is helpful
admin#shell <password> sudo -s cd /localdisk/defaultRepo wget http:// someapacheserver/PI-Upgrade-3.4_to_3.6.0.0.172.tar.gz exit exit admin# ncs stop admin# application upgrade PI-Upgrade-3.4_to_3.6.0.0.172.tar.gz defaultRepo