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
Unable to mount volume #1790
Comments
@r-moiseev Can you check your kubelet logs for volume mount errors such as |
@zhwenh Seems to be a Kubernetes issue/PR description you have posted. Could you elaborate on your comments? I don't see how this is directly related to this issue. |
I have this error in kubelet:
And yes, 'no volume plugin matched' is there How do i fix this on ubuntu? |
@r-moiseev The |
@galexrt rook-operator has no |
@r-moiseev But your kubelets have the flexvolume dir flag set? If so, delete the |
Manually added this variable to helm chart, redeployed operator, recreated agent, and its working now. Thank you. |
@r-moiseev To document here the helm chart also has an option for it https://rook.io/docs/rook/v0.7/helm-operator.html#configuration |
for k8s v1.11.0 & ubuntu 16.04 setting
|
I'm running on openshift-enterprise 3.9.33 with rook v0.8 and I'm having this issue even when the FLEXVOLUME_DIR_PATH is set.
I've deleted everything and started from scratch just to make everthing got restarted including the agent deamonsets. Also, I've made sure to follow every single step exactly from here https://github.com/rook/rook/blob/master/Documentation/openshift.md Willing to go the extra mile to get this working. |
I was able to resolve this by changing the FLEXVOLUME_DIR_PATH var to /etc/origin/kubelet-plugins/volume/exec . Apparently, the type of openshift install you use affects where the plugin path resides: https://docs.openshift.org/latest/install_config/persistent_storage/persistent_storage_flex_volume.html |
This speaks to the big disappointment of no longer being able to programmatically "discover" the right path the Kubelet will be looking in for flexvolumes, as discussed in #1330 (comment). We cannot do it programmatically from the agent, but I'm wondering if we can improve our documentation to help users figure out where the Kubelet will be looking, so that they know what exactly to set |
@jbw976 I'm working on an overhaul of the flexvolume docs which will also add OpenShift doc links and readd Atomic. |
The docs have been overhauled, please give it a look here: https://rook.io/docs/rook/v0.8/flexvolume.html. |
Future travelers: I had all these symptoms but in my case it was resolved by restarting the kubelet. I followed an old guide for k8s 1.7 https://github.com/rook/rook/blob/master/Documentation/common-issues.md#kubelet-restart |
thanks @ToroNZ on kubernetes 1.12 and rook/ceph 0.8 and had to restart kubelet as well on 1/3 workers. All plugin directories were there otherwise, and restart fixed a stuck |
same issue, but with |
Is this a bug report or feature request?
Bug Report
What happened:
I have deployed rook-operator with helm chart and very basic cluster and block-storage pool from doc.
When i created PVC, PV was created, but can not be mounted to a pod. I have this:
I can see that volume was successfully created in operator logs
What you expected to happen:
Volume mounted to a pod
How to reproduce it (minimal and precise):
Deploy rook-alpha/rook with helm
Create Cluster as described in quickstart
Create Blockstorage Pool as described in quickstart
Create SC for this Pool
Create PVC
Environment:
uname -a
): Linux dev1-master-0 4.13.0-1018-azure Apply crush map topology settings from the command line #21-Ubuntu SMP Thu May 17 13:58:38 UTC 2018 x86_64 x86_64 x86_64 GNU/Linuxrook version
inside of a Rook Pod): v0.7.1kubectl version
): 0.9.5ceph health
in the Rook toolbox): HEALTH_OKThe text was updated successfully, but these errors were encountered: