Forum Discussion

Kumar_107292's avatar
Kumar_107292
Icon for Nimbostratus rankNimbostratus
Oct 03, 2012

What does root folder mean when it comes to vertual server Create

Hi

 

I have some code where I am creating a LoadBalancer configuration.. It used to work pretty well but when I upgraded my iControl from 10 to 11 i am getting some sort of errors.

 

Now this is one of the error:

 

error_string : 01071473:3: Create, modify, and delete commands are not valid for (virtual server) while in the root folder.

 

I will appreciate any help on that and what is the root folder refering in this.

 

  • John_Gruber_432's avatar
    John_Gruber_432
    Historic F5 Account
    The behavior did change. In v11, objects are separted into Folders. It his how applicaiton level objects are grouped for iApps and other mechanisms which are looking at partitioning configuration objects for management. You will also notice that in v11, the Folder reference is prefixed to object names from get_list. Each iControl interface has a get_version method you can check to see if you are v10 or v11.

     

     

    The error you are getting states that your current active folder is "/". You can not create virtual servers in "/". That's not a valid Folder location for virtual service objects.

     

     

    There will always a /Common folder. If your intent is to create a virtual in the Common partition, then use System::Session::set_active_folder method to set the Folder to '/Common' before you create your virtual service.

     

     

    If your intent was to create a virtual service in a specific Partition which is not Common, then use the System::Session::set_active_folder method to set the Folder to '/[Partition name]' before you create your virtual service.

     

     

    John
  • Thanks John

     

    Now John, I have one more question.

     

    I am creating Vlans, RouteDomains, SelfIps, Floating Ips, Monitors, Pools and Vertual Servers. If what you have said is the case, then this error should come when I am creating each of the above configuration.

     

    I would like to mention that all of them are being created in one go. My code is trying to create each and every thing above mentioned, one by one in order. I am getting this error at different places- like some time for monitor, some time for self Ips some time for virtual servers and some times for snat pools. These are occuriing randomly.

     

    One more thing. Yesterday I tried to create each of the above configuration seperatly through a small piece of dummy code and all worked fine. Now I am really confused.

     

    Is there any thing that is related while configuring the physical servers effecting the creation. Are there any chances of that.

     

    Please help.

     

  • Posted By Kumar on 10/03/2012 10:56 PM

     

    Thanks John

     

    Now John, I have one more question.

     

    I am creating Vlans, RouteDomains, SelfIps, Floating Ips, Monitors, Pools and Vertual Servers. If what you have said is the case, then this error should come when I am creating each of the above configuration.

     

    I would like to mention that all of them are being created in one go. My code is trying to create each and every thing above mentioned, one by one in order. I am getting this error at different places- like some time for monitor, some time for self Ips some time for virtual servers and some times for snat pools. These are occuriing randomly.

     

    One more thing. Yesterday I tried to create each of the above configuration seperatly through a small piece of dummy code and all worked fine. Now I am really confused.

     

    Is there any thing that is related while configuring the physical servers effecting the creation. Are there any chances of that.

     

    Please help.

     

     

     

    Any one pls. This is an issue now. These errors are not consistent.

     

  • Hello Kumar

     

     

    It may be difficult to answer without seeing some of the code - are you able to share some?

     

     

    Setting the active folder or partition can persist across iControl sessions. I would tentatively suggest that you check you are not leaving yourself in the wrong folder(especially if a script dies part way through), check your object naming/paths are consistent (are you specifying /Common/object or similar?) and also ensure that other icontrol scripts are not running against the same BIG-IP which may also be setting the active partition.

     

     

    Best Wishes

     

     

    Ross