Alert Definition Ids '[AlertDefinition-xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx]' not found.
To resolve this issue, delete the offending notification rule(s) through the API or directly through the database.
Impact/Risks: Modifying the database can be harmful if done incorrectly.
You MUST create a snapshot before proceeding: Snapshot Creation in VMware Aria Operations.
NOTE: In the text below, "offending notification rule" refers to the notification rule(s) that's causing the issue. This is typically a rule that references an exact thing that no longer exists, such as an object or Alert Definition. This is most commonly seen after upgrading without addressing the warnings in the Pre-Upgrade Readiness Assessment Tools.
If you do not know the ID of the offending notification rule, delete notification rules one by one and refresh the Notifications page in the UI after each deletion. Once the UI is able to load without issue you can restore from snapshot and try to more selectively delete the IDs. In some cases, all rules must be deleted.
"id"
property for the offending notification rule(s). "rules": [
"id": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxxx",
"name": "Sample notification rule name",
"pluginId": ...
The value xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxxx
is the ID of this notification rule.su - postgres -c "/opt/vmware/vpostgres/current/bin/psql -d vcopsdb -p 5433"
select key from kv_notificationplugin where key like 'NotificationRule%';
delete from kv_notificationplugin where key='ID';
Note: Replace ID
with the ID of the notification rule noted in step 3.delete from kv_notificationplugin where key='NotificationRule.xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx';
Tip: To delete multiple notification rules at once, use a comma separated list of IDs in the command:
delete from kv_notificationplugin where key IN ('NotificationRule.ID1', 'NotificationRule.ID2', NotificationRule.ID3');
notificationplugin
table in Cassandra:
$VMWARE_PYTHON_BIN $ALIVE_BASE/cassandra/apache-cassandra-*/bin/cqlsh.py --ssl --cqlshrc $ALIVE_BASE/user/conf/cassandra/cqlshrc -e 'PAGING OFF; SELECT * from globalpersistence.notificationplugin' > /tmp/notifications.txt
/tmp/notifications.txt
file using a text editor and note the ID of the offending notification rule.
Example notification rule entry:
notificationplugin | notificationplugin | NotificationRule.xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx | null | NotificationRule | null | null | {"NotificationRule":{"id":{"@UUID":"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx","@ObjectType":"NOTIFICATION_RULE"},...
The ID of the notification rule for this example is xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
.
$VMWARE_PYTHON_BIN $ALIVE_BASE/cassandra/apache-cassandra-*/bin/cqlsh --ssl --cqlshrc $ALIVE_BASE/user/conf/cassandra/cqlshrc
DELETE from globalpersistence.notificationplugin where namespace='notificationplugin' and classtype='notificationplugin' and key='ID';
Note: Replace ID
with the ID of the notification rule noted in step 3.
Example:
DELETE from globalpersistence.notificationplugin where namespace='notificationplugin' and classtype='notificationplugin' and key='NotificationRule.xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx';