Running `make tre-stop` causes the next `make tre-deploy` to fail
See original GitHub issueDescribe the bug
Running make tre-stop
will cause the next make tre-deploy
ran in the same environment to fail.
Steps to reproduce
- Run
make tre-deploy tre-start tre-stop
- Run
make tre-deploy
again
Investigation
This seems to be due to the fact that commands make tre-start
and make tre-stop
are manipulating the resource fw-ip-configuration
which is managed by terraform.
Because of this, Terraform wants to recreate it:
However there is also a lock on its parent resource. Because of this, Terraform fails to recreate it:
Given that the resource managed by Terraform is also modified elsewhere, I think we should add a lifecycle
attribute there, to reflect the fact that the fw-ip-configuration
resource is modified by processes outside Terraform:
lifecycle {
ignore_changes = [
ip_configuration,
]
}
Issue Analytics
- State:
- Created 2 years ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
Fail to redeploy to Kubernetes · Issue #19701 - GitHub
Describe the bug. When running mvn clean package -Dquarkus.kubernetes.deploy=true to update an existing deployment in Kubernetes, it fails with:.
Read more >Redeploy the Failed NSX-T Edge Node - VMware Docs
Click the Edge transport nodes tab. Click Add edge VM. On the Name and description page, enter these values and click Next ......
Read more >Redeploy Windows virtual machines in Azure - Microsoft Learn
This article shows you how to redeploy a VM using Azure PowerShell or the Azure portal. If the VM is stuck in a...
Read more >Redeploy and roll back a deployment with CodeDeploy
CodeDeploy rolls back deployments by redeploying a previously deployed revision of an application as a new deployment. These rolled-back deployments are ...
Read more >v5: How to use Macrium ReDeploy
Migrating to a new machine due to hardware failure or planned upgrade such as a new ... ReDeploy is designed make the complex...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
As an interim, we could leave make tre-stop/start in place, and comment out the firewall changes from https://github.com/microsoft/AzureTRE/blob/main/devops/scripts/control_tre.sh
That way we stop the App Gateway from incurring further costs. Depends on time required for https://github.com/microsoft/AzureTRE/issues/1177
Confused about this as well, from what I understand this can happen if there’s no way to update the firewall in the API (or it’s not implemented in the provider). I’ll look again into this today