Troubleshooting Red Hat Enterprise Virtualization KM


This topic describes how to troubleshoot the connection issues between PATROL Agent and Red Hat Enterprise Virtualization Manager.

If there are any connection problems between the PATROL Agent and Red Hat Enterprise Virtualization Manager and none of the virtualization entities are discovered, execute the following command:

curl --cacert <certificatePath> -u <userName>@<domainName>:<password>  https://<RHEVManagerName>:<portNo>/api/


The above command returns an error if any of the arguments are not set properly and the connection between the PATROL Agent and Red Hat Enterprise Virtualization Manager is established properly. Analyze the error message and resolve the issue.


Issue

PATROL Agent doesn't connect to Red Hat Enterprise Virtualization (RHEV) Manager when there is an expired or invalid CA certificate.

Error message

The following error message is displayed in the RHEV KM log file:

com.bmc.collector.rhev.RHEVCollector connect
FINE: ksPath:/opt/patrol/Agent/Patrol3/Linux-x-x-x86-64-abcd/../rev/rev-<rhev hostname>.jks
com.bmc.collector.rhev.RHEVCollector connect
FINE: Failed to connect to RHEV. ver4. Error is:org.ovirt.engine.sdk4.Error: Failed to send request
com.bmc.collector.rhev.RHEVCollector setConnectionError
WARNING: Connection Error...
Connection Status is 1

Resolution

  1. Configure a valid CA certificate file location in the policy.
  2. Remove existing JKS ($PATROL_HOME/../rev/rev-<RHEV hostname>.jks) file from the PATROL Agent machine.
  3. Restart the PATROL Agent.