Issue description :
I have a Linux ubuntu 20.04 VM1 at location Central India as the primary location . Then i created a storage account which has the following properties .
Replication
:
Read-access geo-zone-redundant storage (RA-GZRS)
Primary/Secondary Location
:
Primary: Central India, Secondary: South India
Container name -DATA
Then i followed the step as illustrated in the article to install Blob-fuse and configure https://learn.microsoft.com/en-us/azure/storage/blobs/storage-how-to-mount-container-linux
It worked . This was at the primary site Linux ubuntu 20.04 VM1 at Central india. I made sure that the fuse_connection.cfg has the below details :
accountName myaccount
accountKey storageaccesskey
containerName mycontainer
Since the storage account is Read only that means i should be able to read the container from the secondary location . Then i created a new VM at South india by name called Linux ubuntu 20.04 VM1 . And tried to mount the container through blobfuse . In the fuse_connection.cfg i made sure that
accountName myaccount-secondary
accountKey storageaccesskey
containerName mycontainer
I get the error message as listed below : Why i am getting the below error message ?
root@linuxvm2:~# Unable to start blobfuse due to a lack of credentials. Please check the readme for valid auth setups.
Unmounting blobfuse.
Unmounted blobfuse successfully.
"When read access to the secondary is enabled, your application can be read from the secondary endpoint as well as from the primary endpoint. The secondary endpoint appends the suffix –secondary to the account name. For example, if your primary endpoint for Blob storage is myaccount.blob.core.windows.net, then the secondary endpoint is myaccount-secondary.blob.core.windows.net. The account access keys for your storage account are the same for both the primary and secondary endpoints."
https://learn.microsoft.com/en-us/azure/storage/common/storage-redundancy