F5Networks / f5-ansible-next

Collection for managing BIG-IP NEXT devices
1 stars 0 forks source link

unable to discover Next instance #2

Closed chen23 closed 4 months ago

chen23 commented 5 months ago
COMPONENT NAME

Environment

ANSIBLE VERSION
ansible [core 2.14.0]
  config file = None
  configured module search path = ['/home/f5debug/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
  ansible python module location = /home/f5debug/projects/f5-big-ip-next-lab/.venv/lib/python3.10/site-packages/ansible
  ansible collection location = /home/f5debug/.ansible/collections:/usr/share/ansible/collections
  executable location = /home/f5debug/projects/f5-big-ip-next-lab/.venv/bin/ansible
  python version = 3.10.12 (main, Nov 20 2023, 15:14:05) [GCC 11.4.0] (/home/f5debug/projects/f5-big-ip-next-lab/.venv/bin/python3)
  jinja version = 3.1.3
  libyaml = True
BIGIP VERSION
dev build 20.2.0
CONFIGURATION
OS / ENVIRONMENT

ubuntu 22.04 / system python3

SUMMARY

unable to discover Next instances. i have able to run device_info w/out an issue.

STEPS TO REPRODUCE
    - name: discover
      cm_next_discover:
        device_ip: 10.10.10.10
        device_port: 5443
        device_user: admin
        device_password: "XXX"
        mgmt_user: "admin-cm"
        mgmt_password: "XXX"
        timeout: 600
EXPECTED RESULTS
ACTUAL RESULTS
TASK [discover] ****************************************************************************************************************************************************************************************
An exception occurred during task execution. To see the full traceback, use -vvv. The error was: ansible.module_utils.connection.ConnectionError: seek
fatal: [central_manager_01]: FAILED! => {"changed": false, "module_stderr": "Traceback (most recent call last):\n  File \"/home/f5debug/.ansible/tmp/ansible-local-20300hpeum36b/ansible-tmp-1709153489.0079486-20412-74978214092763/AnsiballZ_cm_next_discover.py\", line 107, in <module>\n    _ansiballz_main()\n  File \"/home/f5debug/.ansible/tmp/ansible-local-20300hpeum36b/ansible-tmp-1709153489.0079486-20412-74978214092763/AnsiballZ_cm_next_discover.py\", line 99, in _ansiballz_main\n    invoke_module(zipped_mod, temp_path, ANSIBALLZ_PARAMS)\n  File \"/home/f5debug/.ansible/tmp/ansible-local-20300hpeum36b/ansible-tmp-1709153489.0079486-20412-74978214092763/AnsiballZ_cm_next_discover.py\", line 47, in invoke_module\n    runpy.run_module(mod_name='ansible_collections.f5networks.next.plugins.modules.cm_next_discover', init_globals=dict(_module_fqn='ansible_collections.f5networks.next.plugins.modules.cm_next_discover', _modlib_path=modlib_path),\n  File \"/usr/lib/python3.10/runpy.py\", line 224, in run_module\n    return _run_module_code(code, init_globals, run_name, mod_spec)\n  File \"/usr/lib/python3.10/runpy.py\", line 96, in _run_module_code\n    _run_code(code, mod_globals, init_globals,\n  File \"/usr/lib/python3.10/runpy.py\", line 86, in _run_code\n    exec(code, run_globals)\n  File \"/tmp/ansible_cm_next_discover_payload_qy78f4__/ansible_cm_next_discover_payload.zip/ansible_collections/f5networks/next/plugins/modules/cm_next_discover.py\", line 482, in <module>\n  File \"/tmp/ansible_cm_next_discover_payload_qy78f4__/ansible_cm_next_discover_payload.zip/ansible_collections/f5networks/next/plugins/modules/cm_next_discover.py\", line 475, in main\n  File \"/tmp/ansible_cm_next_discover_payload_qy78f4__/ansible_cm_next_discover_payload.zip/ansible_collections/f5networks/next/plugins/modules/cm_next_discover.py\", line 246, in exec_module\n  File \"/tmp/ansible_cm_next_discover_payload_qy78f4__/ansible_cm_next_discover_payload.zip/ansible_collections/f5networks/next/plugins/modules/cm_next_discover.py\", line 261, in present\n  File \"/tmp/ansible_cm_next_discover_payload_qy78f4__/ansible_cm_next_discover_payload.zip/ansible_collections/f5networks/next/plugins/modules/cm_next_discover.py\", line 287, in create\n  File \"/tmp/ansible_cm_next_discover_payload_qy78f4__/ansible_cm_next_discover_payload.zip/ansible_collections/f5networks/next/plugins/modules/cm_next_discover.py\", line 326, in check_if_device_reachable\n  File \"/tmp/ansible_cm_next_discover_payload_qy78f4__/ansible_cm_next_discover_payload.zip/ansible_collections/f5networks/next/plugins/module_utils/client.py\", line 21, in wrap\n  File \"/tmp/ansible_cm_next_discover_payload_qy78f4__/ansible_cm_next_discover_payload.zip/ansible_collections/f5networks/next/plugins/module_utils/client.py\", line 52, in post\n  File \"/tmp/ansible_cm_next_discover_payload_qy78f4__/ansible_cm_next_discover_payload.zip/ansible/module_utils/connection.py\", line 200, in __rpc__\nansible.module_utils.connection.ConnectionError: seek\n", "module_stdout": "", "msg": "MODULE FAILURE\nSee stdout/stderr for the exact error", "rc": 1}

PLAY RECAP *********************************************************************************************************************************************************************************************
central_manager_01         : ok=2    changed=0    unreachable=0    failed=1    skipped=0    rescued=0    ignored=0
pgouband commented 5 months ago

Hi,

Thanks for reporting. Added to the backlog and internal tracking ID for this request is: INFRAANO-1510.

pgouband commented 4 months ago

Fixed in release 1.0.1