Forum Discussion

AndyC_86542's avatar
AndyC_86542
Icon for Nimbostratus rankNimbostratus
Feb 02, 2009

Restoring from Archive

I've had a problem with archives (.ucs files) that won't restore (error: bad command "when LB_SELECTED {"). I've managed to restore an older archive and then compare the .im files in the recent and older archives to reproduce my lost configuration. Has anyone else seen this?

 

 

Also, while comparing the .im files (inside the .ucs files) I noticed that virtual definitions never contain "translate service enable", but rather they don't contain "translate service disable". Am I right in thinking that translate service enable is the default for a new virtual?

5 Replies

  • I have not seen your first issue, but you are correct that "translate service enable" is the default for new vips, unless they are wildcard vips.

     

     

    Denny
  • Was the UCS created on the same OS version you're trying to install it on?

     

     

    It sounds like there is an error when trying to parse an iRule. Can you post an anonymized copy of the iRule which contains the LB_SELECTED event?

     

     

     

    Aaron
  • I was restoring the UCS onto the same F5 that generated it. There were no firmware upgrades between generation and attempted restore.

    The iRule starts like this (the bold bit is what appeared in the restore error):

     
     rule persistence-test { 
        when RULE_INIT { 
     set ::asm_bypass 0 
     set ::cookieName "wibble" 
     set ::paramName "wibble" 
     } 
      
     when CLIENT_ACCEPTED {   
     log local0. "[IP::client_addr]:[TCP::client_port]:[persist lookup source_addr {"172.22.20.221" pool pool-name}], new connection"   
     }   
      
     when LB_SELECTED { 
     log local0. "[IP::client_addr]:[TCP::client_port] LB persist:[LB::persist], node selected"   
     log local0. "[IP::client_addr]:[TCP::client_port] LB decision:[LB::server], node selected"   
     } 
        
     when HTTP_REQUEST { 
     ... 
     

    I suspect that the problem was the [LB::persist] for no other reason than the iRule editor doesn't recognise it properly as a keyword (although it saved and ran fine).

    Cheers

    Andy
  • If you remove the LB_SELECTED event altogether and then save/restore the UCS do you still see the error?

     

     

    If that fixes the error, you could open a case with F5 Support to report the issue.

     

     

    Aaron