Forum Discussion

Bret_McGinnis_1's avatar
Bret_McGinnis_1
Icon for Nimbostratus rankNimbostratus
Mar 07, 2006

PVA and [LB::server pool]

I observed some interesting behavior when I start using PVA (l4fast). I have an iRule that monitors the active number of nodes in a pool. The iRule has code for LB_SELECTED and LB_FAILED. The iRule works fine when the PVA is not being used. When I turn on PVA the iRule works fine in the LB_SELECTED event but has a problem with the LB_FAILED event. [LB::server pool] returns no value. I turn off the PVA for this VIP and [LB::server pool] returns the correct value.

 

 

I'm running version 9.1.1

 

 

Regards

 

  • Colin_Walker_12's avatar
    Colin_Walker_12
    Historic F5 Account
    Could you post a copy of the rule for us to take a look at?

     

     

    When you say that the logging isn't working properly in the LB_FAILED event...what do you mean, exactly? Is the log entry being created and the value is blank, or is no log entry being created?

     

     

    Thanks,

     

    -Colin
  • Hi,

     

     

    Here is an excerpt of the code form the LB_FAILED event

     

     

    set pool [LB::server pool]

     

    set act_nodes [active_members $pool]

     

     

    With the PVA turned off $pool contains the name the pool that failed and of act_nodes contains the number of active nodes (0). If I turn on the PVA and retry the request pool contains "" and I get a TCL runtime error setting act_nodes (which I expect when pool is ""). I turn off the PVA and retry the request and it $pool contains the name of the pool that failed.

     

     

     

    Regards,