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

[Bug] Helm chart install fails due to undefined worker key in values.yml #537

Closed
2 tasks done
tbabej opened this issue Sep 6, 2022 · 4 comments · Fixed by #543
Closed
2 tasks done

[Bug] Helm chart install fails due to undefined worker key in values.yml #537

tbabej opened this issue Sep 6, 2022 · 4 comments · Fixed by #543
Labels
bug Something isn't working

Comments

@tbabej
Copy link
Contributor

tbabej commented Sep 6, 2022

Search before asking

  • I searched the issues and found no similar issues.

KubeRay Component

Others

What happened + What you expected to happen

Installing the helm chart from the current master via

$ helm install my-ray-cluster .

the installation fails with:

Error: INSTALLATION FAILED: template: ray-cluster/templates/raycluster-cluster.yaml:107:9: executing "ray-cluster/templates/raycluster-cluster.yaml" at <ne .Values.worker.disabled true>: error calling ne: incompatible types for comparison

This happens because the disabled key on the default worker group is undefined.

Reproduction script

See above.

Anything else

No response

Are you willing to submit a PR?

  • Yes I am willing to submit a PR!
@tbabej tbabej added the bug Something isn't working label Sep 6, 2022
@DmitriGekhtman
Copy link
Collaborator

Someone else posted an issue about the same thing, but somehow I can't find it.

Also, I'm not able to reproduce this against master. It should be possible by running helm template . within the default ray-cluster chart, but I'm not seeing an error.

cc @kevin85421

@tbabej
Copy link
Contributor Author

tbabej commented Sep 7, 2022

Not the behaviour I see on my end:

$ helm version
version.BuildInfo{Version:"v3.7.2", GitCommit:"663a896f4a815053445eec4153677ddc24a0a361", GitTreeState:"clean", GoVersion:"go1.16.10"}
$ git rev-parse HEAD
5254dcae5c803224674ed1fea10264f6265c5446
$ helm install upstream-test .
Error: INSTALLATION FAILED: template: ray-cluster/templates/raycluster-cluster.yaml:105:9: executing "ray-cluster/templates/raycluster-cluster.yaml" at <ne .Values.worker.disabled true>: error calling ne: incompatible types for comparison
$ helm template .
Error: template: ray-cluster/templates/raycluster-cluster.yaml:105:9: executing "ray-cluster/templates/raycluster-cluster.yaml" at <ne .Values.worker.disabled true>: error calling ne: incompatible types for comparison

Use --debug flag to render out invalid YAML

tbabej added a commit to ProteinQure/kuberay that referenced this issue Sep 7, 2022
This allows comparison between boolean types, i.e. see
ray-cluster/templates/raycluster-cluster.yaml:107, where we assert:

    {{- if ne .Values.worker.disabled true }}

The default setting for the default workergroup is setting disabled to
false.

Closes ray-project#537.
@tbabej
Copy link
Contributor Author

tbabej commented Sep 7, 2022

For reference, #543 implements the changes that were necessary on my end to get the chart working (really just a oneliner).

@DmitriGekhtman
Copy link
Collaborator

Maybe it has something to do with Helm versions...

DmitriGekhtman pushed a commit that referenced this issue Sep 7, 2022
This allows comparison between boolean types, i.e. see
ray-cluster/templates/raycluster-cluster.yaml:107, where we assert:

    {{- if ne .Values.worker.disabled true }}

The default setting for the default workergroup is setting disabled to
false.

Closes #537.
DmitriGekhtman pushed a commit that referenced this issue Sep 14, 2022
…tion on laptop (#563)

It is used to reproduce the helm chart lint errors on GitHub Actions. If you cannot reproduce the errors on GitHub Actions, the possible reason is the difference versions of Helm. Issue #537 is an example that some errors only happen in old helm versions.

Usage:

Step1: Install ct (chart-testing) and related dependencies. See https://github.com/helm/chart-testing for more details.
Step2: ./helm-chart/script/chart-test.sh
lowang-bh pushed a commit to lowang-bh/kuberay that referenced this issue Sep 24, 2023
…ject#543)

This allows comparison between boolean types, i.e. see
ray-cluster/templates/raycluster-cluster.yaml:107, where we assert:

    {{- if ne .Values.worker.disabled true }}

The default setting for the default workergroup is setting disabled to
false.

Closes ray-project#537.
lowang-bh pushed a commit to lowang-bh/kuberay that referenced this issue Sep 24, 2023
…tion on laptop (ray-project#563)

It is used to reproduce the helm chart lint errors on GitHub Actions. If you cannot reproduce the errors on GitHub Actions, the possible reason is the difference versions of Helm. Issue ray-project#537 is an example that some errors only happen in old helm versions.

Usage:

Step1: Install ct (chart-testing) and related dependencies. See https://github.com/helm/chart-testing for more details.
Step2: ./helm-chart/script/chart-test.sh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants