Forum Discussion

NiHo_202842's avatar
NiHo_202842
Icon for Cirrostratus rankCirrostratus
Jul 01, 2015

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.

 

No RepliesBe the first to reply