BigQueryDataTransferServiceStartTransferRunsOperator got Access Denied error on long-running migration jobs. #37557
Labels
area:providers
good first issue
kind:bug
This is a clearly a bug
provider:google
Google (including GCP) related issues
Apache Airflow Provider(s)
google
Versions of Apache Airflow Providers
latest
Apache Airflow version
2.3.x ~ latest
Operating System
Debian GNU/Linux 11 (bullseye)
Deployment
Official Apache Airflow Helm Chart
Deployment details
deployed on EKS cluster with customized Airflow Helm chart based on the official chart
What happened
BigQueryDataTransferServiceStartTransferRunsOperator
gotAccess Denied
error on long-running migration jobs.Especially, when BigQuery Data Transfer job triggered by Airflow operator, exceeds one hour, it fails due to the expiration of the credential (default lifespan = 1 hour).
But, I sometimes experienced the same
Access Denied
issue even on the job that has been submitted for less than 10 minutes.(those DTS job error logs can also be seen on BigQuery Data transfer console)
At first, I thought it was a token expiration issue, so I attempted to refresh the token; however, it did not have any effect on resolving the issue.
What you think should happen instead
BigQueryDataTransferServiceStartTransferRunsOperator
task has to be success regardless of the running duration of migration jobs.Access Denied
issue even on the job that has been submitted for less than 10 minutes. (So, I guess it is the issue on the GCP itself)How to reproduce
Anything else
Related issue:
Related MR:
Related Google BigQuery Docs:
Error: Access Denied: ... Permission bigquery.tables.get denied on table ...
Resolution: Confirm that the BigQuery Data Transfer Service service agent is granted the bigquery.dataEditor role on the target dataset. This grant is automatically applied when creating and updating the transfer, but it's possible that the access policy was modified manually afterwards. To regrant the permission, see Grant access to a dataset.
Are you willing to submit PR?
Code of Conduct
The text was updated successfully, but these errors were encountered: