This is typical error from running community images on OpenShift, where all containers run using an anonymous UID:
WARNING: The directory '/home/ray/.cache/pip' or its parent directory is not owned or is not writable by the current user. The cache has been disabled. Check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
Defaulting to user installation because normal site-packages is not writeable
Requirement already satisfied: numpy in ./anaconda3/lib/python3.7/site-packages (1.20.0)
ERROR: Could not install packages due to an EnvironmentError: [Errno 13] Permission denied: '/home/ray/.local'
Recommend changing all files with:
chown -R 9998:0 /dir
chmod -R g+rwX /dir
USER 9999 # different than 9998 above
In general /home/ray assumes a user ray, which in openshift will definitely never exist.
I like how OpenShift’s default behavior is catching these bits of code and configuration that don’t belong in the Ray operator.
Does autoscaling work once the setupCommands are removed?
I don’t think there should be any issues running head and worker ray start commands once that’s done.