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] Could not set nodeAffinity in dataset #2772

Closed
weixiao-huang opened this issue Mar 22, 2023 · 0 comments · Fixed by #2773
Closed

[BUG] Could not set nodeAffinity in dataset #2772

weixiao-huang opened this issue Mar 22, 2023 · 0 comments · Fixed by #2773
Labels
bug Something isn't working

Comments

@weixiao-huang
Copy link
Contributor

weixiao-huang commented Mar 22, 2023

What is your environment(Kubernetes version, Fluid version, etc.)

  • K8s: 1.22.12
  • fluid: v0.8.4

Describe the bug
create a dataset like

apiVersion: data.fluid.io/v1alpha1
kind: Dataset
metadata:
  name: test
spec:
  mounts:
  - mountPoint: local:///data/shared/sharefs-01/brain/test-sharefs
    name: test
  nodeAffinity:
    required:
      nodeSelectorTerms:
      - matchExpressions:
        - key: my-test
          operator: DoesNotExist

and create an alluxioruntime due to this dataset, but we see logs in alluxioruntime-controller

Error: unable to build kubernetes objects from release manifest: error validating "": error validating data: ValidationError(StatefulSet.spec.template.spec.affinity.nodeAffinity): unknown field "RequiredDuringSchedulingIgnoredDuringExecution" in io.k8s.api.core.v1.NodeAffinity

2023-03-22T10:46:02.517+0800    ERROR   helm    helm/utils.go:59        failed to execute       {"args": "install -f /tmp/test-alluxio-values.yaml1003339927 --namespace brain-pro01 test /charts/alluxio", "error": "exit status 1"}

By checking the values.yaml, we can see bug below

master:
  affinity:
    nodeAffinity:
      RequiredDuringSchedulingIgnoredDuringExecution:
        NodeSelectorTerms:
        - MatchExpressions:
          - Key: my-test
            Operator: DoesNotExist
            Values: null

the RequiredDuringSchedulingIgnoredDuringExecution should be requiredDuringSchedulingIgnoredDuringExecution

What you expect to happen:
Create alluxioruntime successfully
How to reproduce it
See above
Additional Information

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.

1 participant