f5-ansible
f5-ansible copied to clipboard
bigip_pool_member task fails to complete due to msg "The specified pool does not exist"
ISSUE TYPE
- Bug Report
COMPONENT NAME
bigip_pool_member/Add Pool members
ANSIBLE VERSION
[maria@dloappf5ansib01 demo]$ ansible --version
ansible 2.10.7
config file = /home/BAHTEST/maria/demo/ansible.cfg
configured module search path = ['/home/BAHTEST/maria/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
ansible python module location = /usr/local/lib/python3.7/site-packages/ansible
executable location = /usr/local/bin/ansible
python version = 3.7.9 (default, Mar 16 2021, 12:01:24) [GCC 4.8.5 20150623 (Red Hat 4.8.5-44)]
PYTHON VERSION
[maria@dloappf5ansib01 demo]$ python -V
Python 2.7.5
BIGIP VERSION
Sys::Version
Main Package
Product BIG-IP
Version 15.1.2.1
Build 0.0.10
Edition Point Release 1
Date Fri Jan 15 13:43:15 PST 2021
CONFIGURATION
OS / ENVIRONMENT
SUMMARY
STEPS TO REPRODUCE
EXPECTED RESULTS
ACTUAL RESULTS
Could you share the content of your playbook ? i've done some tests and everything works fine on my end
Hi Nicolas - I will gather the playbook content and send it to you in a few minutes. Thank you for investigating.
Maria
On Mon, Mar 22, 2021 at 3:52 AM Nicolas Ménant @.***> wrote:
Could you share the content of your playbook ? i've done some tests and everything works fine on my end
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/F5Networks/f5-ansible/issues/1990#issuecomment-803968129, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACPJ53O6S27DS4AU4VALZWTTE4ONRANCNFSM4ZPQME6A .
-- Best regards,
María Sánchez
Mobile: +1 773 225 6125
[maria@dloappf5ansib01 demo]$ ansible-playbook -C revised-pool-issue.yml -vvv ansible-playbook 2.10.7 config file = /home/BAHTEST/maria/demo/ansible.cfg configured module search path = ['/home/BAHTEST/maria/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] ansible python module location = /usr/local/lib/python3.7/site-packages/ansible executable location = /usr/local/bin/ansible-playbook python version = 3.7.9 (default, Mar 16 2021, 12:01:24) [GCC 4.8.5 20150623 (Red Hat 4.8.5-44)] Using /home/BAHTEST/maria/demo/ansible.cfg as config file host_list declined parsing /home/BAHTEST/maria/demo/hosts as it did not pass its verify_file() method script declined parsing /home/BAHTEST/maria/demo/hosts as it did not pass its verify_file() method auto declined parsing /home/BAHTEST/maria/demo/hosts as it did not pass its verify_file() method Parsed /home/BAHTEST/maria/demo/hosts inventory source with ini plugin redirecting (type: modules) ansible.builtin.bigip_pool to f5networks.f5_modules.bigip_pool redirecting (type: modules) ansible.builtin.bigip_pool_member to f5networks.f5_modules.bigip_pool_member redirecting (type: modules) ansible.builtin.bigip_virtual_server to f5networks.f5_modules.bigip_virtual_server Skipping callback 'default', as we already have a stdout callback. Skipping callback 'minimal', as we already have a stdout callback. Skipping callback 'oneline', as we already have a stdout callback.
PLAYBOOK: revised-pool-issue.yml ********************************************************************************************************************************************************************* 1 plays in revised-pool-issue.yml
PLAY [Create a VIP, pool and pool members] ***********************************************************************************************************************************************************
TASK [Gathering Facts] *******************************************************************************************************************************************************************************
task path: /home/BAHTEST/maria/demo/revised-pool-issue.yml:3
<10.19.3.225> ESTABLISH LOCAL CONNECTION FOR USER: maria
<10.19.3.225> EXEC /bin/sh -c 'echo ~maria && sleep 0'
<10.19.3.225> EXEC /bin/sh -c '( umask 77 && mkdir -p "echo /home/BAHTEST/maria/.ansible/tmp
"&& mkdir "echo /home/BAHTEST/maria/.ansible/tmp/ansible-tmp-1616183060.5326366-4190-178793623492857
" && echo ansible-tmp-1616183060.5326366-4190-178793623492857="echo /home/BAHTEST/maria/.ansible/tmp/ansible-tmp-1616183060.5326366-4190-178793623492857
" ) && sleep 0'
<10.19.3.225> Attempting python interpreter discovery
<10.19.3.225> EXEC /bin/sh -c 'echo PLATFORM; uname; echo FOUND; command -v '"'"'/usr/bin/python'"'"'; command -v '"'"'python3.7'"'"'; command -v '"'"'python3.6'"'"'; command -v '"'"'python3.5'"'"'; command -v '"'"'python2.7'"'"'; command -v '"'"'python2.6'"'"'; command -v '"'"'/usr/libexec/platform-python'"'"'; command -v '"'"'/usr/bin/python3'"'"'; command -v '"'"'python'"'"'; echo ENDFOUND && sleep 0'
<10.19.3.225> EXEC /bin/sh -c '/usr/bin/python && sleep 0'
Using module file /usr/local/lib/python3.7/site-packages/ansible/modules/setup.py
<10.19.3.225> PUT /home/BAHTEST/maria/.ansible/tmp/ansible-local-4180n_hu98fh/tmpqpuqbhiz TO /home/BAHTEST/maria/.ansible/tmp/ansible-tmp-1616183060.5326366-4190-178793623492857/AnsiballZ_setup.py
<10.19.3.225> EXEC /bin/sh -c 'chmod u+x /home/BAHTEST/maria/.ansible/tmp/ansible-tmp-1616183060.5326366-4190-178793623492857/ /home/BAHTEST/maria/.ansible/tmp/ansible-tmp-1616183060.5326366-4190-178793623492857/AnsiballZ_setup.py && sleep 0'
<10.19.3.225> EXEC /bin/sh -c '/usr/bin/python /home/BAHTEST/maria/.ansible/tmp/ansible-tmp-1616183060.5326366-4190-178793623492857/AnsiballZ_setup.py && sleep 0'
<10.19.3.225> EXEC /bin/sh -c 'rm -f -r /home/BAHTEST/maria/.ansible/tmp/ansible-tmp-1616183060.5326366-4190-178793623492857/ > /dev/null 2>&1 && sleep 0'
ok: [10.19.3.225]
META: ran handlers
TASK [Create pool] ***********************************************************************************************************************************************************************************
task path: /home/BAHTEST/maria/demo/revised-pool-issue.yml:15
redirecting (type: action) ansible.builtin.bigip to f5networks.f5_modules.bigip
redirecting (type: action) ansible.builtin.bigip to f5networks.f5_modules.bigip
<10.19.3.225> ESTABLISH LOCAL CONNECTION FOR USER: maria
<10.19.3.225> EXEC /bin/sh -c 'echo ~maria && sleep 0'
<10.19.3.225> EXEC /bin/sh -c '( umask 77 && mkdir -p "echo /home/BAHTEST/maria/.ansible/tmp
"&& mkdir "echo /home/BAHTEST/maria/.ansible/tmp/ansible-tmp-1616183062.6985996-4257-199609867896018
" && echo ansible-tmp-1616183062.6985996-4257-199609867896018="echo /home/BAHTEST/maria/.ansible/tmp/ansible-tmp-1616183062.6985996-4257-199609867896018
" ) && sleep 0'
redirecting (type: modules) ansible.builtin.bigip_pool to f5networks.f5_modules.bigip_pool
Using module file /home/BAHTEST/maria/.ansible/collections/ansible_collections/f5networks/f5_modules/plugins/modules/bigip_pool.py
<10.19.3.225> PUT /home/BAHTEST/maria/.ansible/tmp/ansible-local-4180n_hu98fh/tmp00waiftw TO /home/BAHTEST/maria/.ansible/tmp/ansible-tmp-1616183062.6985996-4257-199609867896018/AnsiballZ_bigip_pool.py
<10.19.3.225> EXEC /bin/sh -c 'chmod u+x /home/BAHTEST/maria/.ansible/tmp/ansible-tmp-1616183062.6985996-4257-199609867896018/ /home/BAHTEST/maria/.ansible/tmp/ansible-tmp-1616183062.6985996-4257-199609867896018/AnsiballZ_bigip_pool.py && sleep 0'
<10.19.3.225> EXEC /bin/sh -c '/usr/bin/python /home/BAHTEST/maria/.ansible/tmp/ansible-tmp-1616183062.6985996-4257-199609867896018/AnsiballZ_bigip_pool.py && sleep 0'
<10.19.3.225> EXEC /bin/sh -c 'rm -f -r /home/BAHTEST/maria/.ansible/tmp/ansible-tmp-1616183062.6985996-4257-199609867896018/ > /dev/null 2>&1 && sleep 0'
changed: [10.19.3.225] => {
"changed": true,
"invocation": {
"module_args": {
"aggregate": null,
"description": null,
"lb_method": null,
"metadata": null,
"monitor_type": null,
"monitors": null,
"name": "my_pool",
"partition": "Common",
"priority_group_activation": null,
"provider": {
"auth_provider": null,
"no_f5_teem": null,
"password": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER",
"server": "10.19.3.225",
"server_port": null,
"timeout": null,
"transport": "rest",
"user": "admin",
"validate_certs": false
},
"quorum": null,
"replace_all_with": false,
"reselect_tries": null,
"service_down_action": null,
"slow_ramp_time": null,
"state": "present"
}
},
"name": "my_pool",
"partition": "Common",
"priority_group_activation": 0
}
TASK [ADD POOL MEMBERS] ******************************************************************************************************************************************************************************
task path: /home/BAHTEST/maria/demo/revised-pool-issue.yml:20
redirecting (type: action) ansible.builtin.bigip to f5networks.f5_modules.bigip
redirecting (type: action) ansible.builtin.bigip to f5networks.f5_modules.bigip
<10.19.3.225> ESTABLISH LOCAL CONNECTION FOR USER: maria
<10.19.3.225> EXEC /bin/sh -c 'echo ~maria && sleep 0'
<10.19.3.225> EXEC /bin/sh -c '( umask 77 && mkdir -p "echo /home/BAHTEST/maria/.ansible/tmp
"&& mkdir "echo /home/BAHTEST/maria/.ansible/tmp/ansible-tmp-1616183073.9707289-4309-56170376733252
" && echo ansible-tmp-1616183073.9707289-4309-56170376733252="echo /home/BAHTEST/maria/.ansible/tmp/ansible-tmp-1616183073.9707289-4309-56170376733252
" ) && sleep 0'
redirecting (type: modules) ansible.builtin.bigip_pool_member to f5networks.f5_modules.bigip_pool_member
redirecting module_util ansible.module_utils.compat.ipaddress to ansible_collections.ansible.netcommon.plugins.module_utils.compat.ipaddress
redirecting module_util ansible.module_utils.compat.ipaddress to ansible_collections.ansible.netcommon.plugins.module_utils.compat.ipaddress
redirecting module_util ansible.module_utils.network.common.utils to ansible_collections.ansible.netcommon.plugins.module_utils.network.common.utils
redirecting module_util ansible.module_utils.network.common.utils to ansible_collections.ansible.netcommon.plugins.module_utils.network.common.utils
Using module file /home/BAHTEST/maria/.ansible/collections/ansible_collections/f5networks/f5_modules/plugins/modules/bigip_pool_member.py
<10.19.3.225> PUT /home/BAHTEST/maria/.ansible/tmp/ansible-local-4180n_hu98fh/tmpicfopcy0 TO /home/BAHTEST/maria/.ansible/tmp/ansible-tmp-1616183073.9707289-4309-56170376733252/AnsiballZ_bigip_pool_member.py
<10.19.3.225> EXEC /bin/sh -c 'chmod u+x /home/BAHTEST/maria/.ansible/tmp/ansible-tmp-1616183073.9707289-4309-56170376733252/ /home/BAHTEST/maria/.ansible/tmp/ansible-tmp-1616183073.9707289-4309-56170376733252/AnsiballZ_bigip_pool_member.py && sleep 0'
<10.19.3.225> EXEC /bin/sh -c '/usr/bin/python /home/BAHTEST/maria/.ansible/tmp/ansible-tmp-1616183073.9707289-4309-56170376733252/AnsiballZ_bigip_pool_member.py && sleep 0'
<10.19.3.225> EXEC /bin/sh -c 'rm -f -r /home/BAHTEST/maria/.ansible/tmp/ansible-tmp-1616183073.9707289-4309-56170376733252/ > /dev/null 2>&1 && sleep 0'
The full traceback is:
WARNING: The below traceback may not be related to the actual failure.
File "/tmp/ansible_bigip_pool_member_payload_GnzrCY/ansible_bigip_pool_member_payload.zip/ansible_collections/f5networks/f5_modules/plugins/modules/bigip_pool_member.py", line 1676, in main
File "/tmp/ansible_bigip_pool_member_payload_GnzrCY/ansible_bigip_pool_member_payload.zip/ansible_collections/f5networks/f5_modules/plugins/modules/bigip_pool_member.py", line 1062, in exec_module
File "/tmp/ansible_bigip_pool_member_payload_GnzrCY/ansible_bigip_pool_member_payload.zip/ansible_collections/f5networks/f5_modules/plugins/modules/bigip_pool_member.py", line 1157, in execute
File "/tmp/ansible_bigip_pool_member_payload_GnzrCY/ansible_bigip_pool_member_payload.zip/ansible_collections/f5networks/f5_modules/plugins/modules/bigip_pool_member.py", line 1169, in present
File "/tmp/ansible_bigip_pool_member_payload_GnzrCY/ansible_bigip_pool_member_payload.zip/ansible_collections/f5networks/f5_modules/plugins/modules/bigip_pool_member.py", line 1245, in exists
failed: [10.19.3.225] (item={'host': '10.10.10.10', 'name': 'web01'}) => {
"ansible_loop_var": "item",
"changed": false,
"invocation": {
"module_args": {
"address": "10.10.10.10",
"aggregate": null,
"availability_requirements": null,
"connection_limit": null,
"description": null,
"fqdn": null,
"fqdn_auto_populate": null,
"ip_encapsulation": null,
"monitors": null,
"name": null,
"partition": "Common",
"pool": "my_pool",
"port": 80,
"preserve_node": null,
"priority_group": null,
"provider": {
"auth_provider": null,
"no_f5_teem": null,
"password": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER",
"server": "10.19.3.225",
"server_port": null,
"timeout": null,
"transport": "rest",
"user": "admin",
"validate_certs": false
},
"rate_limit": null,
"ratio": null,
"replace_all_with": false,
"reuse_nodes": true,
"state": "present"
}
},
"item": {
"host": "10.10.10.10",
"name": "web01"
},
"msg": "The specified pool does not exist"
}
redirecting (type: action) ansible.builtin.bigip to f5networks.f5_modules.bigip
redirecting (type: action) ansible.builtin.bigip to f5networks.f5_modules.bigip
<10.19.3.225> EXEC /bin/sh -c 'echo ~maria && sleep 0'
<10.19.3.225> EXEC /bin/sh -c '( umask 77 && mkdir -p "echo /home/BAHTEST/maria/.ansible/tmp
"&& mkdir "echo /home/BAHTEST/maria/.ansible/tmp/ansible-tmp-1616183075.176002-4309-14432789954545
" && echo ansible-tmp-1616183075.176002-4309-14432789954545="echo /home/BAHTEST/maria/.ansible/tmp/ansible-tmp-1616183075.176002-4309-14432789954545
" ) && sleep 0'
redirecting (type: modules) ansible.builtin.bigip_pool_member to f5networks.f5_modules.bigip_pool_member
Using module file /home/BAHTEST/maria/.ansible/collections/ansible_collections/f5networks/f5_modules/plugins/modules/bigip_pool_member.py
<10.19.3.225> PUT /home/BAHTEST/maria/.ansible/tmp/ansible-local-4180n_hu98fh/tmpd87s8gl3 TO /home/BAHTEST/maria/.ansible/tmp/ansible-tmp-1616183075.176002-4309-14432789954545/AnsiballZ_bigip_pool_member.py
<10.19.3.225> EXEC /bin/sh -c 'chmod u+x /home/BAHTEST/maria/.ansible/tmp/ansible-tmp-1616183075.176002-4309-14432789954545/ /home/BAHTEST/maria/.ansible/tmp/ansible-tmp-1616183075.176002-4309-14432789954545/AnsiballZ_bigip_pool_member.py && sleep 0'
<10.19.3.225> EXEC /bin/sh -c '/usr/bin/python /home/BAHTEST/maria/.ansible/tmp/ansible-tmp-1616183075.176002-4309-14432789954545/AnsiballZ_bigip_pool_member.py && sleep 0'
<10.19.3.225> EXEC /bin/sh -c 'rm -f -r /home/BAHTEST/maria/.ansible/tmp/ansible-tmp-1616183075.176002-4309-14432789954545/ > /dev/null 2>&1 && sleep 0'
The full traceback is:
WARNING: The below traceback may not be related to the actual failure.
File "/tmp/ansible_bigip_pool_member_payload_3OQiBM/ansible_bigip_pool_member_payload.zip/ansible_collections/f5networks/f5_modules/plugins/modules/bigip_pool_member.py", line 1676, in main
File "/tmp/ansible_bigip_pool_member_payload_3OQiBM/ansible_bigip_pool_member_payload.zip/ansible_collections/f5networks/f5_modules/plugins/modules/bigip_pool_member.py", line 1062, in exec_module
File "/tmp/ansible_bigip_pool_member_payload_3OQiBM/ansible_bigip_pool_member_payload.zip/ansible_collections/f5networks/f5_modules/plugins/modules/bigip_pool_member.py", line 1157, in execute
File "/tmp/ansible_bigip_pool_member_payload_3OQiBM/ansible_bigip_pool_member_payload.zip/ansible_collections/f5networks/f5_modules/plugins/modules/bigip_pool_member.py", line 1169, in present
File "/tmp/ansible_bigip_pool_member_payload_3OQiBM/ansible_bigip_pool_member_payload.zip/ansible_collections/f5networks/f5_modules/plugins/modules/bigip_pool_member.py", line 1245, in exists
failed: [10.19.3.225] (item={'host': '10.10.10.20', 'name': 'web02'}) => {
"ansible_loop_var": "item",
"changed": false,
"invocation": {
"module_args": {
"address": "10.10.10.20",
"aggregate": null,
"availability_requirements": null,
"connection_limit": null,
"description": null,
"fqdn": null,
"fqdn_auto_populate": null,
"ip_encapsulation": null,
"monitors": null,
"name": null,
"partition": "Common",
"pool": "my_pool",
"port": 80,
"preserve_node": null,
"priority_group": null,
"provider": {
"auth_provider": null,
"no_f5_teem": null,
"password": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER",
"server": "10.19.3.225",
"server_port": null,
"timeout": null,
"transport": "rest",
"user": "admin",
"validate_certs": false
},
"rate_limit": null,
"ratio": null,
"replace_all_with": false,
"reuse_nodes": true,
"state": "present"
}
},
"item": {
"host": "10.10.10.20",
"name": "web02"
},
"msg": "The specified pool does not exist"
}
PLAY RECAP ******************************************************************************************************************************************************************************************* 10.19.3.225 : ok=2 changed=1 unreachable=0 failed=1 skipped=0 rescued=0 ignored=0
syntax-revised-pool-issue.txt
-
name: Create a VIP, pool and pool members hosts: bigipDVQA connection: local
vars: provider: server: "10.19.3.225" user: "admin" password: xxxxxx validate_certs: "no"
tasks: - name: Create pool bigip_pool: name: "my_pool" provider: "{{ provider }}"
- name: ADD POOL MEMBERS bigip_pool_member: provider: "{{ provider }}" address: "{{ item.host }}" state: present pool: "my_pool" port: "80" loop: - host: "10.10.10.10" name: web01 - host: "10.10.10.20" name: web02 - name: CREATE VIP bigip_virtual_server: provider: "{{ provider }}" description: "web_vs" destination: "5.5.5.5" name: "web_vs" port: "80" snat: "Automap" all_profiles: - "http" - "clientssl" pool: "my_pool"
Note: the syntax is indented correctly but not displayed correctly when I copied and pasted.
Hi, can you try with the latest version, and let us know if you are still facing the issue. Thanks!
Hi, closing this request now. Please re-open if required or send an email to [email protected]. Thanks!