f5-appsvcs-extension icon indicating copy to clipboard operation
f5-appsvcs-extension copied to clipboard

Services address is removed from /Common/Shared when deleting app in tenant

Open Tobse95 opened this issue 1 year ago • 1 comments

Environment

  • Application Services Version: 3.51
  • BIG-IP Version: BIG-IP v17.1.1 (Build 0.0.6)

Summary

Our config within a tenant/application references a service address (0.0.0.0) address in Common Shared (name: /Common/Shared/x_service-address_any). If you delete this application within a tenant, the service address in the common partition will also be deleted. This must not happen and disrupts our further process.

We use per app declaration

Steps To Reproduce

Steps to reproduce the behavior:

  1. Submit the following two declarations: /Common/Shared
    {"action": "deploy",
    "class": "AS3",
    "declaration": {
        "class": "ADC",
        "schemaVersion": "3.45.0",
        "Common": {
            "class": "Tenant",
            "Shared": {
                "class": "Application",
                "template": "shared",
                "x_service-address_any": {
                    "class": "Service_Address",
                    "virtualAddress": "0.0.0.0",
                    "icmpEcho": "disable",
                    "arpEnabled": false
                }
}
}
    }
    }
[adc-tenant](https://xxx/mgmt/shared/appsvcs/declare/adc-tenant/applications/)
{
  "app_10.11.238.0_24": {
    "class": "Application",
    "label": "10.11.238.0/24",
    "remark": "applicationx for 10.11.238.0/24",
    "sf-ext_10.11.238.0_24": {
      "allowVlans": [
      ],
      "class": "Service_Forwarding",
      "forwardingType": "ip",
      "label": "10.11.238.0/24",
      "remark": "service forwrding ext for 10.11.238.0/24",
      "shareAddresses": true,
      "snat": "none",
      "translateServerAddress": false,
      "translateServerPort": false,
      "virtualAddresses": [
        [
          {
            "use": "/Common/Shared/x_service-address_any"
          },
          "10.11.238.0/24"
        ]
      ],
      "virtualPort": 0
    }
  },
  "controls": {
    "class": "Controls",
    "logLevel": "debug",
    "trace": true
  },
  "id": "per-app-declaration",
  "schemaVersion": "3.55.0"
}

Delete with

https://xxxx/mgmt/shared/appsvcs/declare/adc-tenant/applications/app_10.11.238.0_24

  1. Observe the following error response:

Expected Behavior

  1. Correct response in the result because the app was successfully deleted
  2. x_service-address_any is also removed !!! should not be removed from the bigip in /Common/Shared

Actual Behavior

After the reproduction of the steps you will see, that the service any address is removed from /common/shared in the bigip gui.

Tobse95 avatar Jun 27 '24 13:06 Tobse95

Thank you for reaching out. We have created a internal product backlog AUTOTOOL-4433 for this item, in order for us to prioritize please reach out to us at [email protected]

sunitharonan avatar Aug 13 '24 13:08 sunitharonan