-
Notifications
You must be signed in to change notification settings - Fork 153
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] Restore action fails with OpenEBS cstor CSI Driver #1195
Comments
I tried installing openebs cStor driver on a kind cluster (Ubuntu machine), but, it looks like the pods are not transitioning to $ kubectl get pod -n openebs |
@oliverblaha Could you mention the platform that you used for installing iSCSI client? https://openebs.io/docs/user-guides/prerequisites |
This issue is marked as stale due to inactivity. Add a new comment to reactivate it. |
This is a bug. We can't use |
We can reproduce this with a sample YAML like:
Then:
|
This issue is marked as stale due to inactivity. Add a new comment to reactivate it. |
@shlokchaudhari9 I'm going to submit a PR to update the Steps To ReproduceFollow the instructions here to set up the CSI snapshot controller and the CSI Deploy this Nginx statefulset workload: cat<<EOF | kubectl apply -f -
apiVersion: apps/v1
kind: StatefulSet
metadata:
name: nginx
labels:
app: nginx
spec:
serviceName: nginx
replicas: 3
selector:
matchLabels:
app: nginx
template:
metadata:
labels:
app: nginx
spec:
containers:
- name: nginx
image: nginx
volumeClaimTemplates:
- metadata:
name: www
spec:
accessModes: ["ReadWriteOnce"]
storageClassName: csi-hostpath-sc
resources:
requests:
storage: 1Gi
EOF Confirm that the pods and their persistent volume claims are ready: kubectl get po,pvc Deploy this cat<<EOF | kubectl apply -f -
apiVersion: snapshot.storage.k8s.io/v1
kind: VolumeSnapshot
metadata:
name: nginx-sts
spec:
volumeSnapshotClassName: csi-hostpath-snapclass
source:
persistentVolumeClaimName: www-nginx-0 Confirm that the kubectl get vs,vsc Attempts to restore these PVCs will fail because Kubernetes require the cat EOF<< | kubectl apply -f -
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: restore-www-nginx-1
spec:
storageClassName: csi-hostpath-sc
dataSource:
name: nginx-sts
kind: VolumeSnapshot
apiGroup: snapshot.storage.k8s.io
accessModes:
- ReadWriteOnce
resources:
requests:
storage: "0"
EOF
The PersistentVolumeClaim "restore-www-nginx-1" is invalid: spec.resources[storage]: Invalid value: "0": must be greater than zero cat EOF<< | kubectl apply -f -
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: restore-www-nginx-1
spec:
storageClassName: csi-hostpath-sc
dataSource:
name: nginx-sts
kind: VolumeSnapshot
apiGroup: snapshot.storage.k8s.io
accessModes:
- ReadWriteOnce
The PersistentVolumeClaim "restore-www-nginx-1" is invalid: spec.resources[storage]: Required value |
Describe the bug
When running the Backup and Restore for MySQL app using CSI Snapshot functions at path ./examples/stable/mysql-csi-snapshot, following error is observed;
This bug is in continuation of the discussion that happened here
To Reproduce
Steps to reproduce the behavior:
snapshotClass
andstorageClass
fields in the blueprint before running it)restoreSize
in outputArtifacts.Expected behavior
restoreSize
field in create actionset should be a non-zero and non-negative value (equal to PVC resource storage request)Environment
Kubernetes Version/Provider: ...
Storage Provider: OpenEBS cStor CSI Driver
Cluster Size (#nodes): ...
Data Size: ...
The text was updated successfully, but these errors were encountered: