How to use blobfuse2 with GitHub OIDC via azure/login? #1449
-
I am struggling with I am using a GitHub's runner, I am NOT using self-hosted runners. Is this meant to work? I thought since I have a working Does anyone have a working workflow? GitHub Workflowjobs:
azure:
name: Azure
runs-on: ubuntu-latest
steps:
- name: Azure login
uses: azure/login@v2
with:
client-id: ${{ secrets.AZURE_CLIENT_ID }}
tenant-id: ${{ secrets.AZURE_TENANT_ID }}
subscription-id: ${{ secrets.AZURE_SUBSCRIPTION_ID }}
- name: az direct
run: |
az account show
az group list
az storage account list
az storage container list --account-name ${{secrets.AZURE_STORAGE_ACCOUNT}}
az storage container-rm list --storage-account ${{secrets.AZURE_STORAGE_ACCOUNT}}
az storage blob list --account-name ${{secrets.AZURE_STORAGE_ACCOUNT}} --container-name ${{secrets.AZURE_STORAGE_COUNTAINER}} --auth-mode login --output table
- name: Blob FUSE
continue-on-error: true
run: |
sudo mkdir -p /mnt/blobfuse2
sudo mkdir -p /mnt/blobfuse2tmp
sudo blobfuse2 mount /mnt/blobfuse2 --config-file=config.yaml --tmp-path=/mnt/blobfuse2tmp Blobfuse2
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
Hi @berney. Thanks for reaching out. For using
|
Beta Was this translation helpful? Give feedback.
@berney, thanks for the detail explanation. The
az login
error is because you are trying to mount blobfuse2 assudo
user whereas you have logged in using az cli as regular user.sudo blobfuse2 mount /mnt/blobfuse2 --config-file=config.yaml --tmp-path=/mnt/blobfuse2tmp
You can replicate this if you run any of the above az cli commands as sudo user. For example,
sudo az account show | jq
Please try mounting as regular user and see if are getting the same error.