Technical Forum
Ask questions. Discover Answers.
cancel
Showing results for 
Search instead for 
Did you mean: 
Custom Alert Banner

AS3 GTM object of type: gtm_server can only be created in /Common.

RemcoAA
Nimbostratus
Nimbostratus

I am trying to create a template for GSLB deployments with AS3 but have an issue creating the Servers in the tenant partion.

This is the code I am using for the server:

 

 

"testServer1": {
                    "class": "GSLB_Server",
                    "serverType": "generic-host",
                    "dataCenter": {"bigip": "/Common/DC1"},
                    "devices": [
                        {
                            "address": "1.2.3.4"
                        }
                    ],
                    "monitors": [],
                    "virtualServers": [
                        {
                            "address": "1.2.3.4",
                            "port": 443,
                            "name": "virtualAddress1",
                            "monitors": [
                                {
                                    "use": "Monitor_Test"
                                }
                            ]
                        }
                    ]
                },

 

 

 So I have specified the server type as "generic-host" but I am getting this error:

 

"message": "declaration failed",
"response": "0107141a:3: GTM object (/<tenant>/testServer1 of type: gtm_server) can only be created in /Common."
 
Why is the type not correct?
5 REPLIES 5

Please refer here , here i can see generic hst for GSLB_Server Class, 

https://github.com/F5Networks/f5-appsvcs-extension/issues/475

 

 

Not sure what I should see on this github post, I know a generic-host type exist, but I want to know why I cannot create this is a Tenant partition. The error states that typ "gtm_server" needs to be in Common which I understand but I am not trying to create a gtm_server type,

GTM object (/<tenant>/testServer1 of type: gtm_server) can only be created in /Common."

But in the mean time found this Article:

https://my.f5.com/manage/s/article/K01990709

Certain GSLB objects cannot be created or modified in non-default administrative partitions. You must create and modify the following objects from the /Common partition:

  • Data centers
  • Servers
  • Links
  • Prober pools
  • DNSSEC zones
  • DNSSEC keys
  • Regions

So it looks like you can only create Servers in the Common partition, even if they are specific to one Tenant only. Is this by design?

Does somebody also know what to do with Tenant specific monitors for the virtualservers, do these also need to be in the Common partition because the servers are also in Common?

Tenant specific monitors for the virtualservers can reside in that particular partition, but they will not be visible in other partitions, for re-use of pbkjects you can put in /Common partition ellse tenant specifi put in  a particular partition.

Do you have an example on how to use a Tenant specific monitor on a virtualserver in the Common partition?

I have tried this in multiple format but cannot get it to work.

For example when I add this monitor in the Tenant space:

"Monitor_Test": {
  "class": "GSLB_Monitor",
  "monitorType": "https",
  "send" : "GET /keepalive HTTP/1.1\r\nHost: apache-header-fix\r\n\r\n",
  "receive": "KEEPALIVE_OK"
}
 
and this is in the Common partion:
 
"virtualServers": [
   {
      "address": "10.10.10.10",
      "port": 443,
      "name": "virtualAddress1",
      "monitors": [
         {
            "use": "/<Tenant>/Monitor_Test"
         }
      ]
  }
]
 
I get this error:
"errors": [
"/Common/Shared/testServer1/virtualServers/0/monitors/0/use: contains invalid path (Tenant without application)"