-
Notifications
You must be signed in to change notification settings - Fork 172
Fix workspace deletion race condition in AMPLS private endpoint #4764
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
base: main
Are you sure you want to change the base?
Conversation
…PLS private endpoints Co-authored-by: marrobi <[email protected]>
|
/test-extended c32a87a |
|
🤖 pr-bot 🤖 🏃 Running extended tests: https://github.com/microsoft/AzureTRE/actions/runs/19553208613 (with refid (in response to this comment from @marrobi) |
…o fix deletion ordering Co-authored-by: marrobi <[email protected]>
The test revealed a different root cause. The error was that Private DNS Zones couldn't be deleted because their Virtual Network Links still existed. I've added |
Co-authored-by: marrobi <[email protected]>
|
/test-extended d66e33f |
|
🤖 pr-bot 🤖 🏃 Running extended tests: https://github.com/microsoft/AzureTRE/actions/runs/19571335811 (with refid (in response to this comment from @marrobi) |
|
/test-extended d66e33f |
|
🤖 pr-bot 🤖 🏃 Running extended tests: https://github.com/microsoft/AzureTRE/actions/runs/19576408604 (with refid (in response to this comment from @marrobi) |
Unit Test Results0 tests 0 ✅ 0s ⏱️ Results for commit fc12afe. ♻️ This comment has been updated with latest results. |
|
@copilot please resolve: Code update without version change |
Co-authored-by: marrobi <[email protected]>
|
/test-extended aa82947 |
|
🤖 pr-bot 🤖 🏃 Running extended tests: https://github.com/microsoft/AzureTRE/actions/runs/19710129614 (with refid (in response to this comment from @marrobi) |
Co-authored-by: marrobi <[email protected]>
Removed |
|
/test-extended 50d36ae |
|
🤖 pr-bot 🤖 🏃 Running extended tests: https://github.com/microsoft/AzureTRE/actions/runs/19716425026 (with refid (in response to this comment from @marrobi) |
|
/test-extended 50d36ae |
|
🤖 pr-bot 🤖 🏃 Running extended tests: https://github.com/microsoft/AzureTRE/actions/runs/19720597199 (with refid (in response to this comment from @marrobi) |
This is a separate issue, not related to removing |
|
/test-extended 50d36ae |
|
🤖 pr-bot 🤖 🏃 Running extended tests: https://github.com/microsoft/AzureTRE/actions/runs/19730219587 (with refid (in response to this comment from @marrobi) |
|
/test-extended 50d36ae |
|
🤖 pr-bot 🤖 🏃 Running extended tests: https://github.com/microsoft/AzureTRE/actions/runs/19733426740 (with refid (in response to this comment from @marrobi) |
|
/test-extended 5941585 |
|
🤖 pr-bot 🤖 🏃 Running extended tests: https://github.com/microsoft/AzureTRE/actions/runs/19763804503 (with refid (in response to this comment from @marrobi) |
|
/test-extended 5941585 |
|
🤖 pr-bot 🤖 (in response to this comment from @marrobi) |
|
/test-extended fc12afe |
|
🤖 pr-bot 🤖 🏃 Running extended tests: https://github.com/microsoft/AzureTRE/actions/runs/20336363140 (with refid (in response to this comment from @marrobi) |
1 similar comment
|
🤖 pr-bot 🤖 🏃 Running extended tests: https://github.com/microsoft/AzureTRE/actions/runs/20336363140 (with refid (in response to this comment from @marrobi) |
Resolves #3194
What is being addressed
Workspace deletions fail intermittently with dependency ordering errors when Terraform attempts to delete Azure Monitor resources. The issue manifests as
AnotherOperationInProgresserrors when deleting the AMPLS private endpoint and its private DNS zone group simultaneously.How is this addressed
ampls_app_insightsandampls_log_anaytics) to the private endpoint'sdepends_onlist to ensure proper creation and deletion orderingTechnical Details
The fix addresses the root cause through explicit dependency ordering:
Enhanced Private Endpoint Configuration:
The explicit
depends_onrelationships ensure:References
Original prompt
This section details on the original issue you should resolve
<issue_title>Workspace deletion fails due to AnotherOperationInProgress pe-ampls-*</issue_title>
<issue_description>Describe the bug
deleting Private DNS Zone Group "azure-monitor-private-dns-zone-group" (Private Endpoint "pe-ampls--ws-ab34" / Resource Group "rg--ws-ab34"): network.PrivateDNSZoneGroupsClient#Delete: Failure sending request: StatusCode=0 -- Original Error: autorest/azure: Service returned an error. Status= Code="AnotherOperationInProgress" Message="Another operation on this or dependent resource is in progress. To retrieve status of the operation use uri: https://management.azure.com/subscriptions/*******/providers/Microsoft.Network/locations/***/operations/7fb24a45-f648-41ff-ba74-5cc4a320e2b3?api-version=2019-02-01." Details=[]
Steps to reproduce
</issue_description>
<agent_instructions>Please read this issue: hashicorp/terraform-provider-azurerm#28715
We see this issue frequently in running e2e tests when workspaces get deleted. We need to find the route cause. If this is not obvious his may mean creating a number of "versions" of the base template, with test deployment scripts and seeing if we can narrow down the issue.</agent_instructions>
Comments on the Issue (you are @copilot in this section)
@marrobi Looks like should have been closed by PR @marrobi Another occurrence: https://github.com/microsoft/AzureTRE/actions/runs/6110043155/job/16879370630Private Dns Zone Group Name: "azure-monitor-private-dns-zone-group"): performing Delete: unexpected status 409 (409 Conflict) with error: AnotherOperationInProgress: Another operation on this or dependent resource is in progress.</comment_new>
<comment_new>@marrobi
See this discussion: hashicorp/terraform-provider-azurerm#28715</comment_new>
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.