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

Launch kpi_forecast tasks in derived-datasets #1387

Merged
merged 1 commit into from
Oct 19, 2021
Merged

Conversation

jklukas
Copy link
Contributor

@jklukas jklukas commented Oct 19, 2021

Since the airflow upgrade in
#1377
these tasks are failing with:

ERROR: (gcloud.container.clusters.get-credentials) ResponseError: code=403, message=Required "container.clusters.get" permission(s) for "projects/moz-fx-data-shared-prod/zones/us-central1-a/clusters/bq-load-gke-1"

These tasks should be writing to shared-prod, but accessing the GKE cluster
using the default connection and project.

Since the airflow upgrade in
#1377
these tasks are failing with:

> ERROR: (gcloud.container.clusters.get-credentials) ResponseError: code=403, message=Required "container.clusters.get" permission(s) for "projects/moz-fx-data-shared-prod/zones/us-central1-a/clusters/bq-load-gke-1"

These tasks should be writing to shared-prod, but accessing the GKE cluster
using the default connection and project.
dataset_id,
table_id,
gcp_conn_id="google_cloud_derived_datasets",
project_id='moz-fx-data-derived-datasets',
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The docstring lists project_id as required, so removing default and changing position. In practice, all calls to this function are setting project_id already.

Note that for this function project_id refers to the destination table location rather than where the task is running.

@@ -39,7 +39,6 @@ def simpleprophet_forecast(
return GKEPodOperator(
task_id=task_id,
gcp_conn_id=gcp_conn_id,
project_id=project_id,
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We don't want to pass in project_id here, but rather use the default in GKEPodOperator

@jklukas jklukas merged commit 0e843f6 into main Oct 19, 2021
@jklukas jklukas deleted the kpi-forecast-project branch October 19, 2021 13:17
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