Skip to content
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: Pin network-peering for terraform 0.12 #333

Merged
merged 1 commit into from
Mar 10, 2021

Conversation

deas
Copy link
Contributor

@deas deas commented Feb 9, 2021

The release of network-peering 3 which rolled to terraform 0.13 broke current master:

Step #1 - "tf plan validate all": Warning: Provider source not supported in Terraform v0.12
Step #1 - "tf plan validate all": 
Step #1 - "tf plan validate all":   on .terraform/modules/peering/modules/network-peering/versions.tf line 20, in terraform:
Step #1 - "tf plan validate all":   20:     google = {
Step #1 - "tf plan validate all":   21:       source  = "hashicorp/google"
Step #1 - "tf plan validate all":   22:       version = "<4.0,>= 2.12"
Step #1 - "tf plan validate all":   23:     }
Step #1 - "tf plan validate all": 
Step #1 - "tf plan validate all": A source was declared for provider google. Terraform v0.12 does not support
Step #1 - "tf plan validate all": the provider source attribute. It will be ignored.
Step #1 - "tf plan validate all": 
Step #1 - "tf plan validate all": 
Step #1 - "tf plan validate all": Error: Unsupported block type
Step #1 - "tf plan validate all": 
Step #1 - "tf plan validate all":   on .terraform/modules/peering/modules/network-peering/versions.tf line 26, in terraform:
Step #1 - "tf plan validate all":   26:   provider_meta "google" {
Step #1 - "tf plan validate all": 
Step #1 - "tf plan validate all": Blocks of type "provider_meta" are not expected here.

This PR fixed it for me.

@deas deas requested review from bharathkkb, rjerrems and a team as code owners February 9, 2021 12:57
Copy link
Member

@bharathkkb bharathkkb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR @deas
Could you target the develop branch which supports 0.13 instead and pin to 3.0

@deas
Copy link
Contributor Author

deas commented Feb 12, 2021

@bharathkkb Sure, but what about people naive like me trying out master? Any rough guess when develop will be ready to go into master?

@rjerrems
Copy link
Collaborator

It may be worthwhile considering a patch to master @bharathkkb if this is breaking people on version 0.12.x, given that is the supported version of terraform on master and what many people will be working with if they clone the repo rather than specifically targeting a release?

We can then update to version 3.0 with the next release along with support for 0.13, when that eventually happens.

@bharathkkb
Copy link
Member

@rjerrems sg, my only concern was that testing was broken on main due to our changes to tests in develop. This is a small change so should not be an issue.

@deas
Copy link
Contributor Author

deas commented Feb 23, 2021

A bit OT, but what's actually holding develop back from being merged into master?

Are there (many?) known direct or indirect (modules?) issues with example-foundation and terraform >= 0.13?

@bharathkkb
Copy link
Member

Hi @deas
The initial decision for having a develop branch was to

  • prevent breakage while we were transitioning upstream modules to use 0.13
  • update tests to accommodate new patterns

Both of these are now complete however we still need to manually validate some of the steps to ensure that our README instructions are up to date.

@rjerrems
Copy link
Collaborator

hi @deas - can you do a terraform fmt on this? It looks like the linting tests are failing because of that

@deas deas force-pushed the pin-peering-tf-0-12 branch from 74cc8c3 to b2de285 Compare March 10, 2021 09:19
@deas
Copy link
Contributor Author

deas commented Mar 10, 2021

@rjerrems Done. Sorry for the inconvenience.

Copy link
Collaborator

@rjerrems rjerrems left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

cc: @bharathkkb

@rjerrems rjerrems merged commit f0218a5 into terraform-google-modules:master Mar 10, 2021
@rjerrems
Copy link
Collaborator

Thanks @deas !

@rjerrems rjerrems mentioned this pull request Mar 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants