VCF Operations update pre-check fails at the task: "Validating there are no Active Self Monitoring Alerts existing on the cluster"
search cancel

VCF Operations update pre-check fails at the task: "Validating there are no Active Self Monitoring Alerts existing on the cluster"

book

Article ID: 449007

calendar_today

Updated On:

Products

VCF Operations

Issue/Introduction

  • In VCF 9.1 Operations UI, under Build -> Lifecycle -> Upgrade, performing update pre-check for VCF Operations fails at  the task: "Validating there are no Active Self Monitoring Alerts existing on the cluster" with the following errors:

    • Objects are not receiving data from adapter instance
    • Notification event-Auto configured VCF SSO configuration for Operations Appliance
    • Notification event-Auto removed VCF SSO configuration for Operations Appliance

  • The above alerts are disabled by following KB "Objects are not receiving data from adapter instance" alert on any Adapter instance, but the issue still persists.

Environment

VMware Cloud Foundation 9.1.x

Cause

  • Active self-monitoring alerts become "stuck" in the backend.
  • Even after resolving or disabling the alerts in the VCF Operations UI, the alerts remain active in the API database.
  • The VCF Operations pre-check queries the Suite API directly rather than the user interface.
  • Because the alerts are not formally canceled in the database, the API endpoint returns them as active, causing the validation to fail.

Resolution

Follow the steps below to cancel the alerts via the API:

  1. Access the VCF Operations API by navigating to: https://<VCF_OPs_FQDN>/suite-api/doc/swagger-ui.html

  2. Click on 'Authorize' and enter the admin credentials.

  3. Scroll down and expand the 'Alerts' section.

  4. Locate the 'POST /api/alerts/query' endpoint and select 'Try it out'.

  5. Paste the following JSON into the request body to pull currently active alerts:
    {
    "activeOnly": true
    }

  6. Select 'Execute'.

  7. Copy the 'alertId' for the alerts listed in the pre-check error from the response body.

  8. Locate the 'POST /api/alerts' endpoint and select 'Try it out'.

  9. Paste the following JSON, replacing the placeholder with the UUID(s) copied in the previous step:
    {
    "action": "cancel", "uuids": [ "alertId" ]
    }

  10. Select 'Execute'.

  11. Rerun the pre-check.

Additional Information

For more information, refer:

Query and remove Alerts Using API