Azure / azure-storage-fuse

A virtual file system adapter for Azure Blob storage
Other
647 stars 204 forks source link

unable to mount container with private link to a vm #1399

Closed vahsek300501 closed 2 months ago

vahsek300501 commented 2 months ago

Which version of blobfuse was used?

blobfuse2-2.2.1

Which OS distribution and version are you using?

Ubuntu 20.04

If relevant, please share your mount command.

blobfuse2 mount /mnt/mountpoint/ --config-file config.yaml foreground &

What was the issue encountered?

I am getting authentication issue Error: failed to initialize new pipeline [failed to authenticate credentials for azstorage]. I have the following config file

image

to generate the sas token I went to container and then generated the sas token by right clicking the container. The storage account is in a vnet attached using private link

Have you found a mitigation/solution?

NO

Please share logs if available.

ashruti-msft commented 2 months ago

When generating the SAS token did you give it "list" permission? Check the permissions given and also the expiry date.

vahsek300501 commented 2 months ago

Yes I gave all the permissions when generating the SAS token. Along with this the following was the error

image

ashruti-msft commented 2 months ago

Does your DNS have correct entry to resolve public endpoint to private endpoint? Also, you should use the foreground flag --foreground

vahsek300501 commented 2 months ago

Yes I have an entry in the DNS. Sure I will try with the flag

vahsek300501 commented 2 months ago

Hi the issue got resolve. Thanks

vibhansa-msft commented 2 months ago

What were we missing here? Kindly share to help other customers facing similar issues.