-
Notifications
You must be signed in to change notification settings - Fork 402
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] RayJob creation gives an error "Namespace is empty", even after clearly specifying the namespace in params #1351
Comments
Hi @shubhscoder, thank you for reporting this issue! The KubeRay API Server hasn’t been maintained for several quarters, so I wouldn’t recommend using it at the moment. However, recently, folks from IBM/RedHat have been planning to improve it and integrate the component into their production environments. You can expect significant improvements within a month. |
Based on the swagger definition This issue is similar. We can update the document first if that helps |
This worked for me: curl -X POST 'localhost:31888/apis/v1alpha2/namespaces/default/compute_templates' \
--data '{
"name": "default-template",
"namespace": "default",
"cpu": 1,
"memory": 1
}'
curl -X POST 'http://localhost:31888/apis/v1alpha2/jobs?namespace=default' \
--data '{
"name": "rayjob-test",
"namespace": "default",
"user": "tedchang",
"entrypoint": "python -V",
"clusterSpec": {
"headGroupSpec": {
"computeTemplate": "default-template",
"image": "rayproject/ray:2.5.0",
"serviceType": "NodePort",
"rayStartParams": {"dashboard-host": "0.0.0.0"}
},
"workerGroupSpec": [
{
"groupName": "small-wg",
"computeTemplate": "default-template",
"image": "rayproject/ray:2.5.0",
"replicas": 1,
"minReplicas": 0,
"maxReplicas": 1,
"rayStartParams": {"metrics-export-port": "8080"}
}
]
}
}' |
Yea, this is just a documentation bug. I answered this question a week ago |
Hello @kevin85421 Thanks for your response! I was trying to add an example for #1206. But I think it would be better to add the example when things are stabilised on the APIserver side? Or should I go ahead and add an example? |
I think it's worth adding the example right now -- we can update it later if necessary. |
@blublinsky |
@tedhtchang I have some free cycles, I will take a closer look at this issue. I have updated the swagger ui in #1387. @kevin85421 Can you please assign this ticket to me ? |
Another related comment. The cluster.swagger.json says
|
@tedhtchang adding I am testing changes to the swagger / proto using that technique. Will submit a PR to address marking the "required" fields in swagger using the stuff above. I have fixed the documentation issue for this and other issues in #1435. @shubhscoder please feel free to review that PR. |
… after clearly specifying the namespace in params Fixes ray-project#1351
… after clearly specifying the namespace in params Fixes ray-project#1351
… after clearly specifying the namespace in params Fixes ray-project#1351
… after clearly specifying the namespace in params Fixes ray-project#1351
… after clearly specifying the namespace in params Fixes ray-project#1351
… after clearly specifying the namespace in params Fixes ray-project#1351
… after clearly specifying the namespace in params Fixes ray-project#1351
Search before asking
KubeRay Component
apiserver
What happened + What you expected to happen
I am following this tutorial to create a RayJob using the apiserver: https://ray-project.github.io/kuberay/components/apiserver/#create-ray-job-in-a-given-namespace
First, I got this issue:
“{"code":12,"message":"Method Not Allowed"}”
I realized that the url specified in the docs is incorrect and changing it worked for me.
However, now I am running into another issue:
{"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."}
The expectation is the job gets created / fails some other error.
Reproduction script
curl -X POST 'localhost:31888/apis/v1alpha2/jobs' --header 'Content-Type: application/json' --data @ray_cron_job_params.json
Required params in ray_cron_job_params.json
"Name": "rayjob-sample", "Namespace": "ray-system", "user": "test", .....
Anything else
No response
Are you willing to submit a PR?
The text was updated successfully, but these errors were encountered: