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

Dependencies: upgrade network to 2020-07-01 #10767

Merged
merged 10 commits into from
Apr 30, 2021
Merged

Dependencies: upgrade network to 2020-07-01 #10767

merged 10 commits into from
Apr 30, 2021

Conversation

favoretti
Copy link
Collaborator

@favoretti favoretti commented Mar 1, 2021

upgrade network to 2020-07-01

@ghost ghost added size/L size/XXL and removed size/L labels Mar 1, 2021
@favoretti favoretti changed the title Dependencies: upgrade network to 2020-07-01 Dependencies: upgrade network to 2020-08-01 Mar 1, 2021
@tombuildsstuff tombuildsstuff self-requested a review March 1, 2021 16:58
@tombuildsstuff tombuildsstuff added this to the v2.50.0 milestone Mar 2, 2021
Copy link
Contributor

@tombuildsstuff tombuildsstuff left a comment

Choose a reason for hiding this comment

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

LGTM 👍 - this'll want manual testing of the network connection monitor and thought about the migration path though, but the latter can be done separately.

@tombuildsstuff
Copy link
Contributor

Looks like there's a breaking behavioural change for Application Gateway's in this new API version:

------- Stdout: -------
=== RUN   TestAccApplicationGateway_zones
=== PAUSE TestAccApplicationGateway_zones
=== CONT  TestAccApplicationGateway_zones
testing.go:620: Step 1/2 error: Error running apply:
Error: creating/updating Application Gateway: (Name "acctestag-210302093527636647" / Resource Group "acctestRG-210302093527636647"): network.ApplicationGatewaysClient#CreateOrUpdate: Failure sending request: StatusCode=0 -- Original Error: Code="ZonalApplicationGatewayCannotReferenceNoZonePublicIp" Message="Zonal Application Gateway /subscriptions/*******/resourceGroups/acctestRG-210302093527636647/providers/Microsoft.Network/applicationGateways/acctestag-210302093527636647 with zones 1, 2 cannot reference a non-zonal public ip /subscriptions/*******/resourceGroups/acctestRG-210302093527636647/providers/Microsoft.Network/publicIPAddresses/acctest-pubip-210302093527636647-standard. The IP should use all zones used by the Application Gateway." Details=[]
on config335560111/terraform_plugin_test.tf line 52, in resource "azurerm_application_gateway" "test":
52: resource "azurerm_application_gateway" "test" {
--- FAIL: TestAccApplicationGateway_zones (136.27s)
FAIL

@favoretti
Copy link
Collaborator Author

It seems it's broken in general. azurerm_public_ip when switched from zones being SchemaSingleZone to either SchemaMultipleZones or SchemaZones simply ignores the zones you give it and creates an IP address in 3 zones (at least for eastus2). Hence so far I don't see a way to make this play nicely with each other :(

@tombuildsstuff tombuildsstuff modified the milestones: v2.50.0, v2.51.0 Mar 4, 2021
@tombuildsstuff tombuildsstuff modified the milestones: v2.51.0, v2.52.0 Mar 11, 2021
@jackofallops jackofallops modified the milestones: v2.52.0, v2.53.0 Mar 18, 2021
@favoretti
Copy link
Collaborator Author

@tombuildsstuff looks like network package was downgraded to 2020-07-01 in the latest SDK that we're using, should I try that one instead?

@katbyte katbyte closed this Apr 20, 2021
@katbyte katbyte reopened this Apr 20, 2021
@katbyte katbyte closed this Apr 20, 2021
@katbyte katbyte reopened this Apr 20, 2021
@katbyte
Copy link
Collaborator

katbyte commented Apr 20, 2021

sorry, mistakenly closed it due to slow browser rendering 🤦‍♀️ - @favoretti, its worth a try but theres no guarantee that version won't have the same issue

@favoretti
Copy link
Collaborator Author

@katbyte np. Minor pain to try. Will give it a shot.

@ghost ghost added size/L and removed size/XXL labels Apr 21, 2021
@favoretti favoretti changed the title Dependencies: upgrade network to 2020-08-01 Dependencies: upgrade network to 2020-07-01 Apr 21, 2021
@favoretti
Copy link
Collaborator Author

@tombuildsstuff @katbyte Looks like TestAccApplicationGateway_zones passes on 2020-07-01, there's a regression in master introduced by #11270 in azurerm_public_ip datasource, I've added a fix for it here as well, will re-run those 2 tests separately after complete suite is done.

@ghost ghost added size/XL and removed size/L labels Apr 22, 2021
@katbyte katbyte added this to the v2.58.0 milestone Apr 26, 2021
@ghost ghost added size/XXL and removed size/XL labels Apr 29, 2021
@favoretti favoretti changed the title Dependencies: upgrade network to 2020-07-01 Dependencies: upgrade network to 2020-08-01 Apr 29, 2021
@favoretti favoretti changed the title Dependencies: upgrade network to 2020-08-01 Dependencies: upgrade network to 2020-07-01 Apr 29, 2021
@katbyte katbyte merged commit 346b231 into hashicorp:master Apr 30, 2021
katbyte added a commit that referenced this pull request Apr 30, 2021
@ghost
Copy link

ghost commented May 7, 2021

This has been released in version 2.58.0 of the provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading. As an example:

provider "azurerm" {
    version = "~> 2.58.0"
}
# ... other configuration ...

@github-actions
Copy link

github-actions bot commented Jun 7, 2021

I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active contributions.
If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 7, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants