Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SyncTrigger fails to call on Kubernetes Environment #7360

Closed
TsuyoshiUshio opened this issue May 11, 2021 · 4 comments
Closed

SyncTrigger fails to call on Kubernetes Environment #7360

TsuyoshiUshio opened this issue May 11, 2021 · 4 comments

Comments

@TsuyoshiUshio
Copy link
Contributor

Sync Trigger call is failed. The potential root cause is wrong URL. The URL should be http://<<kubernetes-environment-name>>-build-service.<<namespace>>.svc.cluster.local:8181/api/operations/settriggers. however it looks http://k8se-build-service.k8se-system.svc.cluster.local:8181/operations/settriggers. It is the root cause of the ScaleObject is not updated.

I'll test the payload with new encrypted key then send a pull request.

CC: @pragnagopa

5,,tsushiqueue01,,,Host.General,"","Initiating background SyncTriggers operation",3.0.15417.0,2021-05-11T15:20:58.5447334Z,,"",,296b6258-dd2e-4bf1-a88c-e0213d4ebd9a,,,production,tsushiqueue01-67fdd64c9-sslsj
5,,tsushiqueue01,,,Microsoft.Azure.WebJobs.Script.WebHost.Management.FunctionsSyncManager,"","Making SyncTriggers request (RequestId=66b21c3b-df73-4d00-8242-0cb6a4738c41, Uri=http://k8se-build-service.k8se-system.svc.cluster.local:8181/operations/settriggers, Content={   'triggers': [     {       'name': 'myQueueItem',       'type': 'queueTrigger',       'direction': 'in',       'queueName': 'js-queue-items',       'connection': 'AzureWebJobsStorage',       'functionName': 'QueueTrigger'     }   ],   'functions': [     {       'name': 'QueueTrigger',       'script_root_path_href': 'https://tsushiqueue01.limaarcncsenv14--u3lecxu.northcentralusstage.k4apps.io/admin/vfs/home/site/wwwroot/QueueTrigger/',       'script_href': 'https://tsushiqueue01.limaarcncsenv14--u3lecxu.northcentralusstage.k4apps.io/admin/vfs/home/site/wwwroot/QueueTrigger/index.js',       'config_href': 'https://tsushiqueue01.limaarcncsenv14--u3lecxu.northcentralusstage.k4apps.io/admin/vfs/home/site/wwwroot/QueueTrigger/function.json',       'test_data_href': 'https://tsushiqueue01.limaarcncsenv14--u3lecxu.northcentralusstage.k4apps.io/admin/vfs/tmp/FunctionsData/QueueTrigger.dat',       'href': 'https://tsushiqueue01.limaarcncsenv14--u3lecxu.northcentralusstage.k4apps.io/admin/functions/QueueTrigger',       'invoke_url_template': null,       'language': 'node',       'config': {         'bindings': [           {             'name': 'myQueueItem',             'type': 'queueTrigger',             'direction': 'in',             'queueName': 'js-queue-items',             'connection': 'AzureWebJobsStorage'           }         ]       },       'files': null,       'test_data': '',       'isDisabled': false,       'isDirect': false,       'isProxy': false     }   ] }).",3.0.15417.0,2021-05-11T15:20:58.6179321Z,,"",,,,,production,tsushiqueue01-67fdd64c9-sslsj
2,,tsushiqueue01,,,Microsoft.Azure.WebJobs.Script.WebHost.Management.FunctionsSyncManager,"System.Net.Http.HttpRequestException : Name or service not known ---> System.Net.Sockets.SocketException : Name or service not known    at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()    at async System.Net.Http.ConnectHelper.ConnectAsync(String host,Int32 port,CancellationToken cancellationToken)    End of inner exception    at async System.Net.Http.ConnectHelper.ConnectAsync(String host,Int32 port,CancellationToken cancellationToken)    at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()    at System.Threading.Tasks.ValueTask`1.get_Result()    at async System.Net.Http.HttpConnectionPool.ConnectAsync(HttpRequestMessage request,Boolean allowHttp2,CancellationToken cancellationToken)    at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()    at System.Threading.Tasks.ValueTask`1.get_Result()    at async System.Net.Http.HttpConnectionPool.CreateHttp11ConnectionAsync(HttpRequestMessage request,CancellationToken cancellationToken)    at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()    at System.Threading.Tasks.ValueTask`1.get_Result()    at async System.Net.Http.HttpConnectionPool.GetHttpConnectionAsync(HttpRequestMessage request,CancellationToken cancellationToken)    at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()    at System.Threading.Tasks.ValueTask`1.get_Result()    at async System.Net.Http.HttpConnectionPool.SendWithRetryAsync(HttpRequestMessage request,Boolean doRequestAuth,CancellationToken cancellationToken)    at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()    at async System.Net.Http.RedirectHandler.SendAsync(HttpRequestMessage request,CancellationToken cancellationToken)    at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()    at async System.Net.Http.DiagnosticsHandler.SendAsync(HttpRequestMessage request,CancellationToken cancellationToken)    at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()    at async System.Net.Http.HttpClient.FinishSendAsyncBuffered(Task`1 sendTask,HttpRequestMessage request,CancellationTokenSource cts,Boolean disposeCts)    at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()    at async Microsoft.Azure.WebJobs.Script.WebHost.Management.FunctionsSyncManager.SetTriggersAsync(String content) at /src/azure-functions-host/src/WebJobs.Script.WebHost/Management/FunctionsSyncManager.cs : 612    at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()    at async Microsoft.Azure.WebJobs.Script.WebHost.Management.FunctionsSyncManager.TrySyncTriggersAsync(Boolean isBackgroundSync) at /src/azure-functions-host/src/WebJobs.Script.WebHost/Management/FunctionsSyncManager.cs : 137","SyncTriggers operation failed.",3.0.15417.0,2021-05-11T15:20:58.6604218Z,System.Net.Sockets.SocketException,"Name or service not known",,,,,production,tsushiqueue01-67fdd64c9-sslsj
@pragnagopa
Copy link
Member

cc @fabiocav fyi - need to take hotfix

@fabiocav
Copy link
Member

Do we have a PR for this?

@TsuyoshiUshio
Copy link
Contributor Author

After testing it, I'll create it.

@TsuyoshiUshio
Copy link
Contributor Author

#7370
#7373
#7386

Three PRs solve this issue.

@ghost ghost locked as resolved and limited conversation to collaborators Jun 24, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants