Hi,
I’m currently experiencing issue on BigIP F5 modules. My playboooks do not run on AWX environment but work CLI mode.
Here is an output of the error:
{
“module_stdout”: “”,
“module_stderr”: “Traceback (most recent call last):\n File "/root/.ansible/tmp/ansible-tmp-1597390589.096363-1639-171265220184956/AnsiballZ_bigip_device_info.py", line 102, in \n _ansiballz_main()\n File "/root/.ansible/tmp/ansible-tmp-1597390589.096363-1639-171265220184956/AnsiballZ_bigip_device_info.py", line 94, in ansiballz_main\n invoke_module(zipped_mod, temp_path, ANSIBALLZ_PARAMS)\n File "/root/.ansible/tmp/ansible-tmp-1597390589.096363-1639-171265220184956/AnsiballZ_bigip_device_info.py", line 40, in invoke_module\n runpy.run_module(mod_name=‘ansible.modules.bigip_device_info’, init_globals=None, run_name=‘main’, alter_sys=True)\n File "/usr/lib64/python3.6/runpy.py", line 205, in run_module\n return run_module_code(code, init_globals, run_name, mod_spec)\n File "/usr/lib64/python3.6/runpy.py", line 96, in run_module_code\n mod_name, mod_spec, pkg_name, script_name)\n File "/usr/lib64/python3.6/runpy.py", line 85, in run_code\n exec(code, run_globals)\n File "/tmp/ansible_bigip_device_info_payload_zhn5zq/ansible_bigip_device_info_payload.zip/ansible/modules/bigip_device_info.py", line 7232, in \n File "/tmp/ansible_bigip_device_info_payload_zhn5zq/ansible_bigip_device_info_payload.zip/ansible/module_utils/bigip.py", line 11, in \nImportError: cannot import name ‘F5BaseClient’\n”,
“exception”: “Traceback (most recent call last):\n File "/root/.ansible/tmp/ansible-tmp-1597390589.096363-1639-171265220184956/AnsiballZ_bigip_device_info.py", line 102, in \n _ansiballz_main()\n File "/root/.ansible/tmp/ansible-tmp-1597390589.096363-1639-171265220184956/AnsiballZ_bigip_device_info.py", line 94, in ansiballz_main\n invoke_module(zipped_mod, temp_path, ANSIBALLZ_PARAMS)\n File "/root/.ansible/tmp/ansible-tmp-1597390589.096363-1639-171265220184956/AnsiballZ_bigip_device_info.py", line 40, in invoke_module\n runpy.run_module(mod_name=‘ansible.modules.bigip_device_info’, init_globals=None, run_name=‘main’, alter_sys=True)\n File "/usr/lib64/python3.6/runpy.py", line 205, in run_module\n return run_module_code(code, init_globals, run_name, mod_spec)\n File "/usr/lib64/python3.6/runpy.py", line 96, in run_module_code\n mod_name, mod_spec, pkg_name, script_name)\n File "/usr/lib64/python3.6/runpy.py", line 85, in run_code\n exec(code, run_globals)\n File "/tmp/ansible_bigip_device_info_payload_zhn5zq/ansible_bigip_device_info_payload.zip/ansible/modules/bigip_device_info.py", line 7232, in \n File "/tmp/ansible_bigip_device_info_payload_zhn5zq/ansible_bigip_device_info_payload.zip/ansible/module_utils/bigip.py", line 11, in \nImportError: cannot import name ‘F5BaseClient’\n”,
“msg”: “MODULE FAILURE\nSee stdout/stderr for the exact error”,
“rc”: 1,
“_ansible_no_log”: false,
“changed”: false,
“_ansible_delegated_vars”: {
“ansible_host”: “localhost”
}
}
My running environment
AWX docker mode on RedHat 7.7
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
ccb21bae3b58 ansible/awx:12.0.0 “tini – /usr/bin/la…” 7 weeks ago Up 2 days 8052/tcp awx_task
cf125891f3fc ansible/awx:12.0.0 “tini – /bin/sh -c …” 7 weeks ago Up 2 days 0.0.0.0:80->8052/tcp awx_web
f9f5383ca004 redis “docker-entrypoint.s…” 7 weeks ago Up 2 days 6379/tcp awx_redis
584a9fe5661f postgres:10 “docker-entrypoint.s…” 7 weeks ago Up 2 days 5432/tcp awx_postgres
ansible 2.9.10
config file = /etc/ansible/ansible.cfg
configured module search path = [‘/root/.ansible/plugins/modules’, ‘/usr/share/ansible/plugins/modules’]
ansible python module location = /usr/local/lib/python3.6/site-packages/ansible
executable location = /usr/local/bin/ansible
python version = 3.6.8 (default, Jun 11 2019, 15:15:01) [GCC 4.8.5 20150623 (Red Hat 4.8.5-39)]
Many thanks for your help.
Laurent