Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Permission denied when reading TrainJob function script when run as non-root user #2372

Open
astefanutti opened this issue Jan 7, 2025 · 1 comment · May be fixed by #2373
Open

Permission denied when reading TrainJob function script when run as non-root user #2372

astefanutti opened this issue Jan 7, 2025 · 1 comment · May be fixed by #2373

Comments

@astefanutti
Copy link
Contributor

What happened?

Creating a TrainJob on cluster with pod security admission configured to run containers as non-root:

from kubeflow.training import TrainingClient, Trainer

def train_func():
    pass

job_name = TrainingClient().train(
    runtime_ref="torch-distributed",
    trainer=Trainer(func=train_func),
)

Fails with permissions denied to read the train function script.

What did you expect to happen?

Running TrainJob as root should not be required. and the TrainJob should succeed when run as non-root.

Environment

Kubernetes version:

$ kubectl version
Client Version: v1.31.1
Kustomize Version: v5.4.2
Server Version: v1.27.11+ec42b99

Training Operator Python SDK version:

$ pip show kubeflow-training
Version: 2.0.0

Impacted by this bug?

Give it a 👍 We prioritize the issues with most 👍

@andreyvelich
Copy link
Member

Thanks for creating this @astefanutti!

/remove-label lifecycle/needs-triage
/area sdk

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants