F5Networks / f5-appsvcs-extension

F5 BIG-IP Application Services 3 Extension
Apache License 2.0
169 stars 54 forks source link

Request to delete a tenant failed on my F5 #853

Open AbuDaddy opened 4 months ago

AbuDaddy commented 4 months ago

Environment

Summary

I created a tenant and application in that tenant. I sent a request to deleted the Tenant but the request failed with a 422 message The tenant name is MENGA

Steps To Reproduce

Steps to reproduce the behavior:

  1. I sent a delete requests URL: https://{BIG-IP-IP-MGMT}/mgmt/shared/appsvcs/declare/MENGA resq = requests.delete(url)

  2. Observe the following error response: {'results': [{'code': 422, 'message': 'declaration failed', 'response': 'one or more properties must be specified', 'host': 'localhost', 'tenant': 'MENGA', 'runTime': 3566, 'declarationId': '1721023978915'}], 'declaration': {'MENGA': {'class': 'Tenant', 'App1': {'class': 'Application', 'MENGA_oneconnect_irule': {'class': 'iRule', 'iRule': {'base64': 'd2hlbiBIVFRQX1JFU1BPTlNFIHsKICAgIGlmIHsgW3N0cmluZyB0b2xvd2VyIFtIVFRQOjpoZWFkZXIgdmFsdWVzICJXV1ctQXV0aGVudGljYXRlIl1dIGNvbnRhaW5zICJuZWdvdGlhdGUifSB7CiAgICAgICAgT05FQ09OTkVDVDo6cmV1c2UgZGlzYWJsZQogICAgICAgIE9ORUNPTk5FQ1Q6OmRldGFjaCBkaXNhYmxlCiAgICAgICAgTlRMTTo6ZGlzYWJsZQogICAgfQogICAgaWYge1tIVFRQOjpoZWFkZXIgZXhpc3RzICJUcmFuc2Zlci1FbmNvZGluZyJdfSB7CiAgICAgICAgSFRUUDo6cGF5bG9hZCByZWNodW5rCiAgICB9Cn0='}}}}, 'class': 'ADC', 'schemaVersion': '3.0.0', 'id': '1721023978915', 'updateMode': 'selective', 'controls': {'archiveTimestamp': '2024-07-15T06:13:03.775Z'}}, 'code': 422}

Expected Behavior

From the documentation this should delete the tenant

Actual Behavior

I receice an error message

sunitharonan commented 3 months ago

Could you please try with As3 53.0 and see if its happening. In the mean while, I created AUTOTOOL-4445 and added to our backlog. In case, if it doesn't work with the latest version of As3, please reach out to us at automation_toolchain_pm@f5.com