Forum Discussion

Tomeq_93315's avatar
Tomeq_93315
Icon for Nimbostratus rankNimbostratus
Nov 22, 2013

iRule still active but detached?

Hi,

 

I'm experiencing weird behaviour of iRule attached to a VIP. It's simple irule redirecting traffic to a pool based on client's IP and certain URI match. Nothing sophisticated. The iRule worked like once or twice during tests. Now i'm unable to get it stable. F5 seems to be running and parsing one of the versions I've checked previously, no matter what I change in the iRule. The iRule seems to work (!) even when I detach it from VIP. What is the reason of such behavior? Do I have to do some magic to reinitialize irule after every iRule trigger or something? How to get iRule mechanism to "apply" changes made to iRule immediately after updating the iRule? I'm running 10.2.4 HF5 software.

 

3 Replies

  • the basic behaviour is that the iRule stays active for the session. so if you update it but don't close browser it will keep using the old one. things like proxies might complicate this.

     

  • We tried closing browser and assuring that no session is hitting the old iRule. It's still active for some time (more or less TCP session timeout time). Is there a way to check for such condition and do a workaround?

     

  • that sounds like a session remains active for some reason or you are looking at the wrong thing. you can check the session table and perhaps delete it (wouldn't try this on production).

     tmsh show sys conn

     tmsh delete sys conn