Hi Team, Can you please here [ContainersNotReady|P...
# flyte-support
a
Hi Team, Can you please here [ContainersNotReady|PodInitializing]: containers with unready status: [f426bf4ce8d3941848c7-n0-0]| When I am running gcs to gcs copy file, it is working. When I am trying to run pulling docker image, I am getting above error.
a
what's the status of the Pod, is it `ImagePullBackoff`or?
a
Some times Image PullBack off errorr, and some times showing there is no image(it is due to when pull image it giving different image tag and name)
a
ok do you know how the container image was built? are you using ImageSpec?
a
I am using Imagespec and without imagespec also, I tried to pull image
a
ok, so can you pull the image with regular
docker pull
? is it a private image/repo? bc then probably you'll need an ImagePullSecret
a
Hola @average-finland-92144, What I am thinking it might be due to the image tag in image-spec as mentioned in the below document, we have to give image name with python version and flytekit version as tag https://docs.flyte.org/en/latest/user_guide/customizing_dependencies/imagespec.html#:~:text=python%203.8%20and%20flytekit%200.16.0%2C%20the%20default%20image%20assigned%20will%20be%20ghcr.io/flyteorg/flytekit%3Apy3.8%2D1.6.0.
please check my python and flytekit version in above image
currently I given tag as like this "log_parser:py3.10-1.11.0"
is this correct?
a
in that case you should try
Copy code
base_image="<http://ghcr.io/flyteorg/flytekit:py3.10-1.11.0|ghcr.io/flyteorg/flytekit:py3.10-1.11.0>"
a
actually we have our own image We need to try using that image
after using that image also facing issue
[ContainersNotReady|ErrImagePull]: containers with unready status: [primary]|rpc error: code = NotFound desc = failed to pull and unpack image "ghcr.io/flyteorg/flytekit:9orQ4hG_xueMVRgTdzX2GQ": failed to resolve reference "ghcr.io/flyteorg/flytekit:9orQ4hG_xueMVRgTdzX2GQ": ghcr.io/flyteorg/flytekit:9orQ4hG_xueMVRgTdzX2GQ: not found
Hi, I am going to build custom with required packages Can you please help me what packages to be installed in a image. So, it should able to run the workflow without giving imagepull back error or image not found error
a
can you share the complete config of your ImageSpec? including the registry
a
pandas_image_spec = ImageSpec( base_image="europe-west4-docker.pkg.dev/pro-workflow-p-5389/compute/rc_log_parser1", #packages=["pandas", "numpy"], #python_version="3.9", #apt_packages=["git"], env={"Debug": "True"}, registry="europe-west4-docker.pkg.dev/pro-workflow-p-5389/compute", )
registry in gcp artifact registry
Also, I tried you provided image in task itself instead of providing ImageSpec @task(container_image="ghcr.io/flyteorg/flytekit:py3.10-1.11.0") It is working But, I tried my pvt. image in the same place. getting OCI error. [1/1] currentAttempt done. Last Error: USER::Pod failed. No message received from kubernetes. [node-initializer] terminated with ExitCode 0. [f95bba5fc3ee64c61b55-n0-0] terminated with exit code (128). Reason [StartError]. Message: failed to create containerd task: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: exec: "pyflyte-fast-execute": executable file not found in $PATH: unknown.
Can I know what package require
a
AFAIK the way ImageSpec works is that it adds to the base flytekit image, the packages you specify in the config (ref) So, the
base_image
has to have flytekit installed. The default Flyte Docker image can serve as reference Also, what you reference in the task config is only the ImageSpec object So something like this
Copy code
pandas_image_spec = ImageSpec(
    base_image="europe-west4-docker.pkg.dev/pro-workflow-p-5389/compute/rc_log_parser1:latest", #it was missing the tag
    #packages=["pandas", "numpy"], #uncomment to install packages
    #python_version="3.9",
    #apt_packages=["git"],
    env={"Debug": "True"},
    registry="europe-west4-docker.pkg.dev/pro-workflow-p-5389/compute",
)

...
@task(container_image="pandas_image_spec")
As long as you can docker pull what you set on `base_image`it should work
a
is it possible to provide commands to install flytekit in docker image/base image pls? some times after running this command also pip install flytekit getting flytectl command is not found
a
you could include
flytekit
in the
packages
that ImageSpec installs
a
Hi David Thanks, I installed flytekit in my private image and it is working
a
That is great. Thanks for confirming!
👍 1