Symptoms:
Failedresource key=pak_manager.action_failed, resource args=[run master postgres db upgrade]
/storage/log/vcops/log/centraldbupgrade.log
contains errors like:VMware Aria Operations 8.12.x
kv_actionschedules
table is missing a required "settings" child object. When the upgrade executes ActionScheduleDataUpgrader
to migrate this data to a new table, a NullPointerException
is thrown when it tries to read the invalid JSON into a java object.kv_actionschedules
rows that are missing the "settings" child JSON attribute.
su - postgres -c "/opt/vmware/vpostgres/current/bin/psql -d vcopsdb -p 5433 -x -c \"SELECT * FROM kv_actionschedules WHERE NOT (col__kv_strvalue::jsonb)->'com.vmware.vcops.platform.api.model.action.ActionSchedule' ? 'settings';\""
kv_actionschedules
table to a CSV as a backupsu - postgres -c "/opt/vmware/vpostgres/current/bin/psql -d vcopsdb -p 5433 -c \"COPY kv_actionschedules FROM '/tmp/kv_actionschedules.csv' WITH (FORMAT CSV, HEADER TRUE);\""
su - postgres -c "/opt/vmware/vpostgres/current/bin/psql -d vcopsdb -p 5433 -c \"DELETE FROM kv_actionschedules WHERE NOT (col__kv_strvalue::jsonb)->'com.vmware.vcops.platform.api.model.action.ActionSchedule' ? 'settings';\""
Impact/Risks: