-
Notifications
You must be signed in to change notification settings - Fork 207
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
Bug: APIM Product Deletion broken #4485
Comments
Can you supply us with the ASO logs showing the 400 error? We have automated tests that create, update and delete APIM resources, so I'm curious what I can glean from the context of those logs. It's possible we missed something in those tests - or possibly there's another factor involved. (We have seen other resources that are sensitive about the order of deletion, but usually ASO gets there through retries.) |
PFA the log i see on the ASO for this action failed to delete product "local-poc-helm-test": DELETE
|
Hi @anandpatra18, I tried to repro this issue (logs below). Although the DELETE action succeeds successfully for me. I tried
|
Hi @super-harsh , apiVersion: apimanagement.azure.com/v1api20230501preview |
Hi @anandpatra18, I just tested this out. I still don't see any issues in deletion. Could you please share the logs as well? Scenarios tested:
Below are the logs from controller:
|
Hi @super-harsh, Please find below the controller logs captured when attempting to delete the product.
|
Here is the query I am seeing from the backend:
The problem is that it's using |
I wonder if the custom extension that implements deletion for APIM Product is using an older version of the |
@tomkerkhove - I've written a query based on the one you shared which shows that there aren't any instances of this request failing with the API version in question, and there seem to be a lot of successes. Internal Query. Is it possible that at some point in the past, 2021-08-01 didn't work everywhere? I can even see some requests coming from ASO that succeeded, so I am thinking that this works now. @anandpatra18 - can you still reproduce this issue? |
HI Mathew,
Yes we can reproduce it very consistently when the min api version of the
APIM instance was set to 2022-08-01, but based on Tom's advise we updated
the min api version of the APIM version to 2021-08-01 and now it works as
expected.
I think Tom's ask is to investigate why it doesn't work irrespective of the
min api version being set for the APIM instance, as ll the other CRDs
worked as expected with the higher min api version except the Products CRD.
Regards
Anand
…On Mon, 10 Feb 2025 at 22:40, Matthew Christopher ***@***.***> wrote:
@tomkerkhove <https://github.com/tomkerkhove> - I've written a query
based on the one you shared which shows that there aren't any instances of
this request failing with the API version in question, and there seem to be
a lot of successes. Internal Query
<https://dataexplorer.azure.com/clusters/apim/databases/APIMProd?query=H4sIAAAAAAAAA21QQU7DMBC85xWWTyAlOC0cOJBDJHKCSEjtB4wzbRYltuXdFA48HrcSBUGPO7M7OzPtNF3p3nq7xwwvT5H0dfGp3kckqFEk9pAxDKpplH7snrttp8%2F0kki54MWSZ6VNTy4FDju5aSP9SBpGOpCD0cr64e9RTGFYnPBFdsAEwWZ5ZZcoCgXPjaQFl3ZtpOqAxHmpWdfrVVXfV%2FVKF8Z8203gmBVwzHJX18U%2F%2FEHdnuDs6Q1O1EuCI8aWZmzEzrH8VUh5fF%2Beb%2FOYY7b7nLdU%2BHA4ue3BnFv4AmlEb8ZkAQAA>
.
Is it possible that at some point in the past, 2021-08-01 didn't work
everywhere? I can even see some requests coming from ASO that succeeded, so
I am thinking that this works now.
@anandpatra18 <https://github.com/anandpatra18> - can you still reproduce
this issue?
—
Reply to this email directly, view it on GitHub
<#4485 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/BBU7EA37ZMYMMNRNVHIRPU32PEMFXAVCNFSM6AAAAABS7WGU5CVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDMNBZGMYDENJXGQ>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
2021-08-01 is a deprecated API version; so that is why people set higher API versions to be enforced. It turns out that the product deletion, however, depends on this which is what needs to be fixed. |
Describe the bug
APIM product deletion feature broken. Whenever we try to delete the resource , it goes into failed state with a 400:Bad request error with no description. Seems like the deletion feature has not been implemented at all.
Azure Service Operator Version: v2.10.0
Expected behavior
A successful deletion action of the product
To Reproduce
Create a product through ASO and then try deleting it
The text was updated successfully, but these errors were encountered: