fierce-oil-47448
04/26/2024, 11:04 PMfreezing-airport-6809
freezing-airport-6809
pyflyte run --copy-all
Or just use imagespec to always runfierce-oil-47448
04/26/2024, 11:55 PMpyflyte run --remote orchestration/workflows/foo.py foo_workflow --name "Acme" --copy-all
freezing-airport-6809
freezing-airport-6809
docker
image toofreezing-airport-6809
glamorous-carpet-83516
04/29/2024, 4:39 AMorchestration
folder?glamorous-carpet-83516
04/29/2024, 4:40 AMpyflyte run --copy-all
will copy entire <repo>
to s3, and you task will download it while runningfierce-oil-47448
04/29/2024, 4:40 AMfreezing-airport-6809
fierce-oil-47448
04/30/2024, 8:09 PMflytectl demo start
Everything is up and running.
I did:
export FLYTECTL_CONFIG=~/.flyte/config-sandbox.yaml
My config contents:
admin:
# For GRPC endpoints you might want to use dns:///flyte.myexample.com
endpoint: localhost:30080
insecure: true
# This is not a needed configuration, only useful if you want to explore the data in sandbox. For non sandbox, please
# do not use this configuration, instead prefer to use aws, gcs, azure sessions. Flytekit, should use fsspec to
# auto select the right backend to pull data as long as the sessions are configured. For Sandbox, this is special, as
# minio is s3 compatible and we ship with minio in sandbox.
storage:
connection:
endpoint: <http://localhost:30002>
access-key: minio
secret-key: miniostorage
Netstat shows the port is active:
(ubuntu) ubuntu@ip-10-42-128-255:~/vfm$ netstat -an | grep 30080
tcp 0 0 0.0.0.0:30080 0.0.0.0:* LISTEN
But when I create a project:
flytectl create project --id "my-hello-world-project" --labels "my-label=my-project" --description "My Flyte Hello World project" --name "My Hello World Project"
I get a connection error:
Error: Connection Info: [Endpoint: localhost:30080, InsecureConnection?: true, AuthMode: ClientSecret]: rpc error: code = Unavailable desc = upstream connect error or disconnect/reset before headers. reset reason: connection failure
{"json":{},"level":"error","msg":"Connection Info: [Endpoint: localhost:30080, InsecureConnection?: true, AuthMode: ClientSecret]: rpc error: code = Unavailable desc = upstream connect error or disconnect/reset before headers. reset reason: connection failure","ts":"2024-04-30T20:08:33Z"}
fierce-oil-47448
04/30/2024, 8:30 PMflyteagent-5b49c94c-ggfqj | Pending
fierce-oil-47448
04/30/2024, 8:47 PM(ubuntu) ubuntu@ip-10-42-128-255:~/vfm$ kubectl logs flyteagent-5b49c94c-rnnl7
Error from server (BadRequest): container "flyteagent" in pod "flyteagent-5b49c94c-rnnl7" is waiting to start: trying and failing to pull image
fierce-oil-47448
04/30/2024, 8:49 PMWarning Failed 6m34s kubelet Failed to pull image "<http://ghcr.io/flyteorg/flyteagent:1.10.8b4|ghcr.io/flyteorg/flyteagent:1.10.8b4>": rpc error: code = Unknown desc = failed to pull and unpack image "<http://ghcr.io/flyteorg/flyteagent:1.10.8b4|ghcr.io/flyteorg/flyteagent:1.10.8b4>": failed to resolve reference "<http://ghcr.io/flyteorg/flyteagent:1.10.8b4|ghcr.io/flyteorg/flyteagent:1.10.8b4>": failed to do request: Head "<https://ghcr.io/v2/flyteorg/flyteagent/manifests/1.10.8b4>": dial tcp: lookup <http://ghcr.io|ghcr.io> on 10.42.0.2:53: read udp 10.42.0.1:49068->10.42.0.2:53: read: connection refused
Will debug myself from now on.
It would be good to have instructions on debugging demo cluster issues though.fierce-oil-47448
04/30/2024, 9:01 PMdocker pull <http://ghcr.io/flyteorg/flyteagent:1.10.8b4|ghcr.io/flyteorg/flyteagent:1.10.8b4>
But when Flyte cluster attempts that during deployment of flyteagent, it fails for some reason.glamorous-carpet-83516
04/30/2024, 9:11 PMflytectl demo teardown --volume
flytectl demo start
fierce-oil-47448
04/30/2024, 9:19 PMfierce-oil-47448
04/30/2024, 9:20 PMfreezing-airport-6809
freezing-airport-6809
freezing-airport-6809
flytectl demo start
?fierce-oil-47448
04/30/2024, 9:21 PMfreezing-airport-6809
fierce-oil-47448
04/30/2024, 9:21 PMfierce-oil-47448
04/30/2024, 9:22 PMfreezing-airport-6809
fierce-oil-47448
04/30/2024, 9:22 PMfierce-oil-47448
04/30/2024, 9:22 PMWarning Failed 6m34s kubelet Failed to pull image "<http://ghcr.io/flyteorg/flyteagent:1.10.8b4|ghcr.io/flyteorg/flyteagent:1.10.8b4>": rpc error: code = Unknown desc = failed to pull and unpack image "<http://ghcr.io/flyteorg/flyteagent:1.10.8b4|ghcr.io/flyteorg/flyteagent:1.10.8b4>": failed to resolve reference "<http://ghcr.io/flyteorg/flyteagent:1.10.8b4|ghcr.io/flyteorg/flyteagent:1.10.8b4>": failed to do request: Head "<https://ghcr.io/v2/flyteorg/flyteagent/manifests/1.10.8b4>": dial tcp: lookup <http://ghcr.io|ghcr.io> on 10.42.0.2:53: read udp 10.42.0.1:49068->10.42.0.2:53: read: connection refused
glamorous-carpet-83516
04/30/2024, 9:23 PMflytectl demo start --disable-agent
freezing-airport-6809
fierce-oil-47448
04/30/2024, 9:24 PMfierce-oil-47448
04/30/2024, 9:26 PMfreezing-airport-6809
freezing-airport-6809
freezing-airport-6809
freezing-airport-6809
fierce-oil-47448
04/30/2024, 9:28 PMfreezing-airport-6809
freezing-airport-6809
freezing-airport-6809
fierce-oil-47448
04/30/2024, 9:47 PM[1/1] currentAttempt done. Last Error: USER::Grace period [3m0s] exceeded|containers with unready status: [f092c13fb2ecf4c4fb31-n0-0]|Back-off pulling image "<http://cr.flyte.org/flyteorg/flytekit:py3.11-1.11.0|cr.flyte.org/flyteorg/flytekit:py3.11-1.11.0>"
Sfierce-oil-47448
04/30/2024, 9:48 PMfreezing-airport-6809
fierce-oil-47448
05/02/2024, 12:18 AMfreezing-airport-6809
fierce-oil-47448
05/02/2024, 7:12 PMif so, pyflyte run --copy-all will copy entire <repo> to s3, and you task will download it while running
fierce-oil-47448
05/02/2024, 7:13 PMfierce-oil-47448
05/02/2024, 7:14 PMfierce-oil-47448
05/02/2024, 7:16 PMfierce-oil-47448
05/03/2024, 12:19 AM