minio / directpv

Kubernetes CSI driver for Direct Attached Storage :minidisc:
https://directpv.io
GNU Affero General Public License v3.0
596 stars 88 forks source link

[OKD] kubectl directpv list drives - No drives are available to initialize #903

Closed parseltongued closed 6 months ago

parseltongued commented 6 months ago

Describe the bug kubectl directpv list drives - timeout and shows No drives are available to initialize

kubectl directpv list drives ERROR unable to complete the discovery; context deadline exceeded No drives are available to initialize

To Reproduce Installed direct-pv driver via legacy yaml and applied successfully. Screenshot from 2024-04-18 22-43-25

On VSphere, I've mounted an unformatted 1TB hard disk on all 3 master nodes:

lsblk shows 1TB drive as /sdb as expected image

Executed the following commands:

kubectl directpv list drives ERROR unable to complete the discovery; context deadline exceeded No drives are available to initialize

kubectl directpv list drives --drives=sdb ERROR unable to complete the discovery; context deadline exceeded No drives are available to initialize

Expected behavior kubectl directpv list drives should show 3 master nodes and sdb drive

Screenshots and logs StorageClasses installed post directpv driver installation image Interestingly kubectl directpv info shows ERROR DirectPV not installed Screenshot from 2024-04-19 11-39-57

Deployment information (please complete the following information): DirectPV version: directpv version v4.0.10 OKD/Openshift Version: 4.15.0-0.okd-2024-03-10-010116 OS info: Red Hat Enterprise Linux 9.3 (Plow) Kernel version: v1.28.2-3598+6e2789bbd58938-dirty

balamurugana commented 6 months ago

You should attach drives to nodes, not format/mount them.

balamurugana commented 6 months ago

Please refer https://github.com/minio/directpv/tree/master/docs