[2024-04-24 19:16:39] [DEBUG] [350465] [MainThread] [workflow_engine]: Validating input file: modules/workflow_engine/examples/agent/aws/test_windows/test-isolated/windows-2012/test-agent-windows-complete.yaml [2024-04-24 19:16:39] [DEBUG] [350465] [MainThread] [workflow_engine]: Loading schema file: /home/fcaffieri/wazuh-env/wazuh-qa/.venv/lib/python3.10/site-packages/workflow_engine/schemas/schema_v1.json [2024-04-24 19:16:39] [DEBUG] [350465] [MainThread] [workflow_engine]: Loading yaml file: modules/workflow_engine/examples/agent/aws/test_windows/test-isolated/windows-2012/test-agent-windows-complete.yaml [2024-04-24 19:16:39] [DEBUG] [350465] [MainThread] [workflow_engine]: Loading workflow file: modules/workflow_engine/examples/agent/aws/test_windows/test-isolated/windows-2012/test-agent-windows-complete.yaml [2024-04-24 19:16:39] [DEBUG] [350465] [MainThread] [workflow_engine]: Process workflow. [2024-04-24 19:16:39] [INFO] [350465] [MainThread] [workflow_engine]: Executing DAG tasks. [2024-04-24 19:16:39] [INFO] [350465] [MainThread] [workflow_engine]: Executing tasks in parallel. [2024-04-24 19:16:39] [INFO] [350465] [ThreadPoolExecutor-0_0] [workflow_engine]: [allocate-manager-linux-ubuntu-22.04-amd64] Starting task. [2024-04-24 19:16:39] [DEBUG] [350465] [ThreadPoolExecutor-0_0] [workflow_engine]: Running task "allocate-manager-linux-ubuntu-22.04-amd64" with arguments: ['modules/allocation/main.py', '--action=create', '--provider=aws', '--size=large', '--composite-name=linux-ubuntu-22.04-amd64', '--inventory-output=/tmp/dtt1-poc/manager-linux-ubuntu-22.04-amd64/inventory.yaml', '--track-output=/tmp/dtt1-poc/manager-linux-ubuntu-22.04-amd64/track.yaml', '--label-termination-date=1d', '--label-team=qa'] [2024-04-24 19:16:39] [INFO] [350465] [ThreadPoolExecutor-0_1] [workflow_engine]: [allocate-agent-windows-server-2012r2-amd64] Starting task. [2024-04-24 19:16:39] [DEBUG] [350465] [ThreadPoolExecutor-0_1] [workflow_engine]: Running task "allocate-agent-windows-server-2012r2-amd64" with arguments: ['modules/allocation/main.py', '--action=create', '--provider=aws', '--size=medium', '--composite-name=windows-server-2012r2-amd64', '--inventory-output=/tmp/dtt1-poc/agent-windows-server-2012r2-amd64/inventory.yaml', '--track-output=/tmp/dtt1-poc/agent-windows-server-2012r2-amd64/track.yaml', '--label-termination-date=1d', '--label-team=qa'] [2024-04-24 19:17:33] [DEBUG] [350465] [ThreadPoolExecutor-0_0] [workflow_engine]: Finished task "allocate-manager-linux-ubuntu-22.04-amd64" execution with result: [2024-04-24 19:16:39] [DEBUG] SPNEGO._GSS: Python gssapi not available, cannot use any GSSAPIProxy protocols: No module named 'gssapi' [2024-04-24 19:16:39] [DEBUG] SPNEGO._GSS: Python gssapi IOV extension not available: No module named 'gssapi' [2024-04-24 19:16:39] [INFO] ALLOCATOR: Creating instance at /tmp/wazuh-qa [2024-04-24 19:16:39] [DEBUG] ALLOCATOR: No config provided. Generating from payload [2024-04-24 19:16:39] [DEBUG] ALLOCATOR: Generating new key pair [2024-04-24 19:16:39] [DEBUG] ALLOCATOR: Creating base directory: /tmp/wazuh-qa/AWS-27DC46B4-E608-47A2-AD85-C2698320C0B9 [2024-04-24 19:16:59] [DEBUG] ALLOCATOR: Renaming temp /tmp/wazuh-qa/AWS-27DC46B4-E608-47A2-AD85-C2698320C0B9 directory to /tmp/wazuh-qa/i-06c16f6edf0dfe9cf [2024-04-24 19:16:59] [INFO] ALLOCATOR: Instance i-06c16f6edf0dfe9cf created. [2024-04-24 19:17:01] [INFO] ALLOCATOR: Instance i-06c16f6edf0dfe9cf started. [2024-04-24 19:17:01] [INFO] ALLOCATOR: Inventory file generated at /tmp/dtt1-poc/manager-linux-ubuntu-22.04-amd64/inventory.yaml [2024-04-24 19:17:02] [WARNING] ALLOCATOR: Error on attempt 1 of 30: [Errno None] Unable to connect to port 2200 on 54.89.184.95 [2024-04-24 19:17:33] [INFO] ALLOCATOR: SSH connection successful. [2024-04-24 19:17:33] [INFO] ALLOCATOR: Track file generated at /tmp/dtt1-poc/manager-linux-ubuntu-22.04-amd64/track.yaml  [2024-04-24 19:17:33] [INFO] [350465] [ThreadPoolExecutor-0_0] [workflow_engine]: [allocate-manager-linux-ubuntu-22.04-amd64] Finished task in 54.34 seconds. [2024-04-24 19:17:33] [INFO] [350465] [ThreadPoolExecutor-0_0] [workflow_engine]: [provision-manager-linux-ubuntu-22.04-amd64] Starting task. [2024-04-24 19:17:33] [DEBUG] [350465] [ThreadPoolExecutor-0_0] [workflow_engine]: Running task "provision-manager-linux-ubuntu-22.04-amd64" with arguments: ['modules/provision/main.py', '--inventory=/tmp/dtt1-poc/manager-linux-ubuntu-22.04-amd64/inventory.yaml', "--install={'component': 'wazuh-manager', 'type': 'assistant', 'version': '4.7.3', 'live': True}"] [2024-04-24 19:21:22] [DEBUG] [350465] [ThreadPoolExecutor-0_1] [workflow_engine]: Finished task "allocate-agent-windows-server-2012r2-amd64" execution with result: [2024-04-24 19:16:39] [DEBUG] SPNEGO._GSS: Python gssapi not available, cannot use any GSSAPIProxy protocols: No module named 'gssapi' [2024-04-24 19:16:39] [DEBUG] SPNEGO._GSS: Python gssapi IOV extension not available: No module named 'gssapi' [2024-04-24 19:16:39] [INFO] ALLOCATOR: Creating instance at /tmp/wazuh-qa [2024-04-24 19:16:40] [DEBUG] ALLOCATOR: No config provided. Generating from payload [2024-04-24 19:16:40] [DEBUG] ALLOCATOR: Creating temp directory: /tmp/wazuh-qa/AWS-7987F821-9D94-4DC8-AC1A-9B6DE483E0ED [2024-04-24 19:16:57] [DEBUG] ALLOCATOR: Renaming temp /tmp/wazuh-qa/AWS-7987F821-9D94-4DC8-AC1A-9B6DE483E0ED directory to /tmp/wazuh-qa/i-0d07661e4f4ec085a [2024-04-24 19:16:57] [INFO] ALLOCATOR: Instance i-0d07661e4f4ec085a created. [2024-04-24 19:16:59] [INFO] ALLOCATOR: Instance i-0d07661e4f4ec085a started. [2024-04-24 19:16:59] [INFO] ALLOCATOR: Inventory file generated at /tmp/dtt1-poc/agent-windows-server-2012r2-amd64/inventory.yaml [2024-04-24 19:17:15] [WARNING] ALLOCATOR: Error on attempt 1 of 30: ('Connection aborted.', ConnectionResetError(104, 'Connection reset by peer')) [2024-04-24 19:17:46] [WARNING] ALLOCATOR: Error on attempt 2 of 30: ('Connection aborted.', ConnectionResetError(104, 'Connection reset by peer')) [2024-04-24 19:18:16] [WARNING] ALLOCATOR: Error on attempt 3 of 30: ('Connection aborted.', ConnectionResetError(104, 'Connection reset by peer')) [2024-04-24 19:19:17] [WARNING] ALLOCATOR: Error on attempt 4 of 30: HTTPSConnectionPool(host='ec2-44-202-85-58.compute-1.amazonaws.com', port=5986): Max retries exceeded with url: /wsman (Caused by ConnectTimeoutError(, 'Connection to ec2-44-202-85-58.compute-1.amazonaws.com timed out. (connect timeout=30)')) [2024-04-24 19:20:02] [WARNING] ALLOCATOR: Error on attempt 5 of 30: ('Connection aborted.', ConnectionResetError(104, 'Connection reset by peer')) [2024-04-24 19:20:33] [WARNING] ALLOCATOR: Error on attempt 6 of 30: ('Connection aborted.', ConnectionResetError(104, 'Connection reset by peer')) [2024-04-24 19:21:22] [INFO] ALLOCATOR: WinRM connection successful. [2024-04-24 19:21:22] [INFO] ALLOCATOR: Track file generated at /tmp/dtt1-poc/agent-windows-server-2012r2-amd64/track.yaml  [2024-04-24 19:21:22] [INFO] [350465] [ThreadPoolExecutor-0_1] [workflow_engine]: [allocate-agent-windows-server-2012r2-amd64] Finished task in 283.50 seconds. [2024-04-24 19:21:52] [DEBUG] [350465] [ThreadPoolExecutor-0_0] [workflow_engine]: Finished task "provision-manager-linux-ubuntu-22.04-amd64" execution with result: [2024-04-24 19:17:34] [DEBUG] SPNEGO._GSS: Python gssapi not available, cannot use any GSSAPIProxy protocols: No module named 'gssapi' [2024-04-24 19:17:34] [DEBUG] SPNEGO._GSS: Python gssapi IOV extension not available: No module named 'gssapi' [2024-04-24 19:17:34] [DEBUG] PROVISIONER: Setting dependencies: {} for wazuh-manager component. [2024-04-24 19:17:34] [INFO] PROVISIONER: Initiating provisionment. [2024-04-24 19:17:34] [DEBUG] PROVISIONER: Running action install for components: [ComponentInfo(component='wazuh-manager', type='assistant', version='4.7.3', dependencies=None, live=True)] [2024-04-24 19:17:34] [INFO] PROVISIONER: Provisioning "wazuh-manager"... [2024-04-24 19:17:34] [DEBUG] PROVISIONER: Get OS family for ec2-54-89-184-95.compute-1.amazonaws.com. [2024-04-24 19:17:34] [DEBUG] PROVISIONER: Using inventory: {'all': {'hosts': {'ec2-54-89-184-95.compute-1.amazonaws.com': {'ansible_port': 2200, 'ansible_user': 'ubuntu', 'ansible_ssh_private_key_file': '/tmp/wazuh-qa/i-06c16f6edf0dfe9cf/ubuntu-22.04-amd64-key-5682'}}}} [2024-04-24 19:17:34] [DEBUG] PROVISIONER: Running playbook: {'hosts': 'ec2-54-89-184-95.compute-1.amazonaws.com', 'become': True, 'gather_facts': True, 'tasks': [{'name': 'Capture ansible_os_family', 'set_fact': {'ansible_os_family': "{{ ansible_facts['distribution_file_variety'] }}", 'cacheable': 'yes'}}]} Using /etc/ansible/ansible.cfg as config file PLAY [ec2-54-89-184-95.compute-1.amazonaws.com] ******************************** TASK [Gathering Facts] ********************************************************* ok: [ec2-54-89-184-95.compute-1.amazonaws.com] TASK [Capture ansible_os_family] *********************************************** ok: [ec2-54-89-184-95.compute-1.amazonaws.com] => changed=false   ansible_facts:  ansible_os_family: Debian PLAY RECAP ********************************************************************* ec2-54-89-184-95.compute-1.amazonaws.com : ok=2  changed=0 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 [2024-04-24 19:17:44] [DEBUG] PROVISIONER: Playbook {'hosts': 'ec2-54-89-184-95.compute-1.amazonaws.com', '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': {'ec2-54-89-184-95.compute-1.amazonaws.com': 2}, 'dark': {}, 'failures': {}, 'ignored': {}, 'rescued': {}, 'processed': {'ec2-54-89-184-95.compute-1.amazonaws.com': 1}, 'changed': {}} [2024-04-24 19:17:44] [DEBUG] PROVISIONER: OS family: Debian. [2024-04-24 19:17:44] [DEBUG] PROVISIONER: Render playbook with vars: {'component': 'wazuh-manager', 'version': '4.7.3', 'live': True, 'type': 'assistant', 'dependencies': None, 'templates_path': '/home/fcaffieri/wazuh-env/wazuh-qa/deployability/modules/provision/playbooks/wazuh/assistant/install', 'templates_order': ['download.j2', 'install.j2'], 'ansible_os_family': 'Debian'}. [2024-04-24 19:17:44] [DEBUG] PROVISIONER: Templates found: ['download.j2', 'install.j2'] [2024-04-24 19:17:44] [DEBUG] PROVISIONER: Rendering template download.j2 [2024-04-24 19:17:44] [DEBUG] PROVISIONER: Rendering template install.j2 [2024-04-24 19:17:44] [DEBUG] PROVISIONER: [{'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 assistant', 'shell': 'bash ./wazuh-install.sh -a -i'}] [2024-04-24 19:17:44] [DEBUG] PROVISIONER: Tasks to execute: [{'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 assistant', 'shell': 'bash ./wazuh-install.sh -a -i'}]. [2024-04-24 19:17:44] [INFO] PROVISIONER: Execute install for wazuh-manager. [2024-04-24 19:17:44] [DEBUG] PROVISIONER: Using inventory: {'all': {'hosts': {'ec2-54-89-184-95.compute-1.amazonaws.com': {'ansible_port': 2200, 'ansible_user': 'ubuntu', 'ansible_ssh_private_key_file': '/tmp/wazuh-qa/i-06c16f6edf0dfe9cf/ubuntu-22.04-amd64-key-5682'}}}} [2024-04-24 19:17:44] [DEBUG] PROVISIONER: Running playbook: {'hosts': 'ec2-54-89-184-95.compute-1.amazonaws.com', '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 assistant', 'shell': 'bash ./wazuh-install.sh -a -i'}]} Using /etc/ansible/ansible.cfg as config file PLAY [ec2-54-89-184-95.compute-1.amazonaws.com] ******************************** TASK [Gathering Facts] ********************************************************* ok: [ec2-54-89-184-95.compute-1.amazonaws.com] TASK [Install the required packages] ******************************************* changed: [ec2-54-89-184-95.compute-1.amazonaws.com] => changed=true   cmd: |2-    sudo apt-get update && apt-get -y install curl  delta: '0:00:14.255346'  end: '2024-04-24 22:18:08.779551'  msg: ''  rc: 0  start: '2024-04-24 22:17:54.524205'  stderr: ''  stderr_lines:   stdout: |-  Hit:1 http://us-east-1.ec2.archive.ubuntu.com/ubuntu jammy InRelease  Get:2 http://us-east-1.ec2.archive.ubuntu.com/ubuntu jammy-updates InRelease [119 kB]  Get:3 http://us-east-1.ec2.archive.ubuntu.com/ubuntu jammy-backports InRelease [109 kB]  Get:4 http://us-east-1.ec2.archive.ubuntu.com/ubuntu jammy/universe amd64 Packages [14.1 MB]  Get:5 http://security.ubuntu.com/ubuntu jammy-security InRelease [110 kB]  Get:6 http://us-east-1.ec2.archive.ubuntu.com/ubuntu jammy/universe Translation-en [5652 kB]  Get:7 http://us-east-1.ec2.archive.ubuntu.com/ubuntu jammy/universe amd64 c-n-f Metadata [286 kB]  Get:8 http://us-east-1.ec2.archive.ubuntu.com/ubuntu jammy/multiverse amd64 Packages [217 kB]  Get:9 http://us-east-1.ec2.archive.ubuntu.com/ubuntu jammy/multiverse Translation-en [112 kB]  Get:10 http://us-east-1.ec2.archive.ubuntu.com/ubuntu jammy/multiverse amd64 c-n-f Metadata [8372 B]  Get:11 http://us-east-1.ec2.archive.ubuntu.com/ubuntu jammy-updates/main amd64 Packages [1610 kB]  Get:12 http://us-east-1.ec2.archive.ubuntu.com/ubuntu jammy-updates/main Translation-en [303 kB]  Get:13 http://us-east-1.ec2.archive.ubuntu.com/ubuntu jammy-updates/main amd64 c-n-f Metadata [16.1 kB]  Get:14 http://us-east-1.ec2.archive.ubuntu.com/ubuntu jammy-updates/restricted amd64 Packages [1830 kB]  Get:15 http://us-east-1.ec2.archive.ubuntu.com/ubuntu jammy-updates/restricted Translation-en [311 kB]  Get:16 http://us-east-1.ec2.archive.ubuntu.com/ubuntu jammy-updates/restricted amd64 c-n-f Metadata [520 B]  Get:17 http://us-east-1.ec2.archive.ubuntu.com/ubuntu jammy-updates/universe amd64 Packages [1070 kB]  Get:18 http://us-east-1.ec2.archive.ubuntu.com/ubuntu jammy-updates/universe Translation-en [244 kB]  Get:19 http://us-east-1.ec2.archive.ubuntu.com/ubuntu jammy-updates/universe amd64 c-n-f Metadata [22.1 kB]  Get:20 http://us-east-1.ec2.archive.ubuntu.com/ubuntu jammy-updates/multiverse amd64 Packages [42.7 kB]  Get:21 http://us-east-1.ec2.archive.ubuntu.com/ubuntu jammy-updates/multiverse Translation-en [10.4 kB]  Get:22 http://us-east-1.ec2.archive.ubuntu.com/ubuntu jammy-updates/multiverse amd64 c-n-f Metadata [472 B]  Get:23 http://us-east-1.ec2.archive.ubuntu.com/ubuntu jammy-backports/main amd64 Packages [90.8 kB]  Get:24 http://us-east-1.ec2.archive.ubuntu.com/ubuntu jammy-backports/main Translation-en [11.0 kB]  Get:25 http://us-east-1.ec2.archive.ubuntu.com/ubuntu jammy-backports/main amd64 c-n-f Metadata [388 B]  Get:26 http://us-east-1.ec2.archive.ubuntu.com/ubuntu jammy-backports/restricted amd64 c-n-f Metadata [116 B]  Get:27 http://us-east-1.ec2.archive.ubuntu.com/ubuntu jammy-backports/universe amd64 Packages [29.8 kB]  Get:28 http://us-east-1.ec2.archive.ubuntu.com/ubuntu jammy-backports/universe Translation-en [16.2 kB]  Get:29 http://us-east-1.ec2.archive.ubuntu.com/ubuntu jammy-backports/universe amd64 c-n-f Metadata [644 B]  Get:30 http://us-east-1.ec2.archive.ubuntu.com/ubuntu jammy-backports/multiverse amd64 c-n-f Metadata [116 B]  Get:31 http://security.ubuntu.com/ubuntu jammy-security/main amd64 Packages [1394 kB]  Get:32 http://security.ubuntu.com/ubuntu jammy-security/main Translation-en [243 kB]  Get:33 http://security.ubuntu.com/ubuntu jammy-security/main amd64 c-n-f Metadata [11.4 kB]  Get:34 http://security.ubuntu.com/ubuntu jammy-security/restricted amd64 Packages [1773 kB]  Get:35 http://security.ubuntu.com/ubuntu jammy-security/restricted Translation-en [300 kB]  Get:36 http://security.ubuntu.com/ubuntu jammy-security/restricted amd64 c-n-f Metadata [520 B]  Get:37 http://security.ubuntu.com/ubuntu jammy-security/universe amd64 Packages [848 kB]  Get:38 http://security.ubuntu.com/ubuntu jammy-security/universe Translation-en [163 kB]  Get:39 http://security.ubuntu.com/ubuntu jammy-security/universe amd64 c-n-f Metadata [16.8 kB]  Get:40 http://security.ubuntu.com/ubuntu jammy-security/multiverse amd64 Packages [37.2 kB]  Get:41 http://security.ubuntu.com/ubuntu jammy-security/multiverse Translation-en [7588 B]  Get:42 http://security.ubuntu.com/ubuntu jammy-security/multiverse amd64 c-n-f Metadata [260 B]  Fetched 31.1 MB in 3s (9356 kB/s)  Reading package lists...  Reading package lists...  Building dependency tree...  Reading state information...  The following additional packages will be installed:  libcurl4  The following packages will be upgraded:  curl libcurl4  2 upgraded, 0 newly installed, 0 to remove and 190 not upgraded.  Need to get 484 kB of archives.  After this operation, 0 B of additional disk space will be used.  Get:1 http://us-east-1.ec2.archive.ubuntu.com/ubuntu jammy-updates/main amd64 curl amd64 7.81.0-1ubuntu1.16 [194 kB]  Get:2 http://us-east-1.ec2.archive.ubuntu.com/ubuntu jammy-updates/main amd64 libcurl4 amd64 7.81.0-1ubuntu1.16 [290 kB]  Fetched 484 kB in 0s (17.5 MB/s)  (Reading database ... (Reading database ... 5%(Reading database ... 10%(Reading database ... 15%(Reading database ... 20%(Reading database ... 25%(Reading database ... 30%(Reading database ... 35%(Reading database ... 40%(Reading database ... 45%(Reading database ... 50%(Reading database ... 55%(Reading database ... 60%(Reading database ... 65%(Reading database ... 70%(Reading database ... 75%(Reading database ... 80%(Reading database ... 85%(Reading database ... 90%(Reading database ... 95%(Reading database ... 100%(Reading database ... 64295 files and directories currently installed.)  Preparing to unpack .../curl_7.81.0-1ubuntu1.16_amd64.deb ...  Unpacking curl (7.81.0-1ubuntu1.16) over (7.81.0-1ubuntu1.10) ...  Preparing to unpack .../libcurl4_7.81.0-1ubuntu1.16_amd64.deb ...  Unpacking libcurl4:amd64 (7.81.0-1ubuntu1.16) over (7.81.0-1ubuntu1.10) ...  Setting up libcurl4:amd64 (7.81.0-1ubuntu1.16) ...  Setting up curl (7.81.0-1ubuntu1.16) ...  Processing triggers for man-db (2.10.2-1) ...  Processing triggers for libc-bin (2.35-0ubuntu3.1) ...  stdout_lines:  TASK [Download the Wazuh installation assistant] ******************************* changed: [ec2-54-89-184-95.compute-1.amazonaws.com] => changed=true   cmd: curl -sO https://packages.wazuh.com/4.7/wazuh-install.sh  delta: '0:00:00.073025'  end: '2024-04-24 22:18:12.854872'  msg: ''  rc: 0  start: '2024-04-24 22:18:12.781847'  stderr: ''  stderr_lines:   stdout: ''  stdout_lines:  TASK [Install wazuh-manager with assistant] ************************************ changed: [ec2-54-89-184-95.compute-1.amazonaws.com] => changed=true   cmd: bash ./wazuh-install.sh -a -i  delta: '0:03:34.865725'  end: '2024-04-24 22:21:51.539594'  msg: ''  rc: 0  start: '2024-04-24 22:18:16.673869'  stderr: ''  stderr_lines:   stdout: |-  24/04/2024 22:18:16 INFO: Starting Wazuh installation assistant. Wazuh version: 4.7.3  24/04/2024 22:18:16 INFO: Verbose logging redirected to /var/log/wazuh-install.log  24/04/2024 22:18:21 WARNING: Hardware and system checks ignored.  24/04/2024 22:18:21 INFO: Wazuh web interface port will be 443.  24/04/2024 22:18:24 INFO: --- Dependencies ----  24/04/2024 22:18:24 INFO: Installing apt-transport-https.  24/04/2024 22:18:29 INFO: Wazuh repository added.  24/04/2024 22:18:29 INFO: --- Configuration files ---  24/04/2024 22:18:29 INFO: Generating configuration files.  24/04/2024 22:18:30 INFO: Created wazuh-install-files.tar. It contains the Wazuh cluster key, certificates, and passwords necessary for installation.  24/04/2024 22:18:30 INFO: --- Wazuh indexer ---  24/04/2024 22:18:30 INFO: Starting Wazuh indexer installation.  24/04/2024 22:19:26 INFO: Wazuh indexer installation finished.  24/04/2024 22:19:26 INFO: Wazuh indexer post-install configuration finished.  24/04/2024 22:19:26 INFO: Starting service wazuh-indexer.  24/04/2024 22:19:36 INFO: wazuh-indexer service started.  24/04/2024 22:19:36 INFO: Initializing Wazuh indexer cluster security settings.  24/04/2024 22:19:48 INFO: Wazuh indexer cluster initialized.  24/04/2024 22:19:48 INFO: --- Wazuh server ---  24/04/2024 22:19:48 INFO: Starting the Wazuh manager installation.  24/04/2024 22:20:25 INFO: Wazuh manager installation finished.  24/04/2024 22:20:25 INFO: Starting service wazuh-manager.  24/04/2024 22:20:40 INFO: wazuh-manager service started.  24/04/2024 22:20:40 INFO: Starting Filebeat installation.  24/04/2024 22:20:46 INFO: Filebeat installation finished.  24/04/2024 22:20:46 INFO: Filebeat post-install configuration finished.  24/04/2024 22:20:46 INFO: Starting service filebeat.  24/04/2024 22:20:47 INFO: filebeat service started.  24/04/2024 22:20:47 INFO: --- Wazuh dashboard ---  24/04/2024 22:20:47 INFO: Starting Wazuh dashboard installation.  24/04/2024 22:21:30 INFO: Wazuh dashboard installation finished.  24/04/2024 22:21:30 INFO: Wazuh dashboard post-install configuration finished.  24/04/2024 22:21:30 INFO: Starting service wazuh-dashboard.  24/04/2024 22:21:31 INFO: wazuh-dashboard service started.  24/04/2024 22:21:50 INFO: Initializing Wazuh dashboard web application.  24/04/2024 22:21:51 INFO: Wazuh dashboard web application initialized.  24/04/2024 22:21:51 INFO: --- Summary ---  24/04/2024 22:21:51 INFO: You can access the web interface https://:443  User: admin  Password: tkH+YwNk?CAJT4GbrNdTukVNUbCc?cxZ  24/04/2024 22:21:51 INFO: Installation finished.  stdout_lines:  PLAY RECAP ********************************************************************* ec2-54-89-184-95.compute-1.amazonaws.com : ok=4  changed=3  unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 [2024-04-24 19:21:52] [DEBUG] PROVISIONER: Playbook {'hosts': 'ec2-54-89-184-95.compute-1.amazonaws.com', '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 assistant', 'shell': 'bash ./wazuh-install.sh -a -i'}]} finished with status {'skipped': {}, 'ok': {'ec2-54-89-184-95.compute-1.amazonaws.com': 4}, 'dark': {}, 'failures': {}, 'ignored': {}, 'rescued': {}, 'processed': {'ec2-54-89-184-95.compute-1.amazonaws.com': 1}, 'changed': {'ec2-54-89-184-95.compute-1.amazonaws.com': 3}} [2024-04-24 19:21:52] [INFO] PROVISIONER: Provision of "wazuh-manager" complete successfully. [2024-04-24 19:21:52] [INFO] PROVISIONER: All components provisioned successfully. [2024-04-24 19:21:52] [DEBUG] PROVISIONER: Provision summary: {'skipped': {}, 'ok': {'ec2-54-89-184-95.compute-1.amazonaws.com': 4}, 'dark': {}, 'failures': {}, 'ignored': {}, 'rescued': {}, 'processed': {'ec2-54-89-184-95.compute-1.amazonaws.com': 1}, 'changed': {'ec2-54-89-184-95.compute-1.amazonaws.com': 3}}  [2024-04-24 19:21:52] [INFO] [350465] [ThreadPoolExecutor-0_0] [workflow_engine]: [provision-manager-linux-ubuntu-22.04-amd64] Finished task in 258.65 seconds. [2024-04-24 19:21:52] [INFO] [350465] [ThreadPoolExecutor-0_1] [workflow_engine]: [run-agent-windows-server-2012r2-amd64-tests] Starting task. [2024-04-24 19:21:52] [DEBUG] [350465] [ThreadPoolExecutor-0_1] [workflow_engine]: Running task "run-agent-windows-server-2012r2-amd64-tests" with arguments: ['modules/testing/main.py', "--targets={'wazuh-1': '/tmp/dtt1-poc/manager-linux-ubuntu-22.04-amd64/inventory.yaml'}", "--targets={'agent': '/tmp/dtt1-poc/agent-windows-server-2012r2-amd64/inventory.yaml'}", '--tests=install,registration,connection,basic_info,restart,stop,uninstall', '--component=agent', '--wazuh-version=4.7.3', '--wazuh-revision=40714', '--live=True'] [2024-04-24 19:34:23] [DEBUG] [350465] [ThreadPoolExecutor-0_1] [workflow_engine]: Finished task "run-agent-windows-server-2012r2-amd64-tests" execution with result: [2024-04-24 19:21:52] [DEBUG] SPNEGO._GSS: Python gssapi not available, cannot use any GSSAPIProxy protocols: No module named 'gssapi' [2024-04-24 19:21:52] [DEBUG] SPNEGO._GSS: Python gssapi IOV extension not available: No module named 'gssapi' [2024-04-24 19:21:52] [INFO] TESTER: Running tests for ec2-54-89-184-95.compute-1.amazonaws.com [2024-04-24 19:21:52] [INFO] TESTER: Running tests for ec2-44-202-85-58.compute-1.amazonaws.com [2024-04-24 19:21:52] [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': ['ec2-54-89-184-95.compute-1.amazonaws.com', 'ec2-44-202-85-58.compute-1.amazonaws.com'], 'targets': '{wazuh-1: /tmp/dtt1-poc/manager-linux-ubuntu-22.04-amd64/inventory.yaml, agent: /tmp/dtt1-poc/agent-windows-server-2012r2-amd64/inventory.yaml}', 'dependencies': '{}', 'local_host_path': '/home/fcaffieri/wazuh-env/wazuh-qa/deployability', 'current_user': 'fcaffieri'} [2024-04-24 19:21:52] [DEBUG] TESTER: Rendering template /home/fcaffieri/wazuh-env/wazuh-qa/deployability/modules/testing/playbooks/setup.yml [2024-04-24 19:21:52] [DEBUG] TESTER: Using inventory: {'all': {'hosts': {'ec2-54-89-184-95.compute-1.amazonaws.com': {'ansible_port': 2200, 'ansible_user': 'ubuntu', 'ansible_ssh_private_key_file': '/tmp/wazuh-qa/i-06c16f6edf0dfe9cf/ubuntu-22.04-amd64-key-5682'}}}} [2024-04-24 19:21:52] [DEBUG] TESTER: Running playbook: [{'hosts': 'localhost', 'become': True, 'become_user': 'fcaffieri', 'tasks': [{'name': 'Cleaning old key ssh-keygen registries', 'ansible.builtin.command': {'cmd': "ssh-keygen -f /home/fcaffieri/.ssh/known_hosts -R ''"}, 'loop': ['ec2-54-89-184-95.compute-1.amazonaws.com', 'ec2-44-202-85-58.compute-1.amazonaws.com']}]}] Using /etc/ansible/ansible.cfg as config file PLAY [localhost] *************************************************************** TASK [Gathering Facts] ********************************************************* ok: [localhost] TASK [Cleaning old key ssh-keygen registries] ********************************** changed: [localhost] => (item=ec2-54-89-184-95.compute-1.amazonaws.com) => changed=true   ansible_loop_var: item  cmd:  - ssh-keygen  - -f  - /home/fcaffieri/.ssh/known_hosts  - -R  - ''  delta: '0:00:00.004681'  end: '2024-04-24 19:21:55.455809'  item: ec2-54-89-184-95.compute-1.amazonaws.com  msg: ''  rc: 0  start: '2024-04-24 19:21:55.451128'  stderr: Host not found in /home/fcaffieri/.ssh/known_hosts  stderr_lines:   stdout: ''  stdout_lines:  changed: [localhost] => (item=ec2-44-202-85-58.compute-1.amazonaws.com) => changed=true   ansible_loop_var: item  cmd:  - ssh-keygen  - -f  - /home/fcaffieri/.ssh/known_hosts  - -R  - ''  delta: '0:00:00.005400'  end: '2024-04-24 19:21:55.646188'  item: ec2-44-202-85-58.compute-1.amazonaws.com  msg: ''  rc: 0  start: '2024-04-24 19:21:55.640788'  stderr: Host not found in /home/fcaffieri/.ssh/known_hosts  stderr_lines:   stdout: ''  stdout_lines:  PLAY RECAP ********************************************************************* localhost : ok=2  changed=1  unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 [2024-04-24 19:21:55] [DEBUG] TESTER: Playbook [{'hosts': 'localhost', 'become': True, 'become_user': 'fcaffieri', 'tasks': [{'name': 'Cleaning old key ssh-keygen registries', 'ansible.builtin.command': {'cmd': "ssh-keygen -f /home/fcaffieri/.ssh/known_hosts -R ''"}, 'loop': ['ec2-54-89-184-95.compute-1.amazonaws.com', 'ec2-44-202-85-58.compute-1.amazonaws.com']}]}] finished with status {'skipped': {}, 'ok': {'localhost': 2}, 'dark': {}, 'failures': {}, 'ignored': {}, 'rescued': {}, 'processed': {'localhost': 1}, 'changed': {'localhost': 1}} [2024-04-24 19:21:55] [DEBUG] TESTER: Rendering template /home/fcaffieri/wazuh-env/wazuh-qa/deployability/modules/testing/playbooks/test.yml [2024-04-24 19:21:55] [DEBUG] TESTER: Using inventory: {'all': {'hosts': {'ec2-54-89-184-95.compute-1.amazonaws.com': {'ansible_port': 2200, 'ansible_user': 'ubuntu', 'ansible_ssh_private_key_file': '/tmp/wazuh-qa/i-06c16f6edf0dfe9cf/ubuntu-22.04-amd64-key-5682'}}}} [2024-04-24 19:21:55] [DEBUG] TESTER: Running playbook: [{'hosts': 'localhost', 'become': True, 'become_user': 'fcaffieri', '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-windows-server-2012r2-amd64/inventory.yaml}' --live=True -s", 'args': {'chdir': '/home/fcaffieri/wazuh-env/wazuh-qa/deployability'}}]}] Using /etc/ansible/ansible.cfg as config file PLAY [localhost] *************************************************************** TASK [Gathering Facts] ********************************************************* ok: [localhost] TASK [Test install for agent] ************************************************** changed: [localhost] => changed=true   cmd:  - 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-windows-server-2012r2-amd64/inventory.yaml}'  - --live=True  - -s  delta: '0:06:17.839526'  end: '2024-04-24 19:28:16.122032'  msg: ''  rc: 0  start: '2024-04-24 19:21:58.282506'  stderr: |-  Warning: Permanently added '[ec2-54-89-184-95.compute-1.amazonaws.com]:2200,[54.89.184.95]:2200' (ECDSA) to the list of known hosts.  Warning: Permanently added '[ec2-54-89-184-95.compute-1.amazonaws.com]:2200,[54.89.184.95]:2200' (ECDSA) to the list of known hosts.  stderr_lines:   stdout: |-  [37m[2024-04-24 19:21:58] [DEBUG] SPNEGO._GSS: Python gssapi not available, cannot use any GSSAPIProxy protocols: No module named 'gssapi'[0m  [37m[2024-04-24 19:21:58] [DEBUG] SPNEGO._GSS: Python gssapi IOV extension not available: No module named 'gssapi'[0m  ============================= test session starts ==============================  platform linux -- Python 3.10.14, pytest-7.4.4, pluggy-1.4.0 -- /home/fcaffieri/wazuh-env/wazuh-qa/.venv/bin/python3  cachedir: .pytest_cache  rootdir: /home/fcaffieri/wazuh-env/wazuh-qa/deployability/modules  collecting ... collected 2 items    modules/testing/tests/test_agent/test_install.py::test_installation [32m[2024-04-24 19:21:59] [INFO] TESTER: Checking connection to server-2012r2[0m  [32m[2024-04-24 19:22:01] [INFO] TESTER: WinRM connection successful.[0m  [32m[2024-04-24 19:22:03] [INFO] TESTER: Checking connection to ubuntu-22.04[0m  [32m[2024-04-24 19:22:04] [INFO] TESTER: Connection established successfully in ubuntu-22.04[0m  [32m[2024-04-24 19:22:10] [INFO] TESTER: Manager is already installed in ubuntu-22.04[0m  [32m[2024-04-24 19:22:13] [INFO] TESTER: Generating Snapshot for Checkfile in server-2012r2[0m  [32m[2024-04-24 19:27:17] [INFO] TESTER: Installing Agent in server-2012r2[0m  [32m[2024-04-24 19:27:44] [INFO] TESTER: Generating Snapshot for Checkfile in server-2012r2[0m  [32m[2024-04-24 19:28:11] [INFO] TESTER: Applying filters in checkfiles in server-2012r2[0m  [32m[2024-04-24 19:28:11] [INFO] TESTER: Pre and post install checkfile comparison in server-2012r2: {'C:\\Program Files': {'added': [], 'removed': [], 'modified': []}, 'C:\\Program Files (x86)': {'added': [], 'removed': [], 'modified': []}, 'C:\\Users\\vagrant': {'added': [], 'removed': [], 'modified': []}}[0m  PASSED  modules/testing/tests/test_agent/test_install.py::test_status [32m[2024-04-24 19:28:13] [INFO] TESTER: Getting status of server-2012r2[0m  PASSED    =============================== warnings summary ===============================  modules/provision/models.py:36  /home/fcaffieri/wazuh-env/wazuh-qa/deployability/modules/provision/models.py:36: PydanticDeprecatedSince20: Pydantic V1 style `@validator` validators are deprecated. You should migrate to Pydantic V2 style `@field_validator` validators, see the migration guide for more details. Deprecated in Pydantic V2.0 to be removed in V3.0. See Pydantic V2 Migration Guide at https://errors.pydantic.dev/2.5/migration/  @validator('dependencies', pre=True)    modules/provision/models.py:64  /home/fcaffieri/wazuh-env/wazuh-qa/deployability/modules/provision/models.py:64: PydanticDeprecatedSince20: Pydantic V1 style `@validator` validators are deprecated. You should migrate to Pydantic V2 style `@field_validator` validators, see the migration guide for more details. Deprecated in Pydantic V2.0 to be removed in V3.0. See Pydantic V2 Migration Guide at https://errors.pydantic.dev/2.5/migration/  @validator('install', 'uninstall', pre=True)    testing/tests/test_agent/test_install.py: 14 warnings  /home/fcaffieri/wazuh-env/wazuh-qa/.venv/lib/python3.10/site-packages/winrm/transport.py:349: DeprecationWarning: inspect.getargspec() is deprecated since Python 3.0, use inspect.signature() or inspect.getfullargspec()  argspec = set(inspect.getargspec(function).args)    -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html  ================== 2 passed, 16 warnings in 376.98s (0:06:16) ==================  stdout_lines:  PLAY RECAP ********************************************************************* localhost : ok=2  changed=1  unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 [2024-04-24 19:28:16] [DEBUG] TESTER: Playbook [{'hosts': 'localhost', 'become': True, 'become_user': 'fcaffieri', '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-windows-server-2012r2-amd64/inventory.yaml}' --live=True -s", 'args': {'chdir': '/home/fcaffieri/wazuh-env/wazuh-qa/deployability'}}]}] finished with status {'skipped': {}, 'ok': {'localhost': 2}, 'dark': {}, 'failures': {}, 'ignored': {}, 'rescued': {}, 'processed': {'localhost': 1}, 'changed': {'localhost': 1}} [2024-04-24 19:28:16] [DEBUG] TESTER: Rendering template /home/fcaffieri/wazuh-env/wazuh-qa/deployability/modules/testing/playbooks/test.yml [2024-04-24 19:28:16] [DEBUG] TESTER: Using inventory: {'all': {'hosts': {'ec2-54-89-184-95.compute-1.amazonaws.com': {'ansible_port': 2200, 'ansible_user': 'ubuntu', 'ansible_ssh_private_key_file': '/tmp/wazuh-qa/i-06c16f6edf0dfe9cf/ubuntu-22.04-amd64-key-5682'}}}} [2024-04-24 19:28:16] [DEBUG] TESTER: Running playbook: [{'hosts': 'localhost', 'become': True, 'become_user': 'fcaffieri', '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-windows-server-2012r2-amd64/inventory.yaml}' --live=True -s", 'args': {'chdir': '/home/fcaffieri/wazuh-env/wazuh-qa/deployability'}}]}] Using /etc/ansible/ansible.cfg as config file PLAY [localhost] *************************************************************** TASK [Gathering Facts] ********************************************************* ok: [localhost] TASK [Test registration for agent] ********************************************* changed: [localhost] => changed=true   cmd:  - 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-windows-server-2012r2-amd64/inventory.yaml}'  - --live=True  - -s  delta: '0:01:19.824233'  end: '2024-04-24 19:29:38.416485'  msg: ''  rc: 0  start: '2024-04-24 19:28:18.592252'  stderr: |-  Warning: Permanently added '[ec2-54-89-184-95.compute-1.amazonaws.com]:2200,[54.89.184.95]:2200' (ECDSA) to the list of known hosts.  Warning: Permanently added '[ec2-54-89-184-95.compute-1.amazonaws.com]:2200,[54.89.184.95]:2200' (ECDSA) to the list of known hosts.  Warning: Permanently added '[ec2-54-89-184-95.compute-1.amazonaws.com]:2200,[54.89.184.95]:2200' (ECDSA) to the list of known hosts.  Warning: Permanently added '[ec2-54-89-184-95.compute-1.amazonaws.com]:2200,[54.89.184.95]:2200' (ECDSA) to the list of known hosts.  Warning: Permanently added '[ec2-54-89-184-95.compute-1.amazonaws.com]:2200,[54.89.184.95]:2200' (ECDSA) to the list of known hosts.  Warning: Permanently added '[ec2-54-89-184-95.compute-1.amazonaws.com]:2200,[54.89.184.95]:2200' (ECDSA) to the list of known hosts.  Warning: Permanently added '[ec2-54-89-184-95.compute-1.amazonaws.com]:2200,[54.89.184.95]:2200' (ECDSA) to the list of known hosts.  Warning: Permanently added '[ec2-54-89-184-95.compute-1.amazonaws.com]:2200,[54.89.184.95]:2200' (ECDSA) to the list of known hosts.  stderr_lines:   stdout: |-  [37m[2024-04-24 19:28:19] [DEBUG] SPNEGO._GSS: Python gssapi not available, cannot use any GSSAPIProxy protocols: No module named 'gssapi'[0m  [37m[2024-04-24 19:28:19] [DEBUG] SPNEGO._GSS: Python gssapi IOV extension not available: No module named 'gssapi'[0m  ============================= test session starts ==============================  platform linux -- Python 3.10.14, pytest-7.4.4, pluggy-1.4.0 -- /home/fcaffieri/wazuh-env/wazuh-qa/.venv/bin/python3  cachedir: .pytest_cache  rootdir: /home/fcaffieri/wazuh-env/wazuh-qa/deployability/modules  collecting ... collected 4 items    modules/testing/tests/test_agent/test_registration.py::test_status [32m[2024-04-24 19:28:19] [INFO] TESTER: Checking connection to server-2012r2[0m  [32m[2024-04-24 19:28:21] [INFO] TESTER: WinRM connection successful.[0m  [32m[2024-04-24 19:28:29] [INFO] TESTER: os_type windows[0m  [32m[2024-04-24 19:28:36] [INFO] TESTER: Getting status of server-2012r2[0m  PASSED  modules/testing/tests/test_agent/test_registration.py::test_service PASSED  modules/testing/tests/test_agent/test_registration.py::test_connection PASSED  modules/testing/tests/test_agent/test_registration.py::test_clientKeys PASSED    =============================== warnings summary ===============================  modules/provision/models.py:36  /home/fcaffieri/wazuh-env/wazuh-qa/deployability/modules/provision/models.py:36: PydanticDeprecatedSince20: Pydantic V1 style `@validator` validators are deprecated. You should migrate to Pydantic V2 style `@field_validator` validators, see the migration guide for more details. Deprecated in Pydantic V2.0 to be removed in V3.0. See Pydantic V2 Migration Guide at https://errors.pydantic.dev/2.5/migration/  @validator('dependencies', pre=True)    modules/provision/models.py:64  /home/fcaffieri/wazuh-env/wazuh-qa/deployability/modules/provision/models.py:64: PydanticDeprecatedSince20: Pydantic V1 style `@validator` validators are deprecated. You should migrate to Pydantic V2 style `@field_validator` validators, see the migration guide for more details. Deprecated in Pydantic V2.0 to be removed in V3.0. See Pydantic V2 Migration Guide at https://errors.pydantic.dev/2.5/migration/  @validator('install', 'uninstall', pre=True)    testing/tests/test_agent/test_registration.py: 10 warnings  /home/fcaffieri/wazuh-env/wazuh-qa/.venv/lib/python3.10/site-packages/winrm/transport.py:349: DeprecationWarning: inspect.getargspec() is deprecated since Python 3.0, use inspect.signature() or inspect.getfullargspec()  argspec = set(inspect.getargspec(function).args)    -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html  ================== 4 passed, 12 warnings in 78.79s (0:01:18) ===================  stdout_lines:  PLAY RECAP ********************************************************************* localhost : ok=2  changed=1  unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 [2024-04-24 19:29:38] [DEBUG] TESTER: Playbook [{'hosts': 'localhost', 'become': True, 'become_user': 'fcaffieri', '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-windows-server-2012r2-amd64/inventory.yaml}' --live=True -s", 'args': {'chdir': '/home/fcaffieri/wazuh-env/wazuh-qa/deployability'}}]}] finished with status {'skipped': {}, 'ok': {'localhost': 2}, 'dark': {}, 'failures': {}, 'ignored': {}, 'rescued': {}, 'processed': {'localhost': 1}, 'changed': {'localhost': 1}} [2024-04-24 19:29:38] [DEBUG] TESTER: Rendering template /home/fcaffieri/wazuh-env/wazuh-qa/deployability/modules/testing/playbooks/test.yml [2024-04-24 19:29:38] [DEBUG] TESTER: Using inventory: {'all': {'hosts': {'ec2-54-89-184-95.compute-1.amazonaws.com': {'ansible_port': 2200, 'ansible_user': 'ubuntu', 'ansible_ssh_private_key_file': '/tmp/wazuh-qa/i-06c16f6edf0dfe9cf/ubuntu-22.04-amd64-key-5682'}}}} [2024-04-24 19:29:38] [DEBUG] TESTER: Running playbook: [{'hosts': 'localhost', 'become': True, 'become_user': 'fcaffieri', 'tasks': [{'name': 'Test connection for agent', 'command': "python3 -m pytest modules/testing/tests/test_agent/test_connection.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-windows-server-2012r2-amd64/inventory.yaml}' --live=True -s", 'args': {'chdir': '/home/fcaffieri/wazuh-env/wazuh-qa/deployability'}}]}] Using /etc/ansible/ansible.cfg as config file PLAY [localhost] *************************************************************** TASK [Gathering Facts] ********************************************************* ok: [localhost] TASK [Test connection for agent] *********************************************** changed: [localhost] => changed=true   cmd:  - python3  - -m  - pytest  - modules/testing/tests/test_agent/test_connection.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-windows-server-2012r2-amd64/inventory.yaml}'  - --live=True  - -s  delta: '0:00:48.339817'  end: '2024-04-24 19:30:31.556975'  msg: ''  rc: 0  start: '2024-04-24 19:29:43.217158'  stderr: |-  Warning: Permanently added '[ec2-54-89-184-95.compute-1.amazonaws.com]:2200,[54.89.184.95]:2200' (ECDSA) to the list of known hosts.  Warning: Permanently added '[ec2-54-89-184-95.compute-1.amazonaws.com]:2200,[54.89.184.95]:2200' (ECDSA) to the list of known hosts.  Warning: Permanently added '[ec2-54-89-184-95.compute-1.amazonaws.com]:2200,[54.89.184.95]:2200' (ECDSA) to the list of known hosts.  Warning: Permanently added '[ec2-54-89-184-95.compute-1.amazonaws.com]:2200,[54.89.184.95]:2200' (ECDSA) to the list of known hosts.  Warning: Permanently added '[ec2-54-89-184-95.compute-1.amazonaws.com]:2200,[54.89.184.95]:2200' (ECDSA) to the list of known hosts.  Warning: Permanently added '[ec2-54-89-184-95.compute-1.amazonaws.com]:2200,[54.89.184.95]:2200' (ECDSA) to the list of known hosts.  Warning: Permanently added '[ec2-54-89-184-95.compute-1.amazonaws.com]:2200,[54.89.184.95]:2200' (ECDSA) to the list of known hosts.  stderr_lines:   stdout: |-  [37m[2024-04-24 19:29:44] [DEBUG] SPNEGO._GSS: Python gssapi not available, cannot use any GSSAPIProxy protocols: No module named 'gssapi'[0m  [37m[2024-04-24 19:29:44] [DEBUG] SPNEGO._GSS: Python gssapi IOV extension not available: No module named 'gssapi'[0m  ============================= test session starts ==============================  platform linux -- Python 3.10.14, pytest-7.4.4, pluggy-1.4.0 -- /home/fcaffieri/wazuh-env/wazuh-qa/.venv/bin/python3  cachedir: .pytest_cache  rootdir: /home/fcaffieri/wazuh-env/wazuh-qa/deployability/modules  collecting ... collected 6 items    modules/testing/tests/test_agent/test_connection.py::test_connection [32m[2024-04-24 19:29:44] [INFO] TESTER: Checking connection to server-2012r2[0m  [32m[2024-04-24 19:29:46] [INFO] TESTER: WinRM connection successful.[0m  PASSED  modules/testing/tests/test_agent/test_connection.py::test_status [32m[2024-04-24 19:30:10] [INFO] TESTER: Getting status of server-2012r2[0m  PASSED  modules/testing/tests/test_agent/test_connection.py::test_service PASSED  modules/testing/tests/test_agent/test_connection.py::test_clientKeys PASSED  modules/testing/tests/test_agent/test_connection.py::test_port PASSED  modules/testing/tests/test_agent/test_connection.py::test_processes PASSED    =============================== warnings summary ===============================  modules/provision/models.py:36  /home/fcaffieri/wazuh-env/wazuh-qa/deployability/modules/provision/models.py:36: PydanticDeprecatedSince20: Pydantic V1 style `@validator` validators are deprecated. You should migrate to Pydantic V2 style `@field_validator` validators, see the migration guide for more details. Deprecated in Pydantic V2.0 to be removed in V3.0. See Pydantic V2 Migration Guide at https://errors.pydantic.dev/2.5/migration/  @validator('dependencies', pre=True)    modules/provision/models.py:64  /home/fcaffieri/wazuh-env/wazuh-qa/deployability/modules/provision/models.py:64: PydanticDeprecatedSince20: Pydantic V1 style `@validator` validators are deprecated. You should migrate to Pydantic V2 style `@field_validator` validators, see the migration guide for more details. Deprecated in Pydantic V2.0 to be removed in V3.0. See Pydantic V2 Migration Guide at https://errors.pydantic.dev/2.5/migration/  @validator('install', 'uninstall', pre=True)    testing/tests/test_agent/test_connection.py: 11 warnings  /home/fcaffieri/wazuh-env/wazuh-qa/.venv/lib/python3.10/site-packages/winrm/transport.py:349: DeprecationWarning: inspect.getargspec() is deprecated since Python 3.0, use inspect.signature() or inspect.getfullargspec()  argspec = set(inspect.getargspec(function).args)    -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html  ======================= 6 passed, 13 warnings in 46.73s ========================  stdout_lines:  PLAY RECAP ********************************************************************* localhost : ok=2  changed=1  unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 [2024-04-24 19:30:31] [DEBUG] TESTER: Playbook [{'hosts': 'localhost', 'become': True, 'become_user': 'fcaffieri', 'tasks': [{'name': 'Test connection for agent', 'command': "python3 -m pytest modules/testing/tests/test_agent/test_connection.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-windows-server-2012r2-amd64/inventory.yaml}' --live=True -s", 'args': {'chdir': '/home/fcaffieri/wazuh-env/wazuh-qa/deployability'}}]}] finished with status {'skipped': {}, 'ok': {'localhost': 2}, 'dark': {}, 'failures': {}, 'ignored': {}, 'rescued': {}, 'processed': {'localhost': 1}, 'changed': {'localhost': 1}} [2024-04-24 19:30:31] [DEBUG] TESTER: Rendering template /home/fcaffieri/wazuh-env/wazuh-qa/deployability/modules/testing/playbooks/test.yml [2024-04-24 19:30:31] [DEBUG] TESTER: Using inventory: {'all': {'hosts': {'ec2-54-89-184-95.compute-1.amazonaws.com': {'ansible_port': 2200, 'ansible_user': 'ubuntu', 'ansible_ssh_private_key_file': '/tmp/wazuh-qa/i-06c16f6edf0dfe9cf/ubuntu-22.04-amd64-key-5682'}}}} [2024-04-24 19:30:31] [DEBUG] TESTER: Running playbook: [{'hosts': 'localhost', 'become': True, 'become_user': 'fcaffieri', 'tasks': [{'name': 'Test basic_info for agent', 'command': "python3 -m pytest modules/testing/tests/test_agent/test_basic_info.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-windows-server-2012r2-amd64/inventory.yaml}' --live=True -s", 'args': {'chdir': '/home/fcaffieri/wazuh-env/wazuh-qa/deployability'}}]}] Using /etc/ansible/ansible.cfg as config file PLAY [localhost] *************************************************************** TASK [Gathering Facts] ********************************************************* ok: [localhost] TASK [Test basic_info for agent] *********************************************** changed: [localhost] => changed=true   cmd:  - python3  - -m  - pytest  - modules/testing/tests/test_agent/test_basic_info.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-windows-server-2012r2-amd64/inventory.yaml}'  - --live=True  - -s  delta: '0:00:26.706240'  end: '2024-04-24 19:31:02.439835'  msg: ''  rc: 0  start: '2024-04-24 19:30:35.733595'  stderr: |-  Warning: Permanently added '[ec2-54-89-184-95.compute-1.amazonaws.com]:2200,[54.89.184.95]:2200' (ECDSA) to the list of known hosts.  Warning: Permanently added '[ec2-54-89-184-95.compute-1.amazonaws.com]:2200,[54.89.184.95]:2200' (ECDSA) to the list of known hosts.  Warning: Permanently added '[ec2-54-89-184-95.compute-1.amazonaws.com]:2200,[54.89.184.95]:2200' (ECDSA) to the list of known hosts.  stderr_lines:   stdout: |-  [37m[2024-04-24 19:30:36] [DEBUG] SPNEGO._GSS: Python gssapi not available, cannot use any GSSAPIProxy protocols: No module named 'gssapi'[0m  [37m[2024-04-24 19:30:36] [DEBUG] SPNEGO._GSS: Python gssapi IOV extension not available: No module named 'gssapi'[0m  ============================= test session starts ==============================  platform linux -- Python 3.10.14, pytest-7.4.4, pluggy-1.4.0 -- /home/fcaffieri/wazuh-env/wazuh-qa/.venv/bin/python3  cachedir: .pytest_cache  rootdir: /home/fcaffieri/wazuh-env/wazuh-qa/deployability/modules  collecting ... collected 3 items    modules/testing/tests/test_agent/test_basic_info.py::test_wazuh_os_version [32m[2024-04-24 19:30:36] [INFO] TESTER: Checking connection to server-2012r2[0m  [32m[2024-04-24 19:30:39] [INFO] TESTER: WinRM connection successful.[0m  PASSED  modules/testing/tests/test_agent/test_basic_info.py::test_wazuh_version PASSED  modules/testing/tests/test_agent/test_basic_info.py::test_wazuh_revision PASSED    =============================== warnings summary ===============================  modules/provision/models.py:36  /home/fcaffieri/wazuh-env/wazuh-qa/deployability/modules/provision/models.py:36: PydanticDeprecatedSince20: Pydantic V1 style `@validator` validators are deprecated. You should migrate to Pydantic V2 style `@field_validator` validators, see the migration guide for more details. Deprecated in Pydantic V2.0 to be removed in V3.0. See Pydantic V2 Migration Guide at https://errors.pydantic.dev/2.5/migration/  @validator('dependencies', pre=True)    modules/provision/models.py:64  /home/fcaffieri/wazuh-env/wazuh-qa/deployability/modules/provision/models.py:64: PydanticDeprecatedSince20: Pydantic V1 style `@validator` validators are deprecated. You should migrate to Pydantic V2 style `@field_validator` validators, see the migration guide for more details. Deprecated in Pydantic V2.0 to be removed in V3.0. See Pydantic V2 Migration Guide at https://errors.pydantic.dev/2.5/migration/  @validator('install', 'uninstall', pre=True)    testing/tests/test_agent/test_basic_info.py::test_wazuh_os_version  testing/tests/test_agent/test_basic_info.py::test_wazuh_os_version  testing/tests/test_agent/test_basic_info.py::test_wazuh_os_version  testing/tests/test_agent/test_basic_info.py::test_wazuh_os_version  testing/tests/test_agent/test_basic_info.py::test_wazuh_os_version  testing/tests/test_agent/test_basic_info.py::test_wazuh_version  testing/tests/test_agent/test_basic_info.py::test_wazuh_revision  /home/fcaffieri/wazuh-env/wazuh-qa/.venv/lib/python3.10/site-packages/winrm/transport.py:349: DeprecationWarning: inspect.getargspec() is deprecated since Python 3.0, use inspect.signature() or inspect.getfullargspec()  argspec = set(inspect.getargspec(function).args)    -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html  ======================== 3 passed, 9 warnings in 25.32s ========================  stdout_lines:  PLAY RECAP ********************************************************************* localhost : ok=2  changed=1  unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 [2024-04-24 19:31:02] [DEBUG] TESTER: Playbook [{'hosts': 'localhost', 'become': True, 'become_user': 'fcaffieri', 'tasks': [{'name': 'Test basic_info for agent', 'command': "python3 -m pytest modules/testing/tests/test_agent/test_basic_info.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-windows-server-2012r2-amd64/inventory.yaml}' --live=True -s", 'args': {'chdir': '/home/fcaffieri/wazuh-env/wazuh-qa/deployability'}}]}] finished with status {'skipped': {}, 'ok': {'localhost': 2}, 'dark': {}, 'failures': {}, 'ignored': {}, 'rescued': {}, 'processed': {'localhost': 1}, 'changed': {'localhost': 1}} [2024-04-24 19:31:02] [DEBUG] TESTER: Rendering template /home/fcaffieri/wazuh-env/wazuh-qa/deployability/modules/testing/playbooks/test.yml [2024-04-24 19:31:02] [DEBUG] TESTER: Using inventory: {'all': {'hosts': {'ec2-54-89-184-95.compute-1.amazonaws.com': {'ansible_port': 2200, 'ansible_user': 'ubuntu', 'ansible_ssh_private_key_file': '/tmp/wazuh-qa/i-06c16f6edf0dfe9cf/ubuntu-22.04-amd64-key-5682'}}}} [2024-04-24 19:31:02] [DEBUG] TESTER: Running playbook: [{'hosts': 'localhost', 'become': True, 'become_user': 'fcaffieri', '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-windows-server-2012r2-amd64/inventory.yaml}' --live=True -s", 'args': {'chdir': '/home/fcaffieri/wazuh-env/wazuh-qa/deployability'}}]}] Using /etc/ansible/ansible.cfg as config file PLAY [localhost] *************************************************************** TASK [Gathering Facts] ********************************************************* ok: [localhost] TASK [Test restart for agent] ************************************************** changed: [localhost] => changed=true   cmd:  - 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-windows-server-2012r2-amd64/inventory.yaml}'  - --live=True  - -s  delta: '0:00:33.117598'  end: '2024-04-24 19:31:39.868181'  msg: ''  rc: 0  start: '2024-04-24 19:31:06.750583'  stderr: 'Warning: Permanently added ''[ec2-54-89-184-95.compute-1.amazonaws.com]:2200,[54.89.184.95]:2200'' (ECDSA) to the list of known hosts.'  stderr_lines:   stdout: |-  [37m[2024-04-24 19:31:07] [DEBUG] SPNEGO._GSS: Python gssapi not available, cannot use any GSSAPIProxy protocols: No module named 'gssapi'[0m  [37m[2024-04-24 19:31:07] [DEBUG] SPNEGO._GSS: Python gssapi IOV extension not available: No module named 'gssapi'[0m  ============================= test session starts ==============================  platform linux -- Python 3.10.14, pytest-7.4.4, pluggy-1.4.0 -- /home/fcaffieri/wazuh-env/wazuh-qa/.venv/bin/python3  cachedir: .pytest_cache  rootdir: /home/fcaffieri/wazuh-env/wazuh-qa/deployability/modules  collecting ... collected 7 items    modules/testing/tests/test_agent/test_restart.py::test_restart [32m[2024-04-24 19:31:07] [INFO] TESTER: Checking connection to server-2012r2[0m  [32m[2024-04-24 19:31:10] [INFO] TESTER: WinRM connection successful.[0m  [32m[2024-04-24 19:31:16] [INFO] TESTER: Restarting wazuh-agent in server-2012r2[0m  PASSED  modules/testing/tests/test_agent/test_restart.py::test_status [32m[2024-04-24 19:31:23] [INFO] TESTER: Getting status of server-2012r2[0m  PASSED  modules/testing/tests/test_agent/test_restart.py::test_connection PASSED  modules/testing/tests/test_agent/test_restart.py::test_isActive PASSED  modules/testing/tests/test_agent/test_restart.py::test_clientKeys PASSED  modules/testing/tests/test_agent/test_restart.py::test_port PASSED  modules/testing/tests/test_agent/test_restart.py::test_processes PASSED    =============================== warnings summary ===============================  modules/provision/models.py:36  /home/fcaffieri/wazuh-env/wazuh-qa/deployability/modules/provision/models.py:36: PydanticDeprecatedSince20: Pydantic V1 style `@validator` validators are deprecated. You should migrate to Pydantic V2 style `@field_validator` validators, see the migration guide for more details. Deprecated in Pydantic V2.0 to be removed in V3.0. See Pydantic V2 Migration Guide at https://errors.pydantic.dev/2.5/migration/  @validator('dependencies', pre=True)    modules/provision/models.py:64  /home/fcaffieri/wazuh-env/wazuh-qa/deployability/modules/provision/models.py:64: PydanticDeprecatedSince20: Pydantic V1 style `@validator` validators are deprecated. You should migrate to Pydantic V2 style `@field_validator` validators, see the migration guide for more details. Deprecated in Pydantic V2.0 to be removed in V3.0. See Pydantic V2 Migration Guide at https://errors.pydantic.dev/2.5/migration/  @validator('install', 'uninstall', pre=True)    testing/tests/test_agent/test_restart.py: 11 warnings  /home/fcaffieri/wazuh-env/wazuh-qa/.venv/lib/python3.10/site-packages/winrm/transport.py:349: DeprecationWarning: inspect.getargspec() is deprecated since Python 3.0, use inspect.signature() or inspect.getfullargspec()  argspec = set(inspect.getargspec(function).args)    -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html  ======================= 7 passed, 13 warnings in 31.75s ========================  stdout_lines:  PLAY RECAP ********************************************************************* localhost : ok=2  changed=1  unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 [2024-04-24 19:31:40] [DEBUG] TESTER: Playbook [{'hosts': 'localhost', 'become': True, 'become_user': 'fcaffieri', '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-windows-server-2012r2-amd64/inventory.yaml}' --live=True -s", 'args': {'chdir': '/home/fcaffieri/wazuh-env/wazuh-qa/deployability'}}]}] finished with status {'skipped': {}, 'ok': {'localhost': 2}, 'dark': {}, 'failures': {}, 'ignored': {}, 'rescued': {}, 'processed': {'localhost': 1}, 'changed': {'localhost': 1}} [2024-04-24 19:31:40] [DEBUG] TESTER: Rendering template /home/fcaffieri/wazuh-env/wazuh-qa/deployability/modules/testing/playbooks/test.yml [2024-04-24 19:31:40] [DEBUG] TESTER: Using inventory: {'all': {'hosts': {'ec2-54-89-184-95.compute-1.amazonaws.com': {'ansible_port': 2200, 'ansible_user': 'ubuntu', 'ansible_ssh_private_key_file': '/tmp/wazuh-qa/i-06c16f6edf0dfe9cf/ubuntu-22.04-amd64-key-5682'}}}} [2024-04-24 19:31:40] [DEBUG] TESTER: Running playbook: [{'hosts': 'localhost', 'become': True, 'become_user': 'fcaffieri', '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-windows-server-2012r2-amd64/inventory.yaml}' --live=True -s", 'args': {'chdir': '/home/fcaffieri/wazuh-env/wazuh-qa/deployability'}}]}] Using /etc/ansible/ansible.cfg as config file PLAY [localhost] *************************************************************** TASK [Gathering Facts] ********************************************************* ok: [localhost] TASK [Test stop for agent] ***************************************************** changed: [localhost] => changed=true   cmd:  - 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-windows-server-2012r2-amd64/inventory.yaml}'  - --live=True  - -s  delta: '0:00:33.600760'  end: '2024-04-24 19:32:17.460789'  msg: ''  rc: 0  start: '2024-04-24 19:31:43.860029'  stderr: |-  Warning: Permanently added '[ec2-54-89-184-95.compute-1.amazonaws.com]:2200,[54.89.184.95]:2200' (ECDSA) to the list of known hosts.  Warning: Permanently added '[ec2-54-89-184-95.compute-1.amazonaws.com]:2200,[54.89.184.95]:2200' (ECDSA) to the list of known hosts.  Warning: Permanently added '[ec2-54-89-184-95.compute-1.amazonaws.com]:2200,[54.89.184.95]:2200' (ECDSA) to the list of known hosts.  stderr_lines:   stdout: |-  [37m[2024-04-24 19:31:44] [DEBUG] SPNEGO._GSS: Python gssapi not available, cannot use any GSSAPIProxy protocols: No module named 'gssapi'[0m  [37m[2024-04-24 19:31:44] [DEBUG] SPNEGO._GSS: Python gssapi IOV extension not available: No module named 'gssapi'[0m  ============================= test session starts ==============================  platform linux -- Python 3.10.14, pytest-7.4.4, pluggy-1.4.0 -- /home/fcaffieri/wazuh-env/wazuh-qa/.venv/bin/python3  cachedir: .pytest_cache  rootdir: /home/fcaffieri/wazuh-env/wazuh-qa/deployability/modules  collecting ... collected 3 items    modules/testing/tests/test_agent/test_stop.py::test_service [32m[2024-04-24 19:31:45] [INFO] TESTER: Checking connection to server-2012r2[0m  [32m[2024-04-24 19:31:47] [INFO] TESTER: WinRM connection successful.[0m  [32m[2024-04-24 19:32:02] [INFO] TESTER: Stopping wazuh-agent in server-2012r2[0m  [32m[2024-04-24 19:32:04] [INFO] TESTER: Getting status of server-2012r2[0m  PASSED  modules/testing/tests/test_agent/test_stop.py::test_port PASSED  modules/testing/tests/test_agent/test_stop.py::test_processes PASSED[32m[2024-04-24 19:32:12] [INFO] TESTER: Restarting wazuh-agent in server-2012r2[0m      =============================== warnings summary ===============================  modules/provision/models.py:36  /home/fcaffieri/wazuh-env/wazuh-qa/deployability/modules/provision/models.py:36: PydanticDeprecatedSince20: Pydantic V1 style `@validator` validators are deprecated. You should migrate to Pydantic V2 style `@field_validator` validators, see the migration guide for more details. Deprecated in Pydantic V2.0 to be removed in V3.0. See Pydantic V2 Migration Guide at https://errors.pydantic.dev/2.5/migration/  @validator('dependencies', pre=True)    modules/provision/models.py:64  /home/fcaffieri/wazuh-env/wazuh-qa/deployability/modules/provision/models.py:64: PydanticDeprecatedSince20: Pydantic V1 style `@validator` validators are deprecated. You should migrate to Pydantic V2 style `@field_validator` validators, see the migration guide for more details. Deprecated in Pydantic V2.0 to be removed in V3.0. See Pydantic V2 Migration Guide at https://errors.pydantic.dev/2.5/migration/  @validator('install', 'uninstall', pre=True)    testing/tests/test_agent/test_stop.py: 10 warnings  /home/fcaffieri/wazuh-env/wazuh-qa/.venv/lib/python3.10/site-packages/winrm/transport.py:349: DeprecationWarning: inspect.getargspec() is deprecated since Python 3.0, use inspect.signature() or inspect.getfullargspec()  argspec = set(inspect.getargspec(function).args)    -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html  ======================= 3 passed, 12 warnings in 32.07s ========================  stdout_lines:  PLAY RECAP ********************************************************************* localhost : ok=2  changed=1  unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 [2024-04-24 19:32:17] [DEBUG] TESTER: Playbook [{'hosts': 'localhost', 'become': True, 'become_user': 'fcaffieri', '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-windows-server-2012r2-amd64/inventory.yaml}' --live=True -s", 'args': {'chdir': '/home/fcaffieri/wazuh-env/wazuh-qa/deployability'}}]}] finished with status {'skipped': {}, 'ok': {'localhost': 2}, 'dark': {}, 'failures': {}, 'ignored': {}, 'rescued': {}, 'processed': {'localhost': 1}, 'changed': {'localhost': 1}} [2024-04-24 19:32:17] [DEBUG] TESTER: Rendering template /home/fcaffieri/wazuh-env/wazuh-qa/deployability/modules/testing/playbooks/test.yml [2024-04-24 19:32:17] [DEBUG] TESTER: Using inventory: {'all': {'hosts': {'ec2-54-89-184-95.compute-1.amazonaws.com': {'ansible_port': 2200, 'ansible_user': 'ubuntu', 'ansible_ssh_private_key_file': '/tmp/wazuh-qa/i-06c16f6edf0dfe9cf/ubuntu-22.04-amd64-key-5682'}}}} [2024-04-24 19:32:17] [DEBUG] TESTER: Running playbook: [{'hosts': 'localhost', 'become': True, 'become_user': 'fcaffieri', '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-windows-server-2012r2-amd64/inventory.yaml}' --live=True -s", 'args': {'chdir': '/home/fcaffieri/wazuh-env/wazuh-qa/deployability'}}]}] Using /etc/ansible/ansible.cfg as config file PLAY [localhost] *************************************************************** TASK [Gathering Facts] ********************************************************* ok: [localhost] TASK [Test uninstall for agent] ************************************************ changed: [localhost] => changed=true   cmd:  - 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-windows-server-2012r2-amd64/inventory.yaml}'  - --live=True  - -s  delta: '0:01:37.900230'  end: '2024-04-24 19:33:59.087087'  msg: ''  rc: 0  start: '2024-04-24 19:32:21.186857'  stderr: |-  Warning: Permanently added '[ec2-54-89-184-95.compute-1.amazonaws.com]:2200,[54.89.184.95]:2200' (ECDSA) to the list of known hosts.  Warning: Permanently added '[ec2-54-89-184-95.compute-1.amazonaws.com]:2200,[54.89.184.95]:2200' (ECDSA) to the list of known hosts.  Warning: Permanently added '[ec2-54-89-184-95.compute-1.amazonaws.com]:2200,[54.89.184.95]:2200' (ECDSA) to the list of known hosts.  Warning: Permanently added '[ec2-54-89-184-95.compute-1.amazonaws.com]:2200,[54.89.184.95]:2200' (ECDSA) to the list of known hosts.  stderr_lines:   stdout: |-  [37m[2024-04-24 19:32:22] [DEBUG] SPNEGO._GSS: Python gssapi not available, cannot use any GSSAPIProxy protocols: No module named 'gssapi'[0m  [37m[2024-04-24 19:32:22] [DEBUG] SPNEGO._GSS: Python gssapi IOV extension not available: No module named 'gssapi'[0m  ============================= test session starts ==============================  platform linux -- Python 3.10.14, pytest-7.4.4, pluggy-1.4.0 -- /home/fcaffieri/wazuh-env/wazuh-qa/.venv/bin/python3  cachedir: .pytest_cache  rootdir: /home/fcaffieri/wazuh-env/wazuh-qa/deployability/modules  collecting ... collected 5 items    modules/testing/tests/test_agent/test_uninstall.py::test_uninstall [32m[2024-04-24 19:32:22] [INFO] TESTER: Checking connection to server-2012r2[0m  [32m[2024-04-24 19:32:25] [INFO] TESTER: WinRM connection successful.[0m  [32m[2024-04-24 19:32:38] [INFO] TESTER: Generating Snapshot for Checkfile in server-2012r2[0m  [32m[2024-04-24 19:33:06] [INFO] TESTER: Uninstalling Agent in server-2012r2[0m  [32m[2024-04-24 19:33:11] [INFO] TESTER: Generating Snapshot for Checkfile in server-2012r2[0m  [32m[2024-04-24 19:33:37] [INFO] TESTER: Applying filters in checkfiles in server-2012r2[0m  [32m[2024-04-24 19:33:37] [INFO] TESTER: Pre and post uninstall checkfile comparison in server-2012r2: {'C:\\Program Files': {'added': [], 'removed': [], 'modified': []}, 'C:\\Program Files (x86)': {'added': [], 'removed': [], 'modified': []}, 'C:\\Users\\vagrant': {'added': [], 'removed': [], 'modified': []}}[0m  PASSED  modules/testing/tests/test_agent/test_uninstall.py::test_agent_uninstalled_directory PASSED  modules/testing/tests/test_agent/test_uninstall.py::test_service PASSED  modules/testing/tests/test_agent/test_uninstall.py::test_port PASSED  modules/testing/tests/test_agent/test_uninstall.py::test_processes PASSED    =============================== warnings summary ===============================  modules/provision/models.py:36  /home/fcaffieri/wazuh-env/wazuh-qa/deployability/modules/provision/models.py:36: PydanticDeprecatedSince20: Pydantic V1 style `@validator` validators are deprecated. You should migrate to Pydantic V2 style `@field_validator` validators, see the migration guide for more details. Deprecated in Pydantic V2.0 to be removed in V3.0. See Pydantic V2 Migration Guide at https://errors.pydantic.dev/2.5/migration/  @validator('dependencies', pre=True)    modules/provision/models.py:64  /home/fcaffieri/wazuh-env/wazuh-qa/deployability/modules/provision/models.py:64: PydanticDeprecatedSince20: Pydantic V1 style `@validator` validators are deprecated. You should migrate to Pydantic V2 style `@field_validator` validators, see the migration guide for more details. Deprecated in Pydantic V2.0 to be removed in V3.0. See Pydantic V2 Migration Guide at https://errors.pydantic.dev/2.5/migration/  @validator('install', 'uninstall', pre=True)    testing/tests/test_agent/test_uninstall.py: 17 warnings  /home/fcaffieri/wazuh-env/wazuh-qa/.venv/lib/python3.10/site-packages/winrm/transport.py:349: DeprecationWarning: inspect.getargspec() is deprecated since Python 3.0, use inspect.signature() or inspect.getfullargspec()  argspec = set(inspect.getargspec(function).args)    -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html  ================== 5 passed, 19 warnings in 96.55s (0:01:36) ===================  stdout_lines:  PLAY RECAP ********************************************************************* localhost : ok=2  changed=1  unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 [2024-04-24 19:33:59] [DEBUG] TESTER: Playbook [{'hosts': 'localhost', 'become': True, 'become_user': 'fcaffieri', '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-windows-server-2012r2-amd64/inventory.yaml}' --live=True -s", 'args': {'chdir': '/home/fcaffieri/wazuh-env/wazuh-qa/deployability'}}]}] finished with status {'skipped': {}, 'ok': {'localhost': 2}, 'dark': {}, 'failures': {}, 'ignored': {}, 'rescued': {}, 'processed': {'localhost': 1}, 'changed': {'localhost': 1}} [2024-04-24 19:33:59] [INFO] TESTER: Cleaning up [2024-04-24 19:33:59] [DEBUG] TESTER: Using inventory: {'all': {'hosts': {'ec2-54-89-184-95.compute-1.amazonaws.com': {'ansible_port': 2200, 'ansible_user': 'ubuntu', 'ansible_ssh_private_key_file': '/tmp/wazuh-qa/i-06c16f6edf0dfe9cf/ubuntu-22.04-amd64-key-5682'}}}} [2024-04-24 19:33:59] [DEBUG] TESTER: Running playbook: /home/fcaffieri/wazuh-env/wazuh-qa/deployability/modules/testing/playbooks/cleanup.yml Using /etc/ansible/ansible.cfg as config file PLAY [all] ********************************************************************* TASK [Gathering Facts] ********************************************************* ok: [ec2-54-89-184-95.compute-1.amazonaws.com] TASK [Clean test directory] **************************************************** ok: [ec2-54-89-184-95.compute-1.amazonaws.com] => changed=false   path: /tmp/tests  state: absent PLAY RECAP ********************************************************************* ec2-54-89-184-95.compute-1.amazonaws.com : ok=2  changed=0 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 [2024-04-24 19:34:12] [DEBUG] TESTER: Playbook /home/fcaffieri/wazuh-env/wazuh-qa/deployability/modules/testing/playbooks/cleanup.yml finished with status {'skipped': {}, 'ok': {'ec2-54-89-184-95.compute-1.amazonaws.com': 2}, 'dark': {}, 'failures': {}, 'ignored': {}, 'rescued': {}, 'processed': {'ec2-54-89-184-95.compute-1.amazonaws.com': 1}, 'changed': {}} [2024-04-24 19:34:12] [INFO] TESTER: Cleaning up [2024-04-24 19:34:12] [DEBUG] TESTER: Using inventory: {'all': {'hosts': {'ec2-54-89-184-95.compute-1.amazonaws.com': {'ansible_port': 2200, 'ansible_user': 'ubuntu', 'ansible_ssh_private_key_file': '/tmp/wazuh-qa/i-06c16f6edf0dfe9cf/ubuntu-22.04-amd64-key-5682'}}}} [2024-04-24 19:34:12] [DEBUG] TESTER: Running playbook: /home/fcaffieri/wazuh-env/wazuh-qa/deployability/modules/testing/playbooks/cleanup.yml Using /etc/ansible/ansible.cfg as config file PLAY [all] ********************************************************************* TASK [Gathering Facts] ********************************************************* ok: [ec2-54-89-184-95.compute-1.amazonaws.com] TASK [Clean test directory] **************************************************** ok: [ec2-54-89-184-95.compute-1.amazonaws.com] => changed=false   path: /tmp/tests  state: absent PLAY RECAP ********************************************************************* ec2-54-89-184-95.compute-1.amazonaws.com : ok=2  changed=0 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 [2024-04-24 19:34:22] [DEBUG] TESTER: Playbook /home/fcaffieri/wazuh-env/wazuh-qa/deployability/modules/testing/playbooks/cleanup.yml finished with status {'skipped': {}, 'ok': {'ec2-54-89-184-95.compute-1.amazonaws.com': 2}, 'dark': {}, 'failures': {}, 'ignored': {}, 'rescued': {}, 'processed': {'ec2-54-89-184-95.compute-1.amazonaws.com': 1}, 'changed': {}}  [2024-04-24 19:34:23] [INFO] [350465] [ThreadPoolExecutor-0_1] [workflow_engine]: [run-agent-windows-server-2012r2-amd64-tests] Finished task in 750.76 seconds. [2024-04-24 19:34:23] [INFO] [350465] [MainThread] [workflow_engine]: Executing Reverse DAG tasks. [2024-04-24 19:34:23] [INFO] [350465] [MainThread] [workflow_engine]: Executing tasks in parallel. [2024-04-24 19:34:23] [INFO] [350465] [ThreadPoolExecutor-1_0] [workflow_engine]: [allocate-agent-windows-server-2012r2-amd64] Starting task. [2024-04-24 19:34:23] [INFO] [350465] [ThreadPoolExecutor-1_1] [workflow_engine]: [allocate-manager-linux-ubuntu-22.04-amd64] Starting task. [2024-04-24 19:34:23] [DEBUG] [350465] [ThreadPoolExecutor-1_0] [workflow_engine]: Running task "allocate-agent-windows-server-2012r2-amd64" with arguments: ['modules/allocation/main.py', '--action=delete', '--track-output=/tmp/dtt1-poc/agent-windows-server-2012r2-amd64/track.yaml'] [2024-04-24 19:34:23] [DEBUG] [350465] [ThreadPoolExecutor-1_1] [workflow_engine]: Running task "allocate-manager-linux-ubuntu-22.04-amd64" with arguments: ['modules/allocation/main.py', '--action=delete', '--track-output=/tmp/dtt1-poc/manager-linux-ubuntu-22.04-amd64/track.yaml'] [2024-04-24 19:35:12] [DEBUG] [350465] [ThreadPoolExecutor-1_0] [workflow_engine]: Finished task "allocate-agent-windows-server-2012r2-amd64" execution with result: [2024-04-24 19:34:24] [DEBUG] SPNEGO._GSS: Python gssapi not available, cannot use any GSSAPIProxy protocols: No module named 'gssapi' [2024-04-24 19:34:24] [DEBUG] SPNEGO._GSS: Python gssapi IOV extension not available: No module named 'gssapi' [2024-04-24 19:34:24] [INFO] ALLOCATOR: Deleting instance from trackfile /tmp/dtt1-poc/agent-windows-server-2012r2-amd64/track.yaml [2024-04-24 19:35:11] [INFO] ALLOCATOR: Instance i-0d07661e4f4ec085a deleted.  [2024-04-24 19:35:12] [INFO] [350465] [ThreadPoolExecutor-1_0] [workflow_engine]: [allocate-agent-windows-server-2012r2-amd64] Finished task in 48.93 seconds. [2024-04-24 19:35:43] [DEBUG] [350465] [ThreadPoolExecutor-1_1] [workflow_engine]: Finished task "allocate-manager-linux-ubuntu-22.04-amd64" execution with result: [2024-04-24 19:34:24] [DEBUG] SPNEGO._GSS: Python gssapi not available, cannot use any GSSAPIProxy protocols: No module named 'gssapi' [2024-04-24 19:34:24] [DEBUG] SPNEGO._GSS: Python gssapi IOV extension not available: No module named 'gssapi' [2024-04-24 19:34:24] [INFO] ALLOCATOR: Deleting instance from trackfile /tmp/dtt1-poc/manager-linux-ubuntu-22.04-amd64/track.yaml [2024-04-24 19:34:25] [DEBUG] ALLOCATOR: Deleting credentials: ubuntu-22.04-amd64-key-5682 [2024-04-24 19:35:43] [INFO] ALLOCATOR: Instance i-06c16f6edf0dfe9cf deleted.  [2024-04-24 19:35:43] [INFO] [350465] [ThreadPoolExecutor-1_1] [workflow_engine]: [allocate-manager-linux-ubuntu-22.04-amd64] Finished task in 80.48 seconds.