-
Notifications
You must be signed in to change notification settings - Fork 56
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
MountVolume.SetUp failed for volume "test" : invalid character '/' looking for beginning of value #14
Comments
hi, could you try this locally by below commands first, seems there is sth wrong with the account key:
|
Well here's the thing... The exact same setup - secrets, container etc. - still works perfectly on another cluster with a slightly older version of the BlobFuse driver. So we're pretty sure it must be a regression that has crept in since then. What's the best way to help determine exactly which version of the driver that is working for us, so we can zero in on the potentially damaging changes in the codebase? Here's the logs from a (successful) startup on that cluster for reference.
|
Here is the way to get the version of driver:
the latest k8s verison is and could you also try your account key in a Linux VM, it does not work now:
You may install install blobfuse first, refer to https://github.com/Azure/azure-storage-fuse/wiki/1.-Installation |
also, you k8s cluster is 1.8.7 which is very old, I cannot set up such old cluster now, cannot repro in my k8s cluster. I would suggest use a newer k8s version, e.g. 1.12.x to try again. |
|
You can contact Prajwal who is trying to get this working directly at [email protected] for more details. |
I have the same issue on CoreOS. Blobfuse is installed and works in /run/torcx/bin/blobfuse but flexvolume expects it to be in /usr/bin/blobfuse due to the hardcoded path: kubernetes-volume-drivers/flexvolume/blobfuse/deployment/blobfuse-flexvol-installer/blobfuse Line 5 in ec19f44
|
@IvanovOleg thanks for reporting, could your try edit |
@andyzhangx
|
@IvanovOleg could you try below commands on that VM directly, I am not sure whether blobfuse works on coreos:
|
@andyzhangx It works
I also tried to reproduce command from log and found that this directory doesn't exist: this exists: |
@IvanovOleg mkdir does not work?
what is your kubelet? is it a container or daemon process? and your k8s version? |
Kubelet is a systemd service. K8S 1.13.4 |
@IvanovOleg How can I set up a k8s cluster on coreos? |
It's painful) I did it using a custom terraform configuration + torcx images. |
@IvanovOleg Not sure whether your kubelet is a container or not, it's quite different, you could check by: |
@andyzhangx It's a binary file |
@IvanovOleg then why |
@andyzhangx I will investigate it on CoreOs anyway, because I need this feature working. I will let you know as soon as I get results. Btw I have no issues with the other persistent volume types (azure disks). |
@andyzhangx Here is what I've found on the agent node by executing I think I know the reason. There are those vars set in the kubelet env file in my configuration, because I use blobfuse on the node itself as well. I will try to move them to the different env file. |
kubernetes-volume-drivers/flexvolume/blobfuse/deployment/blobfuse-flexvol-installer/blobfuse Line 78 in ec19f44
|
@andyzhangx it works, but I have AZURE_STORAGE_SAS_TOKEN set and looks like we can't have key and token at the same time |
@IvanovOleg Yes, looks like I need to support
|
@andyzhangx When can I expect a new release of the blobfuse-flexvolume with custom binary path and sas token support? |
I got the same error while trying to mount an SMB share with flexvolume smb. Note that I didn't deploy to azure but to an on-premise PKS cluster. |
@odedia could you provide following info:
|
Information below. SMB driver version:
Pod
Output from
|
@odedia you need to install jq, and cifs-utils on work node:
what is |
It's an Enterprise Kubernetes offering from Pivotal and VMware. Thanks for the information, i'll try to get this working from the daemon set. |
I forked the repo to let
I didn't do a pull request since I made the changes specifically to the smb version and removed the rest. |
What happened:
A mount that had worked just days before failed to mount.
To investigate we simplified to the test example on https://github.com/Azure/kubernetes-volume-drivers/tree/master/flexvolume/blobfuse
This exact test example has worked previously just days ago (clean copy-paste from our docs right to the machine, no chance of human error). This morning it broke.
We tried to mount a test container using the below secret and yaml.
We investigated using:
kubectl describe pod nginx-flex-blobfuse
We found this error message
Daemonset start:
kubectl create -f https://raw.githubusercontent.com/Azure/kubernetes-volume-drivers/master/flexvolume/blobfuse/deployment/blobfuse-flexvol-installer-1.8.yaml
Secret setup:
kubectl create secret generic blobfusecreds --from-literal accountname=test4anjohansen47msft --from-literal accountkey="v0+dpbq9kpd5oOvab7s9/ywe6fhzMzHrxQPgu7BTm+I8e7AUWRlHCtU0RCdqdyvtyFWe9+PpN/oZIFsW/Xf3GA==" --type="azure/blobfuse"
YAML for the pod:
What you expected to happen:
How to reproduce it:
Anything else we need to know?:
Here's the /var/log/blobfuse-driver.log log from the node:
Log from the pod:
Environment:
kubectl version
):uname -a
):The text was updated successfully, but these errors were encountered: