Upgrade of NSX manager fails with "Error:stalesegmentportgprrrectificationTask found at least 1000 stale gprr entries."
searchcancel
Upgrade of NSX manager fails with "Error:stalesegmentportgprrrectificationTask found at least 1000 stale gprr entries."
book
Article ID: 382926
calendar_today
Updated On: 03-27-2025
Products
VMware NSX
Issue/Introduction
NSX Manager upgrade is failing at Data Migration Dry Run with the following error:
The option "Resolve" is not available next to the error.
Environment
VMware NSX 4.x
Cause
The upgrade is failing because pre-upgrade data consistency check script detected that there are stale GPRR (Generic Policy Realized Resource) entries in the database. These stale entries are preventing NSX manager to be upgraded.
Resolution
This is a known issue impacting VMware NSX.
Workaround:
As a workaround, a data-consistency-checker.py script can be uploaded to one of the NSX Managers and can be used to clean up the stale GPRR entries:
NOTE: The script should be to run only on one of the NSX Managers.
Make sure that there is a valid backup of NSX Manager and the password is known for the backup.
Download the data-consistency-checker-24302016.tar.gz file that is attached to this KB.
Upload the file to root (/) directory of NSX Manager. (you can use WinSCP with SCP protocol as root)
Login to NSX Manager over SSH as root
Navigate to root directory:
cd /
Extract the file with:
tar -xvf data-consistency-checker-24302016.tar.gz
Navigate to the extracted directory. for example:
cd /data-consistency-checker-24302016
Run the script without adding extra parameters as a dry run, this should identify the stale entries:
python data-consistency-checker.py
Run the script with the following parameter to start the cleanup of the stale GPRR entries:
python data-consistency-checker.py --cleanup true
Once the script cleaned up stale GPRR entries, you can proceed with NSX Manager upgrade.