Forum Discussion

Alexander_Parfe's avatar
Alexander_Parfe
Icon for Nimbostratus rankNimbostratus
Dec 07, 2012

tmsh load sys config v11

I have been successful in creating new Pools and iRules with "tmsh load sys config file /my/config/file.txt". I am trying to do the same with Virtual, but I keep getting validation errors for elements which exist. Example:

 

tmsh load sys config file /home/aparfeno/vip_test.txt verify

 

 

Unexpected Error: 01070341:3: Virtual server /Development/myapp.domain.com.http references rule /Common/irule.any.any.http.to.https.redirect which does not exist.

 

 

In fact, the requested iRule does exist in /config/bigip.conf:

 

 

ltm rule /Common/irule.any.any.http.to.https.redirect {

 

when HTTP_REQUEST {

 

HTTP::redirect https://[getfield [HTTP::host] ":" 1][HTTP::uri]

 

}

 

}

 

 

But for some reason the "tmsh load sys config file ...." refuses to load my Virtual unless I comment out this iRule. After removing it from the merge file, the load works. And then I have to manually add the irule back. And after I add it, the resulting /config/partitions/Development/bigip.conf has the following entry:

 

 

..

 

rules {

 

/Common/irule.any.any.http.to.https.redirect

 

}

 

 

..

 

 

 

 

But if I try to take the contents as applied via the console and try to run "tmsh load sys config file ..." again, it fails again with same verification errors. And this same patter of behavior happens with other elements which all exist in the system. More examples:

 

 

 

Unexpected Error: 01020036:3: The requested profile (/Common/http.any.any.weblogic-ssl) was not found.

 

Unexpected Error: Validating configuration process failed.

 

 

 

Unexpected Error: 01020036:3: The requested profile (/Common/tcp.30.minutes) was not found.

 

Unexpected Error: Validating configuration process failed.

 

 

 

 

..etc.

 

 

Anybody has any ideas?

 

 

7 Replies

  • Correction - when I said "refuses to load" I meant refuses to verify. Having experimented with it a bit further, it actually loads the contents of the merge file, even if verification step produces warnings. The resulting load produces correctly formatted Virtual entries.

     

     

    So the main concern is, if I am to ignore the warnings, which could potentially be valid, I don't have a safe way to process merge files for new Virtual entries.
  • Mark_Crosland_2's avatar
    Mark_Crosland_2
    Historic F5 Account
    Do you intend to replace the entire config of the system with what is in the file that you are loading?

     

    Is the iRule in the file that you are loading?

     

     

    If not, you probably want to use the merge option.

     

     

    load sys config merge file
  • I am only adding several items to configuration - not replacing the entire contents. The full commands I am using include either verify or merge options. I get errors on verify step about missing dependencies. The following merge steps is successful in adding the items to configuration. Details:

     

     

    To verify

     

    tmsh load sys config file /home/user/file.txt verify

     

    To merge

     

    tmsh load sys config file /home/user/file.txt merge
  • Mark_Crosland_2's avatar
    Mark_Crosland_2
    Historic F5 Account
    In this case you will need to specify the merge option when verifying the config.
  • That makes a difference! Thanks. I tried to look up the details with "tmsh help load", but didn't get much information back. Do you know of a better reference?

     

     

    So, commands should be:

     

    To verify

     

    tmsh load sys config file /home/user/file.txt merge verify

     

    To merge

     

    tmsh load sys config file /home/user/file.txt merge
  • Mark_Crosland_2's avatar
    Mark_Crosland_2
    Historic F5 Account
    There are help pages for the action (load, save, create, modify, ...). The help is typically brief. tmsh help load, tmsh help create, ...

     

     

    There are also help pages for the type of object/component that is being acted on. tmsh help sys config, tmsh help ltm pool, ...
  • Mark_Crosland_2's avatar
    Mark_Crosland_2
    Historic F5 Account
    There are help pages for the action (load, save, create, modify, ...). The help is typically brief. tmsh help load, tmsh help create, ...

     

     

    There are also help pages for the type of object/component that is being acted on. tmsh help sys config, tmsh help ltm pool, ...

     

    These will contain much more information.