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

azurerm_application_gateway - removing crash points #848

Merged
merged 3 commits into from Feb 16, 2018

Conversation

tombuildsstuff
Copy link
Member

The Azure API returns the latest version of a resource at the last time it was changed, which for an existing resource could be from 2 years ago not conforming to the latest schema; such that some fields which are Required in the API are missing from the API response.

As such - this PR goes through and removes all potential crash points that I could see in the App Gateway resource's flatten functions - which should fix #816 and a few other issues

Unfortunately this is painful to test, since each test takes 30m - so this is a WIP until I can confirm everything works as expected. This is kind of a rework of #632 but without all the additional tests (which we can't add due to an API bug)

Fixes #816

@tombuildsstuff tombuildsstuff changed the title [WIP] azurerm_application_gateway - removing crash points azurerm_application_gateway - removing crash points Feb 16, 2018
@tombuildsstuff tombuildsstuff requested a review from a team February 16, 2018 19:44
Copy link
Member

@mbfrahry mbfrahry left a comment

Choose a reason for hiding this comment

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

LGTM

@tombuildsstuff
Copy link
Member Author

Ignoring the known Azure API deletion bug, which happens a large percentage of the time (which we can't work around 😞):

  • azurerm_subnet.test: Error waiting for completion for Subnet "subnet-3251487714471370920" (VN "acctest-vnet-3251487714471370920" / Resource Group "acctestrg-3251487714471370920"): Long running operation terminated with status 'Failed': Code="InternalServerError" Message="An error occurred."

The tests pass:

screen shot 2018-02-16 at 15 00 38

@tombuildsstuff tombuildsstuff merged commit 6341f10 into master Feb 16, 2018
@tombuildsstuff tombuildsstuff deleted the app-gateway-crash branch February 16, 2018 23:03
tombuildsstuff added a commit that referenced this pull request Feb 16, 2018
@ghost
Copy link

ghost commented Mar 31, 2020

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.

If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. If you feel I made an error 🤖 🙉 , please reach out to my human friends 👉 hashibot-feedback@hashicorp.com. Thanks!

@hashicorp hashicorp locked and limited conversation to collaborators Mar 31, 2020
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.

AppGateway issue after changing SSLPolicy
2 participants