question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Running `make tre-stop` causes the next `make tre-deploy` to fail

See original GitHub issue

Describe the bug

Running make tre-stop will cause the next make tre-deploy ran in the same environment to fail.

Steps to reproduce

  1. Run make tre-deploy tre-start tre-stop
  2. 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:

MicrosoftTeams-image

However there is also a lock on its parent resource. Because of this, Terraform fails to recreate it:

image

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:closed
  • Created 2 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
daltskincommented, Jan 27, 2022

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

1reaction
tanya-borisovacommented, Jan 25, 2022

confused as to which it cannot create the IP - its trying to replace the entire firewall from what I can see

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

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found