Forum Discussion
ansible bigip_pool_member intermittently not adding member to pool
We have an ansible script that we are using to move nodes in and out of pools for testing that intermittently refuses to add the pool member thinking we are trying to add it to the root folder. The issue is that the failures are now happening almost every time, despite no changes to the script and no recent changes to our F5. Verbose mode shows it has the correct partition, but somehow that partition info is not being read or taken in properly. Thanks in advance for any help. ansible version 1.9.1 (and stuck on this version for a while)
Here's what we see when running the playbook:
TASK: [enable new nodes on external checkout pool] ****************************
<127.0.0.1> REMOTE_MODULE bigip_pool_member server=10.10.10.10 user=myuser password=VALUE_HIDDEN state=present pool=EXTERNAL_CHECKOUT_POOL **partition=WEB-GENERAL-CORE** host=MYHOST14 port=2180
<127.0.0.1> EXEC ['/bin/bash', '-c', 'mkdir -p $HOME/.ansible/tmp/ansible-tmp-1457566442.5-241342532701996 && chmod a+rx $HOME/.ansible/tmp/ansible-tmp-1457566442.5-241342532701996 && echo $HOME/.ansible/tmp/ansible-tmp-1457566442.5-241342532701996']
<127.0.0.1> PUT /tmp/tmp59N5mT TO /home/myuser/.ansible/tmp/ansible-tmp-1457566442.5-241342532701996/bigip_pool_member
<127.0.0.1> EXEC ['/bin/bash', '-c', u'LANG=C LC_CTYPE=C /usr/bin/python /home/myuser/.ansible/tmp/ansible-tmp-1457566442.5-241342532701996/bigip_pool_member; rm -rf /home/myuser/.ansible/tmp/ansible-tmp-1457566442.5-241342532701996/ >/dev/null 2>&1']
failed: [localhost -> 127.0.0.1] => (item=MYHOST14) => {"failed": true, "item": "MYHOST14"}
msg: received exception: Server raised fault: 'Exception caught in LocalLB::urn:iControl:LocalLB/Pool::add_member_v2()
Exception: Common::OperationFailed
primary_error_code : 17241203 (0x01071473)
secondary_error_code : 0
error_string : 01071473:3: Create, modify, and delete commands are not valid for (by class: pool_member) while in the root folder.'
FATAL: all hosts have already failed -- aborting
- sjurkowskiNimbostratus
Scott, have you had any luck with identifying a resolution to this? I'm seeing this while using bigip_pool_member in ansible to remove members ..though it works if I use the following construct on the task..it seems to fail on the first go around but then succeeds on the 2nd. I'm using ansible 2.3.0
register: task_result until: task_result|success retries: 3 delay: 10
- spencero_196690Nimbostratus
Any luck figuring out this issue? We are also seeing this problem when using powershell.
- ScottFriz_25366Nimbostratus
We ended up doing a bunch of upgrades, to ansible2.1.1.0 and also upgrading our F5 to 11.6. After the upgrades, we haven't had this issue with connections failing. I think your retry strategy may be your best bet.
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