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_express_route_circuit - de-provision and re-provision circuit when changing bandwidth reduction (#3983) #6601

Merged

Conversation

pearcec
Copy link
Contributor

@pearcec pearcec commented Apr 24, 2020

Reduction in bandwidth forces new resource, utilizing CustomizeDiff

Fixes #3983

Copy link
Member

@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 👍

Reduction in bandwidth forces new resource, utilizing CustomizeDiff
@tombuildsstuff
Copy link
Member

@pearcec I hope you don't mind, but I'm going to rebase this on top of master to fix the merge conflicts

@tombuildsstuff tombuildsstuff force-pushed the Expressroute_lower_bandwidth_#3983 branch from 566176d to 594a8fa Compare May 7, 2020 13:42
@tombuildsstuff tombuildsstuff added this to the v2.9.0 milestone May 7, 2020
@pearcec
Copy link
Contributor Author

pearcec commented May 7, 2020

@pearcec I hope you don't mind, but I'm going to rebase this on top of master to fix the merge conflicts

Go for it.

@tombuildsstuff
Copy link
Member

@pearcec I've run the tests for this a couple of times but they appear to fail with:

------- Stdout: -------
=== RUN   TestAccAzureRMExpressRouteCircuit/basic/bandwidthReduction
TestAccAzureRMExpressRouteCircuit/basic/bandwidthReduction: testing.go:640: Step 1 error: errors during apply:
Error: Error Retrieving ExpressRouteCircuit "acctest-erc-200507155656319668" (Resource Group "acctestRG-200507155656319668"): network.ExpressRouteCircuitsClient#Get: Failure responding to request: StatusCode=404 -- Original Error: autorest/azure: Service returned an error. Status=404 Code="ResourceNotFound" Message="The Resource 'Microsoft.Network/expressRouteCircuits/acctest-erc-200507155656319668' under resource group 'acctestRG-200507155656319668' was not found."
on /opt/teamcity-agent/temp/buildTmp/tf-test294814256/main.tf line 11:
(source code not available)
--- FAIL: TestAccAzureRMExpressRouteCircuit/basic/bandwidthReduction (307.12s)

so it looks like that something may need updating here?

@tombuildsstuff tombuildsstuff removed this from the v2.9.0 milestone May 7, 2020
@pearcec
Copy link
Contributor Author

pearcec commented May 7, 2020

(source code not available)
--- FAIL: TestAccAzureRMExpressRouteCircuit/basic/bandwidthReduction (307.12s)


so it looks like that something may need updating here?

I will take a look.

@pearcec
Copy link
Contributor Author

pearcec commented May 7, 2020

@tombuildsstuff I am not having the same issue:

$ make acctests SERVICE=network TESTARGS='-run=TestAccAzureRMExpressRouteCircuit/basic/bandwidthReduction'
==> Checking that code complies with gofmt requirements...
==> Checking that Custom Timeouts are used...
TF_ACC=1 go test -v ./azurerm/internal/services/network/tests/ -run=TestAccAzureRMExpressRouteCircuit/basic/bandwidthReduction -timeout 180m -ldflags="-X=github.com/terraform-providers/terraform-provider-azurerm/version.ProviderVersion=acc"
=== RUN   TestAccAzureRMExpressRouteCircuit
=== RUN   TestAccAzureRMExpressRouteCircuit/basic
=== RUN   TestAccAzureRMExpressRouteCircuit/basic/bandwidthReduction
--- PASS: TestAccAzureRMExpressRouteCircuit (295.51s)
    --- PASS: TestAccAzureRMExpressRouteCircuit/basic (295.51s)
        --- PASS: TestAccAzureRMExpressRouteCircuit/basic/bandwidthReduction (295.50s)
PASS
ok      github.com/terraform-providers/terraform-provider-azurerm/azurerm/internal/services/network/tests       297.568s
$

I am building in East US. Where are you building? Can you run it with a trace and give me the log perhaps I can see something? So are you just running that test or running them all?

@katbyte
Copy link
Collaborator

katbyte commented May 13, 2020

I ran it a few times and looks like it's azure being flakey

@katbyte katbyte added this to the v2.10.0 milestone May 13, 2020
@katbyte katbyte changed the title Fix for ER bandwidth reduction issue #3983 azurerm_express_route_circuit - de-provision and re-provision circuit when changing bandwidth reduction (#3983) May 13, 2020
@katbyte katbyte merged commit 4d84038 into hashicorp:master May 13, 2020
katbyte added a commit that referenced this pull request May 13, 2020
@ghost
Copy link

ghost commented May 15, 2020

This has been released in version 2.10.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.10.0"
}
# ... other configuration ...

@ghost
Copy link

ghost commented Jun 13, 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 Jun 13, 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.

Expressroute bandwidth reduction doesn't de-provision and re-provision circuit as would be expected
4 participants