VMware Cloud Community
Susie1703
Contributor
Contributor
Jump to solution

vRA 7: VRM Agent HTTP status 401: Unauthorized

Hi Guys,

I googled alot now and didn't find anything usefull for me.

I configured vRA and now I got a problem with my vCenter Agent. I checked my credentials a hundred times, did a reinstall of the IaaS server and checked every single property in my IIS.

But still getting the Error connection:

Error connecting to [https://iaas/sdk], error details: The request failed with HTTP status 401: Unauthorized


Short facts to my configuration:

vRA Appliance and IaaS Server are in the same subnet, all needed ports opened. I'm using an AD systemaccount (Log on as batch, Log on as Service, local Administrator on the IaaS)

Here the lates Log Entry from the agent:

[11.03.2016 08:09:17] [Debug]: Thread-Id="9" - context=""  token=""     Starting Ping Report

[11.03.2016 08:09:17] [Error]: Thread-Id="9" - context=""  token="" <?xml version="1.0" encoding="utf-16"?>

<boolean>false</boolean>

Error connecting to [https://iaas/sdk], error details:

System.Net.WebException: The request failed with HTTP status 401: Unauthorized.

   at System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall)

   at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters)

   at VMware.vSphere.VimService.RetrieveServiceContent(ManagedObjectReference _this)

   at DynamicOps.Vrm.Agent.vSphere.VSphereSession.Connect(String username, String password)

[11.03.2016 08:09:17] [Debug]: Thread-Id="9" - context=""  token="" This exception was caught:

System.Net.WebException: The request failed with HTTP status 401: Unauthorized.

   at System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall)

   at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters)

   at VMware.vSphere.VimService.RetrieveServiceContent(ManagedObjectReference _this)

   at DynamicOps.Vrm.Agent.vSphere.VSphereSession.Connect(String username, String password)

   at DynamicOps.Vrm.Agent.vSphere.VSphereHypervisorServiceProvider.GetComputeResources(ManagementEndpoint managementEndpoint)

   at DynamicOps.Vrm.Agent.vSphere.VSphereAgentService.GetHostClusterList()

   at DynamicOps.Vrm.Agent.Core.VRMCoreAgent.SendPingReport()

   at DynamicOps.Vrm.Agent.Core.CoreAgentBase.SendPingReportLoop(Object sender, ElapsedEventArgs e)

[11.03.2016 08:09:17] [Error]: Thread-Id="9" - context=""  token="" <?xml version="1.0" encoding="utf-16"?>

<boolean>false</boolean>

This exception was caught:

System.Net.WebException: The request failed with HTTP status 401: Unauthorized.

   at System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall)

   at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters)

   at VMware.vSphere.VimService.RetrieveServiceContent(ManagedObjectReference _this)

   at DynamicOps.Vrm.Agent.vSphere.VSphereSession.Connect(String username, String password)

   at DynamicOps.Vrm.Agent.vSphere.VSphereHypervisorServiceProvider.GetComputeResources(ManagementEndpoint managementEndpoint)

   at DynamicOps.Vrm.Agent.vSphere.VSphereAgentService.GetHostClusterList()

   at DynamicOps.Vrm.Agent.Core.VRMCoreAgent.SendPingReport()

   at DynamicOps.Vrm.Agent.Core.CoreAgentBase.SendPingReportLoop(Object sender, ElapsedEventArgs e)

Hopefully someone can give me some hints.

Thanks in advance

Susie

0 Kudos
1 Solution

Accepted Solutions
kumarankpl
Hot Shot
Hot Shot
Jump to solution

0 Kudos
4 Replies
kumarankpl
Hot Shot
Hot Shot
Jump to solution

https://iaas/sdkhttps://iaas/sdk is this valid URL for your vCenter?


Thanks

Kumaran

0 Kudos
Susie1703
Contributor
Contributor
Jump to solution

No this is the URL to the IaaS Server.

0 Kudos
kumarankpl
Hot Shot
Hot Shot
Jump to solution

You should vCenter endpoint address not the VRA machine address.

http://www.virtxpert.com/add-vcenter-endpoint-vrealize-automation-series-part-8/

0 Kudos
Susie1703
Contributor
Contributor
Jump to solution

Oh my...

I'm such an IDIOT!!! Thank you so much... I think it's time for vacation! There are too many servers in my head right now!

Now everything works fine!

Thanks

Susie

0 Kudos