[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.
On VSphere, I've mounted an unformatted 1TB hard disk on all 3 master nodes:
lsblk shows 1TB drive as /sdb as expected
Executed the following commands:
kubectl directpv list drives
ERROR unable to complete the discovery; context deadline exceeded
No drives are available to initializekubectl 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
Interestingly kubectl directpv info
shows ERROR DirectPV not installed
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.
Please refer https://github.com/minio/directpv/tree/master/docs