The VMware Infrastructure Health MP alerts and symptoms definitions are missing from Aria Operations 8.18.x
Aria Operations 8.18.x
To resolve the issue, follow the steps below.
Note: The steps will clean up the orphaned SymptomRelationship rows.
Start the replication database on the Primary node:
/etc/init.d/vpostgres-repl startDump the kv_symptomproblemdefinition table to a CSV file:
su - postgres -c "/opt/vmware/vpostgres/current/bin/psql -d vcopsdb -p 5433 -c \"COPY kv_symptomproblemdefinition TO '/tmp/kv_symptomproblemdefinition_$(date +%Y%m%d).csv' WITH (FORMAT CSV, HEADER TRUE);\""
zip /tmp/kv_symptomproblemdefinition_$(date +%Y%m%d).zip /tmp/kv_symptomproblemdefinition_$(date +%Y%m%d).csvVerify orphaned SymptomRelationship-SymptomDefinition-% rows still exist:
su - postgres -c "/opt/vmware/vpostgres/current/bin/psql -d vcopsdb -p 5433 -c \"
SELECT
sr.key
FROM kv_symptomproblemdefinition AS sr
WHERE sr.key LIKE 'SymptomRelationship-SymptomDefinition-%'
AND NOT EXISTS (
SELECT *
FROM kv_symptomproblemdefinition AS sd
WHERE sd.key = RIGHT(sr.key, -LENGTH('SymptomRelationship-'))
);
\""Delete the orphaned SymptomRelationship-SymptomDefinition-% rows:
su - postgres -c "/opt/vmware/vpostgres/current/bin/psql -d vcopsdb -p 5433 -c \"
DELETE FROM kv_symptomproblemdefinition AS sr
WHERE sr.key LIKE 'SymptomRelationship-SymptomDefinition-%'
AND NOT EXISTS (
SELECT *
FROM kv_symptomproblemdefinition AS sd
WHERE sd.key = RIGHT(sr.key, -LENGTH('SymptomRelationship-'))
);
\""Verify no orphaned rows remain:
su - postgres -c "/opt/vmware/vpostgres/current/bin/psql -d vcopsdb -p 5433 -c \"
SELECT
sr.key
FROM kv_symptomproblemdefinition AS sr
WHERE sr.key LIKE 'SymptomRelationship-SymptomDefinition-%'
AND NOT EXISTS (
SELECT *
FROM kv_symptomproblemdefinition AS sd
WHERE sd.key = RIGHT(sr.key, -LENGTH('SymptomRelationship-'))
);
\""Perform one of the following: Re-install ONLY the VIH MP. On the PRIMARY node, use SSH and run the following API command to re-install VMwareInfrastructureHealth-818XXXXX.pak, then watch the PAK install progress on the Admin UI > Software Update page.
curl -ksS -w "%{http_code}" -X POST -u "admin" -H "Accept: application/json" "https://localhost/casa/upgrade/cluster/pak/VMwareInfrastructureHealth-818XXXX/operation/reinstall"Note: You must find the minor version and the build number for the VMware Infrastructure version that is suitable for your environment. The information can be found in the path: /storage/db/pakRepoLocal/ Filename: VMwareInfrastructureHealth-818[minor version][build number] - Make sure to pick the most recent or highest build number of the VMware Infrastructure Health MP.