wazuh / qa-system-framework

GNU General Public License v2.0
1 stars 3 forks source link

The HostManager - collect_host_ansible_facts method in the Windows-Agent fails to retrieve information #41

Closed pro-akim closed 1 year ago

pro-akim commented 1 year ago

Description

When there is a Windows Agent in the infrastructure to be tested, the collect_host_ansible_facts method receives the following response:

{'msg': 'The module setup was redirected to ansible.windows.setup, which could not be loaded.'}

Unfortunately, the failure of methods that utilize collect_host_ansible_facts as a callback occurs because they are not receiving the expected data different than the 'msg'.

Example

When utilizing the inventory.yml provided in the build, the collect_host_os method relies on information from collect_host_ansible_facts. However, since it is not receiving the required information, it returns the following error message:

  File "/usr/local/lib/python3.10/dist-packages/wazuh_qa_framework-1.0.0-py3.10.egg/wazuh_qa_framework/system/host_manager.py", line 110, in collect_host_os
    return (ansible_facts['ansible_facts']['ansible_distribution'],
KeyError: 'ansible_facts'
pro-akim commented 1 year ago

This issue is being closed as it was due to a framework configuration error on a single computer, which has been resolved by reinstalling it.