Isilon: Modifying an existing alert channel gives the error "Invalid elements in field eventgroup_ids"
Summary: Modifying an existing alert gives the error "Invalid elements in field eventgroup_ids"
Symptoms
Upgrade from v8.0.0.x to v8.1.x
Attempting to add/remove an eventgroup from an alert channel gives the following error:
# isi event alerts modify alert1 --remove-eventgroup=900020001
Invalid element in field eventgroup_ids: 900020001. Valid options are: SYS_DISK_VARFULL
(100010001), SYS_DISK_VARCRASHFULL (100010002), SYS_DISK_ROOTFULL (100010003),
SYS_DISK_IN_RESTRIPE (100010009)..
(output truncated..)
Error message received from the WebUI:
Cause
Post upgrade, the invalid/retired eventgroups were not cleaned up causing OneFS to throw this error.
This generally happens when the eventgroup IDs are manually added to the channel before the upgrade. We see this error when modifying the alert, as the newer OneFS versions will not have the same eventgroup IDs which were added in the previous code.
Resolution
Workaround:
-
Delete and re-create the alert
1. From the WebUI:
To delete the alert:
- Check the alert and choose the action 'Delete selection' from the drop-down button.
To create a new alert:
- Click Cluster Management > Events and Alerts > Alerts.
- Click Create an Alert.
- Modify the settings for the new alert as needed.
2. From the CLI:
To delete the alert:
# isi event alerts delete --name=alert1
To create a new alert:
# isi event alerts create --name=alert1 --channel=<Channel to deliver alert over> --condition=<Condition under which alert is sent> --add-category=<Add eventgroup category to alert on> --add-eventgroup=<Add eventgroup to alert on>
Additional Information
In case you manually added the eventgroup to the alert as specified in KB Link Error How to stop receiving email notification for HeartBeat event, and later upgraded to a newer version of OneFS.
Then delete and re-create the alert by using the new commands as mentioned in the KB Link Error How to stop receiving email notification for HeartBeat event (In 8.0.0.5 and newer code...).