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

Invalid iRule definition return success when expecting error

Open joseph-9924 opened this issue 3 years ago • 1 comments

Environment

  • Application Services Version: 3.31.0
  • BIG-IP Version: 13.1.4.1

Summary

When creating a tenant containing an iRule that has an invalid definition "INVALID IRULE DEFINITION TEXT", the declaration is accepted and we end up with 4 distinct empty iRules in /Common bearing the name of each words in the definition.

Steps To Reproduce

Steps to reproduce the behavior:

  1. Submit the following declaration:
{
    "class": "AS3",
    "action": "deploy",
    "declaration": {
        "class": "ADC",
        "schemaVersion": "3.0.0",
        "label": "AS3 Declaration",
        "TEST-CREATE-AS3.LAB.ACME.COM": {
            "class": "Tenant",
            "APP": {
                "class": "Application",
                "IRULE_01": {
                    "class": "iRule",
                    "iRule": {
                        "base64": "SU5WQUxJRCBJUlVMRSBERUZJTklUSU9OIFRFWFQ="
                    }
                }
            }
        }
    }
}
  1. Observe the following success response (expecting an error):
{
    "results": [
        {
            "code": 200,
            "message": "success",
            "lineCount": 28,
            "host": "localhost",
            "tenant": "TEST-CREATE-AS3.LAB.ACME.COM",
            "runTime": 1484
        }
    ],
    "declaration": {
        "TEST-CREATE-AS3.LAB.ACME.COM": {
            "class": "Tenant",
            "APP": {
                "class": "Application",
                "IRULE_01": {
                    "class": "iRule",
                    "iRule": {
                        "base64": "SU5WQUxJRCBJUlVMRSBERUZJTklUSU9OIFRFWFQ="
                    }
                }
            }
        },
        "class": "ADC",
        "schemaVersion": "3.0.0",
        "label": "AS3 Declaration",
        "id": "autogen_7211394a-4f5f-409d-98cb-0ba3bc1fdf01",
        "updateMode": "selective",
        "controls": {
            "archiveTimestamp": "2021-12-10T20:35:39.236Z"
        }
    }
}

Expected Behavior

We would expect the declaration to fail on the basis that the iRule is invalid

Actual Behavior

The declaration is accepted and we end up with 4 distinct empty iRules in /Common bearing the name of each words in my definition.

image

joseph-9924 avatar Dec 10 '21 21:12 joseph-9924

Thank you for your feedback. I have confirmed this issue and added it to our internal product backlog as AUTOTOOL-2922.

dstokesf5 avatar Jan 07 '22 19:01 dstokesf5

Thank you @joseph-9924 for reaching out. In order to prioritize and understand the issue better, please reach out to us at [email protected].

sunitharonan avatar Nov 28 '22 18:11 sunitharonan

Unfortunately, it looks like BIG-IP is not properly notifying AS3 that the iRule is invalid when we upload it as part of a cli script. Without BIG-IP telling AS3 there is a problem, there is no way for AS3 to report those problem. Since this is a BIG-IP limitation, I am closing this issue as wontfix.

dstokesf5 avatar Jan 09 '24 17:01 dstokesf5