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

Passing billing-project while creating bucket for storage-client-library #1050

Merged

Conversation

raj-prince
Copy link
Collaborator

@raj-prince raj-prince commented Apr 9, 2023

Description

Right now, gcsfuse doesn't consider the value of --billing-project for go-storage-client library. This leads to an issue for requester-pays bucket.

We get the below issue:
Error 400: Bucket is a requester pays bucket but no user project provided., required

Link to the issue in case of a bug fix.

https://yaqs.corp.google.com/eng/q/5169042756198203392

Testing details

  1. Manual
  • Created a service account with object.viewer role.

  • Created a bucket with requester pays enabled (check the configuration) for the selected bucket.

  • When tried mounting without billing-project value -
    daemonize.Run: readFromProcess: sub-process: mountWithArgs: mountWithConn: fs.NewServer: create file system: SetUpBucket: Error in iterating through objects: googleapi: Error 400: Bucket is a requester pays bucket but no user project provided., required

  • When tried mounting with a billing-project which doesn’t have serviceusage.services.use permission -
    daemonize.Run: readFromProcess: sub-process: mountWithArgs: mountWithConn: fs.NewServer: create file system: SetUpBucket: Error in iterating through objects: googleapi: Error 403: princer-requster-pays-bucket-a@****.iam.gserviceaccount.com does not have serviceusage.services.use access to the Google Cloud project. Permission 'serviceusage.services.use' denied on resource (or it may not exist)., forbidden

  • When tried mounting with project-id by providing service usage admin permission to the service account. Mounting succeeded.

  1. Unit tests - working fine.
  2. Integration tests - automation.

@raj-prince raj-prince self-assigned this Apr 9, 2023
@raj-prince raj-prince merged commit d97394e into GoogleCloudPlatform:master Apr 11, 2023
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

Successfully merging this pull request may close these issues.

2 participants