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.

Application Gateway - CanceledAndSupersededDueToAnotherOperation issue

See original GitHub issue

We have an Application Gateway that we’re using with several teams. Obviously, we have setup several CI/CD pipelines (with using the AZ CLI) that deploy our resources and creates our entrypoint for the Application Gateway.

We have started to notice that when we run several commands against the gateway (at the same time), we get the following error:

ERROR: (Canceled) Operation was canceled.
Code: Canceled
Message: Operation was canceled.
Exception Details:	(CanceledAndSupersededDueToAnotherOperation) Operation PutApplicationGatewayOperation (6cc97f54-b83d-46cd-83eb-be3b71a87b39) was canceled and superseded by operation PutApplicationGatewayOperation (f1138d5e-3e2c-4592-b178-b9655c5e1033).
	Code: CanceledAndSupersededDueToAnotherOperation
	Message: Operation PutApplicationGatewayOperation (6cc97f54-b83d-46cd-83eb-be3b71a87b39) was canceled and superseded by operation PutApplicationGatewayOperation (f1138d5e-3e2c-4592-b178-b9655c5e1033).
Returncode: 1

We’ve tested this and it seems to be that indeed, the first request gets cancelled, which ends in a failed pipeline and no entrypoint created for the Application Gateway. This keeps us from being able to run our pipelines at the same time, since it often ends in an error. We’ve been running these pipelines for the last few years, but haven’t noticed this behaviour before.

The az cli commands that we’re using are all part of the az network application-gateway endpoints, for example:

  • az network application-gateway address-pool create
  • az network application-gateway probe create

I would expect that I would be able to add/update several listeners/backend pools/etc for the gateway at the same time, without the first operation being cancelled.

So the question we have is:

Did something change with these calls? Is this the expected behaviour? And could someone explain why this is/should be the case?

Issue Analytics

  • State:open
  • Created 2 years ago
  • Reactions:1
  • Comments:17 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
kpnjacobstruiksmacommented, Mar 7, 2022

Any updates on this issue?

0reactions
scoleman81commented, Aug 10, 2022

I just came across this. I still believe there is an issue. I am trying to create an application gateway using the cli and it runs for about 2 minutes and then gets cancelled. I am running it manually and there are no other operations being sent. When looking at the deployment details in the resource group I find I get the same error posted above. This was a single create request that generated this error.

"statusMessage": "{\"status\":\"Canceled\",\"error\":{\"code\":\"ResourceDeploymentFailure\",\"message\":\"The resource operation completed with terminal provisioning state 'Canceled'.\",\"details\":[{\"code\":\"Canceled\",\"message\":\"Operation was canceled.\",\"details\":[{\"code\":\"CanceledAndSupersededDueToAnotherOperation\",\"message\":\"Operation PutApplicationGatewayOperation (c274d748-3495-4a91-b6d7-0b9d76fc4102) was canceled and superseded by operation PatchApplicationGatewayOperation (236ea644-bb1c-43b8-b915-cd6beb13a31b).\"}]}]}}",

Read more comments on GitHub >

github_iconTop Results From Across the Web

Troubleshoot Bad Gateway errors - Azure Application Gateway
This issue causes probe failures, resulting in 502 errors. The NSG/UDR could be present either in the application gateway subnet or the subnet ......
Read more >
AGIC deployed with helm (shared:true) with customized ...
We have a cluster with AGIC that was installed by helm. We made sure to set shared: true to helm configs and to...
Read more >
The Application Gateway Ingress Controller is broken - Medium
A fundamental design flaw causes downtime when updating Pods. Understanding the issue. The design of the Application Gateway Ingress Controller ...
Read more >
Application Gateway Ingress Controller
The Application Gateway Ingress Controller allows Azure Application Gateway to be used as the ingress for an Azure Kubernetes Service aka AKS cluster....
Read more >
overview issues - azure-cli - bytemeta
azure-cli repo issues. ... CLI cmdlets for application gateway L4 properties ... Application Gateway - CanceledAndSupersededDueToAnotherOperation issue.
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