-
Notifications
You must be signed in to change notification settings - Fork 16.5k
Closed
Labels
area:corearea:providerskind:bugThis is a clearly a bugThis is a clearly a bugneeds-triagelabel for new issues that we didn't triage yetlabel for new issues that we didn't triage yetprovider:googleGoogle (including GCP) related issuesGoogle (including GCP) related issues
Description
Apache Airflow version
3.1.3
If "Other Airflow 2/3 version" selected, which one?
No response
What happened?
When instantiating a CloudSqlDatabaseHook here we can see that the public_ip attribute gets populated from the host provided in the connection.
I'm using a Cloud SQL Database connection, originally without a host.
This then leads to here where an error will be raised.
The error message "The location parameter needs to be set in connection" is incorrect and misleading. It should say something related to the public IP / host being missing.
What you think should happen instead?
The error message should say "The host needs to be set in connection" OR "The public IP derived from the host set in connection is missing"
How to reproduce
- Create a "Cloud SQL Database" connection in airflow without a host
- Use a DAG with a
CloudSQLExecuteQueryOperatorreferencing to that connection with thegcp_cloudsql_conn_idparameter - Voilaa
Operating System
OS X 14.4.1 (23E224)
Versions of Apache Airflow Providers
19.1
Deployment
Official Apache Airflow Helm Chart
Deployment details
No response
Anything else?
No response
Are you willing to submit PR?
- Yes I am willing to submit a PR!
Code of Conduct
- I agree to follow this project's Code of Conduct
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
area:corearea:providerskind:bugThis is a clearly a bugThis is a clearly a bugneeds-triagelabel for new issues that we didn't triage yetlabel for new issues that we didn't triage yetprovider:googleGoogle (including GCP) related issuesGoogle (including GCP) related issues