Forum Discussion
LB::Server pool behavior changes
Hi guys,
We are testing the following iRules https://devcentral.f5.com/wiki/iRules.Cookie_Encryption_across_pools_and_services.ashx which deals with HTTP and HTTPS stickiness using cookies. Some times the iRule fails sending this message in the LTM log:
Oct 2 13:30:50 slot1/LTMPRE1 err tmm[10605]: 01220001:3: TCL error: /Common/iRULE_PERSISTENCE_HTTP_HTTPS_ACCM - no such pool: (line 9) invoked from within "active_members -list [LB::server pool]"
After some troubleshooting steps we have discovered that sometimes the [LB::server pool] return a blank pool name.
Following the description of this command, in the worst case we should at least return the default Pool Name ie the Pool name applied to the Virtual Server:
LB::server pool¶ Returns the pool of the currently selected member. If no server was selected yet or all servers are down, returns default pool name.
Is this a known behaviour ? Is there any other way to get automatically the name of the pool applied to a specific VS? We need to apply this irule to different VS with different Pool Names and want to avoid customisation for each service.
Thanks for your help
Regards
3 Replies
- Kevin_Stewart
Employee
Try this:
when CLIENT_ACCEPTED { set default_pool [LB::server pool] } when HTTP_REQUEST { ... foreach member [active_members -list $default_pool] { ... } ... } - Arnaud_Demene_6
Nimbostratus
This is what i though already and it works.
- Arnaud_Demene_6
Nimbostratus
thanks
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com