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

Auto-generate BgpPeer #2434

Merged
merged 16 commits into from
Nov 26, 2019
Merged

Conversation

drebes
Copy link
Member

@drebes drebes commented Oct 5, 2019

Fixes hashicorp/terraform-provider-google#4954

Release Note Template for Downstream PRs (will be copied)

`compute`: field `peer_ip_address` in `google_compute_router_peer` is now required, to match the API behavior.
`compute`: field `advertised_ip_ranges` in `google_compute_router_peer` can now be updated without recreating the resource.
`compute`: computed attribute `management_type` in `google_compute_router_peer` is now available.

@drebes drebes requested a review from danawillow October 5, 2019 21:57
@drebes drebes force-pushed the bgp-peer branch 2 times, most recently from faeebec to cba7b4c Compare October 8, 2019 12:45
@modular-magician
Copy link
Collaborator

modular-magician commented Oct 8, 2019

Hi! I'm the modular magician, I work on Magic Modules.
I see that this PR has already had some downstream PRs generated. Any open downstreams are already updated to your most recent commit, cba7b4c.

Pull request statuses

No diff detected in terraform-google-conversion.
No diff detected in Ansible.
No diff detected in Inspec.

New Pull Requests

I built this PR into one or more new PRs on other repositories, and when those are closed, this PR will also be merged and closed.

@modular-magician
Copy link
Collaborator

Hi! I'm the modular magician, I work on Magic Modules.
I see that this PR has already had some downstream PRs generated. Any open downstreams are already updated to your most recent commit, 3885cb1.

Pull request statuses

terraform-provider-google-beta already has an open PR.
No diff detected in terraform-google-conversion.
terraform-provider-google already has an open PR.
No diff detected in Ansible.
No diff detected in Inspec.

New Pull Requests

I didn't open any new pull requests because of this PR.

@slevenick
Copy link
Contributor

There are a couple differences in the schema on the downstream generated resource, specifically the removal of ForceNew: true, on advertise_mode and advertised_groups. Are these things that can be modified now?

@slevenick
Copy link
Contributor

@modular-magician
Copy link
Collaborator

modular-magician commented Nov 11, 2019

Hi! I'm the modular magician, I work on Magic Modules.
I see that this PR has already had some downstream PRs generated. Any open downstreams are already updated to your most recent commit, 874e765.

Pull request statuses

terraform-provider-google-beta already has an open PR.
terraform-provider-google already has an open PR.
No diff detected in Ansible.
No diff detected in Inspec.

New Pull Requests

I built this PR into one or more new PRs on other repositories, and when those are closed, this PR will also be merged and closed.

@drebes
Copy link
Member Author

drebes commented Nov 11, 2019

I did some testing and indeed advertise_mode and advertised_groups cannot be updated in one go, so a delete and create is needed (technically two patches on the router resource). I've set them back to ForceNew: true.

@danawillow
Copy link
Contributor

Hey @drebes, we just did a bunch of work for 3.0 which means that the current downstreams for this are out of date. When you get the chance, can you do a rebase of this PR onto master? I'm going to close the existing downstreams to make sure that we get diffs on top of the current HEAD in the next magician run.

@modular-magician
Copy link
Collaborator

Hi! I'm the modular magician, I work on Magic Modules.
I see that this PR has already had some downstream PRs generated. Any open downstreams are already updated to your most recent commit, b0fde92.

Pull request statuses

No diff detected in terraform-google-conversion.
No diff detected in Ansible.
No diff detected in Inspec.

New Pull Requests

I built this PR into one or more new PRs on other repositories, and when those are closed, this PR will also be merged and closed.
depends: hashicorp/terraform-provider-google-beta#1396
depends: hashicorp/terraform-provider-google#4923

@drebes
Copy link
Member Author

drebes commented Nov 15, 2019

Done. I've also updated the ID format to what I understand is the standard format for 3.0.0.

products/compute/api.yaml Outdated Show resolved Hide resolved
products/compute/api.yaml Show resolved Hide resolved
products/compute/api.yaml Outdated Show resolved Hide resolved
products/compute/terraform.yaml Outdated Show resolved Hide resolved
products/compute/terraform.yaml Show resolved Hide resolved
products/compute/terraform.yaml Show resolved Hide resolved
@danawillow
Copy link
Contributor

Looks like you'll need to resolve the merge conflicts before the magician will run again.

@modular-magician
Copy link
Collaborator

Hi! I'm the modular magician, I work on Magic Modules.
I see that this PR has already had some downstream PRs generated. Any open downstreams are already updated to your most recent commit, 1f6d4fe.

Pull request statuses

terraform-provider-google-beta already has an open PR.
No diff detected in terraform-google-conversion.
terraform-provider-google already has an open PR.
No diff detected in Ansible.
No diff detected in Inspec.

New Pull Requests

I didn't open any new pull requests because of this PR.

@modular-magician
Copy link
Collaborator

Hi! I'm the modular magician, I work on Magic Modules.
I see that this PR has already had some downstream PRs generated. Any open downstreams are already updated to your most recent commit, 8ab2ad2.

Pull request statuses

terraform-provider-google-beta already has an open PR.
No diff detected in terraform-google-conversion.
terraform-provider-google already has an open PR.
No diff detected in Ansible.
No diff detected in Inspec.

New Pull Requests

I didn't open any new pull requests because of this PR.

@drebes
Copy link
Member Author

drebes commented Nov 22, 2019

Just rebased.

Copy link
Contributor

@danawillow danawillow left a comment

Choose a reason for hiding this comment

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

Can you also update the release note according to the guidelines at https://github.com/GoogleCloudPlatform/magic-modules/blob/master/.ci/RELEASE_NOTES_GUIDE.md? We want CHANGELOG entries to be for user-visible changes, so no need for a general "is now autogenerated" one, but we probably do want a breaking-change note for peer_ip_address (since it was optional before, even though people's configs wouldn't apply correctly without it). It also looks like a few things that weren't updatable before now are, and a new computed field management_type was added, so those can have enhancement notes.

third_party/terraform/website-compiled/google.erb Outdated Show resolved Hide resolved
products/compute/api.yaml Show resolved Hide resolved
@drebes
Copy link
Member Author

drebes commented Nov 25, 2019

CHANGELOG comments updated. Fixes hashicorp/terraform-provider-google#4954

@modular-magician
Copy link
Collaborator

Hi! I'm the modular magician, I work on Magic Modules.
I see that this PR has already had some downstream PRs generated. Any open downstreams are already updated to your most recent commit, b8577d0.

Pull request statuses

terraform-provider-google-beta already has an open PR.
No diff detected in terraform-google-conversion.
terraform-provider-google already has an open PR.
No diff detected in Ansible.
No diff detected in Inspec.

New Pull Requests

I didn't open any new pull requests because of this PR.

@drebes
Copy link
Member Author

drebes commented Nov 25, 2019

Also, should we add a note about the changed ID format for 3.0.0 or this will be noted for all resources?

@danawillow
Copy link
Contributor

We have a note already about the changed ID format at https://www.terraform.io/docs/providers/google/guides/version_3_upgrade.html#id-format-changes
so I think it's fine as-is

@modular-magician
Copy link
Collaborator

Hi! I'm the modular magician, I work on Magic Modules.
I see that this PR has already had some downstream PRs generated. Any open downstreams are already updated to your most recent commit, df3144d.

Pull request statuses

terraform-provider-google-beta already has an open PR.
No diff detected in terraform-google-conversion.
terraform-provider-google already has an open PR.
No diff detected in Ansible.
No diff detected in Inspec.

New Pull Requests

I didn't open any new pull requests because of this PR.

@modular-magician modular-magician merged commit bc59530 into GoogleCloudPlatform:master Nov 26, 2019
@drebes drebes deleted the bgp-peer branch December 14, 2019 22:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

google_compute_router_peer keeps being destroyed and recreated when advertised_ip_ranges is changed
5 participants