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

[apiserver] Method Not Allowed on /apis/v1alpha2/namespaces/ray/jobs #1316

Closed
1 of 2 tasks
23ewrdtf opened this issue Aug 11, 2023 · 2 comments
Closed
1 of 2 tasks

[apiserver] Method Not Allowed on /apis/v1alpha2/namespaces/ray/jobs #1316

23ewrdtf opened this issue Aug 11, 2023 · 2 comments
Assignees
Labels
apiserver bug Something isn't working

Comments

@23ewrdtf
Copy link

Search before asking

  • I searched the issues and found no similar issues.

KubeRay Component

apiserver

What happened + What you expected to happen

I'm following this guide to create RayJob: https://ray-project.github.io/kuberay/components/apiserver/#create-ray-job-in-a-given-namespace

It doesn't matter if I provide JSON or not. The error is the same.

curl -X POST kuberay-apiserver-service.ray.svc.cluster.local:8888/apis/v1alpha2/namespaces/ray/jobs
{"code":12, "message":"Method Not Allowed"}

The correct endpoint is: /apis/v1alpha2/jobs

curl -X POST 'kuberay-apiserver-service.ray.svc.cluster.local:8888/apis/v1alpha2/jobs'
{"code":3, "message":"Namespace is empty. Please specify a valid value.: Validate job request failed.: Invalid input error: Namespace is empty. Please specify a valid value."}

Reproduction script

curl -X POST kuberay-apiserver-service.ray.svc.cluster.local:8888/apis/v1alpha2/namespaces/ray/jobs
{"code":12, "message":"Method Not Allowed"}

Anything else

No response

Are you willing to submit a PR?

  • Yes I am willing to submit a PR!
@z103cb
Copy link
Contributor

z103cb commented Sep 6, 2023

@kevin85421 Can you also assign this to me also.

z103cb added a commit to z103cb/kuberay that referenced this issue Sep 18, 2023
@z103cb
Copy link
Contributor

z103cb commented Sep 28, 2023

@kevin85421 we should probably close this ticket as the api was changed by #1447.
@23ewrdtf you might want to retest, with the latest nightly build.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
apiserver bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants