Skip to content
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 "volume2" : invalid character 's' after object key:value pair #9

Closed
OmpahDev opened this issue Jan 15, 2019 · 8 comments

Comments

@OmpahDev
Copy link

OmpahDev commented Jan 15, 2019

This is similar to but not the same as closed issue #3.

I'm trying to create 2 volumes:

      volumes:
        - name: volume
          flexVolume:
            driver: "azure/blobfuse"
            readOnly: false
            secretRef:
              name: blobfusecreds
            options:
              container: repos
              tmppath: /tmp/blobfuse
              mountoptions: "--file-cache-timeout-in-seconds=120 --use-https=true"
        - name: volume2
          flexVolume:
            driver: "azure/blobfuse"
            readOnly: false
            secretRef:
              name: blobfusecreds
            options:
              container: projects
              tmppath: /tmp/blobfuse
              mountoptions: "--file-cache-timeout-in-seconds=120 --use-https=true"

and it fails with

"MountVolume.SetUp failed for volume "volume2" : invalid character 's' after object key:value pair"

This is preventing the container from starting, so there's no additional logs I can give.

I am running on AKS with K8 version 1.11.4. Blobfuse driver is installed.

@andyzhangx
Copy link
Collaborator

@sshorkey can you get the blobfuse-flexvol-installer.log log file by following:
https://github.com/Azure/kubernetes-volume-drivers/tree/master/flexvolume/blobfuse#debugging-skills
and also you may try removing a mountoption with mountoptions: "--file-cache-timeout-in-seconds=120

@OmpahDev
Copy link
Author

@andyzhangx Do you know where I can get that file? I'm on AKS and connecting using the cloud shell, I don't know where that log file is or how to get it...

@andyzhangx
Copy link
Collaborator

@sshorkey could you remove the mountoptions in the config and retry, that will narrow down the issue.

@andyzhangx
Copy link
Collaborator

you could ssh to one node with problem for diagnostics:
https://docs.microsoft.com/en-us/azure/aks/ssh

@andyzhangx
Copy link
Collaborator

hi @sshorkey for diagnostics, you may refer to this case: #12, it could help you narrow down the issue.

@andyzhangx
Copy link
Collaborator

@sshorkey thanks for reporting, mcr.microsoft.com/k8s/flexvolume/blobfuse-flexvolume:1.0.8 would fix this issue, related PR: #13
You could use following way to update the blobfuse driver manually:
https://github.com/Azure/kubernetes-volume-drivers/blob/master/flexvolume/blobfuse/install-blobfuse-manually.md#3-install-blobfuse-flexvolume-driver-on-every-agent-node

@andyzhangx
Copy link
Collaborator

correct way to update the blobfuse driver on AKS:

kubectl delete ds blobfuse-flexvol-installer -n flex
kubectl apply -f https://raw.githubusercontent.com/Azure/kubernetes-volume-drivers/master/flexvolume/blobfuse/deployment/blobfuse-flexvol-installer-1.9.yaml

@andyzhangx
Copy link
Collaborator

Let me know if you have any question, thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants