Azure / Azure/hpcpack

Connect to HPC Pack 2012 R2 server from .NET 6 client

Open
#51 2 comments 0 reactions 0 assignees View on GitHub
wontfix
Dominant language
PowerShell
Stars
34
Forks
19
Avg merge
41m
Merged PRs (30d)
4

Description

Hello,

I'm trying to use Microsoft.HPC.SDK 6.3.8187-beta in my .NET 6.0 application to connect to Server 2012 R2 headnode with HPC Pack 2012 R2 installed. Is it possible? I have an exception below, as I understand, client tries to connect to https://myheadnode/HpcNaming//api/fabric/resolve/singleton/SchedulerStatefulService, but on headnode there is no such endpoint. I'd expect that client should use TCP instead of HTTP as in old HPC Pack 2012 SDK, is it possible to switch protocol to connect to old servers?

[GetCertificateValidationCallback] Ignore all certificate validation error.
[GetCertificateValidationCallback] Ignore all certificate validation error.
[HpcFabricRestContext] Calling HpcNaming//api/fabric/resolve/singleton/SchedulerStatefulService on myheadnode:443.
cert issuer CN=......., sslPolicyErrors RemoteCertificateNameMismatch
[RetryManager] System.Net.Http.HttpRequestException:Response status code does not indicate success: 404 (Not Found). RetryCount: 0
Caller: GetHttpApiCallAsync in C:\__w\1\s\src\HpcCommon\HpcContext\Extensions\HttpClientExtension.cs:line 21
[RetryManager] System.Net.Http.HttpRequestException:Response status code does not indicate success: 404 (Not Found). RetryCount: 1
Caller: GetHttpApiCallAsync in C:\__w\1\s\src\HpcCommon\HpcContext\Extensions\HttpClientExtension.cs:line 21
[RetryManager] System.Net.Http.HttpRequestException:Response status code does not indicate success: 404 (Not Found). RetryCount: 2
Caller: GetHttpApiCallAsync in C:\__w\1\s\src\HpcCommon\HpcContext\Extensions\HttpClientExtension.cs:line 21
[RetryManager] Execution failed with 3 retires.
Caller: GetHttpApiCallAsync in C:\__w\1\s\src\HpcCommon\HpcContext\Extensions\HttpClientExtension.cs:line 21 Exception:
System.Net.Http.HttpRequestException: Response status code does not indicate success: 404 (Not Found).
at System.Net.Http.HttpResponseMessage.EnsureSuccessStatusCode()
at Microsoft.Hpc.HttpClientExtension.<>c__DisplayClass5_0.<b__0>d.MoveNext()
--- End of stack trace from previous location ---
at Microsoft.Hpc.RetryManager.InvokeWithRetryAsync[T](Func`1 function, Func`2 exPredicate, CancellationToken cancellationToken, String menberName, String sourceFilePath, Int32 sourceLineNumber)
System.AggregateException: One or more errors occurred. (Response status code does not indicate success: 404 (Not Found).)
---> System.Net.Http.HttpRequestException: Response status code does not indicate success: 404 (Not Found).
at System.Net.Http.HttpResponseMessage.EnsureSuccessStatusCode()
at Microsoft.Hpc.HttpClientExtension.<>c__DisplayClass5_0.<b__0>d.MoveNext()
--- End of stack trace from previous location ---
at Microsoft.Hpc.RetryManager.InvokeWithRetryAsync[T](Func`1 function, Func`2 exPredicate, CancellationToken cancellationToken, String menberName, String sourceFilePath, Int32 sourceLineNumber)
at Microsoft.Hpc.RetryManager.InvokeWithRetryAsync[T](Func`1 function, Func`2 exPredicate, CancellationToken cancellationToken, String menberName, String sourceFilePath, Int32 sourceLineNumber)
at Microsoft.Hpc.HttpClientExtension.GetHttpApiCallAsync(HttpClient httpClient, String endpoint, String apiRoute, CancellationToken cancellationToken, Func`2 exPredicate, Boolean ensureSuccessStatusCode)
at Microsoft.Hpc.HpcFabricRestContext.<>c__DisplayClass15_0`1.<b__0>d.MoveNext()
--- End of stack trace from previous location ---
at Microsoft.Hpc.HpcFabricRestContext.GetFirstHttpApiCallResponseAsync[T](CancellationToken cancellationToken, String routeString, String parameter)
at Microsoft.Hpc.HpcFabricRestContext.ResolveSingletonServicePrimaryAsync(String serviceName, CancellationToken token)
at Microsoft.Hpc.ServiceResolverExtension.ResolveSchedulerNodeAsync(IHpcContext context)
at Microsoft.Hpc.Scheduler.Store.StoreConnectionContext.ResolveSchedulerNodeAsync(CancellationToken token)
at Microsoft.Hpc.Scheduler.Store.StoreServer.ConnectWcfAsync(CancellationToken token)
at Microsoft.Hpc.Scheduler.Store.StoreServer.InternalConnectAsync(CancellationToken token, ConnectMethod method)
at Microsoft.Hpc.Scheduler.Store.StoreServer.ConnectAsync(StoreConnectionContext context, CancellationToken token, ConnectMethod method)
at Microsoft.Hpc.Scheduler.Store.SchedulerStoreSvc.InitializeAsync(CancellationToken token, ConnectMethod method)
at Microsoft.Hpc.Scheduler.Store.SchedulerStoreSvc.RemoteConnectAsync(StoreConnectionContext context, CancellationToken token, ConnectMethod method)
at Microsoft.Hpc.Scheduler.Store.SchedulerStore.ConnectAsync(StoreConnectionContext context, CancellationToken token, ConnectMethod method)
at Microsoft.Hpc.Scheduler.Scheduler.ConnectAsync(SchedulerConnectionContext context, CancellationToken token, ConnectMethod method)
--- End of inner exception stack trace ---
at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)
at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken)
at System.Threading.Tasks.Task.Wait()
at Microsoft.Hpc.Scheduler.Scheduler.Connect(String cluster, ConnectMethod method)
at Microsoft.Hpc.Scheduler.Scheduler.Connect(String cluster)

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.