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]Fluid csi on rke2 k8s(1.22) use mount output empty,it caused app pod not work #2613

Closed
StephenLau007 opened this issue Feb 17, 2023 · 0 comments · Fixed by #2739
Closed
Assignees
Labels
bug Something isn't working

Comments

@StephenLau007
Copy link
Contributor

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

name version
OS-IMAGE Ubuntu 20.04.4 LTS
KERNEL-VERSION 5.4.0-139-generic
k8s v1.22.15+rke2r1
CONTAINER-RUNTIME containerd://1.5.13-k3s1
fluid 0.8.2

Describe the bug

use example dataset and pod yaml

it have some error

#1.create dataset
cat > dataset.yaml <<EOF
apiVersion: data.fluid.io/v1alpha1
kind: Dataset
metadata:
  name: demo
spec:
  mounts:
    - mountPoint: https://mirrors.bit.edu.cn/apache/spark/
      name: spark
---
apiVersion: data.fluid.io/v1alpha1
kind: AlluxioRuntime
metadata:
  name: demo
spec:
  replicas: 1
  tieredstore:
    levels:
      - mediumtype: MEM
        path: /dev/shm
        quota: 2Gi
        high: "0.95"
        low: "0.7"

EOF

kubectl applt -f dataset.yaml

#2.create app use dataset
cat > app.yaml <<EOF
apiVersion: v1
kind: Pod
metadata:
  name: demo-app
spec:
  nodeSelector:
      kubernetes.io/hostname: node-11
  containers:
    - name: demo
      image: nginx
      volumeMounts:
        - mountPath: /data
          name: demo
  volumes:
    - name: demo
      persistentVolumeClaim:
        claimName: demo
EOF
kubectl apply -f app.yaml

#3.check k8s app pod status

kubectl describe pods demo-app
---

Events:
  Type     Reason       Age   From               Message
  ----     ------       ----  ----               -------
  Normal   Scheduled    32s   default-scheduler  Successfully assigned default/demo-app to node-11
  Warning  FailedMount  3s    kubelet            MountVolume.SetUp failed for volume "default-demo" : rpc error: code = InvalidArgument desc = exit status 1


#4.check k8s fluid csi pod status

kubectl -n fluid-system exec -it csi-nodeplugin-fluid-w5r2t -c plugins bash


bash-5.1# cat /etc/os-release 
NAME="Alpine Linux"
ID=alpine
VERSION_ID=3.16.4
PRETTY_NAME="Alpine Linux v3.16"
HOME_URL="https://alpinelinux.org/"
BUG_REPORT_URL="https://gitlab.alpinelinux.org/alpine/aports/-/issues"
bash-5.1# cat /proc/mounts | wc -c
7030
bash-5.1# mount
bash-5.1# 
bash-5.1# 


After change csi base docker image, app pod mount successful.

#2612

What you expect to happen:

How to reproduce it

Additional Information

@StephenLau007 StephenLau007 added the bug Something isn't working label Feb 17, 2023
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