VMware NSX 4.x
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.
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.
cd /
tar -xvf data-consistency-checker-24302016.tar.gz
cd /data-consistency-checker-24302016
python data-consistency-checker.py
python data-consistency-checker.py --cleanup true