Andy Shinn created AIRFLOW-4893:
-----------------------------------
Summary: Location parameter error in Google Cloud SQL Connection
even when set
Key: AIRFLOW-4893
URL: https://issues.apache.org/jira/browse/AIRFLOW-4893
Project: Apache Airflow
Issue Type: Bug
Components: gcp
Affects Versions: 1.10.3
Reporter: Andy Shinn
I think there is a bug in Google Cloud SQL Connection at
[https://github.com/apache/airflow/blob/12a2a414662c39a2484721ee67d9b1e61d384edd/airflow/contrib/hooks/gcp_sql_hook.py#L881-L882].
When creating a connection with the Extra field containing JSON with location
set and running a task using it still fails with the error:
{code:java}
The location parameter needs to be set in connection{code}
This particular connection is using Cloud SQL Proxy and doesn't need a
public_ip. The connection does work if i put a fake IP in the Host field to
satisfy the check.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)