steep-hairdresser-84762
04/01/2025, 4:14 AMflyte
, but already have problem with registering and running the example code from getting-started
on local cluster using pyflyte register --project my-project --domain staging hello_world.py
:
$ pyflyte register --project my-project --domain staging hello_world.py
Running pyflyte register from /Users/<REMOVED>/new-project with images ImageConfig(default_image=Image(name='default', fqn='<http://cr.flyte.org/flyteorg/flytekit|cr.flyte.org/flyteorg/flytekit>', tag='py3.12-1.14.6', digest=None), images=[Image(name='default', fqn='<http://cr.flyte.org/flyteorg/flytekit|cr.flyte.org/flyteorg/flytekit>', tag='py3.12-1.14.6', digest=None)]) and image destination folder /root on 1 package(s) ('/Users/<REMOVED>/new-project/hello_world.py',)
Registering against localhost:30080
Detected Root /Users/<REMOVED>/new-project, using this to create deployable package...
Loading packages ['hello_world'] under source root /Users/<REMOVED>/new-project
No output path provided, using a temporary directory at /var/folders/s1/hn3dhf8577sfnk0g6g78tc480000gn/T/tmpet_ylcea instead
Computed version is o6muMCC0ldupDIHEIirIBA
Image say-hello-image:tv5xw_l7oTBMpzmWIulTlw found. Skip building.
Serializing and registering 3 flyte entities
[✔] Task: hello_world.say_hello
[✔] Workflow: hello_world.hello_world_wf
[✔] Launch Plan: hello_world.hello_world_wf
Successfully registered 3 entities
then I can see it and manually launch from web gui, however it produces the following in cluster logs:
E0401 04:03:28.833328 75 pod_workers.go:1298] "Error syncing pod, skipping" err="failed to \"StartContainer\" for \"ap8w7bkkxdhpn68p9hcc-n0-0\" with ErrImagePull: \"failed to pull and unpack image \\\"<http://docker.io/library/say-hello-image:tv5xw_l7oTBMpzmWIulTlw\\\|docker.io/library/say-hello-image:tv5xw_l7oTBMpzmWIulTlw\\\>": failed to resolve reference \\\"<http://docker.io/library/say-hello-image:tv5xw_l7oTBMpzmWIulTlw\\\|docker.io/library/say-hello-image:tv5xw_l7oTBMpzmWIulTlw\\\>": pull access denied, repository does not exist or may require authorization: server message: insufficient_scope: authorization failed\"" pod="my-project-staging/ap8w7bkkxdhpn68p9hcc-n0-0" podUID="a5726286-fb9b-47d5-9682-fb040ff02896"
For whatever reason it tries to pull image from docker.io registry while should do it from local registry. Have spent some time trying to figure such silly problem out, but couldn't google my way through it. Could someone please point at what I am doing wrong? Thanks!gentle-tomato-480
04/01/2025, 9:19 AMImageSpec
anywhere in your code?gentle-tomato-480
04/01/2025, 9:24 AMregistry
argsteep-hairdresser-84762
04/01/2025, 9:51 AMimage_spec = fl.ImageSpec(
...
registry="localhost:30000"
)
solved the problem! Probably it is worth updating documentation accordingly in getting-started
section.gentle-tomato-480
04/01/2025, 9:56 AMprerequisites
section once here. I agree that it should be in the getting-started
section too.