fstab / cifs

CIFS Flexvolume Plugin for Kubernetes
MIT License
212 stars 49 forks source link

no volume plugin matched #8

Open lomori opened 5 years ago

lomori commented 5 years ago

I'm following the instructions but keep getting E0709 11:41:16.026163 13823 desired_state_of_world_populator.go:289] Failed to add volume "cifs" (specName: "cifs") for pod "f31d6a76-a25f-11e9-bbc6-005056bb6d71" to desiredStateOfWorld. err=failed to get Plugin from volumeSpec for volume "cifs" err=no volume plugin matched.

The cifs script was manually copied to the directory mentioned in the document and I can confirm it is there and executable on all nodes. I'm running OpenShift Origin 3.9. Any idea why the flexVolume controller can't find the plugin?

I've also checked my configuration and volume-plugin-dir is not being defined. I guess it defaults to the subdirectory described in the document?

Regards, Luiz

tysen514 commented 4 years ago

Did you get this figured out? I'm having the same issue and it has me stumped.

lomori commented 4 years ago

Unfortunately, no, sorry...

tysen514 commented 4 years ago

I got it! I literally stumbled onto my issue. For the sake of anyone else who might stumble onto this... I deployed kubernetes with kubespray. Kubespray changes the path to the default plugin directory. Kubernetes isn't looking for the plugin at the path specified in the plugin install directions. If someone also happened to install kubernetes with a helper script like kubespray, check the path kubernetes is looking for storage plugins.

For me, the default path where kubespray says volume plugins should be installed was: /var/lib/kubelet/volume-plugins

I hope that helps someone.

shengzhou1216 commented 3 years ago

same issue for minikube, i used the default plugin location as mentioned in doc , but still doesn't work . somebody help