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

jivavolume keep pending #366

Open
631068264 opened this issue Jan 13, 2023 · 1 comment
Open

jivavolume keep pending #366

631068264 opened this issue Jan 13, 2023 · 1 comment

Comments

@631068264
Copy link

What steps did you take and what happened:
[A clear and concise description of what the bug is, and what commands you ran.)

Use helm install openebs-3.3.1

helm install openebs openebs-3.3.1.tgz --set jiva.enabled=true -n openebs

install success

kubectl get pod -n openebs

NAME                                           READY   STATUS    RESTARTS   AGE
openebs-jiva-csi-controller-0                  5/5     Running   0          116s
openebs-jiva-csi-node-5zv5g                    3/3     Running   0          116s
openebs-jiva-csi-node-ccps8                    3/3     Running   0          116s
openebs-jiva-csi-node-fwtzf                    3/3     Running   0          116s
openebs-jiva-operator-f994f6868-hftwx          1/1     Running   0          116s
openebs-localpv-provisioner-77c9bcfd96-n2nf8   1/1     Running   0          116s
openebs-ndm-8dbzp                              1/1     Running   0          116s
openebs-ndm-operator-5d55748dfd-cmv6n          1/1     Running   0          116s
openebs-ndm-rvcr8                              1/1     Running   0          116s
openebs-ndm-ztwxn                              1/1     Running   0          116s


Then I use this to test

kind: PersistentVolumeClaim
apiVersion: v1
metadata:
  name: example-jiva-csi-pvc
spec:
  storageClassName: openebs-jiva-csi-default
  accessModes:
    - ReadWriteOnce
  resources:
    requests:
      storage: 4Gi
---

apiVersion: apps/v1
kind: Deployment
metadata:
  name: busybox
  labels:
    app: busybox
spec:
  replicas: 1
  strategy:
    type: RollingUpdate
  selector:
    matchLabels:
      app: busybox
  template:
    metadata:
      labels:
        app: busybox
    spec:
      containers:
      - resources:
          limits:
            cpu: 0.5
        name: busybox
        image: busybox
        command: ['sh', '-c', 'echo Container 1 is Running ; sleep 3600']
        imagePullPolicy: IfNotPresent
        ports:
        - containerPort: 3306
          name: busybox
        volumeMounts:
        - mountPath: /var/lib/mysql
          name: demo-vol1
      volumes:
      - name: demo-vol1
        persistentVolumeClaim:
          claimName: example-jiva-csi-pvc

pod about pvc are running

pvc-7c04c4c0-8f23-44b2-b7d9-e5cb6a371922-jiva-ctrl-6c66f965hq5x   2/2     Running   0          17m
pvc-7c04c4c0-8f23-44b2-b7d9-e5cb6a371922-jiva-rep-0               1/1     Running   0          17m
pvc-7c04c4c0-8f23-44b2-b7d9-e5cb6a371922-jiva-rep-1               1/1     Running   1          17m
pvc-7c04c4c0-8f23-44b2-b7d9-e5cb6a371922-jiva-rep-2               1/1     Running   0          17m

the pvc create successfully
image

but pod cant't attach the volume
image

The jivavolume is pending not Ready

kubectl get jivavolume -n openebs

NAME                                       REPLICACOUNT   PHASE     STATUS
pvc-7c04c4c0-8f23-44b2-b7d9-e5cb6a371922                  Pending   

And I can't find any error log in jiva-ctl and jiva-rep

What did you expect to happen:

The output of the following commands will help us better understand what's going on:
(Pasting long output into a GitHub gist or other pastebin is fine.)

jiva-log.tar.gz

this contain jiva-ctrl and jiva-rep log

  • kubectl logs <jiva controller pod name> -n openebs (Optional)
  • kubectl logs <jiva replica pod name> -n openebs (Optional)
  • kubectl exec -it <jiva controller pod name> -n openebs -- jivactl ls

Anything else you would like to add:
[Miscellaneous information that will assist in solving the issue.]

Environment:

  • Jiva version 3.3.0
  • OpenEBS version 3.3.1
  • Kubernetes version (use kubectl version):
  • Kubernetes installer & version: 1.19.16
  • Cloud provider or hardware configuration:
  • OS (e.g. from /etc/os-release): CentOS Linux 7 (Core)
@631068264
Copy link
Author

631068264 commented Jan 16, 2023

Finally found this in openebs-jiva-operator

level=error msg="failed to bootstrap volume pvc-3dfd0744-51bf-41fd-a719-e9ab4e48360d, due to error: failed to get the pod disruption budget details: pvc-3dfd0744-51bf-41fd-a719-e9ab4e48360d-pdb: no matches for kind \"PodDisruptionBudget\" in version \"policy/v1\""

k8s 1.19.16 is too old for jiva 3.3.0 but the doc told me 1.80 or higher is OK .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant