...
You have installed vRealize Operations Management Pack for Horizon, and creating an adapter instance fails with the error message: Failed to Test adapter instance. Reason - Unknown Error. Please contact support team. The /storage/vcops/log/collector.log of the vRealize Operations node the adapter resides on may contain messages similar to the following: 2021-05-28T01:48:06,251+0000 ERROR [Task Processor worker thread 7] com.vmware.vrho.adapter.utils.clients.restclient.RestErrorHandler.handleError - Internal Server Error2021-05-28T01:48:06,260+0000 ERROR [Task Processor worker thread 7] com.vmware.vrho.adapter.HorizonAdapter.onTest - Exception occured while testing the adapter instance com.vmware.vrho.adapter.utils.exceptions.HorizonAdapterRuntimeException: Invalid User Credential To further verify if you are hitting the issue, you need to also collect the Horizon Connection Server log which MP4H connects to. You will also need to run swagger-ui of the Horizon Connection Server to verify the REST authentication. Navigate to https://cs-ip-or-fqdn/rest/swagger-ui.html Note: Replace cs-ip-or-fqdn in the above command with the IP or FQDN of your Horizon Connection Server Click on Auth Click on POST /login API. Click on Try It Out. Replace "AD-TEST-DOMAIN" with the domain name, <password> with Password, and Administrator with the actual values providing to the adapter. Click on Execute. The expected response should be JSON body in the below format with a 200 response code. Example: { "access_token": "eyJhbxxxXiOiJSUzI1NiJ9.eyJ1c2VyLXNpZCI6IlMtMS01LTIxLT...............", "refresh_token": "eyJhxxxxXiOiJSUzI1NiJ9.eyJ1c2VyLXNpZCI6IlMtMS01LTIxLTM0MDkw............" } Check the Server response code In this case, you will see the response code is "500 Error: Internal Server Error" which is same with vRealize Operations collector.log.When checking the Horizon Connection Server debug log, you may find the below messages:2021-06-10T09:57:09.348+08:00 DEBUG (15A8-2120) <ajp-nio-0.0.0.0-8009-exec-11> [EventLogger] Error_Event:[REST_AUTH_LOGIN_FAILURE] "User pccuad\tsti has failed to login to Horizon Server REST API": Node=PVHCon1.pccuad.pccu.edu.tw, Severity=AUDIT_FAIL, Time=Thu Jun 10 09:57:09 CST 2021, Module=Rest, UserDisplayName=pccuad\tsti, Source=com.vmware.vdi.rest.auth.controller.AuthController, Acknowledged=true2021-06-10T09:57:09.348+08:00 ERROR (15A8-2120) <ajp-nio-0.0.0.0-8009-exec-11> [ErrorPageFilter] Forwarding to error page from request [/login] due to exception [Could not initialize class com.vmware.vdi.vlsi.client.Connection] org.springframework.boot.web.servlet.support.ErrorPageFilter.forwardToErrorPage(ErrorPageFilter.java:186)java.lang.NoClassDefFoundError: Could not initialize class com.vmware.vdi.vlsi.client.ConnectionNote: For the location of the Horizon Connection Server log, please reference VMware Horizon Log FilesIf you see all of the above symptoms, the issue is caused by the REST authentication in Horizon Connection Server.
The MP4H adapter uses the Horizon REST API to authenticate with Horizon Connection Server. In some cases, the Horizon REST Authentication does not work well which may be caused by some corruption or missing REST API class(es).
This is a known issue affecting vRealize Operations 8.x, there is no resolution at this time. Please subscribe to this article to be informed when updates are published.
To workaround the issue:1. Log in to the Horizon Connection Server Windows OS.2. Open services.msc and stop the VMware Horizon View Connection Server service3. Browse to C:\Program Files\VMware\VMware View\Server\broker\webapps\ in Windows Explorer4. Remove or rename the rest folder but DO NOT remove the file titled rest.war5. Start the VMware Horizon View Connection Server service6. The rest folder will be regenerated.7. Re-attempt the swagger-ui authentication and Horizon Adapter instance again.