[2024-04-08 21:03:15,784] [INFO] [283400] [MainThread] [workflow_engine]: Executing DAG tasks. [2024-04-08 21:03:15,784] [INFO] [283400] [MainThread] [workflow_engine]: Executing tasks in parallel. [2024-04-08 21:03:15,785] [INFO] [283400] [ThreadPoolExecutor-0_0] [workflow_engine]: [allocate-manager-linux-ubuntu-22.04-amd64] Starting task. [2024-04-08 21:03:16,119] [INFO] ALLOCATOR: Creating instance at /tmp/wazuh-qa [2024-04-08 21:03:16,119] [DEBUG] ALLOCATOR: No config provided. Generating from payload [2024-04-08 21:03:16,119] [DEBUG] ALLOCATOR: Generating new key pair [2024-04-08 21:03:20,175] [DEBUG] ALLOCATOR: Vagrantfile created. Creating instance. [2024-04-08 21:03:20,176] [INFO] ALLOCATOR: Instance VAGRANT-9DF0E7E5-52E6-47C3-9FC0-245DE93121A5 created. [2024-04-08 21:04:00,149] [INFO] ALLOCATOR: Instance VAGRANT-9DF0E7E5-52E6-47C3-9FC0-245DE93121A5 started. [2024-04-08 21:04:03,764] [INFO] ALLOCATOR: Inventory file generated at /tmp/dtt1-poc/manager-linux-ubuntu-22.04-amd64/inventory.yaml [2024-04-08 21:04:07,275] [INFO] ALLOCATOR: Track file generated at /tmp/dtt1-poc/manager-linux-ubuntu-22.04-amd64/track.yaml [2024-04-08 21:04:07,345] [INFO] [283400] [ThreadPoolExecutor-0_0] [workflow_engine]: [allocate-manager-linux-ubuntu-22.04-amd64] Finished task in 51.56 seconds. [2024-04-08 21:04:07,355] [INFO] [283400] [ThreadPoolExecutor-0_0] [workflow_engine]: [allocate-agent-linux-centos-7-amd64] Starting task. [2024-04-08 21:04:07,722] [INFO] ALLOCATOR: Creating instance at /tmp/wazuh-qa [2024-04-08 21:04:07,722] [DEBUG] ALLOCATOR: No config provided. Generating from payload [2024-04-08 21:04:07,722] [DEBUG] ALLOCATOR: Generating new key pair [2024-04-08 21:04:11,574] [DEBUG] ALLOCATOR: Vagrantfile created. Creating instance. [2024-04-08 21:04:11,575] [INFO] ALLOCATOR: Instance VAGRANT-C2555DB2-50AE-4F6C-B058-76CB2404B49A created. [2024-04-08 21:04:51,618] [INFO] ALLOCATOR: Instance VAGRANT-C2555DB2-50AE-4F6C-B058-76CB2404B49A started. [2024-04-08 21:04:54,932] [INFO] ALLOCATOR: Inventory file generated at /tmp/dtt1-poc/agent-linux-centos-7-amd64/inventory.yaml [2024-04-08 21:04:58,185] [INFO] ALLOCATOR: Track file generated at /tmp/dtt1-poc/agent-linux-centos-7-amd64/track.yaml [2024-04-08 21:04:58,255] [INFO] [283400] [ThreadPoolExecutor-0_0] [workflow_engine]: [allocate-agent-linux-centos-7-amd64] Finished task in 50.89 seconds. [2024-04-08 21:04:58,266] [INFO] [283400] [ThreadPoolExecutor-0_0] [workflow_engine]: [allocate-agent-linux-centos-8-amd64] Starting task. [2024-04-08 21:04:58,629] [INFO] ALLOCATOR: Creating instance at /tmp/wazuh-qa [2024-04-08 21:04:58,629] [DEBUG] ALLOCATOR: No config provided. Generating from payload [2024-04-08 21:04:58,629] [DEBUG] ALLOCATOR: Generating new key pair [2024-04-08 21:05:02,181] [DEBUG] ALLOCATOR: Vagrantfile created. Creating instance. [2024-04-08 21:05:02,181] [INFO] ALLOCATOR: Instance VAGRANT-512DC579-50FC-479F-8BC7-BD02DF54FDB1 created. [2024-04-08 21:05:49,051] [INFO] ALLOCATOR: Instance VAGRANT-512DC579-50FC-479F-8BC7-BD02DF54FDB1 started. [2024-04-08 21:05:52,754] [INFO] ALLOCATOR: Inventory file generated at /tmp/dtt1-poc/agent-linux-centos-8-amd64/inventory.yaml [2024-04-08 21:05:56,488] [INFO] ALLOCATOR: Track file generated at /tmp/dtt1-poc/agent-linux-centos-8-amd64/track.yaml [2024-04-08 21:05:56,549] [INFO] [283400] [ThreadPoolExecutor-0_0] [workflow_engine]: [allocate-agent-linux-centos-8-amd64] Finished task in 58.28 seconds. [2024-04-08 21:05:56,555] [INFO] [283400] [ThreadPoolExecutor-0_0] [workflow_engine]: [allocate-agent-linux-redhat-7-amd64] Starting task. [2024-04-08 21:05:56,914] [INFO] ALLOCATOR: Creating instance at /tmp/wazuh-qa [2024-04-08 21:05:56,915] [DEBUG] ALLOCATOR: No config provided. Generating from payload [2024-04-08 21:05:56,915] [DEBUG] ALLOCATOR: Generating new key pair [2024-04-08 21:06:00,489] [DEBUG] ALLOCATOR: Vagrantfile created. Creating instance. [2024-04-08 21:06:00,489] [INFO] ALLOCATOR: Instance VAGRANT-0F686F5F-61C4-47B0-8265-756BBEABAF6C created. [2024-04-08 21:06:47,302] [INFO] ALLOCATOR: Instance VAGRANT-0F686F5F-61C4-47B0-8265-756BBEABAF6C started. [2024-04-08 21:06:50,852] [INFO] ALLOCATOR: Inventory file generated at /tmp/dtt1-poc/agent-linux-redhat-7-amd64/inventory.yaml [2024-04-08 21:06:54,429] [INFO] ALLOCATOR: Track file generated at /tmp/dtt1-poc/agent-linux-redhat-7-amd64/track.yaml [2024-04-08 21:06:54,491] [INFO] [283400] [ThreadPoolExecutor-0_0] [workflow_engine]: [allocate-agent-linux-redhat-7-amd64] Finished task in 57.93 seconds. [2024-04-08 21:06:54,496] [INFO] [283400] [ThreadPoolExecutor-0_0] [workflow_engine]: [allocate-agent-linux-redhat-8-amd64] Starting task. [2024-04-08 21:06:54,863] [INFO] ALLOCATOR: Creating instance at /tmp/wazuh-qa [2024-04-08 21:06:54,863] [DEBUG] ALLOCATOR: No config provided. Generating from payload [2024-04-08 21:06:54,863] [DEBUG] ALLOCATOR: Generating new key pair [2024-04-08 21:06:58,913] [DEBUG] ALLOCATOR: Vagrantfile created. Creating instance. [2024-04-08 21:06:58,914] [INFO] ALLOCATOR: Instance VAGRANT-8B66329D-D835-453F-8B08-327E13E80D67 created. [2024-04-08 21:07:46,393] [INFO] ALLOCATOR: Instance VAGRANT-8B66329D-D835-453F-8B08-327E13E80D67 started. [2024-04-08 21:07:49,942] [INFO] ALLOCATOR: Inventory file generated at /tmp/dtt1-poc/agent-linux-redhat-8-amd64/inventory.yaml [2024-04-08 21:07:53,535] [INFO] ALLOCATOR: Track file generated at /tmp/dtt1-poc/agent-linux-redhat-8-amd64/track.yaml [2024-04-08 21:07:53,614] [INFO] [283400] [ThreadPoolExecutor-0_0] [workflow_engine]: [allocate-agent-linux-redhat-8-amd64] Finished task in 59.11 seconds. [2024-04-08 21:07:53,624] [INFO] [283400] [ThreadPoolExecutor-0_0] [workflow_engine]: [allocate-agent-linux-redhat-9-amd64] Starting task. [2024-04-08 21:07:53,991] [INFO] ALLOCATOR: Creating instance at /tmp/wazuh-qa [2024-04-08 21:07:53,992] [DEBUG] ALLOCATOR: No config provided. Generating from payload [2024-04-08 21:07:53,992] [DEBUG] ALLOCATOR: Generating new key pair [2024-04-08 21:07:57,475] [DEBUG] ALLOCATOR: Vagrantfile created. Creating instance. [2024-04-08 21:07:57,475] [INFO] ALLOCATOR: Instance VAGRANT-ECEA17B6-30CA-4640-8D75-5E9FA5879397 created. [2024-04-08 21:08:42,681] [INFO] ALLOCATOR: Instance VAGRANT-ECEA17B6-30CA-4640-8D75-5E9FA5879397 started. [2024-04-08 21:08:46,372] [INFO] ALLOCATOR: Inventory file generated at /tmp/dtt1-poc/agent-linux-redhat-9-amd64/inventory.yaml [2024-04-08 21:08:50,037] [INFO] ALLOCATOR: Track file generated at /tmp/dtt1-poc/agent-linux-redhat-9-amd64/track.yaml [2024-04-08 21:08:50,102] [INFO] [283400] [ThreadPoolExecutor-0_0] [workflow_engine]: [allocate-agent-linux-redhat-9-amd64] Finished task in 56.47 seconds. [2024-04-08 21:08:50,113] [INFO] [283400] [ThreadPoolExecutor-0_0] [workflow_engine]: [allocate-agent-linux-amazon-2-amd64] Starting task. [2024-04-08 21:08:50,452] [INFO] ALLOCATOR: Creating instance at /tmp/wazuh-qa [2024-04-08 21:08:50,452] [DEBUG] ALLOCATOR: No config provided. Generating from payload [2024-04-08 21:08:50,452] [DEBUG] ALLOCATOR: Generating new key pair [2024-04-08 21:08:54,472] [DEBUG] ALLOCATOR: Vagrantfile created. Creating instance. [2024-04-08 21:08:54,472] [INFO] ALLOCATOR: Instance VAGRANT-29538C97-348D-4122-9BA9-53E2EBCC47B4 created. [2024-04-08 21:10:03,964] [INFO] ALLOCATOR: Instance VAGRANT-29538C97-348D-4122-9BA9-53E2EBCC47B4 started. [2024-04-08 21:10:07,519] [INFO] ALLOCATOR: Inventory file generated at /tmp/dtt1-poc/agent-linux-amazon-2-amd64/inventory.yaml [2024-04-08 21:10:10,947] [INFO] ALLOCATOR: Track file generated at /tmp/dtt1-poc/agent-linux-amazon-2-amd64/track.yaml [2024-04-08 21:10:11,017] [INFO] [283400] [ThreadPoolExecutor-0_0] [workflow_engine]: [allocate-agent-linux-amazon-2-amd64] Finished task in 80.89 seconds. [2024-04-08 21:10:11,028] [INFO] [283400] [ThreadPoolExecutor-0_0] [workflow_engine]: [provision-manager-linux-ubuntu-22.04-amd64] Starting task. [2024-04-08 21:10:11,395] [DEBUG] ANSIBLE: Using inventory: {'all': {'hosts': {'192.168.57.2': {'ansible_port': 22, 'ansible_user': 'vagrant', 'ansible_ssh_private_key_file': '/tmp/wazuh-qa/VAGRANT-9DF0E7E5-52E6-47C3-9FC0-245DE93121A5/instance_key'}}}} [2024-04-08 21:10:11,395] [DEBUG] ANSIBLE: Running playbook: {'hosts': '192.168.57.2', 'become': True, 'gather_facts': True, 'tasks': [{'name': 'Capture ansible_os_family', 'set_fact': {'ansible_os_family': "{{ ansible_facts['distribution_file_variety'] }}", 'cacheable': 'yes'}}]} [2024-04-08 21:10:14,038] [DEBUG] ANSIBLE: Playbook {'hosts': '192.168.57.2', 'become': True, 'gather_facts': True, 'tasks': [{'name': 'Capture ansible_os_family', 'set_fact': {'ansible_os_family': "{{ ansible_facts['distribution_file_variety'] }}", 'cacheable': 'yes'}}]} finished with status {'skipped': {}, 'ok': {'192.168.57.2': 2}, 'dark': {}, 'failures': {}, 'ignored': {}, 'rescued': {}, 'processed': {'192.168.57.2': 1}, 'changed': {}} [2024-04-08 21:10:14,039] [DEBUG] ANSIBLE: Templates found: ['download.j2', 'install.j2'] [2024-04-08 21:10:14,044] [DEBUG] ANSIBLE: Rendering template download.j2 [2024-04-08 21:10:14,046] [DEBUG] ANSIBLE: Rendering template install.j2 [2024-04-08 21:10:14,046] [DEBUG] ANSIBLE: [{'name': 'Install the required packages', 'shell': '\nsudo apt-get update && apt-get -y install curl\n'}, {'name': 'Download the Wazuh installation assistant', 'shell': 'curl -sO https://packages.wazuh.com/4.7/wazuh-install.sh'}, {'name': 'Install wazuh-manager with asistant', 'shell': 'bash ./wazuh-install.sh -a -i'}] [2024-04-08 21:10:14,047] [DEBUG] ANSIBLE: Using inventory: {'all': {'hosts': {'192.168.57.2': {'ansible_port': 22, 'ansible_user': 'vagrant', 'ansible_ssh_private_key_file': '/tmp/wazuh-qa/VAGRANT-9DF0E7E5-52E6-47C3-9FC0-245DE93121A5/instance_key'}}}} [2024-04-08 21:10:14,047] [DEBUG] ANSIBLE: Running playbook: {'hosts': '192.168.57.2', 'become': True, 'gather_facts': True, 'tasks': [{'name': 'Install the required packages', 'shell': '\nsudo apt-get update && apt-get -y install curl\n'}, {'name': 'Download the Wazuh installation assistant', 'shell': 'curl -sO https://packages.wazuh.com/4.7/wazuh-install.sh'}, {'name': 'Install wazuh-manager with asistant', 'shell': 'bash ./wazuh-install.sh -a -i'}]} [2024-04-08 21:16:26,596] [DEBUG] ANSIBLE: Playbook {'hosts': '192.168.57.2', 'become': True, 'gather_facts': True, 'tasks': [{'name': 'Install the required packages', 'shell': '\nsudo apt-get update && apt-get -y install curl\n'}, {'name': 'Download the Wazuh installation assistant', 'shell': 'curl -sO https://packages.wazuh.com/4.7/wazuh-install.sh'}, {'name': 'Install wazuh-manager with asistant', 'shell': 'bash ./wazuh-install.sh -a -i'}]} finished with status {'skipped': {}, 'ok': {'192.168.57.2': 4}, 'dark': {}, 'failures': {}, 'ignored': {}, 'rescued': {}, 'processed': {'192.168.57.2': 1}, 'changed': {'192.168.57.2': 3}} [2024-04-08 21:16:26,675] [INFO] [283400] [ThreadPoolExecutor-0_0] [workflow_engine]: [provision-manager-linux-ubuntu-22.04-amd64] Finished task in 375.64 seconds. [2024-04-08 21:16:26,690] [INFO] [283400] [ThreadPoolExecutor-0_0] [workflow_engine]: [run-agent-linux-centos-7-amd64-tests] Starting task. [2024-04-08 21:16:27,056] [INFO] TESTER: Running tests for 192.168.57.2 [2024-04-08 21:16:27,057] [INFO] TESTER: Running tests for 192.168.57.3 [2024-04-08 21:16:27,057] [DEBUG] TESTER: Using extra vars: {'component': 'agent', 'wazuh_version': '4.7.3', 'wazuh_revision': '40714', 'wazuh_branch': None, 'working_dir': '/tmp/tests', 'live': True, 'hosts_ip': ['192.168.57.2', '192.168.57.3'], 'targets': '{wazuh-1: /tmp/dtt1-poc/manager-linux-ubuntu-22.04-amd64/inventory.yaml, agent: /tmp/dtt1-poc/agent-linux-centos-7-amd64/inventory.yaml}', 'dependencies': '{}', 'local_host_path': '/home/akim/Desktop/wazuh-qa/deployability', 'current_user': 'akim'} [2024-04-08 21:16:27,064] [DEBUG] ANSIBLE: Rendering template /home/akim/Desktop/wazuh-qa/deployability/modules/testing/playbooks/setup.yml [2024-04-08 21:16:27,066] [DEBUG] ANSIBLE: Using inventory: {'all': {'hosts': {'192.168.57.2': {'ansible_port': 22, 'ansible_user': 'vagrant', 'ansible_ssh_private_key_file': '/tmp/wazuh-qa/VAGRANT-9DF0E7E5-52E6-47C3-9FC0-245DE93121A5/instance_key'}}}} [2024-04-08 21:16:27,066] [DEBUG] ANSIBLE: Running playbook: [{'hosts': 'localhost', 'become': True, 'become_user': 'akim', 'tasks': [{'name': 'Cleaning old key ssh-keygen registries', 'ansible.builtin.command': {'cmd': "ssh-keygen -f /home/akim/.ssh/known_hosts -R ''"}, 'loop': ['192.168.57.2', '192.168.57.3']}]}] [2024-04-08 21:16:33,163] [DEBUG] ANSIBLE: Playbook [{'hosts': 'localhost', 'become': True, 'become_user': 'akim', 'tasks': [{'name': 'Cleaning old key ssh-keygen registries', 'ansible.builtin.command': {'cmd': "ssh-keygen -f /home/akim/.ssh/known_hosts -R ''"}, 'loop': ['192.168.57.2', '192.168.57.3']}]}] finished with status {'skipped': {}, 'ok': {'localhost': 2}, 'dark': {}, 'failures': {}, 'ignored': {}, 'rescued': {}, 'processed': {'localhost': 1}, 'changed': {'localhost': 1}} [2024-04-08 21:16:33,165] [DEBUG] ANSIBLE: Rendering template /home/akim/Desktop/wazuh-qa/deployability/modules/testing/playbooks/test.yml [2024-04-08 21:16:33,167] [DEBUG] ANSIBLE: Using inventory: {'all': {'hosts': {'192.168.57.2': {'ansible_port': 22, 'ansible_user': 'vagrant', 'ansible_ssh_private_key_file': '/tmp/wazuh-qa/VAGRANT-9DF0E7E5-52E6-47C3-9FC0-245DE93121A5/instance_key'}}}} [2024-04-08 21:16:33,167] [DEBUG] ANSIBLE: Running playbook: [{'hosts': 'localhost', 'become': True, 'become_user': 'akim', 'tasks': [{'name': 'Test install for agent', 'command': "python3 -m pytest modules/testing/tests/test_agent/test_install.py -v --wazuh_version=4.7.3 --wazuh_revision=40714 --component=agent --dependencies='{}' --targets='{wazuh-1: /tmp/dtt1-poc/manager-linux-ubuntu-22.04-amd64/inventory.yaml, agent: /tmp/dtt1-poc/agent-linux-centos-7-amd64/inventory.yaml}' --live=True -s", 'args': {'chdir': '/home/akim/Desktop/wazuh-qa/deployability'}}]}] [2024-04-08 21:16:36,691] [INFO] [Testing]: Checking connection to centos-7 [2024-04-08 21:16:37,022] [INFO] [Testing]: Connection established successfully in centos-7 [2024-04-08 21:16:37,550] [INFO] [Testing]: Checking connection to ubuntu-22.04 [2024-04-08 21:16:37,869] [INFO] [Testing]: Connection established successfully in ubuntu-22.04 [2024-04-08 21:16:38,330] [INFO] [Testing]: No Firewall to disable on centos-7 [2024-04-08 21:16:38,532] [INFO] [Testing]: Manager is already installed in ubuntu-22.04 [2024-04-08 21:16:39,132] [INFO] [Testing]: Generating Snapshot for Checkfile in centos-7 [2024-04-08 21:16:42,428] [INFO] [Testing]: Installing Agent in centos-7 [2024-04-08 21:17:09,523] [INFO] [Testing]: Generating Snapshot for Checkfile in centos-7 [2024-04-08 21:17:11,599] [INFO] [Testing]: Applying filters in checkfiles in centos-7 [2024-04-08 21:17:11,599] [INFO] [Testing]: Pre and post install checkfile comparison in centos-7: {'/boot': {'added': [], 'removed': [], 'modified': []}, '/usr/bin': {'added': [], 'removed': [], 'modified': []}, '/root': {'added': [], 'removed': [], 'modified': []}, '/usr/sbin': {'added': [], 'removed': [], 'modified': []}} [2024-04-08 21:17:12,002] [INFO] [Testing]: Getting status of centos-7 [2024-04-08 21:17:13,528] [DEBUG] ANSIBLE: Playbook [{'hosts': 'localhost', 'become': True, 'become_user': 'akim', 'tasks': [{'name': 'Test install for agent', 'command': "python3 -m pytest modules/testing/tests/test_agent/test_install.py -v --wazuh_version=4.7.3 --wazuh_revision=40714 --component=agent --dependencies='{}' --targets='{wazuh-1: /tmp/dtt1-poc/manager-linux-ubuntu-22.04-amd64/inventory.yaml, agent: /tmp/dtt1-poc/agent-linux-centos-7-amd64/inventory.yaml}' --live=True -s", 'args': {'chdir': '/home/akim/Desktop/wazuh-qa/deployability'}}]}] finished with status {'skipped': {}, 'ok': {'localhost': 2}, 'dark': {}, 'failures': {}, 'ignored': {}, 'rescued': {}, 'processed': {'localhost': 1}, 'changed': {'localhost': 1}} [2024-04-08 21:17:13,530] [DEBUG] ANSIBLE: Rendering template /home/akim/Desktop/wazuh-qa/deployability/modules/testing/playbooks/test.yml [2024-04-08 21:17:13,532] [DEBUG] ANSIBLE: Using inventory: {'all': {'hosts': {'192.168.57.2': {'ansible_port': 22, 'ansible_user': 'vagrant', 'ansible_ssh_private_key_file': '/tmp/wazuh-qa/VAGRANT-9DF0E7E5-52E6-47C3-9FC0-245DE93121A5/instance_key'}}}} [2024-04-08 21:17:13,532] [DEBUG] ANSIBLE: Running playbook: [{'hosts': 'localhost', 'become': True, 'become_user': 'akim', 'tasks': [{'name': 'Test registration for agent', 'command': "python3 -m pytest modules/testing/tests/test_agent/test_registration.py -v --wazuh_version=4.7.3 --wazuh_revision=40714 --component=agent --dependencies='{}' --targets='{wazuh-1: /tmp/dtt1-poc/manager-linux-ubuntu-22.04-amd64/inventory.yaml, agent: /tmp/dtt1-poc/agent-linux-centos-7-amd64/inventory.yaml}' --live=True -s", 'args': {'chdir': '/home/akim/Desktop/wazuh-qa/deployability'}}]}] [2024-04-08 21:17:19,773] [INFO] [Testing]: Checking connection to centos-7 [2024-04-08 21:17:20,091] [INFO] [Testing]: Connection established successfully in centos-7 [2024-04-08 21:17:34,141] [INFO] [Testing]: Getting status of centos-7 [2024-04-08 21:18:09,066] [DEBUG] ANSIBLE: Playbook [{'hosts': 'localhost', 'become': True, 'become_user': 'akim', 'tasks': [{'name': 'Test registration for agent', 'command': "python3 -m pytest modules/testing/tests/test_agent/test_registration.py -v --wazuh_version=4.7.3 --wazuh_revision=40714 --component=agent --dependencies='{}' --targets='{wazuh-1: /tmp/dtt1-poc/manager-linux-ubuntu-22.04-amd64/inventory.yaml, agent: /tmp/dtt1-poc/agent-linux-centos-7-amd64/inventory.yaml}' --live=True -s", 'args': {'chdir': '/home/akim/Desktop/wazuh-qa/deployability'}}]}] finished with status {'skipped': {}, 'ok': {'localhost': 2}, 'dark': {}, 'failures': {}, 'ignored': {}, 'rescued': {}, 'processed': {'localhost': 1}, 'changed': {'localhost': 1}} [2024-04-08 21:18:09,069] [DEBUG] ANSIBLE: Rendering template /home/akim/Desktop/wazuh-qa/deployability/modules/testing/playbooks/test.yml [2024-04-08 21:18:09,070] [DEBUG] ANSIBLE: Using inventory: {'all': {'hosts': {'192.168.57.2': {'ansible_port': 22, 'ansible_user': 'vagrant', 'ansible_ssh_private_key_file': '/tmp/wazuh-qa/VAGRANT-9DF0E7E5-52E6-47C3-9FC0-245DE93121A5/instance_key'}}}} [2024-04-08 21:18:09,071] [DEBUG] ANSIBLE: Running playbook: [{'hosts': 'localhost', 'become': True, 'become_user': 'akim', 'tasks': [{'name': 'Test restart for agent', 'command': "python3 -m pytest modules/testing/tests/test_agent/test_restart.py -v --wazuh_version=4.7.3 --wazuh_revision=40714 --component=agent --dependencies='{}' --targets='{wazuh-1: /tmp/dtt1-poc/manager-linux-ubuntu-22.04-amd64/inventory.yaml, agent: /tmp/dtt1-poc/agent-linux-centos-7-amd64/inventory.yaml}' --live=True -s", 'args': {'chdir': '/home/akim/Desktop/wazuh-qa/deployability'}}]}] [2024-04-08 21:18:15,278] [INFO] [Testing]: Checking connection to centos-7 [2024-04-08 21:18:15,589] [INFO] [Testing]: Connection established successfully in centos-7 [2024-04-08 21:18:33,148] [INFO] [Testing]: Restarting wazuh-agent in centos-7 [2024-04-08 21:18:42,060] [INFO] [Testing]: Getting status of centos-7 [2024-04-08 21:18:44,818] [DEBUG] ANSIBLE: Playbook [{'hosts': 'localhost', 'become': True, 'become_user': 'akim', 'tasks': [{'name': 'Test restart for agent', 'command': "python3 -m pytest modules/testing/tests/test_agent/test_restart.py -v --wazuh_version=4.7.3 --wazuh_revision=40714 --component=agent --dependencies='{}' --targets='{wazuh-1: /tmp/dtt1-poc/manager-linux-ubuntu-22.04-amd64/inventory.yaml, agent: /tmp/dtt1-poc/agent-linux-centos-7-amd64/inventory.yaml}' --live=True -s", 'args': {'chdir': '/home/akim/Desktop/wazuh-qa/deployability'}}]}] finished with status {'skipped': {}, 'ok': {'localhost': 2}, 'dark': {}, 'failures': {}, 'ignored': {}, 'rescued': {}, 'processed': {'localhost': 1}, 'changed': {'localhost': 1}} [2024-04-08 21:18:44,820] [DEBUG] ANSIBLE: Rendering template /home/akim/Desktop/wazuh-qa/deployability/modules/testing/playbooks/test.yml [2024-04-08 21:18:44,822] [DEBUG] ANSIBLE: Using inventory: {'all': {'hosts': {'192.168.57.2': {'ansible_port': 22, 'ansible_user': 'vagrant', 'ansible_ssh_private_key_file': '/tmp/wazuh-qa/VAGRANT-9DF0E7E5-52E6-47C3-9FC0-245DE93121A5/instance_key'}}}} [2024-04-08 21:18:44,822] [DEBUG] ANSIBLE: Running playbook: [{'hosts': 'localhost', 'become': True, 'become_user': 'akim', 'tasks': [{'name': 'Test stop for agent', 'command': "python3 -m pytest modules/testing/tests/test_agent/test_stop.py -v --wazuh_version=4.7.3 --wazuh_revision=40714 --component=agent --dependencies='{}' --targets='{wazuh-1: /tmp/dtt1-poc/manager-linux-ubuntu-22.04-amd64/inventory.yaml, agent: /tmp/dtt1-poc/agent-linux-centos-7-amd64/inventory.yaml}' --live=True -s", 'args': {'chdir': '/home/akim/Desktop/wazuh-qa/deployability'}}]}] [2024-04-08 21:18:51,222] [INFO] [Testing]: Checking connection to centos-7 [2024-04-08 21:18:51,581] [INFO] [Testing]: Connection established successfully in centos-7 [2024-04-08 21:18:55,173] [INFO] [Testing]: Stopping wazuh-agent in centos-7 [2024-04-08 21:18:57,151] [INFO] [Testing]: Getting status of centos-7 [2024-04-08 21:18:58,083] [INFO] [Testing]: Restarting wazuh-agent in centos-7 [2024-04-08 21:19:11,345] [DEBUG] ANSIBLE: Playbook [{'hosts': 'localhost', 'become': True, 'become_user': 'akim', 'tasks': [{'name': 'Test stop for agent', 'command': "python3 -m pytest modules/testing/tests/test_agent/test_stop.py -v --wazuh_version=4.7.3 --wazuh_revision=40714 --component=agent --dependencies='{}' --targets='{wazuh-1: /tmp/dtt1-poc/manager-linux-ubuntu-22.04-amd64/inventory.yaml, agent: /tmp/dtt1-poc/agent-linux-centos-7-amd64/inventory.yaml}' --live=True -s", 'args': {'chdir': '/home/akim/Desktop/wazuh-qa/deployability'}}]}] finished with status {'skipped': {}, 'ok': {'localhost': 2}, 'dark': {}, 'failures': {}, 'ignored': {}, 'rescued': {}, 'processed': {'localhost': 1}, 'changed': {'localhost': 1}} [2024-04-08 21:19:11,349] [DEBUG] ANSIBLE: Rendering template /home/akim/Desktop/wazuh-qa/deployability/modules/testing/playbooks/test.yml [2024-04-08 21:19:11,352] [DEBUG] ANSIBLE: Using inventory: {'all': {'hosts': {'192.168.57.2': {'ansible_port': 22, 'ansible_user': 'vagrant', 'ansible_ssh_private_key_file': '/tmp/wazuh-qa/VAGRANT-9DF0E7E5-52E6-47C3-9FC0-245DE93121A5/instance_key'}}}} [2024-04-08 21:19:11,352] [DEBUG] ANSIBLE: Running playbook: [{'hosts': 'localhost', 'become': True, 'become_user': 'akim', 'tasks': [{'name': 'Test uninstall for agent', 'command': "python3 -m pytest modules/testing/tests/test_agent/test_uninstall.py -v --wazuh_version=4.7.3 --wazuh_revision=40714 --component=agent --dependencies='{}' --targets='{wazuh-1: /tmp/dtt1-poc/manager-linux-ubuntu-22.04-amd64/inventory.yaml, agent: /tmp/dtt1-poc/agent-linux-centos-7-amd64/inventory.yaml}' --live=True -s", 'args': {'chdir': '/home/akim/Desktop/wazuh-qa/deployability'}}]}] [2024-04-08 21:19:15,022] [INFO] [Testing]: Checking connection to centos-7 [2024-04-08 21:19:15,366] [INFO] [Testing]: Connection established successfully in centos-7 [2024-04-08 21:19:19,176] [INFO] [Testing]: Generating Snapshot for Checkfile in centos-7 [2024-04-08 21:19:27,168] [INFO] [Testing]: Uninstalling Agent in centos-7 [2024-04-08 21:19:43,212] [INFO] [Testing]: Generating Snapshot for Checkfile in centos-7 [2024-04-08 21:19:45,242] [INFO] [Testing]: Applying filters in checkfiles in centos-7 [2024-04-08 21:19:45,242] [INFO] [Testing]: Pre and post uninstall checkfile comparison in centos-7: {'/boot': {'added': [], 'removed': [], 'modified': []}, '/usr/bin': {'added': [], 'removed': [], 'modified': []}, '/root': {'added': [], 'removed': [], 'modified': []}, '/usr/sbin': {'added': [], 'removed': [], 'modified': []}} [2024-04-08 21:19:47,956] [DEBUG] ANSIBLE: Playbook [{'hosts': 'localhost', 'become': True, 'become_user': 'akim', 'tasks': [{'name': 'Test uninstall for agent', 'command': "python3 -m pytest modules/testing/tests/test_agent/test_uninstall.py -v --wazuh_version=4.7.3 --wazuh_revision=40714 --component=agent --dependencies='{}' --targets='{wazuh-1: /tmp/dtt1-poc/manager-linux-ubuntu-22.04-amd64/inventory.yaml, agent: /tmp/dtt1-poc/agent-linux-centos-7-amd64/inventory.yaml}' --live=True -s", 'args': {'chdir': '/home/akim/Desktop/wazuh-qa/deployability'}}]}] finished with status {'skipped': {}, 'ok': {'localhost': 2}, 'dark': {}, 'failures': {}, 'ignored': {}, 'rescued': {}, 'processed': {'localhost': 1}, 'changed': {'localhost': 1}} [2024-04-08 21:19:47,957] [DEBUG] ANSIBLE: Using inventory: {'all': {'hosts': {'192.168.57.2': {'ansible_port': 22, 'ansible_user': 'vagrant', 'ansible_ssh_private_key_file': '/tmp/wazuh-qa/VAGRANT-9DF0E7E5-52E6-47C3-9FC0-245DE93121A5/instance_key'}}}} [2024-04-08 21:19:47,957] [DEBUG] ANSIBLE: Running playbook: /home/akim/Desktop/wazuh-qa/deployability/modules/testing/playbooks/cleanup.yml [2024-04-08 21:19:50,699] [DEBUG] ANSIBLE: Playbook /home/akim/Desktop/wazuh-qa/deployability/modules/testing/playbooks/cleanup.yml finished with status {'skipped': {}, 'ok': {'192.168.57.2': 2}, 'dark': {}, 'failures': {}, 'ignored': {}, 'rescued': {}, 'processed': {'192.168.57.2': 1}, 'changed': {}} [2024-04-08 21:19:50,700] [DEBUG] ANSIBLE: Using inventory: {'all': {'hosts': {'192.168.57.2': {'ansible_port': 22, 'ansible_user': 'vagrant', 'ansible_ssh_private_key_file': '/tmp/wazuh-qa/VAGRANT-9DF0E7E5-52E6-47C3-9FC0-245DE93121A5/instance_key'}}}} [2024-04-08 21:19:50,700] [DEBUG] ANSIBLE: Running playbook: /home/akim/Desktop/wazuh-qa/deployability/modules/testing/playbooks/cleanup.yml [2024-04-08 21:19:53,198] [DEBUG] ANSIBLE: Playbook /home/akim/Desktop/wazuh-qa/deployability/modules/testing/playbooks/cleanup.yml finished with status {'skipped': {}, 'ok': {'192.168.57.2': 2}, 'dark': {}, 'failures': {}, 'ignored': {}, 'rescued': {}, 'processed': {'192.168.57.2': 1}, 'changed': {}} [2024-04-08 21:19:53,291] [INFO] [283400] [ThreadPoolExecutor-0_0] [workflow_engine]: [run-agent-linux-centos-7-amd64-tests] Finished task in 206.59 seconds. [2024-04-08 21:19:53,297] [INFO] [283400] [ThreadPoolExecutor-0_0] [workflow_engine]: [run-agent-linux-centos-8-amd64-tests] Starting task. [2024-04-08 21:19:53,681] [INFO] TESTER: Running tests for 192.168.57.2 [2024-04-08 21:19:53,681] [INFO] TESTER: Running tests for 192.168.57.4 [2024-04-08 21:19:53,682] [DEBUG] TESTER: Using extra vars: {'component': 'agent', 'wazuh_version': '4.7.3', 'wazuh_revision': '40714', 'wazuh_branch': None, 'working_dir': '/tmp/tests', 'live': True, 'hosts_ip': ['192.168.57.2', '192.168.57.4'], 'targets': '{wazuh-1: /tmp/dtt1-poc/manager-linux-ubuntu-22.04-amd64/inventory.yaml, agent: /tmp/dtt1-poc/agent-linux-centos-8-amd64/inventory.yaml}', 'dependencies': '{}', 'local_host_path': '/home/akim/Desktop/wazuh-qa/deployability', 'current_user': 'akim'} [2024-04-08 21:19:53,689] [DEBUG] ANSIBLE: Rendering template /home/akim/Desktop/wazuh-qa/deployability/modules/testing/playbooks/setup.yml [2024-04-08 21:19:53,690] [DEBUG] ANSIBLE: Using inventory: {'all': {'hosts': {'192.168.57.2': {'ansible_port': 22, 'ansible_user': 'vagrant', 'ansible_ssh_private_key_file': '/tmp/wazuh-qa/VAGRANT-9DF0E7E5-52E6-47C3-9FC0-245DE93121A5/instance_key'}}}} [2024-04-08 21:19:53,691] [DEBUG] ANSIBLE: Running playbook: [{'hosts': 'localhost', 'become': True, 'become_user': 'akim', 'tasks': [{'name': 'Cleaning old key ssh-keygen registries', 'ansible.builtin.command': {'cmd': "ssh-keygen -f /home/akim/.ssh/known_hosts -R ''"}, 'loop': ['192.168.57.2', '192.168.57.4']}]}] [2024-04-08 21:19:59,846] [DEBUG] ANSIBLE: Playbook [{'hosts': 'localhost', 'become': True, 'become_user': 'akim', 'tasks': [{'name': 'Cleaning old key ssh-keygen registries', 'ansible.builtin.command': {'cmd': "ssh-keygen -f /home/akim/.ssh/known_hosts -R ''"}, 'loop': ['192.168.57.2', '192.168.57.4']}]}] finished with status {'skipped': {}, 'ok': {'localhost': 2}, 'dark': {}, 'failures': {}, 'ignored': {}, 'rescued': {}, 'processed': {'localhost': 1}, 'changed': {'localhost': 1}} [2024-04-08 21:19:59,848] [DEBUG] ANSIBLE: Rendering template /home/akim/Desktop/wazuh-qa/deployability/modules/testing/playbooks/test.yml [2024-04-08 21:19:59,849] [DEBUG] ANSIBLE: Using inventory: {'all': {'hosts': {'192.168.57.2': {'ansible_port': 22, 'ansible_user': 'vagrant', 'ansible_ssh_private_key_file': '/tmp/wazuh-qa/VAGRANT-9DF0E7E5-52E6-47C3-9FC0-245DE93121A5/instance_key'}}}} [2024-04-08 21:19:59,849] [DEBUG] ANSIBLE: Running playbook: [{'hosts': 'localhost', 'become': True, 'become_user': 'akim', 'tasks': [{'name': 'Test install for agent', 'command': "python3 -m pytest modules/testing/tests/test_agent/test_install.py -v --wazuh_version=4.7.3 --wazuh_revision=40714 --component=agent --dependencies='{}' --targets='{wazuh-1: /tmp/dtt1-poc/manager-linux-ubuntu-22.04-amd64/inventory.yaml, agent: /tmp/dtt1-poc/agent-linux-centos-8-amd64/inventory.yaml}' --live=True -s", 'args': {'chdir': '/home/akim/Desktop/wazuh-qa/deployability'}}]}] [2024-04-08 21:20:03,375] [INFO] [Testing]: Checking connection to centos-8 [2024-04-08 21:20:03,707] [INFO] [Testing]: Connection established successfully in centos-8 [2024-04-08 21:20:03,982] [INFO] [Testing]: Checking connection to ubuntu-22.04 [2024-04-08 21:20:04,300] [INFO] [Testing]: Connection established successfully in ubuntu-22.04 [2024-04-08 21:20:05,288] [INFO] [Testing]: Firewall disabled on centos-8 [2024-04-08 21:20:05,504] [INFO] [Testing]: Manager is already installed in ubuntu-22.04 [2024-04-08 21:20:05,938] [INFO] [Testing]: Generating Snapshot for Checkfile in centos-8 [2024-04-08 21:20:09,291] [INFO] [Testing]: Installing Agent in centos-8 [2024-04-08 21:21:01,349] [INFO] [Testing]: Generating Snapshot for Checkfile in centos-8 [2024-04-08 21:21:03,684] [INFO] [Testing]: Applying filters in checkfiles in centos-8 [2024-04-08 21:21:03,684] [INFO] [Testing]: Pre and post install checkfile comparison in centos-8: {'/boot': {'added': [], 'removed': [], 'modified': []}, '/usr/bin': {'added': [], 'removed': [], 'modified': []}, '/root': {'added': [], 'removed': [], 'modified': []}, '/usr/sbin': {'added': [], 'removed': [], 'modified': []}} [2024-04-08 21:21:04,096] [INFO] [Testing]: Getting status of centos-8 [2024-04-08 21:21:05,565] [DEBUG] ANSIBLE: Playbook [{'hosts': 'localhost', 'become': True, 'become_user': 'akim', 'tasks': [{'name': 'Test install for agent', 'command': "python3 -m pytest modules/testing/tests/test_agent/test_install.py -v --wazuh_version=4.7.3 --wazuh_revision=40714 --component=agent --dependencies='{}' --targets='{wazuh-1: /tmp/dtt1-poc/manager-linux-ubuntu-22.04-amd64/inventory.yaml, agent: /tmp/dtt1-poc/agent-linux-centos-8-amd64/inventory.yaml}' --live=True -s", 'args': {'chdir': '/home/akim/Desktop/wazuh-qa/deployability'}}]}] finished with status {'skipped': {}, 'ok': {'localhost': 2}, 'dark': {}, 'failures': {}, 'ignored': {}, 'rescued': {}, 'processed': {'localhost': 1}, 'changed': {'localhost': 1}} [2024-04-08 21:21:05,567] [DEBUG] ANSIBLE: Rendering template /home/akim/Desktop/wazuh-qa/deployability/modules/testing/playbooks/test.yml [2024-04-08 21:21:05,569] [DEBUG] ANSIBLE: Using inventory: {'all': {'hosts': {'192.168.57.2': {'ansible_port': 22, 'ansible_user': 'vagrant', 'ansible_ssh_private_key_file': '/tmp/wazuh-qa/VAGRANT-9DF0E7E5-52E6-47C3-9FC0-245DE93121A5/instance_key'}}}} [2024-04-08 21:21:05,569] [DEBUG] ANSIBLE: Running playbook: [{'hosts': 'localhost', 'become': True, 'become_user': 'akim', 'tasks': [{'name': 'Test registration for agent', 'command': "python3 -m pytest modules/testing/tests/test_agent/test_registration.py -v --wazuh_version=4.7.3 --wazuh_revision=40714 --component=agent --dependencies='{}' --targets='{wazuh-1: /tmp/dtt1-poc/manager-linux-ubuntu-22.04-amd64/inventory.yaml, agent: /tmp/dtt1-poc/agent-linux-centos-8-amd64/inventory.yaml}' --live=True -s", 'args': {'chdir': '/home/akim/Desktop/wazuh-qa/deployability'}}]}] [2024-04-08 21:21:11,812] [INFO] [Testing]: Checking connection to centos-8 [2024-04-08 21:21:12,131] [INFO] [Testing]: Connection established successfully in centos-8 [2024-04-08 21:21:25,793] [INFO] [Testing]: Getting status of centos-8 [2024-04-08 21:22:00,259] [DEBUG] ANSIBLE: Playbook [{'hosts': 'localhost', 'become': True, 'become_user': 'akim', 'tasks': [{'name': 'Test registration for agent', 'command': "python3 -m pytest modules/testing/tests/test_agent/test_registration.py -v --wazuh_version=4.7.3 --wazuh_revision=40714 --component=agent --dependencies='{}' --targets='{wazuh-1: /tmp/dtt1-poc/manager-linux-ubuntu-22.04-amd64/inventory.yaml, agent: /tmp/dtt1-poc/agent-linux-centos-8-amd64/inventory.yaml}' --live=True -s", 'args': {'chdir': '/home/akim/Desktop/wazuh-qa/deployability'}}]}] finished with status {'skipped': {}, 'ok': {'localhost': 2}, 'dark': {}, 'failures': {}, 'ignored': {}, 'rescued': {}, 'processed': {'localhost': 1}, 'changed': {'localhost': 1}} [2024-04-08 21:22:00,263] [DEBUG] ANSIBLE: Rendering template /home/akim/Desktop/wazuh-qa/deployability/modules/testing/playbooks/test.yml [2024-04-08 21:22:00,265] [DEBUG] ANSIBLE: Using inventory: {'all': {'hosts': {'192.168.57.2': {'ansible_port': 22, 'ansible_user': 'vagrant', 'ansible_ssh_private_key_file': '/tmp/wazuh-qa/VAGRANT-9DF0E7E5-52E6-47C3-9FC0-245DE93121A5/instance_key'}}}} [2024-04-08 21:22:00,266] [DEBUG] ANSIBLE: Running playbook: [{'hosts': 'localhost', 'become': True, 'become_user': 'akim', 'tasks': [{'name': 'Test restart for agent', 'command': "python3 -m pytest modules/testing/tests/test_agent/test_restart.py -v --wazuh_version=4.7.3 --wazuh_revision=40714 --component=agent --dependencies='{}' --targets='{wazuh-1: /tmp/dtt1-poc/manager-linux-ubuntu-22.04-amd64/inventory.yaml, agent: /tmp/dtt1-poc/agent-linux-centos-8-amd64/inventory.yaml}' --live=True -s", 'args': {'chdir': '/home/akim/Desktop/wazuh-qa/deployability'}}]}] [2024-04-08 21:22:06,868] [INFO] [Testing]: Checking connection to centos-8 [2024-04-08 21:22:07,194] [INFO] [Testing]: Connection established successfully in centos-8 [2024-04-08 21:22:08,205] [INFO] [Testing]: Restarting wazuh-agent in centos-8 [2024-04-08 21:22:17,180] [INFO] [Testing]: Getting status of centos-8 [2024-04-08 21:22:19,172] [DEBUG] ANSIBLE: Playbook [{'hosts': 'localhost', 'become': True, 'become_user': 'akim', 'tasks': [{'name': 'Test restart for agent', 'command': "python3 -m pytest modules/testing/tests/test_agent/test_restart.py -v --wazuh_version=4.7.3 --wazuh_revision=40714 --component=agent --dependencies='{}' --targets='{wazuh-1: /tmp/dtt1-poc/manager-linux-ubuntu-22.04-amd64/inventory.yaml, agent: /tmp/dtt1-poc/agent-linux-centos-8-amd64/inventory.yaml}' --live=True -s", 'args': {'chdir': '/home/akim/Desktop/wazuh-qa/deployability'}}]}] finished with status {'skipped': {}, 'ok': {'localhost': 2}, 'dark': {}, 'failures': {}, 'ignored': {}, 'rescued': {}, 'processed': {'localhost': 1}, 'changed': {'localhost': 1}} [2024-04-08 21:22:19,174] [DEBUG] ANSIBLE: Rendering template /home/akim/Desktop/wazuh-qa/deployability/modules/testing/playbooks/test.yml [2024-04-08 21:22:19,176] [DEBUG] ANSIBLE: Using inventory: {'all': {'hosts': {'192.168.57.2': {'ansible_port': 22, 'ansible_user': 'vagrant', 'ansible_ssh_private_key_file': '/tmp/wazuh-qa/VAGRANT-9DF0E7E5-52E6-47C3-9FC0-245DE93121A5/instance_key'}}}} [2024-04-08 21:22:19,176] [DEBUG] ANSIBLE: Running playbook: [{'hosts': 'localhost', 'become': True, 'become_user': 'akim', 'tasks': [{'name': 'Test stop for agent', 'command': "python3 -m pytest modules/testing/tests/test_agent/test_stop.py -v --wazuh_version=4.7.3 --wazuh_revision=40714 --component=agent --dependencies='{}' --targets='{wazuh-1: /tmp/dtt1-poc/manager-linux-ubuntu-22.04-amd64/inventory.yaml, agent: /tmp/dtt1-poc/agent-linux-centos-8-amd64/inventory.yaml}' --live=True -s", 'args': {'chdir': '/home/akim/Desktop/wazuh-qa/deployability'}}]}] [2024-04-08 21:22:27,753] [INFO] [Testing]: Checking connection to centos-8 [2024-04-08 21:22:28,090] [INFO] [Testing]: Connection established successfully in centos-8 [2024-04-08 21:22:31,330] [INFO] [Testing]: Stopping wazuh-agent in centos-8 [2024-04-08 21:22:33,063] [INFO] [Testing]: Getting status of centos-8 [2024-04-08 21:22:33,662] [INFO] [Testing]: Restarting wazuh-agent in centos-8 [2024-04-08 21:22:41,663] [DEBUG] ANSIBLE: Playbook [{'hosts': 'localhost', 'become': True, 'become_user': 'akim', 'tasks': [{'name': 'Test stop for agent', 'command': "python3 -m pytest modules/testing/tests/test_agent/test_stop.py -v --wazuh_version=4.7.3 --wazuh_revision=40714 --component=agent --dependencies='{}' --targets='{wazuh-1: /tmp/dtt1-poc/manager-linux-ubuntu-22.04-amd64/inventory.yaml, agent: /tmp/dtt1-poc/agent-linux-centos-8-amd64/inventory.yaml}' --live=True -s", 'args': {'chdir': '/home/akim/Desktop/wazuh-qa/deployability'}}]}] finished with status {'skipped': {}, 'ok': {'localhost': 2}, 'dark': {}, 'failures': {}, 'ignored': {}, 'rescued': {}, 'processed': {'localhost': 1}, 'changed': {'localhost': 1}} [2024-04-08 21:22:41,667] [DEBUG] ANSIBLE: Rendering template /home/akim/Desktop/wazuh-qa/deployability/modules/testing/playbooks/test.yml [2024-04-08 21:22:41,670] [DEBUG] ANSIBLE: Using inventory: {'all': {'hosts': {'192.168.57.2': {'ansible_port': 22, 'ansible_user': 'vagrant', 'ansible_ssh_private_key_file': '/tmp/wazuh-qa/VAGRANT-9DF0E7E5-52E6-47C3-9FC0-245DE93121A5/instance_key'}}}} [2024-04-08 21:22:41,670] [DEBUG] ANSIBLE: Running playbook: [{'hosts': 'localhost', 'become': True, 'become_user': 'akim', 'tasks': [{'name': 'Test uninstall for agent', 'command': "python3 -m pytest modules/testing/tests/test_agent/test_uninstall.py -v --wazuh_version=4.7.3 --wazuh_revision=40714 --component=agent --dependencies='{}' --targets='{wazuh-1: /tmp/dtt1-poc/manager-linux-ubuntu-22.04-amd64/inventory.yaml, agent: /tmp/dtt1-poc/agent-linux-centos-8-amd64/inventory.yaml}' --live=True -s", 'args': {'chdir': '/home/akim/Desktop/wazuh-qa/deployability'}}]}] [2024-04-08 21:22:50,418] [INFO] [Testing]: Checking connection to centos-8 [2024-04-08 21:22:50,754] [INFO] [Testing]: Connection established successfully in centos-8 [2024-04-08 21:22:52,991] [INFO] [Testing]: Generating Snapshot for Checkfile in centos-8 [2024-04-08 21:23:01,076] [INFO] [Testing]: Uninstalling Agent in centos-8 [2024-04-08 21:23:27,967] [INFO] [Testing]: Generating Snapshot for Checkfile in centos-8 [2024-04-08 21:23:30,020] [INFO] [Testing]: Applying filters in checkfiles in centos-8 [2024-04-08 21:23:30,020] [INFO] [Testing]: Pre and post uninstall checkfile comparison in centos-8: {'/boot': {'added': [], 'removed': [], 'modified': []}, '/usr/bin': {'added': [], 'removed': [], 'modified': []}, '/root': {'added': [], 'removed': [], 'modified': []}, '/usr/sbin': {'added': [], 'removed': [], 'modified': []}} [2024-04-08 21:23:32,637] [DEBUG] ANSIBLE: Playbook [{'hosts': 'localhost', 'become': True, 'become_user': 'akim', 'tasks': [{'name': 'Test uninstall for agent', 'command': "python3 -m pytest modules/testing/tests/test_agent/test_uninstall.py -v --wazuh_version=4.7.3 --wazuh_revision=40714 --component=agent --dependencies='{}' --targets='{wazuh-1: /tmp/dtt1-poc/manager-linux-ubuntu-22.04-amd64/inventory.yaml, agent: /tmp/dtt1-poc/agent-linux-centos-8-amd64/inventory.yaml}' --live=True -s", 'args': {'chdir': '/home/akim/Desktop/wazuh-qa/deployability'}}]}] finished with status {'skipped': {}, 'ok': {'localhost': 2}, 'dark': {}, 'failures': {}, 'ignored': {}, 'rescued': {}, 'processed': {'localhost': 1}, 'changed': {'localhost': 1}} [2024-04-08 21:23:32,638] [DEBUG] ANSIBLE: Using inventory: {'all': {'hosts': {'192.168.57.2': {'ansible_port': 22, 'ansible_user': 'vagrant', 'ansible_ssh_private_key_file': '/tmp/wazuh-qa/VAGRANT-9DF0E7E5-52E6-47C3-9FC0-245DE93121A5/instance_key'}}}} [2024-04-08 21:23:32,638] [DEBUG] ANSIBLE: Running playbook: /home/akim/Desktop/wazuh-qa/deployability/modules/testing/playbooks/cleanup.yml [2024-04-08 21:23:35,344] [DEBUG] ANSIBLE: Playbook /home/akim/Desktop/wazuh-qa/deployability/modules/testing/playbooks/cleanup.yml finished with status {'skipped': {}, 'ok': {'192.168.57.2': 2}, 'dark': {}, 'failures': {}, 'ignored': {}, 'rescued': {}, 'processed': {'192.168.57.2': 1}, 'changed': {}} [2024-04-08 21:23:35,345] [DEBUG] ANSIBLE: Using inventory: {'all': {'hosts': {'192.168.57.2': {'ansible_port': 22, 'ansible_user': 'vagrant', 'ansible_ssh_private_key_file': '/tmp/wazuh-qa/VAGRANT-9DF0E7E5-52E6-47C3-9FC0-245DE93121A5/instance_key'}}}} [2024-04-08 21:23:35,346] [DEBUG] ANSIBLE: Running playbook: /home/akim/Desktop/wazuh-qa/deployability/modules/testing/playbooks/cleanup.yml [2024-04-08 21:23:37,832] [DEBUG] ANSIBLE: Playbook /home/akim/Desktop/wazuh-qa/deployability/modules/testing/playbooks/cleanup.yml finished with status {'skipped': {}, 'ok': {'192.168.57.2': 2}, 'dark': {}, 'failures': {}, 'ignored': {}, 'rescued': {}, 'processed': {'192.168.57.2': 1}, 'changed': {}} [2024-04-08 21:23:37,903] [INFO] [283400] [ThreadPoolExecutor-0_0] [workflow_engine]: [run-agent-linux-centos-8-amd64-tests] Finished task in 224.60 seconds. [2024-04-08 21:23:37,913] [INFO] [283400] [ThreadPoolExecutor-0_0] [workflow_engine]: [run-agent-linux-redhat-7-amd64-tests] Starting task. [2024-04-08 21:23:38,285] [INFO] TESTER: Running tests for 192.168.57.2 [2024-04-08 21:23:38,286] [INFO] TESTER: Running tests for 192.168.57.5 [2024-04-08 21:23:38,286] [DEBUG] TESTER: Using extra vars: {'component': 'agent', 'wazuh_version': '4.7.3', 'wazuh_revision': '40714', 'wazuh_branch': None, 'working_dir': '/tmp/tests', 'live': True, 'hosts_ip': ['192.168.57.2', '192.168.57.5'], 'targets': '{wazuh-1: /tmp/dtt1-poc/manager-linux-ubuntu-22.04-amd64/inventory.yaml, agent: /tmp/dtt1-poc/agent-linux-redhat-7-amd64/inventory.yaml}', 'dependencies': '{}', 'local_host_path': '/home/akim/Desktop/wazuh-qa/deployability', 'current_user': 'akim'} [2024-04-08 21:23:38,293] [DEBUG] ANSIBLE: Rendering template /home/akim/Desktop/wazuh-qa/deployability/modules/testing/playbooks/setup.yml [2024-04-08 21:23:38,294] [DEBUG] ANSIBLE: Using inventory: {'all': {'hosts': {'192.168.57.2': {'ansible_port': 22, 'ansible_user': 'vagrant', 'ansible_ssh_private_key_file': '/tmp/wazuh-qa/VAGRANT-9DF0E7E5-52E6-47C3-9FC0-245DE93121A5/instance_key'}}}} [2024-04-08 21:23:38,294] [DEBUG] ANSIBLE: Running playbook: [{'hosts': 'localhost', 'become': True, 'become_user': 'akim', 'tasks': [{'name': 'Cleaning old key ssh-keygen registries', 'ansible.builtin.command': {'cmd': "ssh-keygen -f /home/akim/.ssh/known_hosts -R ''"}, 'loop': ['192.168.57.2', '192.168.57.5']}]}] [2024-04-08 21:23:44,467] [DEBUG] ANSIBLE: Playbook [{'hosts': 'localhost', 'become': True, 'become_user': 'akim', 'tasks': [{'name': 'Cleaning old key ssh-keygen registries', 'ansible.builtin.command': {'cmd': "ssh-keygen -f /home/akim/.ssh/known_hosts -R ''"}, 'loop': ['192.168.57.2', '192.168.57.5']}]}] finished with status {'skipped': {}, 'ok': {'localhost': 2}, 'dark': {}, 'failures': {}, 'ignored': {}, 'rescued': {}, 'processed': {'localhost': 1}, 'changed': {'localhost': 1}} [2024-04-08 21:23:44,470] [DEBUG] ANSIBLE: Rendering template /home/akim/Desktop/wazuh-qa/deployability/modules/testing/playbooks/test.yml [2024-04-08 21:23:44,472] [DEBUG] ANSIBLE: Using inventory: {'all': {'hosts': {'192.168.57.2': {'ansible_port': 22, 'ansible_user': 'vagrant', 'ansible_ssh_private_key_file': '/tmp/wazuh-qa/VAGRANT-9DF0E7E5-52E6-47C3-9FC0-245DE93121A5/instance_key'}}}} [2024-04-08 21:23:44,472] [DEBUG] ANSIBLE: Running playbook: [{'hosts': 'localhost', 'become': True, 'become_user': 'akim', 'tasks': [{'name': 'Test install for agent', 'command': "python3 -m pytest modules/testing/tests/test_agent/test_install.py -v --wazuh_version=4.7.3 --wazuh_revision=40714 --component=agent --dependencies='{}' --targets='{wazuh-1: /tmp/dtt1-poc/manager-linux-ubuntu-22.04-amd64/inventory.yaml, agent: /tmp/dtt1-poc/agent-linux-redhat-7-amd64/inventory.yaml}' --live=True -s", 'args': {'chdir': '/home/akim/Desktop/wazuh-qa/deployability'}}]}] [2024-04-08 21:23:48,014] [INFO] [Testing]: Checking connection to redhat-7 [2024-04-08 21:23:48,344] [INFO] [Testing]: Connection established successfully in redhat-7 [2024-04-08 21:23:48,923] [INFO] [Testing]: Checking connection to ubuntu-22.04 [2024-04-08 21:23:49,247] [INFO] [Testing]: Connection established successfully in ubuntu-22.04 [2024-04-08 21:23:50,967] [INFO] [Testing]: Firewall disabled on redhat-7 [2024-04-08 21:23:51,180] [INFO] [Testing]: Manager is already installed in ubuntu-22.04 [2024-04-08 21:23:51,810] [INFO] [Testing]: Generating Snapshot for Checkfile in redhat-7 [2024-04-08 21:24:00,810] [INFO] [Testing]: Installing Agent in redhat-7 [2024-04-08 21:24:30,758] [INFO] [Testing]: Generating Snapshot for Checkfile in redhat-7 [2024-04-08 21:24:33,547] [INFO] [Testing]: Applying filters in checkfiles in redhat-7 [2024-04-08 21:24:33,547] [INFO] [Testing]: Pre and post install checkfile comparison in redhat-7: {'/boot': {'added': [], 'removed': [], 'modified': []}, '/usr/bin': {'added': [], 'removed': [], 'modified': []}, '/root': {'added': [], 'removed': [], 'modified': []}, '/usr/sbin': {'added': [], 'removed': [], 'modified': []}} [2024-04-08 21:24:34,003] [INFO] [Testing]: Getting status of redhat-7 [2024-04-08 21:24:35,787] [DEBUG] ANSIBLE: Playbook [{'hosts': 'localhost', 'become': True, 'become_user': 'akim', 'tasks': [{'name': 'Test install for agent', 'command': "python3 -m pytest modules/testing/tests/test_agent/test_install.py -v --wazuh_version=4.7.3 --wazuh_revision=40714 --component=agent --dependencies='{}' --targets='{wazuh-1: /tmp/dtt1-poc/manager-linux-ubuntu-22.04-amd64/inventory.yaml, agent: /tmp/dtt1-poc/agent-linux-redhat-7-amd64/inventory.yaml}' --live=True -s", 'args': {'chdir': '/home/akim/Desktop/wazuh-qa/deployability'}}]}] finished with status {'skipped': {}, 'ok': {'localhost': 2}, 'dark': {}, 'failures': {}, 'ignored': {}, 'rescued': {}, 'processed': {'localhost': 1}, 'changed': {'localhost': 1}} [2024-04-08 21:24:35,789] [DEBUG] ANSIBLE: Rendering template /home/akim/Desktop/wazuh-qa/deployability/modules/testing/playbooks/test.yml [2024-04-08 21:24:35,791] [DEBUG] ANSIBLE: Using inventory: {'all': {'hosts': {'192.168.57.2': {'ansible_port': 22, 'ansible_user': 'vagrant', 'ansible_ssh_private_key_file': '/tmp/wazuh-qa/VAGRANT-9DF0E7E5-52E6-47C3-9FC0-245DE93121A5/instance_key'}}}} [2024-04-08 21:24:35,791] [DEBUG] ANSIBLE: Running playbook: [{'hosts': 'localhost', 'become': True, 'become_user': 'akim', 'tasks': [{'name': 'Test registration for agent', 'command': "python3 -m pytest modules/testing/tests/test_agent/test_registration.py -v --wazuh_version=4.7.3 --wazuh_revision=40714 --component=agent --dependencies='{}' --targets='{wazuh-1: /tmp/dtt1-poc/manager-linux-ubuntu-22.04-amd64/inventory.yaml, agent: /tmp/dtt1-poc/agent-linux-redhat-7-amd64/inventory.yaml}' --live=True -s", 'args': {'chdir': '/home/akim/Desktop/wazuh-qa/deployability'}}]}] [2024-04-08 21:24:42,062] [INFO] [Testing]: Checking connection to redhat-7 [2024-04-08 21:24:42,379] [INFO] [Testing]: Connection established successfully in redhat-7 [2024-04-08 21:24:51,605] [INFO] [Testing]: Getting status of redhat-7 [2024-04-08 21:25:26,502] [DEBUG] ANSIBLE: Playbook [{'hosts': 'localhost', 'become': True, 'become_user': 'akim', 'tasks': [{'name': 'Test registration for agent', 'command': "python3 -m pytest modules/testing/tests/test_agent/test_registration.py -v --wazuh_version=4.7.3 --wazuh_revision=40714 --component=agent --dependencies='{}' --targets='{wazuh-1: /tmp/dtt1-poc/manager-linux-ubuntu-22.04-amd64/inventory.yaml, agent: /tmp/dtt1-poc/agent-linux-redhat-7-amd64/inventory.yaml}' --live=True -s", 'args': {'chdir': '/home/akim/Desktop/wazuh-qa/deployability'}}]}] finished with status {'skipped': {}, 'ok': {'localhost': 2}, 'dark': {}, 'failures': {}, 'ignored': {}, 'rescued': {}, 'processed': {'localhost': 1}, 'changed': {'localhost': 1}} [2024-04-08 21:25:26,505] [DEBUG] ANSIBLE: Rendering template /home/akim/Desktop/wazuh-qa/deployability/modules/testing/playbooks/test.yml [2024-04-08 21:25:26,506] [DEBUG] ANSIBLE: Using inventory: {'all': {'hosts': {'192.168.57.2': {'ansible_port': 22, 'ansible_user': 'vagrant', 'ansible_ssh_private_key_file': '/tmp/wazuh-qa/VAGRANT-9DF0E7E5-52E6-47C3-9FC0-245DE93121A5/instance_key'}}}} [2024-04-08 21:25:26,507] [DEBUG] ANSIBLE: Running playbook: [{'hosts': 'localhost', 'become': True, 'become_user': 'akim', 'tasks': [{'name': 'Test restart for agent', 'command': "python3 -m pytest modules/testing/tests/test_agent/test_restart.py -v --wazuh_version=4.7.3 --wazuh_revision=40714 --component=agent --dependencies='{}' --targets='{wazuh-1: /tmp/dtt1-poc/manager-linux-ubuntu-22.04-amd64/inventory.yaml, agent: /tmp/dtt1-poc/agent-linux-redhat-7-amd64/inventory.yaml}' --live=True -s", 'args': {'chdir': '/home/akim/Desktop/wazuh-qa/deployability'}}]}] [2024-04-08 21:25:32,932] [INFO] [Testing]: Checking connection to redhat-7 [2024-04-08 21:25:33,259] [INFO] [Testing]: Connection established successfully in redhat-7 [2024-04-08 21:25:35,241] [INFO] [Testing]: Restarting wazuh-agent in redhat-7 [2024-04-08 21:25:43,851] [INFO] [Testing]: Getting status of redhat-7 [2024-04-08 21:25:46,540] [DEBUG] ANSIBLE: Playbook [{'hosts': 'localhost', 'become': True, 'become_user': 'akim', 'tasks': [{'name': 'Test restart for agent', 'command': "python3 -m pytest modules/testing/tests/test_agent/test_restart.py -v --wazuh_version=4.7.3 --wazuh_revision=40714 --component=agent --dependencies='{}' --targets='{wazuh-1: /tmp/dtt1-poc/manager-linux-ubuntu-22.04-amd64/inventory.yaml, agent: /tmp/dtt1-poc/agent-linux-redhat-7-amd64/inventory.yaml}' --live=True -s", 'args': {'chdir': '/home/akim/Desktop/wazuh-qa/deployability'}}]}] finished with status {'skipped': {}, 'ok': {'localhost': 2}, 'dark': {}, 'failures': {}, 'ignored': {}, 'rescued': {}, 'processed': {'localhost': 1}, 'changed': {'localhost': 1}} [2024-04-08 21:25:46,542] [DEBUG] ANSIBLE: Rendering template /home/akim/Desktop/wazuh-qa/deployability/modules/testing/playbooks/test.yml [2024-04-08 21:25:46,543] [DEBUG] ANSIBLE: Using inventory: {'all': {'hosts': {'192.168.57.2': {'ansible_port': 22, 'ansible_user': 'vagrant', 'ansible_ssh_private_key_file': '/tmp/wazuh-qa/VAGRANT-9DF0E7E5-52E6-47C3-9FC0-245DE93121A5/instance_key'}}}} [2024-04-08 21:25:46,543] [DEBUG] ANSIBLE: Running playbook: [{'hosts': 'localhost', 'become': True, 'become_user': 'akim', 'tasks': [{'name': 'Test stop for agent', 'command': "python3 -m pytest modules/testing/tests/test_agent/test_stop.py -v --wazuh_version=4.7.3 --wazuh_revision=40714 --component=agent --dependencies='{}' --targets='{wazuh-1: /tmp/dtt1-poc/manager-linux-ubuntu-22.04-amd64/inventory.yaml, agent: /tmp/dtt1-poc/agent-linux-redhat-7-amd64/inventory.yaml}' --live=True -s", 'args': {'chdir': '/home/akim/Desktop/wazuh-qa/deployability'}}]}] [2024-04-08 21:25:55,213] [INFO] [Testing]: Checking connection to redhat-7 [2024-04-08 21:25:55,599] [INFO] [Testing]: Connection established successfully in redhat-7 [2024-04-08 21:25:59,433] [INFO] [Testing]: Stopping wazuh-agent in redhat-7 [2024-04-08 21:26:00,853] [INFO] [Testing]: Getting status of redhat-7 [2024-04-08 21:26:01,939] [INFO] [Testing]: Restarting wazuh-agent in redhat-7 [2024-04-08 21:26:10,118] [DEBUG] ANSIBLE: Playbook [{'hosts': 'localhost', 'become': True, 'become_user': 'akim', 'tasks': [{'name': 'Test stop for agent', 'command': "python3 -m pytest modules/testing/tests/test_agent/test_stop.py -v --wazuh_version=4.7.3 --wazuh_revision=40714 --component=agent --dependencies='{}' --targets='{wazuh-1: /tmp/dtt1-poc/manager-linux-ubuntu-22.04-amd64/inventory.yaml, agent: /tmp/dtt1-poc/agent-linux-redhat-7-amd64/inventory.yaml}' --live=True -s", 'args': {'chdir': '/home/akim/Desktop/wazuh-qa/deployability'}}]}] finished with status {'skipped': {}, 'ok': {'localhost': 2}, 'dark': {}, 'failures': {}, 'ignored': {}, 'rescued': {}, 'processed': {'localhost': 1}, 'changed': {'localhost': 1}} [2024-04-08 21:26:10,120] [DEBUG] ANSIBLE: Rendering template /home/akim/Desktop/wazuh-qa/deployability/modules/testing/playbooks/test.yml [2024-04-08 21:26:10,122] [DEBUG] ANSIBLE: Using inventory: {'all': {'hosts': {'192.168.57.2': {'ansible_port': 22, 'ansible_user': 'vagrant', 'ansible_ssh_private_key_file': '/tmp/wazuh-qa/VAGRANT-9DF0E7E5-52E6-47C3-9FC0-245DE93121A5/instance_key'}}}} [2024-04-08 21:26:10,122] [DEBUG] ANSIBLE: Running playbook: [{'hosts': 'localhost', 'become': True, 'become_user': 'akim', 'tasks': [{'name': 'Test uninstall for agent', 'command': "python3 -m pytest modules/testing/tests/test_agent/test_uninstall.py -v --wazuh_version=4.7.3 --wazuh_revision=40714 --component=agent --dependencies='{}' --targets='{wazuh-1: /tmp/dtt1-poc/manager-linux-ubuntu-22.04-amd64/inventory.yaml, agent: /tmp/dtt1-poc/agent-linux-redhat-7-amd64/inventory.yaml}' --live=True -s", 'args': {'chdir': '/home/akim/Desktop/wazuh-qa/deployability'}}]}] [2024-04-08 21:26:17,966] [INFO] [Testing]: Checking connection to redhat-7 [2024-04-08 21:26:18,346] [INFO] [Testing]: Connection established successfully in redhat-7 [2024-04-08 21:26:22,515] [INFO] [Testing]: Generating Snapshot for Checkfile in redhat-7 [2024-04-08 21:26:26,881] [INFO] [Testing]: Uninstalling Agent in redhat-7 [2024-04-08 21:26:45,738] [INFO] [Testing]: Generating Snapshot for Checkfile in redhat-7 [2024-04-08 21:26:48,634] [INFO] [Testing]: Applying filters in checkfiles in redhat-7 [2024-04-08 21:26:48,634] [INFO] [Testing]: Pre and post uninstall checkfile comparison in redhat-7: {'/boot': {'added': [], 'removed': [], 'modified': []}, '/usr/bin': {'added': [], 'removed': [], 'modified': []}, '/root': {'added': [], 'removed': [], 'modified': []}, '/usr/sbin': {'added': [], 'removed': [], 'modified': []}} [2024-04-08 21:26:51,394] [DEBUG] ANSIBLE: Playbook [{'hosts': 'localhost', 'become': True, 'become_user': 'akim', 'tasks': [{'name': 'Test uninstall for agent', 'command': "python3 -m pytest modules/testing/tests/test_agent/test_uninstall.py -v --wazuh_version=4.7.3 --wazuh_revision=40714 --component=agent --dependencies='{}' --targets='{wazuh-1: /tmp/dtt1-poc/manager-linux-ubuntu-22.04-amd64/inventory.yaml, agent: /tmp/dtt1-poc/agent-linux-redhat-7-amd64/inventory.yaml}' --live=True -s", 'args': {'chdir': '/home/akim/Desktop/wazuh-qa/deployability'}}]}] finished with status {'skipped': {}, 'ok': {'localhost': 2}, 'dark': {}, 'failures': {}, 'ignored': {}, 'rescued': {}, 'processed': {'localhost': 1}, 'changed': {'localhost': 1}} [2024-04-08 21:26:51,395] [DEBUG] ANSIBLE: Using inventory: {'all': {'hosts': {'192.168.57.2': {'ansible_port': 22, 'ansible_user': 'vagrant', 'ansible_ssh_private_key_file': '/tmp/wazuh-qa/VAGRANT-9DF0E7E5-52E6-47C3-9FC0-245DE93121A5/instance_key'}}}} [2024-04-08 21:26:51,395] [DEBUG] ANSIBLE: Running playbook: /home/akim/Desktop/wazuh-qa/deployability/modules/testing/playbooks/cleanup.yml [2024-04-08 21:26:54,209] [DEBUG] ANSIBLE: Playbook /home/akim/Desktop/wazuh-qa/deployability/modules/testing/playbooks/cleanup.yml finished with status {'skipped': {}, 'ok': {'192.168.57.2': 2}, 'dark': {}, 'failures': {}, 'ignored': {}, 'rescued': {}, 'processed': {'192.168.57.2': 1}, 'changed': {}} [2024-04-08 21:26:54,210] [DEBUG] ANSIBLE: Using inventory: {'all': {'hosts': {'192.168.57.2': {'ansible_port': 22, 'ansible_user': 'vagrant', 'ansible_ssh_private_key_file': '/tmp/wazuh-qa/VAGRANT-9DF0E7E5-52E6-47C3-9FC0-245DE93121A5/instance_key'}}}} [2024-04-08 21:26:54,210] [DEBUG] ANSIBLE: Running playbook: /home/akim/Desktop/wazuh-qa/deployability/modules/testing/playbooks/cleanup.yml [2024-04-08 21:26:57,200] [DEBUG] ANSIBLE: Playbook /home/akim/Desktop/wazuh-qa/deployability/modules/testing/playbooks/cleanup.yml finished with status {'skipped': {}, 'ok': {'192.168.57.2': 2}, 'dark': {}, 'failures': {}, 'ignored': {}, 'rescued': {}, 'processed': {'192.168.57.2': 1}, 'changed': {}} [2024-04-08 21:26:57,264] [INFO] [283400] [ThreadPoolExecutor-0_0] [workflow_engine]: [run-agent-linux-redhat-7-amd64-tests] Finished task in 199.35 seconds. [2024-04-08 21:26:57,265] [INFO] [283400] [ThreadPoolExecutor-0_0] [workflow_engine]: [run-agent-linux-redhat-8-amd64-tests] Starting task. [2024-04-08 21:26:57,669] [INFO] TESTER: Running tests for 192.168.57.2 [2024-04-08 21:26:57,671] [INFO] TESTER: Running tests for 192.168.57.6 [2024-04-08 21:26:57,671] [DEBUG] TESTER: Using extra vars: {'component': 'agent', 'wazuh_version': '4.7.3', 'wazuh_revision': '40714', 'wazuh_branch': None, 'working_dir': '/tmp/tests', 'live': True, 'hosts_ip': ['192.168.57.2', '192.168.57.6'], 'targets': '{wazuh-1: /tmp/dtt1-poc/manager-linux-ubuntu-22.04-amd64/inventory.yaml, agent: /tmp/dtt1-poc/agent-linux-redhat-8-amd64/inventory.yaml}', 'dependencies': '{}', 'local_host_path': '/home/akim/Desktop/wazuh-qa/deployability', 'current_user': 'akim'} [2024-04-08 21:26:57,678] [DEBUG] ANSIBLE: Rendering template /home/akim/Desktop/wazuh-qa/deployability/modules/testing/playbooks/setup.yml [2024-04-08 21:26:57,679] [DEBUG] ANSIBLE: Using inventory: {'all': {'hosts': {'192.168.57.2': {'ansible_port': 22, 'ansible_user': 'vagrant', 'ansible_ssh_private_key_file': '/tmp/wazuh-qa/VAGRANT-9DF0E7E5-52E6-47C3-9FC0-245DE93121A5/instance_key'}}}} [2024-04-08 21:26:57,679] [DEBUG] ANSIBLE: Running playbook: [{'hosts': 'localhost', 'become': True, 'become_user': 'akim', 'tasks': [{'name': 'Cleaning old key ssh-keygen registries', 'ansible.builtin.command': {'cmd': "ssh-keygen -f /home/akim/.ssh/known_hosts -R ''"}, 'loop': ['192.168.57.2', '192.168.57.6']}]}] [2024-04-08 21:27:04,102] [DEBUG] ANSIBLE: Playbook [{'hosts': 'localhost', 'become': True, 'become_user': 'akim', 'tasks': [{'name': 'Cleaning old key ssh-keygen registries', 'ansible.builtin.command': {'cmd': "ssh-keygen -f /home/akim/.ssh/known_hosts -R ''"}, 'loop': ['192.168.57.2', '192.168.57.6']}]}] finished with status {'skipped': {}, 'ok': {'localhost': 2}, 'dark': {}, 'failures': {}, 'ignored': {}, 'rescued': {}, 'processed': {'localhost': 1}, 'changed': {'localhost': 1}} [2024-04-08 21:27:04,105] [DEBUG] ANSIBLE: Rendering template /home/akim/Desktop/wazuh-qa/deployability/modules/testing/playbooks/test.yml [2024-04-08 21:27:04,107] [DEBUG] ANSIBLE: Using inventory: {'all': {'hosts': {'192.168.57.2': {'ansible_port': 22, 'ansible_user': 'vagrant', 'ansible_ssh_private_key_file': '/tmp/wazuh-qa/VAGRANT-9DF0E7E5-52E6-47C3-9FC0-245DE93121A5/instance_key'}}}} [2024-04-08 21:27:04,107] [DEBUG] ANSIBLE: Running playbook: [{'hosts': 'localhost', 'become': True, 'become_user': 'akim', 'tasks': [{'name': 'Test install for agent', 'command': "python3 -m pytest modules/testing/tests/test_agent/test_install.py -v --wazuh_version=4.7.3 --wazuh_revision=40714 --component=agent --dependencies='{}' --targets='{wazuh-1: /tmp/dtt1-poc/manager-linux-ubuntu-22.04-amd64/inventory.yaml, agent: /tmp/dtt1-poc/agent-linux-redhat-8-amd64/inventory.yaml}' --live=True -s", 'args': {'chdir': '/home/akim/Desktop/wazuh-qa/deployability'}}]}] [2024-04-08 21:27:07,800] [INFO] [Testing]: Checking connection to redhat-8 [2024-04-08 21:27:08,141] [INFO] [Testing]: Connection established successfully in redhat-8 [2024-04-08 21:27:08,483] [INFO] [Testing]: Checking connection to ubuntu-22.04 [2024-04-08 21:27:08,794] [INFO] [Testing]: Connection established successfully in ubuntu-22.04 [2024-04-08 21:27:09,982] [INFO] [Testing]: Firewall disabled on redhat-8 [2024-04-08 21:27:10,224] [INFO] [Testing]: Manager is already installed in ubuntu-22.04 [2024-04-08 21:27:10,683] [INFO] [Testing]: Generating Snapshot for Checkfile in redhat-8 [2024-04-08 21:27:13,853] [INFO] [Testing]: Installing Agent in redhat-8 [2024-04-08 21:28:11,216] [INFO] [Testing]: Generating Snapshot for Checkfile in redhat-8 [2024-04-08 21:28:13,390] [INFO] [Testing]: Applying filters in checkfiles in redhat-8 [2024-04-08 21:28:13,391] [INFO] [Testing]: Pre and post install checkfile comparison in redhat-8: {'/boot': {'added': [], 'removed': [], 'modified': []}, '/usr/bin': {'added': [], 'removed': [], 'modified': []}, '/root': {'added': [], 'removed': [], 'modified': []}, '/usr/sbin': {'added': [], 'removed': [], 'modified': []}} [2024-04-08 21:28:13,653] [INFO] [Testing]: Getting status of redhat-8 [2024-04-08 21:28:14,861] [DEBUG] ANSIBLE: Playbook [{'hosts': 'localhost', 'become': True, 'become_user': 'akim', 'tasks': [{'name': 'Test install for agent', 'command': "python3 -m pytest modules/testing/tests/test_agent/test_install.py -v --wazuh_version=4.7.3 --wazuh_revision=40714 --component=agent --dependencies='{}' --targets='{wazuh-1: /tmp/dtt1-poc/manager-linux-ubuntu-22.04-amd64/inventory.yaml, agent: /tmp/dtt1-poc/agent-linux-redhat-8-amd64/inventory.yaml}' --live=True -s", 'args': {'chdir': '/home/akim/Desktop/wazuh-qa/deployability'}}]}] finished with status {'skipped': {}, 'ok': {'localhost': 2}, 'dark': {}, 'failures': {}, 'ignored': {}, 'rescued': {}, 'processed': {'localhost': 1}, 'changed': {'localhost': 1}} [2024-04-08 21:28:14,863] [DEBUG] ANSIBLE: Rendering template /home/akim/Desktop/wazuh-qa/deployability/modules/testing/playbooks/test.yml [2024-04-08 21:28:14,865] [DEBUG] ANSIBLE: Using inventory: {'all': {'hosts': {'192.168.57.2': {'ansible_port': 22, 'ansible_user': 'vagrant', 'ansible_ssh_private_key_file': '/tmp/wazuh-qa/VAGRANT-9DF0E7E5-52E6-47C3-9FC0-245DE93121A5/instance_key'}}}} [2024-04-08 21:28:14,865] [DEBUG] ANSIBLE: Running playbook: [{'hosts': 'localhost', 'become': True, 'become_user': 'akim', 'tasks': [{'name': 'Test registration for agent', 'command': "python3 -m pytest modules/testing/tests/test_agent/test_registration.py -v --wazuh_version=4.7.3 --wazuh_revision=40714 --component=agent --dependencies='{}' --targets='{wazuh-1: /tmp/dtt1-poc/manager-linux-ubuntu-22.04-amd64/inventory.yaml, agent: /tmp/dtt1-poc/agent-linux-redhat-8-amd64/inventory.yaml}' --live=True -s", 'args': {'chdir': '/home/akim/Desktop/wazuh-qa/deployability'}}]}] [2024-04-08 21:28:21,259] [INFO] [Testing]: Checking connection to redhat-8 [2024-04-08 21:28:21,569] [INFO] [Testing]: Connection established successfully in redhat-8 [2024-04-08 21:28:30,220] [INFO] [Testing]: Getting status of redhat-8 [2024-04-08 21:29:04,934] [DEBUG] ANSIBLE: Playbook [{'hosts': 'localhost', 'become': True, 'become_user': 'akim', 'tasks': [{'name': 'Test registration for agent', 'command': "python3 -m pytest modules/testing/tests/test_agent/test_registration.py -v --wazuh_version=4.7.3 --wazuh_revision=40714 --component=agent --dependencies='{}' --targets='{wazuh-1: /tmp/dtt1-poc/manager-linux-ubuntu-22.04-amd64/inventory.yaml, agent: /tmp/dtt1-poc/agent-linux-redhat-8-amd64/inventory.yaml}' --live=True -s", 'args': {'chdir': '/home/akim/Desktop/wazuh-qa/deployability'}}]}] finished with status {'skipped': {}, 'ok': {'localhost': 2}, 'dark': {}, 'failures': {}, 'ignored': {}, 'rescued': {}, 'processed': {'localhost': 1}, 'changed': {'localhost': 1}} [2024-04-08 21:29:04,936] [DEBUG] ANSIBLE: Rendering template /home/akim/Desktop/wazuh-qa/deployability/modules/testing/playbooks/test.yml [2024-04-08 21:29:04,939] [DEBUG] ANSIBLE: Using inventory: {'all': {'hosts': {'192.168.57.2': {'ansible_port': 22, 'ansible_user': 'vagrant', 'ansible_ssh_private_key_file': '/tmp/wazuh-qa/VAGRANT-9DF0E7E5-52E6-47C3-9FC0-245DE93121A5/instance_key'}}}} [2024-04-08 21:29:04,939] [DEBUG] ANSIBLE: Running playbook: [{'hosts': 'localhost', 'become': True, 'become_user': 'akim', 'tasks': [{'name': 'Test restart for agent', 'command': "python3 -m pytest modules/testing/tests/test_agent/test_restart.py -v --wazuh_version=4.7.3 --wazuh_revision=40714 --component=agent --dependencies='{}' --targets='{wazuh-1: /tmp/dtt1-poc/manager-linux-ubuntu-22.04-amd64/inventory.yaml, agent: /tmp/dtt1-poc/agent-linux-redhat-8-amd64/inventory.yaml}' --live=True -s", 'args': {'chdir': '/home/akim/Desktop/wazuh-qa/deployability'}}]}] [2024-04-08 21:29:11,617] [INFO] [Testing]: Checking connection to redhat-8 [2024-04-08 21:29:11,941] [INFO] [Testing]: Connection established successfully in redhat-8 [2024-04-08 21:29:12,984] [INFO] [Testing]: Restarting wazuh-agent in redhat-8 [2024-04-08 21:29:21,448] [INFO] [Testing]: Getting status of redhat-8 [2024-04-08 21:29:23,488] [DEBUG] ANSIBLE: Playbook [{'hosts': 'localhost', 'become': True, 'become_user': 'akim', 'tasks': [{'name': 'Test restart for agent', 'command': "python3 -m pytest modules/testing/tests/test_agent/test_restart.py -v --wazuh_version=4.7.3 --wazuh_revision=40714 --component=agent --dependencies='{}' --targets='{wazuh-1: /tmp/dtt1-poc/manager-linux-ubuntu-22.04-amd64/inventory.yaml, agent: /tmp/dtt1-poc/agent-linux-redhat-8-amd64/inventory.yaml}' --live=True -s", 'args': {'chdir': '/home/akim/Desktop/wazuh-qa/deployability'}}]}] finished with status {'skipped': {}, 'ok': {'localhost': 2}, 'dark': {}, 'failures': {}, 'ignored': {}, 'rescued': {}, 'processed': {'localhost': 1}, 'changed': {'localhost': 1}} [2024-04-08 21:29:23,491] [DEBUG] ANSIBLE: Rendering template /home/akim/Desktop/wazuh-qa/deployability/modules/testing/playbooks/test.yml [2024-04-08 21:29:23,493] [DEBUG] ANSIBLE: Using inventory: {'all': {'hosts': {'192.168.57.2': {'ansible_port': 22, 'ansible_user': 'vagrant', 'ansible_ssh_private_key_file': '/tmp/wazuh-qa/VAGRANT-9DF0E7E5-52E6-47C3-9FC0-245DE93121A5/instance_key'}}}} [2024-04-08 21:29:23,493] [DEBUG] ANSIBLE: Running playbook: [{'hosts': 'localhost', 'become': True, 'become_user': 'akim', 'tasks': [{'name': 'Test stop for agent', 'command': "python3 -m pytest modules/testing/tests/test_agent/test_stop.py -v --wazuh_version=4.7.3 --wazuh_revision=40714 --component=agent --dependencies='{}' --targets='{wazuh-1: /tmp/dtt1-poc/manager-linux-ubuntu-22.04-amd64/inventory.yaml, agent: /tmp/dtt1-poc/agent-linux-redhat-8-amd64/inventory.yaml}' --live=True -s", 'args': {'chdir': '/home/akim/Desktop/wazuh-qa/deployability'}}]}] [2024-04-08 21:29:31,976] [INFO] [Testing]: Checking connection to redhat-8 [2024-04-08 21:29:32,350] [INFO] [Testing]: Connection established successfully in redhat-8 [2024-04-08 21:29:35,099] [INFO] [Testing]: Stopping wazuh-agent in redhat-8 [2024-04-08 21:29:36,980] [INFO] [Testing]: Getting status of redhat-8 [2024-04-08 21:29:37,652] [INFO] [Testing]: Restarting wazuh-agent in redhat-8 [2024-04-08 21:29:45,636] [DEBUG] ANSIBLE: Playbook [{'hosts': 'localhost', 'become': True, 'become_user': 'akim', 'tasks': [{'name': 'Test stop for agent', 'command': "python3 -m pytest modules/testing/tests/test_agent/test_stop.py -v --wazuh_version=4.7.3 --wazuh_revision=40714 --component=agent --dependencies='{}' --targets='{wazuh-1: /tmp/dtt1-poc/manager-linux-ubuntu-22.04-amd64/inventory.yaml, agent: /tmp/dtt1-poc/agent-linux-redhat-8-amd64/inventory.yaml}' --live=True -s", 'args': {'chdir': '/home/akim/Desktop/wazuh-qa/deployability'}}]}] finished with status {'skipped': {}, 'ok': {'localhost': 2}, 'dark': {}, 'failures': {}, 'ignored': {}, 'rescued': {}, 'processed': {'localhost': 1}, 'changed': {'localhost': 1}} [2024-04-08 21:29:45,639] [DEBUG] ANSIBLE: Rendering template /home/akim/Desktop/wazuh-qa/deployability/modules/testing/playbooks/test.yml [2024-04-08 21:29:45,641] [DEBUG] ANSIBLE: Using inventory: {'all': {'hosts': {'192.168.57.2': {'ansible_port': 22, 'ansible_user': 'vagrant', 'ansible_ssh_private_key_file': '/tmp/wazuh-qa/VAGRANT-9DF0E7E5-52E6-47C3-9FC0-245DE93121A5/instance_key'}}}} [2024-04-08 21:29:45,641] [DEBUG] ANSIBLE: Running playbook: [{'hosts': 'localhost', 'become': True, 'become_user': 'akim', 'tasks': [{'name': 'Test uninstall for agent', 'command': "python3 -m pytest modules/testing/tests/test_agent/test_uninstall.py -v --wazuh_version=4.7.3 --wazuh_revision=40714 --component=agent --dependencies='{}' --targets='{wazuh-1: /tmp/dtt1-poc/manager-linux-ubuntu-22.04-amd64/inventory.yaml, agent: /tmp/dtt1-poc/agent-linux-redhat-8-amd64/inventory.yaml}' --live=True -s", 'args': {'chdir': '/home/akim/Desktop/wazuh-qa/deployability'}}]}] [2024-04-08 21:29:53,467] [INFO] [Testing]: Checking connection to redhat-8 [2024-04-08 21:29:53,847] [INFO] [Testing]: Connection established successfully in redhat-8 [2024-04-08 21:29:56,070] [INFO] [Testing]: Generating Snapshot for Checkfile in redhat-8 [2024-04-08 21:29:58,836] [INFO] [Testing]: Uninstalling Agent in redhat-8 [2024-04-08 21:30:26,194] [INFO] [Testing]: Generating Snapshot for Checkfile in redhat-8 [2024-04-08 21:30:28,418] [INFO] [Testing]: Applying filters in checkfiles in redhat-8 [2024-04-08 21:30:28,418] [INFO] [Testing]: Pre and post uninstall checkfile comparison in redhat-8: {'/boot': {'added': [], 'removed': [], 'modified': []}, '/usr/bin': {'added': [], 'removed': [], 'modified': []}, '/root': {'added': [], 'removed': [], 'modified': []}, '/usr/sbin': {'added': [], 'removed': [], 'modified': []}} [2024-04-08 21:30:30,780] [DEBUG] ANSIBLE: Playbook [{'hosts': 'localhost', 'become': True, 'become_user': 'akim', 'tasks': [{'name': 'Test uninstall for agent', 'command': "python3 -m pytest modules/testing/tests/test_agent/test_uninstall.py -v --wazuh_version=4.7.3 --wazuh_revision=40714 --component=agent --dependencies='{}' --targets='{wazuh-1: /tmp/dtt1-poc/manager-linux-ubuntu-22.04-amd64/inventory.yaml, agent: /tmp/dtt1-poc/agent-linux-redhat-8-amd64/inventory.yaml}' --live=True -s", 'args': {'chdir': '/home/akim/Desktop/wazuh-qa/deployability'}}]}] finished with status {'skipped': {}, 'ok': {'localhost': 2}, 'dark': {}, 'failures': {}, 'ignored': {}, 'rescued': {}, 'processed': {'localhost': 1}, 'changed': {'localhost': 1}} [2024-04-08 21:30:30,781] [DEBUG] ANSIBLE: Using inventory: {'all': {'hosts': {'192.168.57.2': {'ansible_port': 22, 'ansible_user': 'vagrant', 'ansible_ssh_private_key_file': '/tmp/wazuh-qa/VAGRANT-9DF0E7E5-52E6-47C3-9FC0-245DE93121A5/instance_key'}}}} [2024-04-08 21:30:30,781] [DEBUG] ANSIBLE: Running playbook: /home/akim/Desktop/wazuh-qa/deployability/modules/testing/playbooks/cleanup.yml [2024-04-08 21:30:33,438] [DEBUG] ANSIBLE: Playbook /home/akim/Desktop/wazuh-qa/deployability/modules/testing/playbooks/cleanup.yml finished with status {'skipped': {}, 'ok': {'192.168.57.2': 2}, 'dark': {}, 'failures': {}, 'ignored': {}, 'rescued': {}, 'processed': {'192.168.57.2': 1}, 'changed': {}} [2024-04-08 21:30:33,439] [DEBUG] ANSIBLE: Using inventory: {'all': {'hosts': {'192.168.57.2': {'ansible_port': 22, 'ansible_user': 'vagrant', 'ansible_ssh_private_key_file': '/tmp/wazuh-qa/VAGRANT-9DF0E7E5-52E6-47C3-9FC0-245DE93121A5/instance_key'}}}} [2024-04-08 21:30:33,440] [DEBUG] ANSIBLE: Running playbook: /home/akim/Desktop/wazuh-qa/deployability/modules/testing/playbooks/cleanup.yml [2024-04-08 21:30:35,965] [DEBUG] ANSIBLE: Playbook /home/akim/Desktop/wazuh-qa/deployability/modules/testing/playbooks/cleanup.yml finished with status {'skipped': {}, 'ok': {'192.168.57.2': 2}, 'dark': {}, 'failures': {}, 'ignored': {}, 'rescued': {}, 'processed': {'192.168.57.2': 1}, 'changed': {}} [2024-04-08 21:30:36,047] [INFO] [283400] [ThreadPoolExecutor-0_0] [workflow_engine]: [run-agent-linux-redhat-8-amd64-tests] Finished task in 218.78 seconds. [2024-04-08 21:30:36,058] [INFO] [283400] [ThreadPoolExecutor-0_0] [workflow_engine]: [run-agent-linux-redhat-9-amd64-tests] Starting task. [2024-04-08 21:30:36,416] [INFO] TESTER: Running tests for 192.168.57.2 [2024-04-08 21:30:36,417] [INFO] TESTER: Running tests for 192.168.57.7 [2024-04-08 21:30:36,417] [DEBUG] TESTER: Using extra vars: {'component': 'agent', 'wazuh_version': '4.7.3', 'wazuh_revision': '40714', 'wazuh_branch': None, 'working_dir': '/tmp/tests', 'live': True, 'hosts_ip': ['192.168.57.2', '192.168.57.7'], 'targets': '{wazuh-1: /tmp/dtt1-poc/manager-linux-ubuntu-22.04-amd64/inventory.yaml, agent: /tmp/dtt1-poc/agent-linux-redhat-9-amd64/inventory.yaml}', 'dependencies': '{}', 'local_host_path': '/home/akim/Desktop/wazuh-qa/deployability', 'current_user': 'akim'} [2024-04-08 21:30:36,424] [DEBUG] ANSIBLE: Rendering template /home/akim/Desktop/wazuh-qa/deployability/modules/testing/playbooks/setup.yml [2024-04-08 21:30:36,425] [DEBUG] ANSIBLE: Using inventory: {'all': {'hosts': {'192.168.57.2': {'ansible_port': 22, 'ansible_user': 'vagrant', 'ansible_ssh_private_key_file': '/tmp/wazuh-qa/VAGRANT-9DF0E7E5-52E6-47C3-9FC0-245DE93121A5/instance_key'}}}} [2024-04-08 21:30:36,425] [DEBUG] ANSIBLE: Running playbook: [{'hosts': 'localhost', 'become': True, 'become_user': 'akim', 'tasks': [{'name': 'Cleaning old key ssh-keygen registries', 'ansible.builtin.command': {'cmd': "ssh-keygen -f /home/akim/.ssh/known_hosts -R ''"}, 'loop': ['192.168.57.2', '192.168.57.7']}]}] [2024-04-08 21:30:42,637] [DEBUG] ANSIBLE: Playbook [{'hosts': 'localhost', 'become': True, 'become_user': 'akim', 'tasks': [{'name': 'Cleaning old key ssh-keygen registries', 'ansible.builtin.command': {'cmd': "ssh-keygen -f /home/akim/.ssh/known_hosts -R ''"}, 'loop': ['192.168.57.2', '192.168.57.7']}]}] finished with status {'skipped': {}, 'ok': {'localhost': 2}, 'dark': {}, 'failures': {}, 'ignored': {}, 'rescued': {}, 'processed': {'localhost': 1}, 'changed': {'localhost': 1}} [2024-04-08 21:30:42,640] [DEBUG] ANSIBLE: Rendering template /home/akim/Desktop/wazuh-qa/deployability/modules/testing/playbooks/test.yml [2024-04-08 21:30:42,641] [DEBUG] ANSIBLE: Using inventory: {'all': {'hosts': {'192.168.57.2': {'ansible_port': 22, 'ansible_user': 'vagrant', 'ansible_ssh_private_key_file': '/tmp/wazuh-qa/VAGRANT-9DF0E7E5-52E6-47C3-9FC0-245DE93121A5/instance_key'}}}} [2024-04-08 21:30:42,641] [DEBUG] ANSIBLE: Running playbook: [{'hosts': 'localhost', 'become': True, 'become_user': 'akim', 'tasks': [{'name': 'Test install for agent', 'command': "python3 -m pytest modules/testing/tests/test_agent/test_install.py -v --wazuh_version=4.7.3 --wazuh_revision=40714 --component=agent --dependencies='{}' --targets='{wazuh-1: /tmp/dtt1-poc/manager-linux-ubuntu-22.04-amd64/inventory.yaml, agent: /tmp/dtt1-poc/agent-linux-redhat-9-amd64/inventory.yaml}' --live=True -s", 'args': {'chdir': '/home/akim/Desktop/wazuh-qa/deployability'}}]}] [2024-04-08 21:30:46,400] [INFO] [Testing]: Checking connection to redhat-9 [2024-04-08 21:30:46,776] [INFO] [Testing]: Connection established successfully in redhat-9 [2024-04-08 21:30:47,174] [INFO] [Testing]: Checking connection to ubuntu-22.04 [2024-04-08 21:30:47,513] [INFO] [Testing]: Connection established successfully in ubuntu-22.04 [2024-04-08 21:30:48,987] [INFO] [Testing]: Firewall disabled on redhat-9 [2024-04-08 21:30:49,224] [INFO] [Testing]: Manager is already installed in ubuntu-22.04 [2024-04-08 21:30:49,787] [INFO] [Testing]: Generating Snapshot for Checkfile in redhat-9 [2024-04-08 21:30:54,084] [INFO] [Testing]: Installing Agent in redhat-9 [2024-04-08 21:31:33,099] [INFO] [Testing]: Generating Snapshot for Checkfile in redhat-9 [2024-04-08 21:31:42,177] [INFO] [Testing]: Applying filters in checkfiles in redhat-9 [2024-04-08 21:31:42,177] [INFO] [Testing]: Pre and post install checkfile comparison in redhat-9: {'/boot': {'added': [], 'removed': [], 'modified': []}, '/usr/bin': {'added': [], 'removed': [], 'modified': []}, '/root': {'added': [], 'removed': [], 'modified': []}, '/usr/sbin': {'added': [], 'removed': [], 'modified': []}} [2024-04-08 21:31:42,699] [INFO] [Testing]: Getting status of redhat-9 [2024-04-08 21:31:44,787] [DEBUG] ANSIBLE: Playbook [{'hosts': 'localhost', 'become': True, 'become_user': 'akim', 'tasks': [{'name': 'Test install for agent', 'command': "python3 -m pytest modules/testing/tests/test_agent/test_install.py -v --wazuh_version=4.7.3 --wazuh_revision=40714 --component=agent --dependencies='{}' --targets='{wazuh-1: /tmp/dtt1-poc/manager-linux-ubuntu-22.04-amd64/inventory.yaml, agent: /tmp/dtt1-poc/agent-linux-redhat-9-amd64/inventory.yaml}' --live=True -s", 'args': {'chdir': '/home/akim/Desktop/wazuh-qa/deployability'}}]}] finished with status {'skipped': {}, 'ok': {'localhost': 2}, 'dark': {}, 'failures': {}, 'ignored': {}, 'rescued': {}, 'processed': {'localhost': 1}, 'changed': {'localhost': 1}} [2024-04-08 21:31:44,791] [DEBUG] ANSIBLE: Rendering template /home/akim/Desktop/wazuh-qa/deployability/modules/testing/playbooks/test.yml [2024-04-08 21:31:44,792] [DEBUG] ANSIBLE: Using inventory: {'all': {'hosts': {'192.168.57.2': {'ansible_port': 22, 'ansible_user': 'vagrant', 'ansible_ssh_private_key_file': '/tmp/wazuh-qa/VAGRANT-9DF0E7E5-52E6-47C3-9FC0-245DE93121A5/instance_key'}}}} [2024-04-08 21:31:44,793] [DEBUG] ANSIBLE: Running playbook: [{'hosts': 'localhost', 'become': True, 'become_user': 'akim', 'tasks': [{'name': 'Test registration for agent', 'command': "python3 -m pytest modules/testing/tests/test_agent/test_registration.py -v --wazuh_version=4.7.3 --wazuh_revision=40714 --component=agent --dependencies='{}' --targets='{wazuh-1: /tmp/dtt1-poc/manager-linux-ubuntu-22.04-amd64/inventory.yaml, agent: /tmp/dtt1-poc/agent-linux-redhat-9-amd64/inventory.yaml}' --live=True -s", 'args': {'chdir': '/home/akim/Desktop/wazuh-qa/deployability'}}]}] [2024-04-08 21:31:51,424] [INFO] [Testing]: Checking connection to redhat-9 [2024-04-08 21:31:51,781] [INFO] [Testing]: Connection established successfully in redhat-9 [2024-04-08 21:32:00,509] [INFO] [Testing]: Getting status of redhat-9 [2024-04-08 21:32:35,474] [DEBUG] ANSIBLE: Playbook [{'hosts': 'localhost', 'become': True, 'become_user': 'akim', 'tasks': [{'name': 'Test registration for agent', 'command': "python3 -m pytest modules/testing/tests/test_agent/test_registration.py -v --wazuh_version=4.7.3 --wazuh_revision=40714 --component=agent --dependencies='{}' --targets='{wazuh-1: /tmp/dtt1-poc/manager-linux-ubuntu-22.04-amd64/inventory.yaml, agent: /tmp/dtt1-poc/agent-linux-redhat-9-amd64/inventory.yaml}' --live=True -s", 'args': {'chdir': '/home/akim/Desktop/wazuh-qa/deployability'}}]}] finished with status {'skipped': {}, 'ok': {'localhost': 2}, 'dark': {}, 'failures': {}, 'ignored': {}, 'rescued': {}, 'processed': {'localhost': 1}, 'changed': {'localhost': 1}} [2024-04-08 21:32:35,477] [DEBUG] ANSIBLE: Rendering template /home/akim/Desktop/wazuh-qa/deployability/modules/testing/playbooks/test.yml [2024-04-08 21:32:35,478] [DEBUG] ANSIBLE: Using inventory: {'all': {'hosts': {'192.168.57.2': {'ansible_port': 22, 'ansible_user': 'vagrant', 'ansible_ssh_private_key_file': '/tmp/wazuh-qa/VAGRANT-9DF0E7E5-52E6-47C3-9FC0-245DE93121A5/instance_key'}}}} [2024-04-08 21:32:35,478] [DEBUG] ANSIBLE: Running playbook: [{'hosts': 'localhost', 'become': True, 'become_user': 'akim', 'tasks': [{'name': 'Test restart for agent', 'command': "python3 -m pytest modules/testing/tests/test_agent/test_restart.py -v --wazuh_version=4.7.3 --wazuh_revision=40714 --component=agent --dependencies='{}' --targets='{wazuh-1: /tmp/dtt1-poc/manager-linux-ubuntu-22.04-amd64/inventory.yaml, agent: /tmp/dtt1-poc/agent-linux-redhat-9-amd64/inventory.yaml}' --live=True -s", 'args': {'chdir': '/home/akim/Desktop/wazuh-qa/deployability'}}]}] [2024-04-08 21:32:42,021] [INFO] [Testing]: Checking connection to redhat-9 [2024-04-08 21:32:42,380] [INFO] [Testing]: Connection established successfully in redhat-9 [2024-04-08 21:32:43,736] [INFO] [Testing]: Restarting wazuh-agent in redhat-9 [2024-04-08 21:32:52,901] [INFO] [Testing]: Getting status of redhat-9 [2024-04-08 21:32:55,161] [DEBUG] ANSIBLE: Playbook [{'hosts': 'localhost', 'become': True, 'become_user': 'akim', 'tasks': [{'name': 'Test restart for agent', 'command': "python3 -m pytest modules/testing/tests/test_agent/test_restart.py -v --wazuh_version=4.7.3 --wazuh_revision=40714 --component=agent --dependencies='{}' --targets='{wazuh-1: /tmp/dtt1-poc/manager-linux-ubuntu-22.04-amd64/inventory.yaml, agent: /tmp/dtt1-poc/agent-linux-redhat-9-amd64/inventory.yaml}' --live=True -s", 'args': {'chdir': '/home/akim/Desktop/wazuh-qa/deployability'}}]}] finished with status {'skipped': {}, 'ok': {'localhost': 2}, 'dark': {}, 'failures': {}, 'ignored': {}, 'rescued': {}, 'processed': {'localhost': 1}, 'changed': {'localhost': 1}} [2024-04-08 21:32:55,165] [DEBUG] ANSIBLE: Rendering template /home/akim/Desktop/wazuh-qa/deployability/modules/testing/playbooks/test.yml [2024-04-08 21:32:55,168] [DEBUG] ANSIBLE: Using inventory: {'all': {'hosts': {'192.168.57.2': {'ansible_port': 22, 'ansible_user': 'vagrant', 'ansible_ssh_private_key_file': '/tmp/wazuh-qa/VAGRANT-9DF0E7E5-52E6-47C3-9FC0-245DE93121A5/instance_key'}}}} [2024-04-08 21:32:55,168] [DEBUG] ANSIBLE: Running playbook: [{'hosts': 'localhost', 'become': True, 'become_user': 'akim', 'tasks': [{'name': 'Test stop for agent', 'command': "python3 -m pytest modules/testing/tests/test_agent/test_stop.py -v --wazuh_version=4.7.3 --wazuh_revision=40714 --component=agent --dependencies='{}' --targets='{wazuh-1: /tmp/dtt1-poc/manager-linux-ubuntu-22.04-amd64/inventory.yaml, agent: /tmp/dtt1-poc/agent-linux-redhat-9-amd64/inventory.yaml}' --live=True -s", 'args': {'chdir': '/home/akim/Desktop/wazuh-qa/deployability'}}]}] [2024-04-08 21:33:02,911] [INFO] [Testing]: Checking connection to redhat-9 [2024-04-08 21:33:03,287] [INFO] [Testing]: Connection established successfully in redhat-9 [2024-04-08 21:33:06,630] [INFO] [Testing]: Stopping wazuh-agent in redhat-9 [2024-04-08 21:33:08,652] [INFO] [Testing]: Getting status of redhat-9 [2024-04-08 21:33:09,375] [INFO] [Testing]: Restarting wazuh-agent in redhat-9 [2024-04-08 21:33:17,708] [DEBUG] ANSIBLE: Playbook [{'hosts': 'localhost', 'become': True, 'become_user': 'akim', 'tasks': [{'name': 'Test stop for agent', 'command': "python3 -m pytest modules/testing/tests/test_agent/test_stop.py -v --wazuh_version=4.7.3 --wazuh_revision=40714 --component=agent --dependencies='{}' --targets='{wazuh-1: /tmp/dtt1-poc/manager-linux-ubuntu-22.04-amd64/inventory.yaml, agent: /tmp/dtt1-poc/agent-linux-redhat-9-amd64/inventory.yaml}' --live=True -s", 'args': {'chdir': '/home/akim/Desktop/wazuh-qa/deployability'}}]}] finished with status {'skipped': {}, 'ok': {'localhost': 2}, 'dark': {}, 'failures': {}, 'ignored': {}, 'rescued': {}, 'processed': {'localhost': 1}, 'changed': {'localhost': 1}} [2024-04-08 21:33:17,713] [DEBUG] ANSIBLE: Rendering template /home/akim/Desktop/wazuh-qa/deployability/modules/testing/playbooks/test.yml [2024-04-08 21:33:17,717] [DEBUG] ANSIBLE: Using inventory: {'all': {'hosts': {'192.168.57.2': {'ansible_port': 22, 'ansible_user': 'vagrant', 'ansible_ssh_private_key_file': '/tmp/wazuh-qa/VAGRANT-9DF0E7E5-52E6-47C3-9FC0-245DE93121A5/instance_key'}}}} [2024-04-08 21:33:17,717] [DEBUG] ANSIBLE: Running playbook: [{'hosts': 'localhost', 'become': True, 'become_user': 'akim', 'tasks': [{'name': 'Test uninstall for agent', 'command': "python3 -m pytest modules/testing/tests/test_agent/test_uninstall.py -v --wazuh_version=4.7.3 --wazuh_revision=40714 --component=agent --dependencies='{}' --targets='{wazuh-1: /tmp/dtt1-poc/manager-linux-ubuntu-22.04-amd64/inventory.yaml, agent: /tmp/dtt1-poc/agent-linux-redhat-9-amd64/inventory.yaml}' --live=True -s", 'args': {'chdir': '/home/akim/Desktop/wazuh-qa/deployability'}}]}] [2024-04-08 21:33:25,803] [INFO] [Testing]: Checking connection to redhat-9 [2024-04-08 21:33:26,178] [INFO] [Testing]: Connection established successfully in redhat-9 [2024-04-08 21:33:29,180] [INFO] [Testing]: Generating Snapshot for Checkfile in redhat-9 [2024-04-08 21:33:33,684] [INFO] [Testing]: Uninstalling Agent in redhat-9 [2024-04-08 21:33:46,809] [INFO] [Testing]: Generating Snapshot for Checkfile in redhat-9 [2024-04-08 21:33:49,351] [INFO] [Testing]: Applying filters in checkfiles in redhat-9 [2024-04-08 21:33:49,351] [INFO] [Testing]: Pre and post uninstall checkfile comparison in redhat-9: {'/boot': {'added': [], 'removed': [], 'modified': []}, '/usr/bin': {'added': [], 'removed': [], 'modified': []}, '/root': {'added': [], 'removed': [], 'modified': []}, '/usr/sbin': {'added': [], 'removed': [], 'modified': []}} [2024-04-08 21:33:52,094] [DEBUG] ANSIBLE: Playbook [{'hosts': 'localhost', 'become': True, 'become_user': 'akim', 'tasks': [{'name': 'Test uninstall for agent', 'command': "python3 -m pytest modules/testing/tests/test_agent/test_uninstall.py -v --wazuh_version=4.7.3 --wazuh_revision=40714 --component=agent --dependencies='{}' --targets='{wazuh-1: /tmp/dtt1-poc/manager-linux-ubuntu-22.04-amd64/inventory.yaml, agent: /tmp/dtt1-poc/agent-linux-redhat-9-amd64/inventory.yaml}' --live=True -s", 'args': {'chdir': '/home/akim/Desktop/wazuh-qa/deployability'}}]}] finished with status {'skipped': {}, 'ok': {'localhost': 2}, 'dark': {}, 'failures': {}, 'ignored': {}, 'rescued': {}, 'processed': {'localhost': 1}, 'changed': {'localhost': 1}} [2024-04-08 21:33:52,096] [DEBUG] ANSIBLE: Using inventory: {'all': {'hosts': {'192.168.57.2': {'ansible_port': 22, 'ansible_user': 'vagrant', 'ansible_ssh_private_key_file': '/tmp/wazuh-qa/VAGRANT-9DF0E7E5-52E6-47C3-9FC0-245DE93121A5/instance_key'}}}} [2024-04-08 21:33:52,096] [DEBUG] ANSIBLE: Running playbook: /home/akim/Desktop/wazuh-qa/deployability/modules/testing/playbooks/cleanup.yml [2024-04-08 21:33:54,852] [DEBUG] ANSIBLE: Playbook /home/akim/Desktop/wazuh-qa/deployability/modules/testing/playbooks/cleanup.yml finished with status {'skipped': {}, 'ok': {'192.168.57.2': 2}, 'dark': {}, 'failures': {}, 'ignored': {}, 'rescued': {}, 'processed': {'192.168.57.2': 1}, 'changed': {}} [2024-04-08 21:33:54,853] [DEBUG] ANSIBLE: Using inventory: {'all': {'hosts': {'192.168.57.2': {'ansible_port': 22, 'ansible_user': 'vagrant', 'ansible_ssh_private_key_file': '/tmp/wazuh-qa/VAGRANT-9DF0E7E5-52E6-47C3-9FC0-245DE93121A5/instance_key'}}}} [2024-04-08 21:33:54,853] [DEBUG] ANSIBLE: Running playbook: /home/akim/Desktop/wazuh-qa/deployability/modules/testing/playbooks/cleanup.yml [2024-04-08 21:33:57,417] [DEBUG] ANSIBLE: Playbook /home/akim/Desktop/wazuh-qa/deployability/modules/testing/playbooks/cleanup.yml finished with status {'skipped': {}, 'ok': {'192.168.57.2': 2}, 'dark': {}, 'failures': {}, 'ignored': {}, 'rescued': {}, 'processed': {'192.168.57.2': 1}, 'changed': {}} [2024-04-08 21:33:57,496] [INFO] [283400] [ThreadPoolExecutor-0_0] [workflow_engine]: [run-agent-linux-redhat-9-amd64-tests] Finished task in 201.43 seconds. [2024-04-08 21:33:57,501] [INFO] [283400] [ThreadPoolExecutor-0_0] [workflow_engine]: [run-agent-linux-amazon-2-amd64-tests] Starting task. [2024-04-08 21:33:57,874] [INFO] TESTER: Running tests for 192.168.57.2 [2024-04-08 21:33:57,875] [INFO] TESTER: Running tests for 192.168.57.8 [2024-04-08 21:33:57,878] [DEBUG] TESTER: Using extra vars: {'component': 'agent', 'wazuh_version': '4.7.3', 'wazuh_revision': '40714', 'wazuh_branch': None, 'working_dir': '/tmp/tests', 'live': True, 'hosts_ip': ['192.168.57.2', '192.168.57.8'], 'targets': '{wazuh-1: /tmp/dtt1-poc/manager-linux-ubuntu-22.04-amd64/inventory.yaml, agent: /tmp/dtt1-poc/agent-linux-amazon-2-amd64/inventory.yaml}', 'dependencies': '{}', 'local_host_path': '/home/akim/Desktop/wazuh-qa/deployability', 'current_user': 'akim'} [2024-04-08 21:33:57,884] [DEBUG] ANSIBLE: Rendering template /home/akim/Desktop/wazuh-qa/deployability/modules/testing/playbooks/setup.yml [2024-04-08 21:33:57,885] [DEBUG] ANSIBLE: Using inventory: {'all': {'hosts': {'192.168.57.2': {'ansible_port': 22, 'ansible_user': 'vagrant', 'ansible_ssh_private_key_file': '/tmp/wazuh-qa/VAGRANT-9DF0E7E5-52E6-47C3-9FC0-245DE93121A5/instance_key'}}}} [2024-04-08 21:33:57,886] [DEBUG] ANSIBLE: Running playbook: [{'hosts': 'localhost', 'become': True, 'become_user': 'akim', 'tasks': [{'name': 'Cleaning old key ssh-keygen registries', 'ansible.builtin.command': {'cmd': "ssh-keygen -f /home/akim/.ssh/known_hosts -R ''"}, 'loop': ['192.168.57.2', '192.168.57.8']}]}] [2024-04-08 21:34:04,131] [DEBUG] ANSIBLE: Playbook [{'hosts': 'localhost', 'become': True, 'become_user': 'akim', 'tasks': [{'name': 'Cleaning old key ssh-keygen registries', 'ansible.builtin.command': {'cmd': "ssh-keygen -f /home/akim/.ssh/known_hosts -R ''"}, 'loop': ['192.168.57.2', '192.168.57.8']}]}] finished with status {'skipped': {}, 'ok': {'localhost': 2}, 'dark': {}, 'failures': {}, 'ignored': {}, 'rescued': {}, 'processed': {'localhost': 1}, 'changed': {'localhost': 1}} [2024-04-08 21:34:04,133] [DEBUG] ANSIBLE: Rendering template /home/akim/Desktop/wazuh-qa/deployability/modules/testing/playbooks/test.yml [2024-04-08 21:34:04,135] [DEBUG] ANSIBLE: Using inventory: {'all': {'hosts': {'192.168.57.2': {'ansible_port': 22, 'ansible_user': 'vagrant', 'ansible_ssh_private_key_file': '/tmp/wazuh-qa/VAGRANT-9DF0E7E5-52E6-47C3-9FC0-245DE93121A5/instance_key'}}}} [2024-04-08 21:34:04,135] [DEBUG] ANSIBLE: Running playbook: [{'hosts': 'localhost', 'become': True, 'become_user': 'akim', 'tasks': [{'name': 'Test install for agent', 'command': "python3 -m pytest modules/testing/tests/test_agent/test_install.py -v --wazuh_version=4.7.3 --wazuh_revision=40714 --component=agent --dependencies='{}' --targets='{wazuh-1: /tmp/dtt1-poc/manager-linux-ubuntu-22.04-amd64/inventory.yaml, agent: /tmp/dtt1-poc/agent-linux-amazon-2-amd64/inventory.yaml}' --live=True -s", 'args': {'chdir': '/home/akim/Desktop/wazuh-qa/deployability'}}]}] [2024-04-08 21:34:08,846] [INFO] [Testing]: Checking connection to amazon-2 [2024-04-08 21:34:09,169] [INFO] [Testing]: Connection established successfully in amazon-2 [2024-04-08 21:34:09,327] [INFO] [Testing]: Checking connection to ubuntu-22.04 [2024-04-08 21:34:09,659] [INFO] [Testing]: Connection established successfully in ubuntu-22.04 [2024-04-08 21:34:09,809] [INFO] [Testing]: No Firewall to disable on amazon-2 [2024-04-08 21:34:10,392] [INFO] [Testing]: Manager is already installed in ubuntu-22.04 [2024-04-08 21:34:10,746] [INFO] [Testing]: Generating Snapshot for Checkfile in amazon-2 [2024-04-08 21:34:13,476] [INFO] [Testing]: Installing Agent in amazon-2 [2024-04-08 21:34:16,974] [INFO] [Testing]: Generating Snapshot for Checkfile in amazon-2 [2024-04-08 21:34:18,383] [INFO] [Testing]: Applying filters in checkfiles in amazon-2 [2024-04-08 21:34:18,383] [INFO] [Testing]: Pre and post install checkfile comparison in amazon-2: {'/boot': {'added': [], 'removed': [], 'modified': []}, '/usr/bin': {'added': [], 'removed': [], 'modified': []}, '/root': {'added': [], 'removed': [], 'modified': []}, '/usr/sbin': {'added': [], 'removed': [], 'modified': []}} [2024-04-08 21:34:18,531] [INFO] [Testing]: Getting status of amazon-2 [2024-04-08 21:34:19,373] [DEBUG] ANSIBLE: Playbook [{'hosts': 'localhost', 'become': True, 'become_user': 'akim', 'tasks': [{'name': 'Test install for agent', 'command': "python3 -m pytest modules/testing/tests/test_agent/test_install.py -v --wazuh_version=4.7.3 --wazuh_revision=40714 --component=agent --dependencies='{}' --targets='{wazuh-1: /tmp/dtt1-poc/manager-linux-ubuntu-22.04-amd64/inventory.yaml, agent: /tmp/dtt1-poc/agent-linux-amazon-2-amd64/inventory.yaml}' --live=True -s", 'args': {'chdir': '/home/akim/Desktop/wazuh-qa/deployability'}}]}] finished with status {'skipped': {}, 'ok': {'localhost': 2}, 'dark': {}, 'failures': {}, 'ignored': {}, 'rescued': {}, 'processed': {'localhost': 1}, 'changed': {'localhost': 1}} [2024-04-08 21:34:19,377] [DEBUG] ANSIBLE: Rendering template /home/akim/Desktop/wazuh-qa/deployability/modules/testing/playbooks/test.yml [2024-04-08 21:34:19,380] [DEBUG] ANSIBLE: Using inventory: {'all': {'hosts': {'192.168.57.2': {'ansible_port': 22, 'ansible_user': 'vagrant', 'ansible_ssh_private_key_file': '/tmp/wazuh-qa/VAGRANT-9DF0E7E5-52E6-47C3-9FC0-245DE93121A5/instance_key'}}}} [2024-04-08 21:34:19,380] [DEBUG] ANSIBLE: Running playbook: [{'hosts': 'localhost', 'become': True, 'become_user': 'akim', 'tasks': [{'name': 'Test registration for agent', 'command': "python3 -m pytest modules/testing/tests/test_agent/test_registration.py -v --wazuh_version=4.7.3 --wazuh_revision=40714 --component=agent --dependencies='{}' --targets='{wazuh-1: /tmp/dtt1-poc/manager-linux-ubuntu-22.04-amd64/inventory.yaml, agent: /tmp/dtt1-poc/agent-linux-amazon-2-amd64/inventory.yaml}' --live=True -s", 'args': {'chdir': '/home/akim/Desktop/wazuh-qa/deployability'}}]}] [2024-04-08 21:34:27,835] [INFO] [Testing]: Checking connection to amazon-2 [2024-04-08 21:34:28,142] [INFO] [Testing]: Connection established successfully in amazon-2 [2024-04-08 21:34:35,903] [INFO] [Testing]: Getting status of amazon-2 [2024-04-08 21:35:10,032] [DEBUG] ANSIBLE: Playbook [{'hosts': 'localhost', 'become': True, 'become_user': 'akim', 'tasks': [{'name': 'Test registration for agent', 'command': "python3 -m pytest modules/testing/tests/test_agent/test_registration.py -v --wazuh_version=4.7.3 --wazuh_revision=40714 --component=agent --dependencies='{}' --targets='{wazuh-1: /tmp/dtt1-poc/manager-linux-ubuntu-22.04-amd64/inventory.yaml, agent: /tmp/dtt1-poc/agent-linux-amazon-2-amd64/inventory.yaml}' --live=True -s", 'args': {'chdir': '/home/akim/Desktop/wazuh-qa/deployability'}}]}] finished with status {'skipped': {}, 'ok': {'localhost': 2}, 'dark': {}, 'failures': {}, 'ignored': {}, 'rescued': {}, 'processed': {'localhost': 1}, 'changed': {'localhost': 1}} [2024-04-08 21:35:10,034] [DEBUG] ANSIBLE: Rendering template /home/akim/Desktop/wazuh-qa/deployability/modules/testing/playbooks/test.yml [2024-04-08 21:35:10,036] [DEBUG] ANSIBLE: Using inventory: {'all': {'hosts': {'192.168.57.2': {'ansible_port': 22, 'ansible_user': 'vagrant', 'ansible_ssh_private_key_file': '/tmp/wazuh-qa/VAGRANT-9DF0E7E5-52E6-47C3-9FC0-245DE93121A5/instance_key'}}}} [2024-04-08 21:35:10,036] [DEBUG] ANSIBLE: Running playbook: [{'hosts': 'localhost', 'become': True, 'become_user': 'akim', 'tasks': [{'name': 'Test restart for agent', 'command': "python3 -m pytest modules/testing/tests/test_agent/test_restart.py -v --wazuh_version=4.7.3 --wazuh_revision=40714 --component=agent --dependencies='{}' --targets='{wazuh-1: /tmp/dtt1-poc/manager-linux-ubuntu-22.04-amd64/inventory.yaml, agent: /tmp/dtt1-poc/agent-linux-amazon-2-amd64/inventory.yaml}' --live=True -s", 'args': {'chdir': '/home/akim/Desktop/wazuh-qa/deployability'}}]}] [2024-04-08 21:35:16,629] [INFO] [Testing]: Checking connection to amazon-2 [2024-04-08 21:35:16,943] [INFO] [Testing]: Connection established successfully in amazon-2 [2024-04-08 21:35:17,665] [INFO] [Testing]: Restarting wazuh-agent in amazon-2 [2024-04-08 21:35:26,603] [INFO] [Testing]: Getting status of amazon-2 [2024-04-08 21:35:28,319] [DEBUG] ANSIBLE: Playbook [{'hosts': 'localhost', 'become': True, 'become_user': 'akim', 'tasks': [{'name': 'Test restart for agent', 'command': "python3 -m pytest modules/testing/tests/test_agent/test_restart.py -v --wazuh_version=4.7.3 --wazuh_revision=40714 --component=agent --dependencies='{}' --targets='{wazuh-1: /tmp/dtt1-poc/manager-linux-ubuntu-22.04-amd64/inventory.yaml, agent: /tmp/dtt1-poc/agent-linux-amazon-2-amd64/inventory.yaml}' --live=True -s", 'args': {'chdir': '/home/akim/Desktop/wazuh-qa/deployability'}}]}] finished with status {'skipped': {}, 'ok': {'localhost': 2}, 'dark': {}, 'failures': {}, 'ignored': {}, 'rescued': {}, 'processed': {'localhost': 1}, 'changed': {'localhost': 1}} [2024-04-08 21:35:28,323] [DEBUG] ANSIBLE: Rendering template /home/akim/Desktop/wazuh-qa/deployability/modules/testing/playbooks/test.yml [2024-04-08 21:35:28,326] [DEBUG] ANSIBLE: Using inventory: {'all': {'hosts': {'192.168.57.2': {'ansible_port': 22, 'ansible_user': 'vagrant', 'ansible_ssh_private_key_file': '/tmp/wazuh-qa/VAGRANT-9DF0E7E5-52E6-47C3-9FC0-245DE93121A5/instance_key'}}}} [2024-04-08 21:35:28,326] [DEBUG] ANSIBLE: Running playbook: [{'hosts': 'localhost', 'become': True, 'become_user': 'akim', 'tasks': [{'name': 'Test stop for agent', 'command': "python3 -m pytest modules/testing/tests/test_agent/test_stop.py -v --wazuh_version=4.7.3 --wazuh_revision=40714 --component=agent --dependencies='{}' --targets='{wazuh-1: /tmp/dtt1-poc/manager-linux-ubuntu-22.04-amd64/inventory.yaml, agent: /tmp/dtt1-poc/agent-linux-amazon-2-amd64/inventory.yaml}' --live=True -s", 'args': {'chdir': '/home/akim/Desktop/wazuh-qa/deployability'}}]}] [2024-04-08 21:35:37,010] [INFO] [Testing]: Checking connection to amazon-2 [2024-04-08 21:35:37,342] [INFO] [Testing]: Connection established successfully in amazon-2 [2024-04-08 21:35:39,200] [INFO] [Testing]: Stopping wazuh-agent in amazon-2 [2024-04-08 21:35:40,960] [INFO] [Testing]: Getting status of amazon-2 [2024-04-08 21:35:41,357] [INFO] [Testing]: Restarting wazuh-agent in amazon-2 [2024-04-08 21:35:49,296] [DEBUG] ANSIBLE: Playbook [{'hosts': 'localhost', 'become': True, 'become_user': 'akim', 'tasks': [{'name': 'Test stop for agent', 'command': "python3 -m pytest modules/testing/tests/test_agent/test_stop.py -v --wazuh_version=4.7.3 --wazuh_revision=40714 --component=agent --dependencies='{}' --targets='{wazuh-1: /tmp/dtt1-poc/manager-linux-ubuntu-22.04-amd64/inventory.yaml, agent: /tmp/dtt1-poc/agent-linux-amazon-2-amd64/inventory.yaml}' --live=True -s", 'args': {'chdir': '/home/akim/Desktop/wazuh-qa/deployability'}}]}] finished with status {'skipped': {}, 'ok': {'localhost': 2}, 'dark': {}, 'failures': {}, 'ignored': {}, 'rescued': {}, 'processed': {'localhost': 1}, 'changed': {'localhost': 1}} [2024-04-08 21:35:49,300] [DEBUG] ANSIBLE: Rendering template /home/akim/Desktop/wazuh-qa/deployability/modules/testing/playbooks/test.yml [2024-04-08 21:35:49,303] [DEBUG] ANSIBLE: Using inventory: {'all': {'hosts': {'192.168.57.2': {'ansible_port': 22, 'ansible_user': 'vagrant', 'ansible_ssh_private_key_file': '/tmp/wazuh-qa/VAGRANT-9DF0E7E5-52E6-47C3-9FC0-245DE93121A5/instance_key'}}}} [2024-04-08 21:35:49,304] [DEBUG] ANSIBLE: Running playbook: [{'hosts': 'localhost', 'become': True, 'become_user': 'akim', 'tasks': [{'name': 'Test uninstall for agent', 'command': "python3 -m pytest modules/testing/tests/test_agent/test_uninstall.py -v --wazuh_version=4.7.3 --wazuh_revision=40714 --component=agent --dependencies='{}' --targets='{wazuh-1: /tmp/dtt1-poc/manager-linux-ubuntu-22.04-amd64/inventory.yaml, agent: /tmp/dtt1-poc/agent-linux-amazon-2-amd64/inventory.yaml}' --live=True -s", 'args': {'chdir': '/home/akim/Desktop/wazuh-qa/deployability'}}]}] [2024-04-08 21:35:59,198] [INFO] [Testing]: Checking connection to amazon-2 [2024-04-08 21:35:59,533] [INFO] [Testing]: Connection established successfully in amazon-2 [2024-04-08 21:36:00,768] [INFO] [Testing]: Generating Snapshot for Checkfile in amazon-2 [2024-04-08 21:36:02,606] [INFO] [Testing]: Uninstalling Agent in amazon-2 [2024-04-08 21:36:06,357] [INFO] [Testing]: Generating Snapshot for Checkfile in amazon-2 [2024-04-08 21:36:08,538] [INFO] [Testing]: Applying filters in checkfiles in amazon-2 [2024-04-08 21:36:08,539] [INFO] [Testing]: Pre and post uninstall checkfile comparison in amazon-2: {'/boot': {'added': [], 'removed': [], 'modified': []}, '/usr/bin': {'added': [], 'removed': [], 'modified': []}, '/root': {'added': [], 'removed': [], 'modified': []}, '/usr/sbin': {'added': [], 'removed': [], 'modified': []}} [2024-04-08 21:36:11,514] [DEBUG] ANSIBLE: Playbook [{'hosts': 'localhost', 'become': True, 'become_user': 'akim', 'tasks': [{'name': 'Test uninstall for agent', 'command': "python3 -m pytest modules/testing/tests/test_agent/test_uninstall.py -v --wazuh_version=4.7.3 --wazuh_revision=40714 --component=agent --dependencies='{}' --targets='{wazuh-1: /tmp/dtt1-poc/manager-linux-ubuntu-22.04-amd64/inventory.yaml, agent: /tmp/dtt1-poc/agent-linux-amazon-2-amd64/inventory.yaml}' --live=True -s", 'args': {'chdir': '/home/akim/Desktop/wazuh-qa/deployability'}}]}] finished with status {'skipped': {}, 'ok': {'localhost': 2}, 'dark': {}, 'failures': {}, 'ignored': {}, 'rescued': {}, 'processed': {'localhost': 1}, 'changed': {'localhost': 1}} [2024-04-08 21:36:11,516] [DEBUG] ANSIBLE: Using inventory: {'all': {'hosts': {'192.168.57.2': {'ansible_port': 22, 'ansible_user': 'vagrant', 'ansible_ssh_private_key_file': '/tmp/wazuh-qa/VAGRANT-9DF0E7E5-52E6-47C3-9FC0-245DE93121A5/instance_key'}}}} [2024-04-08 21:36:11,517] [DEBUG] ANSIBLE: Running playbook: /home/akim/Desktop/wazuh-qa/deployability/modules/testing/playbooks/cleanup.yml [2024-04-08 21:36:14,927] [DEBUG] ANSIBLE: Playbook /home/akim/Desktop/wazuh-qa/deployability/modules/testing/playbooks/cleanup.yml finished with status {'skipped': {}, 'ok': {'192.168.57.2': 2}, 'dark': {}, 'failures': {}, 'ignored': {}, 'rescued': {}, 'processed': {'192.168.57.2': 1}, 'changed': {}} [2024-04-08 21:36:14,929] [DEBUG] ANSIBLE: Using inventory: {'all': {'hosts': {'192.168.57.2': {'ansible_port': 22, 'ansible_user': 'vagrant', 'ansible_ssh_private_key_file': '/tmp/wazuh-qa/VAGRANT-9DF0E7E5-52E6-47C3-9FC0-245DE93121A5/instance_key'}}}} [2024-04-08 21:36:14,929] [DEBUG] ANSIBLE: Running playbook: /home/akim/Desktop/wazuh-qa/deployability/modules/testing/playbooks/cleanup.yml [2024-04-08 21:36:17,841] [DEBUG] ANSIBLE: Playbook /home/akim/Desktop/wazuh-qa/deployability/modules/testing/playbooks/cleanup.yml finished with status {'skipped': {}, 'ok': {'192.168.57.2': 2}, 'dark': {}, 'failures': {}, 'ignored': {}, 'rescued': {}, 'processed': {'192.168.57.2': 1}, 'changed': {}} [2024-04-08 21:36:17,932] [INFO] [283400] [ThreadPoolExecutor-0_0] [workflow_engine]: [run-agent-linux-amazon-2-amd64-tests] Finished task in 140.43 seconds. [2024-04-08 21:36:17,943] [INFO] [283400] [MainThread] [workflow_engine]: Executing Reverse DAG tasks. [2024-04-08 21:36:17,944] [INFO] [283400] [MainThread] [workflow_engine]: Executing tasks in parallel. [2024-04-08 21:36:17,944] [INFO] [283400] [ThreadPoolExecutor-1_0] [workflow_engine]: [allocate-agent-linux-centos-7-amd64] Starting task. [2024-04-08 21:36:18,369] [INFO] ALLOCATOR: Deleting instance from trackfile /tmp/dtt1-poc/agent-linux-centos-7-amd64/track.yaml [2024-04-08 21:36:18,370] [DEBUG] ALLOCATOR: Destroying instance VAGRANT-C2555DB2-50AE-4F6C-B058-76CB2404B49A [2024-04-08 21:36:24,836] [INFO] ALLOCATOR: Instance VAGRANT-C2555DB2-50AE-4F6C-B058-76CB2404B49A deleted. [2024-04-08 21:36:24,918] [INFO] [283400] [ThreadPoolExecutor-1_0] [workflow_engine]: [allocate-agent-linux-centos-7-amd64] Finished task in 6.96 seconds. [2024-04-08 21:36:24,928] [INFO] [283400] [ThreadPoolExecutor-1_0] [workflow_engine]: [allocate-agent-linux-centos-8-amd64] Starting task. [2024-04-08 21:36:25,329] [INFO] ALLOCATOR: Deleting instance from trackfile /tmp/dtt1-poc/agent-linux-centos-8-amd64/track.yaml [2024-04-08 21:36:25,331] [DEBUG] ALLOCATOR: Destroying instance VAGRANT-512DC579-50FC-479F-8BC7-BD02DF54FDB1 [2024-04-08 21:36:31,995] [INFO] ALLOCATOR: Instance VAGRANT-512DC579-50FC-479F-8BC7-BD02DF54FDB1 deleted. [2024-04-08 21:36:32,071] [INFO] [283400] [ThreadPoolExecutor-1_0] [workflow_engine]: [allocate-agent-linux-centos-8-amd64] Finished task in 7.13 seconds. [2024-04-08 21:36:32,082] [INFO] [283400] [ThreadPoolExecutor-1_0] [workflow_engine]: [allocate-agent-linux-redhat-7-amd64] Starting task. [2024-04-08 21:36:32,462] [INFO] ALLOCATOR: Deleting instance from trackfile /tmp/dtt1-poc/agent-linux-redhat-7-amd64/track.yaml [2024-04-08 21:36:32,463] [DEBUG] ALLOCATOR: Destroying instance VAGRANT-0F686F5F-61C4-47B0-8265-756BBEABAF6C [2024-04-08 21:36:38,931] [INFO] ALLOCATOR: Instance VAGRANT-0F686F5F-61C4-47B0-8265-756BBEABAF6C deleted. [2024-04-08 21:36:39,012] [INFO] [283400] [ThreadPoolExecutor-1_0] [workflow_engine]: [allocate-agent-linux-redhat-7-amd64] Finished task in 6.92 seconds. [2024-04-08 21:36:39,023] [INFO] [283400] [ThreadPoolExecutor-1_0] [workflow_engine]: [allocate-agent-linux-redhat-8-amd64] Starting task. [2024-04-08 21:36:39,404] [INFO] ALLOCATOR: Deleting instance from trackfile /tmp/dtt1-poc/agent-linux-redhat-8-amd64/track.yaml [2024-04-08 21:36:39,405] [DEBUG] ALLOCATOR: Destroying instance VAGRANT-8B66329D-D835-453F-8B08-327E13E80D67 [2024-04-08 21:36:46,086] [INFO] ALLOCATOR: Instance VAGRANT-8B66329D-D835-453F-8B08-327E13E80D67 deleted. [2024-04-08 21:36:46,148] [INFO] [283400] [ThreadPoolExecutor-1_0] [workflow_engine]: [allocate-agent-linux-redhat-8-amd64] Finished task in 7.11 seconds. [2024-04-08 21:36:46,148] [INFO] [283400] [ThreadPoolExecutor-1_0] [workflow_engine]: [allocate-agent-linux-redhat-9-amd64] Starting task. [2024-04-08 21:36:46,496] [INFO] ALLOCATOR: Deleting instance from trackfile /tmp/dtt1-poc/agent-linux-redhat-9-amd64/track.yaml [2024-04-08 21:36:46,497] [DEBUG] ALLOCATOR: Destroying instance VAGRANT-ECEA17B6-30CA-4640-8D75-5E9FA5879397 [2024-04-08 21:36:53,463] [INFO] ALLOCATOR: Instance VAGRANT-ECEA17B6-30CA-4640-8D75-5E9FA5879397 deleted. [2024-04-08 21:36:53,553] [INFO] [283400] [ThreadPoolExecutor-1_0] [workflow_engine]: [allocate-agent-linux-redhat-9-amd64] Finished task in 7.41 seconds. [2024-04-08 21:36:53,564] [INFO] [283400] [ThreadPoolExecutor-1_0] [workflow_engine]: [allocate-agent-linux-amazon-2-amd64] Starting task. [2024-04-08 21:36:53,951] [INFO] ALLOCATOR: Deleting instance from trackfile /tmp/dtt1-poc/agent-linux-amazon-2-amd64/track.yaml [2024-04-08 21:36:53,953] [DEBUG] ALLOCATOR: Destroying instance VAGRANT-29538C97-348D-4122-9BA9-53E2EBCC47B4 [2024-04-08 21:37:00,576] [INFO] ALLOCATOR: Instance VAGRANT-29538C97-348D-4122-9BA9-53E2EBCC47B4 deleted. [2024-04-08 21:37:00,648] [INFO] [283400] [ThreadPoolExecutor-1_0] [workflow_engine]: [allocate-agent-linux-amazon-2-amd64] Finished task in 7.07 seconds. [2024-04-08 21:37:00,659] [INFO] [283400] [ThreadPoolExecutor-1_0] [workflow_engine]: [allocate-manager-linux-ubuntu-22.04-amd64] Starting task. [2024-04-08 21:37:01,046] [INFO] ALLOCATOR: Deleting instance from trackfile /tmp/dtt1-poc/manager-linux-ubuntu-22.04-amd64/track.yaml [2024-04-08 21:37:01,047] [DEBUG] ALLOCATOR: Destroying instance VAGRANT-9DF0E7E5-52E6-47C3-9FC0-245DE93121A5 [2024-04-08 21:37:07,564] [INFO] ALLOCATOR: Instance VAGRANT-9DF0E7E5-52E6-47C3-9FC0-245DE93121A5 deleted. [2024-04-08 21:37:07,624] [INFO] [283400] [ThreadPoolExecutor-1_0] [workflow_engine]: [allocate-manager-linux-ubuntu-22.04-amd64] Finished task in 6.95 seconds.