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

Handle wildcards in monitor destinations

Open sschadwick opened this issue 4 years ago • 1 comments
trafficstars

Environment

  • ACC Version: 16.1.0
  • AS3 Version: 3.32.0
  • BIG-IP Version: 14.1.4

Summary

If there is no Ip address given in alias for tcp ( and maybe others) monitor but port is defined there is a problem with convertions.

Steps To Reproduce

Steps to reproduce the behavior:

  1. Convert following config:
ltm monitor tcp /Common/test_target {
    adaptive disabled
    defaults-from /Common/tcp
    destination *.514
    interval 5
    ip-dscp 0
    recv none
    recv-disable none
    send none
    time-until-up 0
    timeout 3
}

Converted to:

{
    "class": "ADC",
    "schemaVersion": "3.31.0",
    "id": "urn:uuid:52857963-00c9-4a7b-b198-5e616808e7fe",
    "label": "Converted Declaration",
    "remark": "Auto-generated by AS3 Config Converter",
    "Common": {
        "class": "Tenant",
        "Shared": {
            "class": "Application",
            "template": "shared",
            "test_target": {
                "adaptive": false,
                "dscp": 0,
                "receive": "",
                "receiveDown": "",
                "send": "",
                "timeout": 3,
                "class": "Monitor",
                "monitorType": "tcp",
                "targetAddress": "*.514",
                "transparent": false,
                "reverse": false
            }
        }
    }
}              

//////////////////OR :

ltm monitor tcp /Common/test_target {
    adaptive disabled
    defaults-from /Common/tcp
    destination *:514
    interval 5
    ip-dscp 0
    recv none
    recv-disable none
    send none
    time-until-up 0
    timeout 3
}

Converted to:

{
    "class": "ADC",
    "schemaVersion": "3.31.0",
    "id": "urn:uuid:bcc33d69-c4b2-49ef-b1cd-b604ceb2f6fa",
    "label": "Converted Declaration",
    "remark": "Auto-generated by AS3 Config Converter",
    "Common": {
        "class": "Tenant",
        "Shared": {
            "class": "Application",
            "template": "shared",
            "test_target": {
                "adaptive": false,
                "dscp": 0,
                "receive": "",
                "receiveDown": "",
                "send": "",
                "timeout": 3,
                "class": "Monitor",
                "monitorType": "tcp",
                "targetPort": 0,
                "transparent": false,
                "reverse": false
            }
        }
    }
}%
  1. Observe the following error message once try to deploy first covnersion:
{
  "code": 422,
  "errors": [
    "/Common/Shared/test_target/targetAddress: should match format \"f5ip\""
  ],
  "declarationFullId": "",
  "message": "declaration is invalid"
}

Second one result in port 0 (in fact all ports) instead of desired one.

Expected Behavior

Properly convert to target address and target port.

Actual Behavior

Wrong logic in conversion for wildcard IP and specific port given.

sschadwick avatar Nov 19 '21 18:11 sschadwick

Thank you for your input. I have added this to our internal product backlog as AUTOTOOL-2877.

dstokesf5 avatar Dec 09 '21 21:12 dstokesf5

Closing as it won't fix. Thanks.

sunitharonan avatar Nov 07 '22 20:11 sunitharonan

Hi @sunitharonan , this issue hasn't been resolved in any GitHub issue that I could find. This is a blocker for a lot of customers. Can you extrapolate on the reason why this won't fix? Is it something to do with regular expressions or otherwise?

Thank you.

csiggydev avatar Nov 15 '22 17:11 csiggydev