Forum Discussion
Strange behaviour in iRule with data groups and cookies
Hi all.
I wrote the following iRule to allow users identified by APM and whitelisted in our datagroup to choose a specific node to go to. This is for application support so they can pinpoint issues on specific servers. If they wanted to go to application test with node 1_0, they visit https://direct.company.com/test/as_1_0 And after authenticating, every request will be pointed towards the node. /clear clears the node information.
Problem is, I'm having strange issues concerning the loading of the datagroups. Sometimes, I am whitelisted while sometimes I will be denied access. The logs report that my entry cannot be found in the data group, while it is clearly there. (and is working 10 minutes prior!)
The same for application entries (e.g. test_as_1_0 with value node_ip:node_port); sometimes they are found, sometimes they are not.
Anyone ever experienced this? I'm at a loss and i'm starting to blame solar rays. heh. I tried switching to external data groups, but same behaviour.
Thank you.
EDIT: I found the solution! It was because I was using the same static variable names for datalist and those were overwriting themselves.
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