ansible-collections / ansible-collections/google.cloud

Invalid request: Invalid full instance name

Open Beginner friendly
#442 1 comment 0 reactions 0 assignees View on GitHub
stale
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

Open the contributing 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.