Webhook is failing at authorization 401 to Aria Automation
search cancel

Webhook is failing at authorization 401 to Aria Automation

book

Article ID: 421450

calendar_today

Updated On:

Products

VCF Operations

Issue/Introduction

  • When configuring to trigger an Aria Automation notification alert by Aria Operations, the test notification fails on the Authentication with the error below:

    Notification rule test failed with the following code:401

  • In /storage/log/vcops/log/analytics-########-###-####-#######.log the below errors are seen:

    DATE TIME DEBUG [ServerConnection on port 10000 Thread 1511]  com.vmware.vcops.platform.notification.webhook.WebhookSender.send - Queueing Webhook Message
    Webhook Message is: {"startDate":"DATE TIME","updateDate":"DATE TIME","cancelDate":"DATE TIME","resourceId":"test","adapterKind":"test","resourceKind":"test","resourceName":"test","Health":"0.0","Risk":"0.0","Efficiency":"0.0","i
    mpact":"health","criticality":"info","alertName":"VMware Aria Operations alert definition","type":"Tier Alerts","subType":"Smart KPI Breach","alertId":"########-####-####-########2926","status":"Active","recommendations":"N/A","alertURL":"N/A"}
    Uri is: https://automation.example.com/vco/api/workflows/########-####-####-########3ff6/executions
    Headers are: {Accept=application/json}
    Method is: POST
    Content Type is: application/json
    DATE TIME DEBUG [pool-9808-thread-1]  com.vmware.vcops.platform.notification.webhook.WebhookSender.debug - Sending: POST https://automation.example.com/vco/api/workflows/########-####-####-########3ff6/executions
    DATE TIME ERROR [pool-9808-thread-1]  com.vmware.vcops.platform.notification.webhook.WebhookSender.call - Failed to send POST; status code: 401
    DATE TIME ERROR [ServerConnection on port 10000 Thread 1511]  com.vmware.vcops.alertplugins.webhook.WebhookPlugin.test - Expected POST HTTP status code 2xx but received 401
    DATE TIME ERROR [ServerConnection on port 10000 Thread 1511]  com.vmware.vcops.alertplugins.webhook.WebhookPlugin.test - Webhook plugin test failed - Webhook test failed:

  • The Webhook Outbound instance has been configured with "Basic Authentication" as "Credential Type"

Environment

Aria Operations 8.18.5

Aria Automation 8.18.1

Cause

The Webhook user authentication is failing in Aria Automation since Basic authentication is not supported anymore on Aria Automation nodes 8.18.1 as per KB "Basic Authentication" no longer supported in Aria Automation 8.18.1 

Resolution

Change the Credential type to one of the others reported on the documentation Add a Webhook Notification Plugin for Outbound Instance