-
Notifications
You must be signed in to change notification settings - Fork 130
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
fix: added missing zone parameter in gcp_compute_instance_template #516
base: master
Are you sure you want to change the base?
Conversation
Thanks for the PR! Ideally we would have added this field to the disk type itself (since templates are not regional), but I could imagine that'll constitute a backwards-incompatible change (For those that figured this out and fixed it already). I'll get it merged in. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since compute_instance_template is now a resource that has integration testing, can you update the integration test and try it out?
Adding that zone-specific config in the test would help prevent regressions.
The test would be:
ansible-test integration gcp_compute_instance_template -vvv
You can ignore the failing integration test - that's a config fix that I can merge in (integration tests should not run on external contributor PRs) |
I added additional zone-specific tasks to |
Thanks for adding those! I ran the tests and it looks like it's failing? The first error was around zone not being a supported parameter: that can be fixed by ensuring that Even after that, I get:
Which makes me wonder if there's still a bug in the disk type resolution? If the test can be fixed to work, I'm happy to merge. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi! it looks like the test fails today. As noted in the other comment, if the test (and likely the code it exercises) can be fixed, happy to merge the feature.
@@ -157,6 +157,92 @@ | |||
assert: | |||
that: | |||
- results['resources'] | length == 0 | |||
#---------------------------------------------------------- | |||
- name: create a instance template with ssd disk type |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See #516 (comment).
I am seeing errors with this too: |
Even better if you specify zone you get |
SUMMARY
gcp_compute_instance_template
is missingzone
parameterISSUE TYPE
COMPONENT NAME
module
gcp_compute_instance_template
ADDITIONAL INFORMATION
I was trying to create an instance template by providing
pd_ssd
disk typeIt turned out that function inside module requires
zone
parameterWhen I run
ansible-playbook playbook.yaml
I get this error: