-
Notifications
You must be signed in to change notification settings - Fork 27
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
failed to provision volume with StorageClass #116
Comments
i have find the reason. But i don't understand why this variable $(KUBE_NODE_NAME) is used for getting storage pools? I have storage pool on different vms. |
Hello! You don't need a storage pool, but at least a satellite running on the host. This can be directly on the host or as a daemonset (like the one configured by the piraeus-operator. The LINSTOR satellite is responsible for creating the DRBD diskless resource that the node attaches to, the CSI-Node pod just prepares/mounts the device created by the satellite. |
Does this storage work like openebs with block devices? I mean, every k8-node must have the same disks? Can this storage work in k8-cluster with external pools (on non-clustered vms)? |
No you, can have completely different disk and storage pools on every node
Yes. the only requirement is that your kubernetes cluster nodes are part of the overall linstor cluster (i.e. they have to have a satellite configured). The kubernetes nodes don't need a disk configured. |
i have linstor with 2 nodes with lvm-thin:
linstor storage-pool list
┊ data ┊ linstor-ctrl ┊ LVM_THIN ┊ drbdpool/thinpool ┊ 19.96 GiB ┊ 19.96 GiB ┊ True ┊ Ok ┊
┊ data ┊ linstor-satel1 ┊ LVM_THIN ┊ drbdpool/thinpool ┊ 19.96 GiB ┊ 19.96 GiB ┊ True ┊ Ok ┊
and group named linstor-basic-storage.
i deployed csi-driver linstor in my k8-cluster. created sc, pvc and got error in command
kubectl describe pvc my-first-linstor-volume
Warning ProvisioningFailed 13m (x16 over 51m) linstor.csi.linbit.com_linstor-csi-controller-0_b3c98016-4e61-4650-ab86-2c1167f5d047 failed to provision volume with StorageClass "linstor-basic-storage": error generating accessibility requirements: no available topology found
my sc:
apiVersion: storage.k8s.io/v1
kind: StorageClass
metadata:
name: linstor-basic-storage
provisioner: linstor.csi.linbit.com
parameters:
placementCount: "2"
storagePool: "data"
resourceGroup: "linstor-basic-storage"
my pvc:
kind: PersistentVolumeClaim
apiVersion: v1
metadata:
name: my-first-linstor-volume
spec:
storageClassName: linstor-basic-storage
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 500Mi
How can i solve this problem?
The text was updated successfully, but these errors were encountered: