hallowed-branch-43666
05/28/2024, 9:25 AMhallowed-branch-43666
05/28/2024, 2:15 PMflyteagent:
enabled: true
plugin_config:
plugins:
agentService:
defaultAgent:
endpoint: dns:///flyteagent.infrastructure--helm--flyte.svc.cluster.local:8000
insecure: true
Our setup is a multi-cluster deployment, and agent service is enabled on the data-planehallowed-branch-43666
05/28/2024, 2:35 PMglamorous-carpet-83516
05/28/2024, 5:11 PMgray-ram-51379
05/28/2024, 11:29 PMplugin_config:
plugins:
# -- Agent service configuration for propeller.
agent-service:
# -- The default agent service to use for plugin tasks.
defaultAgent:
# -- The agent service endpoint propeller should connect to.
endpoint: flyteagent.flyte.svc.cluster.local:8000
# -- Whether the connection from propeller to the agent service should use TLS.
insecure: true
# -- The task types supported by the default agent.
supportedTaskTypes:
- sensor
i tried running a sensor workflow -
the error is :
[1/1] currentAttempt done. Last Error: USER::failed to get grpc connection with error: failed to exit idle mode: passthrough: received empty target in Build()
my config map for propeller includes:
{{- if .Values.flyteagent.enabled }}
{{- with .Values.flyteagent.plugin_config }}
agent_service.yaml: | {{ tpl (toYaml .) $ | nindent 4 }}
{{- end }}
{{- end }}
upon helm deploying my charts, i actually see propeller failing to start:
{"json":{"src":"handler.go:37"},"level":"debug","msg":"BranchNode::Setup: nothing to do","ts":"2024-05-28T23:33:57Z"}
{"json":{"src":"resourcemanager_util.go:22"},"level":"info","msg":"Using the NOOP resource manager","ts":"2024-05-28T23:33:57Z"}
panic: failed to initialize agent registry with error: failed to list agent: [&{flyteagent.flyte.svc.cluster.local:8000 true map[] 10s}] with error: [rpc error: code = Unavailable desc = connection error: desc = "transport: Error while dialing: dial tcp: lookup flyteagent.flyte.svc.cluster.local on 10.244.0.10:53: no such host"]
however , i can see that the flyteagent pod should be running fine:
(flytepython310) yaou@yaou-mn1 flyte-core % k logs flyteagent-84fd6c9c46-xnzrj
Starting up the server to expose the prometheus metrics...
Starting the agent service...
Starting Sensor that supports task categories ['sensor']
Starting Airflow Agent that supports task categories ['airflow']
any advice is appreciated ๐damp-lion-88352
05/29/2024, 12:14 AMdamp-lion-88352
05/29/2024, 12:14 AMdamp-lion-88352
05/29/2024, 12:14 AMdamp-lion-88352
05/29/2024, 12:17 AMdamp-lion-88352
05/29/2024, 12:18 AMdamp-lion-88352
05/29/2024, 12:18 AMgray-ram-51379
05/29/2024, 1:12 AMdamp-lion-88352
05/29/2024, 1:15 AMdamp-lion-88352
05/29/2024, 1:16 AMdamp-lion-88352
05/29/2024, 7:59 AMdamp-lion-88352
05/29/2024, 8:00 AMgray-ram-51379
05/29/2024, 5:04 PMglamorous-carpet-83516
05/29/2024, 5:34 PMkubectl get cm flyte-propeller-config -o yaml > propeller-cm.yamlgray-ram-51379
05/29/2024, 5:54 PMglamorous-carpet-83516
05/29/2024, 5:54 PMhallowed-branch-43666
05/29/2024, 6:15 PMflyte in the service addresses, so in case you have a different namespace, you need to set endpoint: flyteagent.some-other-namespace-name.svc.cluster.local:8000 in two places: flyteagent.plugin_config.plugins.agentService.defaultAgent.endpoint and configmap.enabled_plugins.plugins.agentService.defaultAgent.endpointglamorous-carpet-83516
05/29/2024, 6:22 PMflyte namespace?hallowed-branch-43666
05/29/2024, 6:23 PMflyte namespace?
yes, it's running in a namespace with a different name (and so are all the other Flyte services, btw)glamorous-carpet-83516
05/29/2024, 6:35 PMglamorous-carpet-83516
05/29/2024, 6:36 PMgray-ram-51379
05/29/2024, 6:41 PM{"json":{"src":"resourcemanager_util.go:22"},"level":"info","msg":"Using the NOOP resource manager","ts":"2024-05-29T18:40:45Z"}
panic: failed to initialize agent registry with error: failed to list agent: [&{flyteagent.flyte-dev.svc.cluster.local:8000 true map[] 10s}] with error: [rpc error: code = Unavailable desc = connection error: desc = "transport: Error while dialing: dial tcp: lookup flyteagent.flyte-dev.svc.cluster.local on 10.244.0.10:53: no such host"]
goroutine 546 [running]:
github.com/flyteorg/flyte/flyteplugins/go/tasks/plugins/webapi/agent.newAgentPlugin()glamorous-carpet-83516
05/29/2024, 7:17 PMflyte-dev namespacegray-ram-51379
05/29/2024, 10:49 PMflyte-dev namespace! I had a fix, i had to change the endpoint from flyteagent.flyte-dev.svc.cluster.local:8000, to just flyteagent:8000 , it worked! no longer complaining about the connection issue!gray-ram-51379
05/29/2024, 10:50 PMgray-ram-51379
05/29/2024, 10:50 PM