Unable to configure HCX Adapter in Aria Operations, fails with an error as "Query local appliance api failed"
search cancel

Unable to configure HCX Adapter in Aria Operations, fails with an error as "Query local appliance api failed"

book

Article ID: 430327

calendar_today

Updated On:

Products

VCF Operations/Automation (formerly VMware Aria Suite)

Issue/Introduction

While performing 'Test Connection' On the config page for the HCX adapter Integration in Aria Ops UI, below error is seen,

 

 

The following log entries are observed in the Aria Ops Collector node log file  /storage/logs/vcops/log/collector.log.*

yyyy-mm-ddThh:mm:ss,252+0000 INFO  [TasksManager-ReceivedTasksProcessor-1]  com.integrien.alive.common.communication.TasksManager.run - Received task. ID: 960302, Name: Test connection, CollectorID: 3, Created at: 1770029217964, Details: {AIR=null,ResId={null};}, Elapsed Time: 288 msecs.
yyyy-mm-ddThh:mm:ss,370+0000 ERROR [TasksManager-TaskHandler-9211]  com.vmware.vcops.adapter3.hcm.client.HttpClientCommon.postObject - HTTPS POST request failure at https://hcxappliancefqdn/hybridity/api/hcspAppliances. Failed with response code 415 with message
yyyy-mm-ddThh:mm:ss,373+0000 ERROR [TasksManager-TaskHandler-9211]  com.vmware.vcops.adapter3.hcm.HCXAdapter.onTest - Error occured in HCM login:
java.lang.RuntimeException: Query local appliance api failed https://hcxappliancefqdn/hybridity/api/hcspAppliances

Environment

Aria Operations 8.18.x

Aria Operations Management Pack for HCX 5.4

HCX Manager 4.11.x 

Cause

Aria Operations Management Pack for HCX 5.3.x and lower have this issue as these Management Packs for HCX does not support the API changes or authentication handshakes introduced in higher versions of HCX Manager.

HCX version 4.11 introduced API changes and stricter header requirements for authentication handshakes which is compatible with Aria Operations Management Pack for HCX 5.4.x

Resolution

 

To resolve this issue, upgrade the VMware Aria Management Pack for HCX to version 5.4 or later.

  1. Download the VMware Aria Operations Management Pack for HCX 5.4 (or later) from the Broadcom Support Portal.
  2. Login to Aria Operations User Interface.
  3. Navigate to Data Sources > Integrations > Repository.
  4. Click Add and then upload the downloaded .pak file.
  5. If previous version of the management pack is already installed, select "Install the PAК file even if it is already installed" to overwrite the existing installation.
  6. After the installation is complete, re-run the Test Connection to validate the configuration.

 

For more information about installing or upgrading the management pack, see:

https://techdocs.broadcom.com/us/en/vmware-cis/aria/aria-operations-for-integrations/5-4/management-pack-for-hcx-5-4/management-pack-for-hcx.html

 

For interoperability and compatibility information see the VMware Interoperability Matrix: