F5Networks / f5-appsvcs-extension

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

Changing the pool member state to "offline" generates an issue #800

Closed jrooty closed 4 months ago

jrooty commented 4 months ago

Environment

Summary

Changing a pool member "adminState": "enable" to "adminState": "offline" generates an issue.
On deployment, we don't observe this issue. Only on modification.

Steps To Reproduce

Steps to reproduce the behavior:

  1. Submit the following declaration (the first member was enable, now offline):

    "members": [
                    {
                        "adminState": "offline",
                        "shareNodes": true,
                        "serverAddresses": [
                            "10.241.154.5"
                        ],
                        "servicePort": 80,
                        "priorityGroup": 10
                    },
                    {
                        "adminState": "enable",
                        "shareNodes": true,
                        "serverAddresses": [
                            "10.241.154.6"
                        ],
                        "servicePort": 80,
                        "priorityGroup": 10
                    },
                    {
                        "adminState": "enable",
                        "shareNodes": true,
                        "serverAddresses": [
                            "10.241.154.7"
                        ],
                        "servicePort": 80,
                        "priorityGroup": 10
                    }
                ]
  2. Observe the following error response:

    "results": [
        {
            "code": 200,
            "message": "success",
            "lineCount": 18,
            "host": "localhost",
            "tenant": "Common",
            "runTime": 4988
        },
        {
            "code": 422,
            "message": "declaration failed",
            "response": "01020036:3: The requested Pool Member (/AP00080xPS2D/AP00080xPS2D_fastl4_310124__http_tcp_443/P_fastl4_310124_1_svc_sg_paas_echonet__http_443 /Common/consul-60EB62A9-1D5B-2168-9AED-05AF9F146F82-private 80) was not found.",
            "host": "localhost",
            "tenant": "AP00080xPS2D",
            "runTime": 2163
        },
        {
            "code": 200,
            "message": "success",
            "lineCount": 230,
            "host": "localhost",
            "tenant": "Common",
            "runTime": 5958
        }
    ],

Expected Behavior

AS3 should be able to change the state of a pool member, to offline, as before.

Actual Behavior

Worked with previous versions of AS3 .

mdditt2000 commented 4 months ago

Created Jira for this item AUTOTOOL-4237

sunitharonan commented 4 months ago

Hi @jrooty, this has been fixed and will be released in AS3 3.50. If you need an easly build, please reach out to us at automation_toolchain_pm@f5.com