-
Notifications
You must be signed in to change notification settings - Fork 689
[Test][HistoryServer] E2E test for live clusters #4406
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
base: master
Are you sure you want to change the base?
Conversation
88d8a21 to
1b2f5c4
Compare
570ddd8 to
947900f
Compare
| sa := &corev1.ServiceAccount{ | ||
| ObjectMeta: metav1.ObjectMeta{ | ||
| Name: "historyserver", | ||
| Namespace: namespace.Name, | ||
| }, | ||
| } | ||
| clusterRole := &rbacv1.ClusterRole{ | ||
| ObjectMeta: metav1.ObjectMeta{ | ||
| Name: "raycluster-reader", | ||
| }, | ||
| Rules: []rbacv1.PolicyRule{ | ||
| { | ||
| APIGroups: []string{"ray.io"}, | ||
| Resources: []string{"rayclusters"}, | ||
| Verbs: []string{"list", "get"}, | ||
| }, | ||
| }, | ||
| } | ||
| clusterRoleBinding := &rbacv1.ClusterRoleBinding{ | ||
| ObjectMeta: metav1.ObjectMeta{ | ||
| Name: fmt.Sprintf("historyserver-%s", namespace.Name), | ||
| }, | ||
| Subjects: []rbacv1.Subject{ | ||
| { | ||
| Kind: "ServiceAccount", | ||
| Name: "historyserver", | ||
| Namespace: namespace.Name, // Use the test namespace | ||
| }, | ||
| }, | ||
| RoleRef: rbacv1.RoleRef{ | ||
| APIGroup: "rbac.authorization.k8s.io", | ||
| Kind: "ClusterRole", | ||
| Name: "raycluster-reader", | ||
| }, | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The service_account.yaml file has a hardcoded namespace which doesn't work with dynamic test namespaces.
kuberay/historyserver/config/service_account.yaml
Lines 16 to 27 in 0da1dea
| apiVersion: rbac.authorization.k8s.io/v1 | |
| kind: ClusterRoleBinding | |
| metadata: | |
| name: historyserver | |
| namespace: default | |
| subjects: | |
| - kind: ServiceAccount | |
| name: historyserver | |
| namespace: default | |
| roleRef: | |
| kind: ClusterRole | |
| name: raycluster-reader |
3a355b6 to
16d4f08
Compare
16d4f08 to
f0d2142
Compare
f0d2142 to
18e8fb4
Compare
e06809f to
b1ec511
Compare
Signed-off-by: win5923 <ken89@kimo.com>
b1ec511 to
9c1bd43
Compare
|
|
||
| .PHONY: localimage-historyserver | ||
| localimage-historyserver: dockerbuilder_instance | ||
| localimage-historyserver: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think buildkite server don't have docker buildx
Signed-off-by: win5923 <ken89@kimo.com>
| // Excluded endpoints that are not yet implemented: | ||
| // - /events | ||
| // - /api/cluster_status | ||
| // - /api/grafana_health | ||
| // - /api/prometheus_health | ||
| // - /api/data/datasets/{job_id} | ||
| // - /api/jobs | ||
| // - /api/serve/applications | ||
| // - /api/v0/placement_groups | ||
| // - /api/v0/logs/file |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some APIs work for live clusters but are not implemented for dead clusters.
I have excluded the unimplemented ones for dead clusters for now.
Signed-off-by: win5923 <ken89@kimo.com>
958a8d3 to
5fcfc62
Compare
5fcfc62 to
1601f74
Compare
1601f74 to
bcce969
Compare
| // - /api/v0/placement_groups | ||
| // - /api/v0/logs/file | ||
| var HistoryServerEndpoints = []string{ | ||
| "/nodes?view=summary", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Endpoint /nodes should not return server error, got 500: {"result": false, "msg": "Unknown view None", "data": {}}
Expected
<int>: 500
to be <
<int>: 500
Just a workaround for live cluster here, need another way to support dead cluster /node endpoint.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
Signed-off-by: win5923 <ken89@kimo.com>
Why are these changes needed?
supportpackageLive clusters test:
/clusters/endpoint returns live clusters withsessionName=live/enter_cluster/{ns}/{name}/liveendpoint sets cluster context correctlyRelated issue number
Closes #4377
Checks