VMware Cloud Community
jstander
Enthusiast
Enthusiast

vCloud Air endpoint connectivity error: Failed to get vCloud login session.

I can login and authenticate with the exact same credentials with any issues to https://vchs.vmware.com/ .  My user has admin access.

But when I setup the endpoint in vRA i get the following error and unable to deploy to vCloud Air.

Anyone else run into this problem?

VCloudGetInstances: Compute 143-898: Failed to get vCloud login session. Exception: System.AggregateException: One or more errors occurred. ---> DynamicOps.Common.Client.HtmlResponseException: Unauthorized (401)

Request:

POST https://vchs.vmware.com/api/vchs/compute/4314-932f-e62029d4886e/vdc/b0592ad9-de1e-4d23-a418-b26fbef8...

Response:

<Error minorErrorCode="" majorErrorCode="401" message="Unauthorized" xmlns="http://www.vmware.com/vchs/v5.6" xmlns:tns="http://www.vmware.com/vchs/v5.6" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"/>

at DynamicOps.Common.Client.RestClient.HandleErrorResponse[TResponse](ObjectContent request, HttpResponseMessage response, CancellationToken cancellationToken)

at DynamicOps.VCloudModel.Interface.AuthenticatedRestClient.<>n__FabricatedMethod8[TResponse](ObjectContent , HttpResponseMessage , CancellationToken )

at DynamicOps.VCloudModel.Interface.AuthenticatedRestClient.<HandleErrorResponse>d__4`1.MoveNext()

--- End of stack trace from previous location where exception was thrown ---

at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)

at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)

at DynamicOps.Common.Client.RestClient.<HandleErrorResponse>d__a7`1.MoveNext()

--- End of stack trace from previous location where exception was thrown ---

at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)

at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)

at DynamicOps.Common.Client.RestClient.<PostResourceInternal>d__c1.MoveNext()

--- End of stack trace from previous location where exception was thrown ---

at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)

at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)

at DynamicOps.Common.Client.RestClient.<PostResource>d__87`1.MoveNext()

--- End of inner exception stack trace ---

at System.Threading.Tasks.Task`1.GetResultCore(Boolean waitCompletionNotification)

Tags (2)
0 Kudos
2 Replies
mhampto
VMware Employee
VMware Employee

Please see the blog post for endpoint creation: vCloud Air + vRealize Automation 7.0 - VMware Cloud Provider Blog

If there are any non-functional vDCs in your subscription area please remove and run the data collection again.

0 Kudos
jstander
Enthusiast
Enthusiast

Thank you for the response,  but I only have a single Virtual DataCenter which is being used.

I did find some other strange things going on within vCloud Air like:

- error message "Error getting vcd session cookiedispatch.StatusCode: Unexpected response status: 413" every time i click on button "Manage in vCloud Director".

- Not allowing me access with my login credentials to the cloud provider address under related links.

This use to work before just fine but seems like the datacenter was moved (link now points to California) where looking in vRA the resources was at a different location.

any ideas?

0 Kudos