Learn F5 Technologies, Get Answers & Share Community Solutions Join DevCentral

Filter by:
  • Solution
  • Technology
Answers

Using set_member_session_enabled_state with Bigsuds

Hi there,

Has anyone ever seen the following error message when using this function to update the status of a pool member? According to the following posting it should work but I'm getting different results. I'm running LTM 11.5.1. What's odd is that 10.192.18.87 is a current member of the pool.

lb_obj.LocalLB.Pool.set_member_session_enabled_state(['TESTPOOL'], [[{'address': '10.192.18.87', 'port' : 8443}]], [['STATE_DISABLED']])

Error message:

bigsuds.ServerError: Server raised fault: 'Exception caught in LocalLB::urn:iControl:LocalLB/Pool::set_member_session_enabled_state() Exception: Common::OperationFailed primary_error_code : 16908342 (0x01020036) secondary_error_code : 0 error_string : 01020036:3: The requested Pool Member (/Common/TESTPOOL /Common/10.192.18.87 8443) was not found.'

0
Rate this Question

Answers to this Question

placeholder+image
USER ACCEPTED ANSWER & F5 ACCEPTED ANSWER

Forgot to include the posting that I found an example that looked to be working but again, I'm getting the error posted above:

https://devcentral.f5.com/questions/bigsuds-how-to-enable-disable-certain-pool-members

0
Comments on this Answer
Comment made 25-Jan-2016 by spirrello 238
Can someone please answer this posting? Really need to get this sorted out.
0
Comment made 25-Jan-2016 by spirrello 238
Can someone please answer this posting? Really need to get this sorted out.
0
Comment made 25-Jan-2016 by spirrello 238
Can someone please answer this posting? Really need to get this sorted out.
0
placeholder+image
USER ACCEPTED ANSWER & F5 ACCEPTED ANSWER

Chances are it's just missing the partition name before the pool name and member IP Address. Run a lb_obj.LocalLB.Pool.get_list() and look for your pool name. Include the partition (/Common) in your query and then run lb_obj.LocalLB.Pool.get_member_v2(['/Common/TESTPOOL']) to see where the pool member also specifies a partition. Use those values in your command, and it should work.

0
Comments on this Answer
Comment made 25-Jan-2016 by Theo 380
I take part of it back--I do see where it adds the /Common to the request. However, I would still run the get_member_v2 on that pool and ensure it exists--the error is pretty specific. I was able to run this method on my instance using the same format.
1
Comment made 25-Jan-2016 by Theo 380
Also, what version of code on this platform?
-1