Hey Guys,
i hope anyone can give me some help about an issue i´m trying to troubleshoot.
From a Pivotal Cloud Foundry Servicebroker i want to get the state of some VMs (Powered on/off etc.) from vROPS 6.4.0.4635874. In vROPS i have created an local account with FullAPI Access. When i do a API Call from a rest client like insomnia or similar i am able to get an api response.
API Call: https://vropsaddress.com/suite-api/api/resources?adapterkind=VMWARE&resourceKind=VirtualMachine
Also that works from a broser after typing the local api user credentials.
From the servicebroker side which is using the pivotal cloud foundry management pack i get this error:
2018-06-04T15:31:13.946+02:00 [APP/PROC/WEB/0] [OUT] 2018-06-04 13:31:13.945 ERROR 19 --- [nio-8080-exec-2] .d.b.v.d.s.MultiThreadedVmwareOpsService : Execution exception while waiting for runner - returning default VmRemoteStatus{powerState=UNKNOWN, cpuUsageInPercent=0, memUsageInPercent=0, guestTools=GUEST_TOOLS_UNKNOWN, disks=[]}
2018-06-04T15:31:13.946+02:00 [APP/PROC/WEB/0] [OUT] com.vmware.ops.api.client.exceptions.AuthException: API call failed, reason = 401
2018-06-04T15:31:13.946+02:00 [APP/PROC/WEB/0] [OUT] at com.vmware.ops.api.client.internal.DefaultClient.handleError(DefaultClient.java:368)
2018-06-04T15:31:13.946+02:00 [APP/PROC/WEB/0] [OUT] at org.springframework.web.client.RestTemplate.handleResponse(RestTemplate.java:708)
2018-06-04T15:31:13.946+02:00 [APP/PROC/WEB/0] [OUT] at org.springframework.web.client.RestTemplate.doExecute(RestTemplate.java:661)
2018-06-04T15:31:13.946+02:00 [APP/PROC/WEB/0] [OUT] at org.springframework.web.client.RestTemplate.execute(RestTemplate.java:636)
2018-06-04T15:31:13.946+02:00 [APP/PROC/WEB/0] [OUT] at org.springframework.web.client.RestTemplate.postForEntity(RestTemplate.java:431)
2018-06-04T15:31:13.946+02:00 [APP/PROC/WEB/0] [OUT] at com.vmware.ops.api.client.internal.RestClientProxy.invoke(RestClientProxy.java:155)
2018-06-04T15:31:13.946+02:00 [APP/PROC/WEB/0] [OUT] at com.vmware.ops.api.client.internal.DefaultClient$InvocationHandlerWrapper.invoke(DefaultClient.java:311)
2018-06-04T15:31:13.946+02:00 [APP/PROC/WEB/0] [OUT] at com.sun.proxy.$Proxy187.getResources(Unknown Source)
2018-06-04T15:31:13.946+02:00 [APP/PROC/WEB/0] [OUT] at com.bosch.de.bics.vmaas.dashboard.service.VmwareOpsService.getResourceIdByVmName(VmwareOpsService.java:46)
2018-06-04T15:31:13.946+02:00 [APP/PROC/WEB/0] [OUT] at com.bosch.de.bics.vmaas.dashboard.service.MultiThreadedVmwareOpsService$OpsServiceVmRemoteStatus.doRun(MultiThreadedVmwareOpsService.java:145)
2018-06-04T15:31:13.946+02:00 [APP/PROC/WEB/0] [OUT] at com.bosch.de.bics.vmaas.dashboard.service.MultiThreadedVmwareOpsService$OpsServiceVmRemoteStatus.doRun(MultiThreadedVmwareOpsService.java:133)
2018-06-04T15:31:13.946+02:00 [APP/PROC/WEB/0] [OUT] at com.bosch.de.bics.vmaas.dashboard.service.MultiThreadedVmwareOpsService$Runner.call(MultiThreadedVmwareOpsService.java:120)
2018-06-04T15:31:13.946+02:00 [APP/PROC/WEB/0] [OUT] at java.util.concurrent.FutureTask.run(FutureTask.java:266)
2018-06-04T15:31:13.946+02:00 [APP/PROC/WEB/0] [OUT] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
2018-06-04T15:31:13.946+02:00 [APP/PROC/WEB/0] [OUT] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
2018-06-04T15:31:13.946+02:00 [APP/PROC/WEB/0] [OUT] at java.lang.Thread.run(Thread.java:748)
Any clue why this happens? I have already checked the permissions, did a reset of the password and checked the special characters.