A Parallels Virtual Automation (PVA) Management Node upgrade from an earlier version to 6.0-2160 fails:
[ERROR] Failed to execute hint /var/opt/pva/setup/downloads/linux/x86_64/10/6.0-2160/hints/pva-mn-core-postUpgrade.sh: ERROR: Failed to execute: /opt/pva/mn/db/mysql_603_604_upgrade.sql - ERROR 1062 (23000) at line 12: Duplicate entry '84' for key 1
The issue is recognized as a PVA product bug with internal ID PVA-34020. Additional roles created in PVA cause the upgrade to fail.
If version 6.0-2160 needs to be installed specifically, delete all custom roles from PVA, run the upgrade, then add the custom roles back.
The issue has been fixed in the PVA Management Node since build 6.0-2567: