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

Assign the device name when creating a server

Open MMarco1977 opened this issue 3 years ago • 8 comments

Environment

Application Services Version: 3.28.0
BIG-IP Version: 15.1.3-0.0.11

Summary

From the Bigip, under DNS >> GSLB:Server: ServerList >> Devices: "XXX" it is not possible to assign the name. Each declaration that is executed assigns a name of 0

Steps To Reproduce

  1. Submit the following declaration:
[
  { 
    "op": "add",
    "path": "/Common/Shared/ACME-NICOLA",
    "value": { 
                "class": "GSLB_Server",
                "serverType": "generic-host",
                "monitors": [
                        
                    ],
                "dataCenter": { 
                    "use": "marco"
                },
                "devices":[
                    {
                        "label": "ACME-NICOLA",
                        "address": "1.2.4.8"
                    } 
                ],
                "virtualServers": [
                    {
                        "name": "ACME-NICOLA_VS",
                        "address": "1.2.4.8",
                        "port": 0
                    }
                ]
            }
    },
    { 
    "op": "add",
    "path": "/Gsv/Application/pool_NICOLA",
    "value": { 
                "class": "GSLB_Pool",
                "resourceRecordType": "A", 
                "lbModeFallback": "none",
                "lbModeAlternate": "none",
                "verifyMemberEnabled": false,
                "members": [
                    {
                        "server": {
                            "use": "/Common/Shared/ACME-NICOLA" 
                        },
                        "virtualServer": "ACME-NICOLA_VS",
                        "enabled": true
                    }
                ]
            }
    }
]
  1. Expected Behavior: (a Server created without AS3 is shown) Screenshot 2021-07-15 at 12 32 13

  2. Observe the following result: Screenshot 2021-07-15 at 12 31 48

MMarco1977 avatar Jul 15 '21 10:07 MMarco1977

The name value comes from the name of the virtual server being referenced. Please see the following documentation on how to override the generated index-based name of a virtual server: https://clouddocs.f5.com/products/extensions/f5-appsvcs-extension/latest/declarations/gslb.html#specifying-a-gslb-virtual-server-name-in-a-declaration.

dstokesf5 avatar Aug 06 '21 20:08 dstokesf5

The one indicated in the documentation, refers to how to name the Virtual Server. What I need, however, is to name the 'Devices'. The device name should be the same as the Server and not 0

MMarco1977 avatar Aug 10 '21 09:08 MMarco1977

@MMarco1977 You are right, it looks like the devices property needs to be updated to accept a name property like virtual servers. I am changing this into a feature request to allow for a GSLB_Server declaration similar to the one below:

{
    "class": "GSLB_Server",
    "serverType": "generic-host",
    "monitors": [],
    "dataCenter": {
        "use": "marco"
    },
    "devices": [
        {
            "name": "ACME-NICOLA",
            "address": "1.2.4.8"
        }
    ],
    "virtualServers": [
        {
            "name": "ACME-NICOLA_VS",
            "address": "1.2.4.8",
            "port": 0
        }
    ]
}

dstokesf5 avatar Aug 11 '21 18:08 dstokesf5

I have added this request to our internal product backlog as AUTOTOOL-2636.

dstokesf5 avatar Aug 11 '21 18:08 dstokesf5

I tried to send the declaration that you have indicated but the name always remains at 0. Below is the declaration used:

[ { "op": "add", "path": "/Common/Shared/ACME-NICOLA", "value": { "class": "GSLB_Server", "serverType": "generic-host", "monitors": [

                ],
            "dataCenter": { 
                "use": "marco"
            },
            "devices":[
                {
                    "name": "ACME-NICOLA",
                    "address": "1.2.4.8"
                } 
            ],
            "virtualServers": [
                {
                    "name": "ACME-NICOLA_VS",
                    "address": "1.2.4.8",
                    "port": 0
                }
            ]
        }
},
{ 
"op": "add",
"path": "/Gsv/Application/pool_NICOLA",
"value": { 
            "class": "GSLB_Pool",
            "resourceRecordType": "A", 
            "lbModeFallback": "none",
            "lbModeAlternate": "none",
            "verifyMemberEnabled": false,
            "members": [
                {
                    "server": {
                        "use": "/Common/Shared/ACME-NICOLA" 
                    },
                    "virtualServer": "ACME-NICOLA_VS",
                    "enabled": true
                }
            ]
        }
}

]

tks /MMarco1977

MMarco1977 avatar Aug 11 '21 18:08 MMarco1977

That was meant as an example of how the feature will look when it is implemented.

dstokesf5 avatar Aug 11 '21 19:08 dstokesf5

I supposed,but I wanted to try it anyway ;-)

MMarco1977 avatar Aug 11 '21 20:08 MMarco1977

Hi @dstokesf5 for info, this issue, do you know when it will be fixed?

MMarco1977 avatar Sep 24 '21 11:09 MMarco1977

If you are still looking for this feature, please reach out to us at [email protected] in order to prioritize.

sunitharonan avatar Oct 25 '22 18:10 sunitharonan

This issue has been automatically closed because there has been no response to our request for more information from the original author. With only the information that is currently in the issue, we don't have enough information to take action. Please reach out if you have or find the answers we need so that we can investigate further.

github-actions[bot] avatar Nov 24 '22 19:11 github-actions[bot]