ansible-collections / ansible-collections/google.cloud
Invalid request: Invalid full instance name
- Dominant language
- Python
- Stars
- 105
- Forks
- 144
- Avg merge
- 5d 10h
- Merged PRs (30d)
- 4
Description
When adding a simple string like 'test' in the 'name:' key for the gcp cloud sql instance name, it returns the following error with the project id automatically prepended (redacted as :
"msg": [
{
"domain": "global",
"message": "Invalid request: Invalid full instance name: :.",
"reason": "invalid"
}
https://github.com/ansible-collections/google.cloud/blob/e7e666dd9307f8e9b19b7a9fd01847a2b885753a/plugins/modules/gcp_sql_instance.py#L830
Using -vvvv does not generate any further errors for this failure.
Contributor guide
Research direction
Inspect plugins/modules/gcp_sql_instance.py around line 830 and reproduce the failure with a simple name such as 'test'. Trace how the project ID and instance name are assembled; done means a valid Cloud SQL instance name is accepted without producing the malformed full name shown in the issue.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- ansible, gcp, python
- Domain
- cloud, databases
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Active
- Clarity
- Mostly clear
- Newbie friendliness
- 68/100