F5Networks / f5-appsvcs-extension

F5 BIG-IP Application Services 3 Extension
Apache License 2.0
163 stars 52 forks source link

Cant create FQDN pool with shareNodes: true #754

Closed megamattzilla closed 7 months ago

megamattzilla commented 10 months ago

Environment

Summary

Cannot create a FQDN pool with shareNodes set to true. Same configuration works fine if shareNodes is set to false.

When shareNodes is set to true, AS3 does seem to actually create the pool in the Big-IP config seemingly correct, but it reports the task as failed.

Steps To Reproduce

Steps to reproduce the behavior:

  1. Submit the following declaration:

    {
    "class": "AS3",
    "action": "deploy",
    "persist": true,
    "loglevel": "debug",
    "declaration": {
        "class": "ADC",
        "schemaVersion": "3.46.0",
        "id": "123abc",
        "label": "Sample 1",
        "remark": "An HTTPS sample application",
        "controls": {
            "trace": true
        },
        "Common": {
            "class": "Tenant",
            "Shared": {
                "class": "Application",
                "template": "shared",
                "myPool": {
                    "class": "Pool",
                    "monitors": [
                        {
                            "bigip": "/Common/tcp"
                        }
                    ],
                    "members": [
                        {
                            "servicePort": 1998,
                            "addressDiscovery": "fqdn",
                            "autoPopulate": true,
                            "shareNodes": true,
                            "hostname": "example.com"
                        }
                    ]
                }
            }
        }
    }
    }
  2. Observe the following error response:

    {
    "id": "23c68974-40d3-4897-9b12-ebe62602389c",
    "results": [
        {
            "code": 200,
            "message": "success",
            "lineCount": 22,
            "host": "localhost",
            "tenant": "Common",
            "runTime": 14571
        },
        {
            "code": 422,
            "message": "declaration failed",
            "response": "01020066:3: The requested Node (/Common/example.com) already exists in partition Common.",
            "host": "localhost",
            "tenant": "Common",
            "runTime": 19470
        }
    ],
    "declaration": {
        "class": "ADC",
        "schemaVersion": "3.46.0",
        "id": "123abc",
        "label": "Sample 1",
        "remark": "An HTTPS sample application",
        "controls": {
            "trace": true,
            "archiveTimestamp": "2023-09-07T18:15:58.348Z"
        },
        "updateMode": "selective"
    }
    }

Expected Behavior

AS3 creates the FQDN pool as expected without providing an error message.

Actual Behavior

AS3 creates the FQDN pool but reports the declaration was unsuccessful.

sunitharonan commented 9 months ago

Thank you for reaching out. In order to prioritize and understand the issue better, please reach out to us at automation_toolchain_pm@f5.com

sunitharonan commented 7 months ago

Closing as this has been released in AS3 3.48.0