minio/directpv

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

parseltongued opened this issue · 2 comments

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

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