GCP and fuse
by DBabo from LinuxQuestions.org on (#5GPX8)
Hello,
i can't figure out how to use a service account while mounting a bucket.
how do i properly setup a service account and where do i use its json ?
as of right now I only created a service account and created a key for it. Didn't grant anything. After that, I replaced the /root/.config/gcloud/application_default_credentials.json with the key file for the service account.
When i try to mount - i get :
Code:[root@dell5000 ~]# mount /media/test/
Calling gcsfuse with arguments: -o nosuid -o nodev --gid 1000 -o rw -o noexec --uid 1000 -o allow_other media_storage_family_2021 /media/test
2021/04/16 23:46:46.900311 Using mount point: /media/test
2021/04/16 23:46:46.911456 Opening GCS connection...
daemonize.Run: readFromProcess: sub-process: mountWithArgs: mountWithConn: fs.NewServer: create file system: SetUpBucket: OpenBucket: Bad credentials for bucket "media_storage_family_2021". Check the bucket name and your credentials.
running gcsfuse: exit status 1
i read
https://github.com/GoogleCloudPlatfo...cs/mounting.md
https://blog.josephziegler.com/2019/...loud-fuse.html
but still confused.
Thank you in advance


i can't figure out how to use a service account while mounting a bucket.
how do i properly setup a service account and where do i use its json ?
as of right now I only created a service account and created a key for it. Didn't grant anything. After that, I replaced the /root/.config/gcloud/application_default_credentials.json with the key file for the service account.
When i try to mount - i get :
Code:[root@dell5000 ~]# mount /media/test/
Calling gcsfuse with arguments: -o nosuid -o nodev --gid 1000 -o rw -o noexec --uid 1000 -o allow_other media_storage_family_2021 /media/test
2021/04/16 23:46:46.900311 Using mount point: /media/test
2021/04/16 23:46:46.911456 Opening GCS connection...
daemonize.Run: readFromProcess: sub-process: mountWithArgs: mountWithConn: fs.NewServer: create file system: SetUpBucket: OpenBucket: Bad credentials for bucket "media_storage_family_2021". Check the bucket name and your credentials.
running gcsfuse: exit status 1
i read
https://github.com/GoogleCloudPlatfo...cs/mounting.md
https://blog.josephziegler.com/2019/...loud-fuse.html
but still confused.
Thank you in advance