Running the greeting example... I am getting the f...
# ask-the-community
p
Running the greeting example... I am getting the following error on the
say_hello
task ๐Ÿงต
Copy code
IndexError: list index out of range
I'm passing in name
"Happy Friday"
I initially thought it was related to not having access to
--dest-dir /root
however, I have confirmed via pod debug that that directory is wide open.
j
can you link to the code in the repo ๐Ÿ˜…
p
I've confirmed that that index list out of range was related to me getting over zealous with mods to base image to go rootless. That error is what you get when you run just the first command in the args. was artifact of me changing
ENTRYPOINT
alright.. reverted to very small mods on official base image. Now I have a useful error message.
Copy code
Failed to get data from s3...
Original exception: Unable to locate credentials
I'm unclear on how the bucket store credentials are intended to get to the task container.
does task container bucket communication get proxied through the flyte backend service?
k
are you running the workflow on flytectl demo cluster?
p
no. It all worked beautifully there. I'm trying to get it running on an openshift cluster.
k
there is a propeller configmap, you should update the default env (AWS access key and id), propeller will pass it to the pods running the task.
Copy code
k8s.yaml: |
    plugins:
      k8s:
        default-cpus: 100m
        default-env-vars:
        - FLYTE_AWS_ENDPOINT: <http://minio.flyte.svc.cluster.local:9000>
        - FLYTE_AWS_ACCESS_KEY_ID: minio
        - FLYTE_AWS_SECRET_ACCESS_KEY: miniostorage
flytekit will read the credentials, and read / write the input / output
p
That fixed the s3 issue!
k
Nice!
265 Views