https://flyte.org logo
#ask-the-community
Title
# ask-the-community
p

Peter Sulcs

03/03/2023, 5:31 PM
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

Jay Ganbat

03/03/2023, 6:05 PM
can you link to the code in the repo ๐Ÿ˜…
p

Peter Sulcs

03/03/2023, 6:18 PM
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

Kevin Su

03/03/2023, 6:52 PM
are you running the workflow on flytectl demo cluster?
p

Peter Sulcs

03/03/2023, 7:00 PM
no. It all worked beautifully there. I'm trying to get it running on an openshift cluster.
k

Kevin Su

03/03/2023, 7:03 PM
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

Peter Sulcs

03/03/2023, 8:56 PM
That fixed the s3 issue!
k

Kevin Su

03/03/2023, 8:57 PM
Nice!
106 Views