[2024-04-24 20:58:29] [DEBUG] [356149] [MainThread] [workflow_engine]: Validating input file: modules/workflow_engine/examples/agent/aws/test_windows/test-isolated/windows-2019/test-agent-windows-complete.yaml [2024-04-24 20:58:29] [DEBUG] [356149] [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 20:58:29] [DEBUG] [356149] [MainThread] [workflow_engine]: Loading yaml file: modules/workflow_engine/examples/agent/aws/test_windows/test-isolated/windows-2019/test-agent-windows-complete.yaml [2024-04-24 20:58:29] [DEBUG] [356149] [MainThread] [workflow_engine]: Loading workflow file: modules/workflow_engine/examples/agent/aws/test_windows/test-isolated/windows-2019/test-agent-windows-complete.yaml [2024-04-24 20:58:29] [DEBUG] [356149] [MainThread] [workflow_engine]: Process workflow. [2024-04-24 20:58:29] [INFO] [356149] [MainThread] [workflow_engine]: Executing DAG tasks. [2024-04-24 20:58:29] [INFO] [356149] [MainThread] [workflow_engine]: Executing tasks in parallel. [2024-04-24 20:58:29] [INFO] [356149] [ThreadPoolExecutor-0_0] [workflow_engine]: [allocate-manager-linux-ubuntu-22.04-amd64] Starting task. [2024-04-24 20:58:29] [INFO] [356149] [ThreadPoolExecutor-0_1] [workflow_engine]: [allocate-agent-windows-server-2019-amd64] Starting task. [2024-04-24 20:58:29] [DEBUG] [356149] [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 20:58:29] [DEBUG] [356149] [ThreadPoolExecutor-0_1] [workflow_engine]: Running task "allocate-agent-windows-server-2019-amd64" with arguments: ['modules/allocation/main.py', '--action=create', '--provider=aws', '--size=medium', '--composite-name=windows-server-2019-amd64', '--inventory-output=/tmp/dtt1-poc/agent-windows-server-2019-amd64/inventory.yaml', '--track-output=/tmp/dtt1-poc/agent-windows-server-2019-amd64/track.yaml', '--label-termination-date=1d', '--label-team=qa'] [2024-04-24 20:59:23] [DEBUG] [356149] [ThreadPoolExecutor-0_0] [workflow_engine]: Finished task "allocate-manager-linux-ubuntu-22.04-amd64" execution with result: [2024-04-24 20:58:29] [DEBUG] SPNEGO._GSS: Python gssapi not available, cannot use any GSSAPIProxy protocols: No module named 'gssapi' [2024-04-24 20:58:29] [DEBUG] SPNEGO._GSS: Python gssapi IOV extension not available: No module named 'gssapi' [2024-04-24 20:58:29] [INFO] ALLOCATOR: Creating instance at /tmp/wazuh-qa [2024-04-24 20:58:29] [DEBUG] ALLOCATOR: No config provided. Generating from payload [2024-04-24 20:58:29] [DEBUG] ALLOCATOR: Generating new key pair [2024-04-24 20:58:29] [DEBUG] ALLOCATOR: Creating base directory: /tmp/wazuh-qa/AWS-DCF4CC5E-7F24-4974-9E3F-EA84E617B2FC [2024-04-24 20:58:49] [DEBUG] ALLOCATOR: Renaming temp /tmp/wazuh-qa/AWS-DCF4CC5E-7F24-4974-9E3F-EA84E617B2FC directory to /tmp/wazuh-qa/i-0af61f8e92c4b987c [2024-04-24 20:58:49] [INFO] ALLOCATOR: Instance i-0af61f8e92c4b987c created. [2024-04-24 20:58:51] [INFO] ALLOCATOR: Instance i-0af61f8e92c4b987c started. [2024-04-24 20:58:51] [INFO] ALLOCATOR: Inventory file generated at /tmp/dtt1-poc/manager-linux-ubuntu-22.04-amd64/inventory.yaml [2024-04-24 20:58:51] [WARNING] ALLOCATOR: Error on attempt 1 of 30: [Errno None] Unable to connect to port 2200 on 44.202.168.180 [2024-04-24 20:59:23] [INFO] ALLOCATOR: SSH connection successful. [2024-04-24 20:59:23] [INFO] ALLOCATOR: Track file generated at /tmp/dtt1-poc/manager-linux-ubuntu-22.04-amd64/track.yaml  [2024-04-24 20:59:23] [INFO] [356149] [ThreadPoolExecutor-0_0] [workflow_engine]: [allocate-manager-linux-ubuntu-22.04-amd64] Finished task in 54.07 seconds. [2024-04-24 20:59:23] [INFO] [356149] [ThreadPoolExecutor-0_0] [workflow_engine]: [provision-manager-linux-ubuntu-22.04-amd64] Starting task. [2024-04-24 20:59:23] [DEBUG] [356149] [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 21:01:57] [DEBUG] [356149] [ThreadPoolExecutor-0_1] [workflow_engine]: Finished task "allocate-agent-windows-server-2019-amd64" execution with result: [2024-04-24 20:58:29] [DEBUG] SPNEGO._GSS: Python gssapi not available, cannot use any GSSAPIProxy protocols: No module named 'gssapi' [2024-04-24 20:58:29] [DEBUG] SPNEGO._GSS: Python gssapi IOV extension not available: No module named 'gssapi' [2024-04-24 20:58:29] [INFO] ALLOCATOR: Creating instance at /tmp/wazuh-qa [2024-04-24 20:58:29] [DEBUG] ALLOCATOR: No config provided. Generating from payload [2024-04-24 20:58:29] [DEBUG] ALLOCATOR: Creating temp directory: /tmp/wazuh-qa/AWS-ED9792A7-DDC0-4FF5-B432-F1CF41BEB44F [2024-04-24 20:58:47] [DEBUG] ALLOCATOR: Renaming temp /tmp/wazuh-qa/AWS-ED9792A7-DDC0-4FF5-B432-F1CF41BEB44F directory to /tmp/wazuh-qa/i-06ec5773affd61f77 [2024-04-24 20:58:47] [INFO] ALLOCATOR: Instance i-06ec5773affd61f77 created. [2024-04-24 20:58:49] [INFO] ALLOCATOR: Instance i-06ec5773affd61f77 started. [2024-04-24 20:58:49] [INFO] ALLOCATOR: Inventory file generated at /tmp/dtt1-poc/agent-windows-server-2019-amd64/inventory.yaml [2024-04-24 20:59:19] [WARNING] ALLOCATOR: Error on attempt 1 of 30: HTTPSConnectionPool(host='ec2-54-145-162-93.compute-1.amazonaws.com', port=5986): Max retries exceeded with url: /wsman (Caused by ConnectTimeoutError(, 'Connection to ec2-54-145-162-93.compute-1.amazonaws.com timed out. (connect timeout=30)')) [2024-04-24 21:00:19] [WARNING] ALLOCATOR: Error on attempt 2 of 30: HTTPSConnectionPool(host='ec2-54-145-162-93.compute-1.amazonaws.com', port=5986): Max retries exceeded with url: /wsman (Caused by ConnectTimeoutError(, 'Connection to ec2-54-145-162-93.compute-1.amazonaws.com timed out. (connect timeout=30)')) [2024-04-24 21:01:19] [WARNING] ALLOCATOR: Error on attempt 3 of 30: HTTPSConnectionPool(host='ec2-54-145-162-93.compute-1.amazonaws.com', port=5986): Max retries exceeded with url: /wsman (Caused by ConnectTimeoutError(, 'Connection to ec2-54-145-162-93.compute-1.amazonaws.com timed out. (connect timeout=30)')) [2024-04-24 21:01:57] [INFO] ALLOCATOR: WinRM connection successful. [2024-04-24 21:01:57] [INFO] ALLOCATOR: Track file generated at /tmp/dtt1-poc/agent-windows-server-2019-amd64/track.yaml  [2024-04-24 21:01:57] [INFO] [356149] [ThreadPoolExecutor-0_1] [workflow_engine]: [allocate-agent-windows-server-2019-amd64] Finished task in 208.47 seconds. [2024-04-24 21:01:57] [INFO] [356149] [ThreadPoolExecutor-0_1] [workflow_engine]: [run-agent-windows-server-2019-amd64-tests] Starting task. [2024-04-24 21:01:57] [DEBUG] [356149] [ThreadPoolExecutor-0_1] [workflow_engine]: Running task "run-agent-windows-server-2019-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-2019-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 21:04:01] [DEBUG] [356149] [ThreadPoolExecutor-0_0] [workflow_engine]: Finished task "provision-manager-linux-ubuntu-22.04-amd64" execution with result: [2024-04-24 20:59:23] [DEBUG] SPNEGO._GSS: Python gssapi not available, cannot use any GSSAPIProxy protocols: No module named 'gssapi' [2024-04-24 20:59:23] [DEBUG] SPNEGO._GSS: Python gssapi IOV extension not available: No module named 'gssapi' [2024-04-24 20:59:23] [DEBUG] PROVISIONER: Setting dependencies: {} for wazuh-manager component. [2024-04-24 20:59:23] [INFO] PROVISIONER: Initiating provisionment. [2024-04-24 20:59:23] [DEBUG] PROVISIONER: Running action install for components: [ComponentInfo(component='wazuh-manager', type='assistant', version='4.7.3', dependencies=None, live=True)] [2024-04-24 20:59:23] [INFO] PROVISIONER: Provisioning "wazuh-manager"... [2024-04-24 20:59:23] [DEBUG] PROVISIONER: Get OS family for ec2-44-202-168-180.compute-1.amazonaws.com. [2024-04-24 20:59:23] [DEBUG] PROVISIONER: Using inventory: {'all': {'hosts': {'ec2-44-202-168-180.compute-1.amazonaws.com': {'ansible_port': 2200, 'ansible_user': 'ubuntu', 'ansible_ssh_private_key_file': '/tmp/wazuh-qa/i-0af61f8e92c4b987c/ubuntu-22.04-amd64-key-1979'}}}} [2024-04-24 20:59:23] [DEBUG] PROVISIONER: Running playbook: {'hosts': 'ec2-44-202-168-180.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-44-202-168-180.compute-1.amazonaws.com] ****************************** TASK [Gathering Facts] ********************************************************* ok: [ec2-44-202-168-180.compute-1.amazonaws.com] TASK [Capture ansible_os_family] *********************************************** ok: [ec2-44-202-168-180.compute-1.amazonaws.com] => changed=false   ansible_facts:  ansible_os_family: Debian PLAY RECAP ********************************************************************* ec2-44-202-168-180.compute-1.amazonaws.com : ok=2  changed=0 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 [2024-04-24 20:59:33] [DEBUG] PROVISIONER: Playbook {'hosts': 'ec2-44-202-168-180.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-44-202-168-180.compute-1.amazonaws.com': 2}, 'dark': {}, 'failures': {}, 'ignored': {}, 'rescued': {}, 'processed': {'ec2-44-202-168-180.compute-1.amazonaws.com': 1}, 'changed': {}} [2024-04-24 20:59:33] [DEBUG] PROVISIONER: OS family: Debian. [2024-04-24 20:59:33] [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 20:59:33] [DEBUG] PROVISIONER: Templates found: ['download.j2', 'install.j2'] [2024-04-24 20:59:33] [DEBUG] PROVISIONER: Rendering template download.j2 [2024-04-24 20:59:33] [DEBUG] PROVISIONER: Rendering template install.j2 [2024-04-24 20:59:33] [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 20:59:33] [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 20:59:33] [INFO] PROVISIONER: Execute install for wazuh-manager. [2024-04-24 20:59:33] [DEBUG] PROVISIONER: Using inventory: {'all': {'hosts': {'ec2-44-202-168-180.compute-1.amazonaws.com': {'ansible_port': 2200, 'ansible_user': 'ubuntu', 'ansible_ssh_private_key_file': '/tmp/wazuh-qa/i-0af61f8e92c4b987c/ubuntu-22.04-amd64-key-1979'}}}} [2024-04-24 20:59:33] [DEBUG] PROVISIONER: Running playbook: {'hosts': 'ec2-44-202-168-180.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-44-202-168-180.compute-1.amazonaws.com] ****************************** TASK [Gathering Facts] ********************************************************* ok: [ec2-44-202-168-180.compute-1.amazonaws.com] TASK [Install the required packages] ******************************************* changed: [ec2-44-202-168-180.compute-1.amazonaws.com] => changed=true   cmd: |2-    sudo apt-get update && apt-get -y install curl  delta: '0:00:14.293201'  end: '2024-04-24 23:59:57.603539'  msg: ''  rc: 0  start: '2024-04-24 23:59:43.310338'  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://security.ubuntu.com/ubuntu jammy-security InRelease [110 kB]  Get:5 http://us-east-1.ec2.archive.ubuntu.com/ubuntu jammy/universe amd64 Packages [14.1 MB]  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://security.ubuntu.com/ubuntu jammy-security/main amd64 Packages [1394 kB]  Get:13 http://us-east-1.ec2.archive.ubuntu.com/ubuntu jammy-updates/main Translation-en [303 kB]  Get:14 http://us-east-1.ec2.archive.ubuntu.com/ubuntu jammy-updates/main amd64 c-n-f Metadata [16.1 kB]  Get:15 http://us-east-1.ec2.archive.ubuntu.com/ubuntu jammy-updates/restricted amd64 Packages [1830 kB]  Get:16 http://us-east-1.ec2.archive.ubuntu.com/ubuntu jammy-updates/restricted Translation-en [311 kB]  Get:17 http://us-east-1.ec2.archive.ubuntu.com/ubuntu jammy-updates/restricted amd64 c-n-f Metadata [520 B]  Get:18 http://us-east-1.ec2.archive.ubuntu.com/ubuntu jammy-updates/universe amd64 Packages [1070 kB]  Get:19 http://us-east-1.ec2.archive.ubuntu.com/ubuntu jammy-updates/universe Translation-en [244 kB]  Get:20 http://us-east-1.ec2.archive.ubuntu.com/ubuntu jammy-updates/universe amd64 c-n-f Metadata [22.1 kB]  Get:21 http://us-east-1.ec2.archive.ubuntu.com/ubuntu jammy-updates/multiverse amd64 Packages [42.7 kB]  Get:22 http://us-east-1.ec2.archive.ubuntu.com/ubuntu jammy-updates/multiverse Translation-en [10.4 kB]  Get:23 http://us-east-1.ec2.archive.ubuntu.com/ubuntu jammy-updates/multiverse amd64 c-n-f Metadata [472 B]  Get:24 http://us-east-1.ec2.archive.ubuntu.com/ubuntu jammy-backports/main amd64 Packages [90.8 kB]  Get:25 http://us-east-1.ec2.archive.ubuntu.com/ubuntu jammy-backports/main Translation-en [11.0 kB]  Get:26 http://us-east-1.ec2.archive.ubuntu.com/ubuntu jammy-backports/main amd64 c-n-f Metadata [388 B]  Get:27 http://us-east-1.ec2.archive.ubuntu.com/ubuntu jammy-backports/restricted amd64 c-n-f Metadata [116 B]  Get:28 http://us-east-1.ec2.archive.ubuntu.com/ubuntu jammy-backports/universe amd64 Packages [29.8 kB]  Get:29 http://us-east-1.ec2.archive.ubuntu.com/ubuntu jammy-backports/universe Translation-en [16.2 kB]  Get:30 http://us-east-1.ec2.archive.ubuntu.com/ubuntu jammy-backports/universe amd64 c-n-f Metadata [644 B]  Get:31 http://us-east-1.ec2.archive.ubuntu.com/ubuntu jammy-backports/multiverse amd64 c-n-f Metadata [116 B]  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 (10.1 MB/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 (19.8 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-44-202-168-180.compute-1.amazonaws.com] => changed=true   cmd: curl -sO https://packages.wazuh.com/4.7/wazuh-install.sh  delta: '0:00:00.081513'  end: '2024-04-25 00:00:01.920937'  msg: ''  rc: 0  start: '2024-04-25 00:00:01.839424'  stderr: ''  stderr_lines:   stdout: ''  stdout_lines:  TASK [Install wazuh-manager with assistant] ************************************ changed: [ec2-44-202-168-180.compute-1.amazonaws.com] => changed=true   cmd: bash ./wazuh-install.sh -a -i  delta: '0:03:55.326318'  end: '2024-04-25 00:04:01.103482'  msg: ''  rc: 0  start: '2024-04-25 00:00:05.777164'  stderr: ''  stderr_lines:   stdout: |-  25/04/2024 00:00:05 INFO: Starting Wazuh installation assistant. Wazuh version: 4.7.3  25/04/2024 00:00:05 INFO: Verbose logging redirected to /var/log/wazuh-install.log  25/04/2024 00:00:14 WARNING: Hardware and system checks ignored.  25/04/2024 00:00:14 INFO: Wazuh web interface port will be 443.  25/04/2024 00:00:17 INFO: --- Dependencies ----  25/04/2024 00:00:17 INFO: Installing apt-transport-https.  25/04/2024 00:00:22 INFO: Wazuh repository added.  25/04/2024 00:00:22 INFO: --- Configuration files ---  25/04/2024 00:00:22 INFO: Generating configuration files.  25/04/2024 00:00:24 INFO: Created wazuh-install-files.tar. It contains the Wazuh cluster key, certificates, and passwords necessary for installation.  25/04/2024 00:00:24 INFO: --- Wazuh indexer ---  25/04/2024 00:00:24 INFO: Starting Wazuh indexer installation.  25/04/2024 00:01:29 INFO: Wazuh indexer installation finished.  25/04/2024 00:01:29 INFO: Wazuh indexer post-install configuration finished.  25/04/2024 00:01:29 INFO: Starting service wazuh-indexer.  25/04/2024 00:01:39 INFO: wazuh-indexer service started.  25/04/2024 00:01:39 INFO: Initializing Wazuh indexer cluster security settings.  25/04/2024 00:01:50 INFO: Wazuh indexer cluster initialized.  25/04/2024 00:01:50 INFO: --- Wazuh server ---  25/04/2024 00:01:50 INFO: Starting the Wazuh manager installation.  25/04/2024 00:02:30 INFO: Wazuh manager installation finished.  25/04/2024 00:02:30 INFO: Starting service wazuh-manager.  25/04/2024 00:02:46 INFO: wazuh-manager service started.  25/04/2024 00:02:46 INFO: Starting Filebeat installation.  25/04/2024 00:02:52 INFO: Filebeat installation finished.  25/04/2024 00:02:53 INFO: Filebeat post-install configuration finished.  25/04/2024 00:02:53 INFO: Starting service filebeat.  25/04/2024 00:02:54 INFO: filebeat service started.  25/04/2024 00:02:54 INFO: --- Wazuh dashboard ---  25/04/2024 00:02:54 INFO: Starting Wazuh dashboard installation.  25/04/2024 00:03:40 INFO: Wazuh dashboard installation finished.  25/04/2024 00:03:40 INFO: Wazuh dashboard post-install configuration finished.  25/04/2024 00:03:40 INFO: Starting service wazuh-dashboard.  25/04/2024 00:03:40 INFO: wazuh-dashboard service started.  25/04/2024 00:04:00 INFO: Initializing Wazuh dashboard web application.  25/04/2024 00:04:01 INFO: Wazuh dashboard web application initialized.  25/04/2024 00:04:01 INFO: --- Summary ---  25/04/2024 00:04:01 INFO: You can access the web interface https://:443  User: admin  Password: fpX*Tzp.FmwAK7D5uO0awsgSGBvd162R  25/04/2024 00:04:01 INFO: Installation finished.  stdout_lines:  PLAY RECAP ********************************************************************* ec2-44-202-168-180.compute-1.amazonaws.com : ok=4  changed=3  unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 [2024-04-24 21:04:01] [DEBUG] PROVISIONER: Playbook {'hosts': 'ec2-44-202-168-180.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-44-202-168-180.compute-1.amazonaws.com': 4}, 'dark': {}, 'failures': {}, 'ignored': {}, 'rescued': {}, 'processed': {'ec2-44-202-168-180.compute-1.amazonaws.com': 1}, 'changed': {'ec2-44-202-168-180.compute-1.amazonaws.com': 3}} [2024-04-24 21:04:01] [INFO] PROVISIONER: Provision of "wazuh-manager" complete successfully. [2024-04-24 21:04:01] [INFO] PROVISIONER: All components provisioned successfully. [2024-04-24 21:04:01] [DEBUG] PROVISIONER: Provision summary: {'skipped': {}, 'ok': {'ec2-44-202-168-180.compute-1.amazonaws.com': 4}, 'dark': {}, 'failures': {}, 'ignored': {}, 'rescued': {}, 'processed': {'ec2-44-202-168-180.compute-1.amazonaws.com': 1}, 'changed': {'ec2-44-202-168-180.compute-1.amazonaws.com': 3}}  [2024-04-24 21:04:01] [INFO] [356149] [ThreadPoolExecutor-0_0] [workflow_engine]: [provision-manager-linux-ubuntu-22.04-amd64] Finished task in 278.61 seconds. [2024-04-24 21:16:38] [DEBUG] [356149] [ThreadPoolExecutor-0_1] [workflow_engine]: Finished task "run-agent-windows-server-2019-amd64-tests" execution with result: [2024-04-24 21:01:58] [DEBUG] SPNEGO._GSS: Python gssapi not available, cannot use any GSSAPIProxy protocols: No module named 'gssapi' [2024-04-24 21:01:58] [DEBUG] SPNEGO._GSS: Python gssapi IOV extension not available: No module named 'gssapi' [2024-04-24 21:01:58] [INFO] TESTER: Running tests for ec2-44-202-168-180.compute-1.amazonaws.com [2024-04-24 21:01:58] [INFO] TESTER: Running tests for ec2-54-145-162-93.compute-1.amazonaws.com [2024-04-24 21:01:58] [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-44-202-168-180.compute-1.amazonaws.com', 'ec2-54-145-162-93.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-2019-amd64/inventory.yaml}', 'dependencies': '{}', 'local_host_path': '/home/fcaffieri/wazuh-env/wazuh-qa/deployability', 'current_user': 'fcaffieri'} [2024-04-24 21:01:58] [DEBUG] TESTER: Rendering template /home/fcaffieri/wazuh-env/wazuh-qa/deployability/modules/testing/playbooks/setup.yml [2024-04-24 21:01:58] [DEBUG] TESTER: Using inventory: {'all': {'hosts': {'ec2-44-202-168-180.compute-1.amazonaws.com': {'ansible_port': 2200, 'ansible_user': 'ubuntu', 'ansible_ssh_private_key_file': '/tmp/wazuh-qa/i-0af61f8e92c4b987c/ubuntu-22.04-amd64-key-1979'}}}} [2024-04-24 21:01:58] [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-44-202-168-180.compute-1.amazonaws.com', 'ec2-54-145-162-93.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-44-202-168-180.compute-1.amazonaws.com) => changed=true   ansible_loop_var: item  cmd:  - ssh-keygen  - -f  - /home/fcaffieri/.ssh/known_hosts  - -R  - ''  delta: '0:00:00.004178'  end: '2024-04-24 21:02:00.241376'  item: ec2-44-202-168-180.compute-1.amazonaws.com  msg: ''  rc: 0  start: '2024-04-24 21:02:00.237198'  stderr: Host not found in /home/fcaffieri/.ssh/known_hosts  stderr_lines:   stdout: ''  stdout_lines:  changed: [localhost] => (item=ec2-54-145-162-93.compute-1.amazonaws.com) => changed=true   ansible_loop_var: item  cmd:  - ssh-keygen  - -f  - /home/fcaffieri/.ssh/known_hosts  - -R  - ''  delta: '0:00:00.004612'  end: '2024-04-24 21:02:00.398555'  item: ec2-54-145-162-93.compute-1.amazonaws.com  msg: ''  rc: 0  start: '2024-04-24 21:02:00.393943'  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 21:02:00] [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-44-202-168-180.compute-1.amazonaws.com', 'ec2-54-145-162-93.compute-1.amazonaws.com']}]}] finished with status {'skipped': {}, 'ok': {'localhost': 2}, 'dark': {}, 'failures': {}, 'ignored': {}, 'rescued': {}, 'processed': {'localhost': 1}, 'changed': {'localhost': 1}} [2024-04-24 21:02:00] [DEBUG] TESTER: Rendering template /home/fcaffieri/wazuh-env/wazuh-qa/deployability/modules/testing/playbooks/test.yml [2024-04-24 21:02:00] [DEBUG] TESTER: Using inventory: {'all': {'hosts': {'ec2-44-202-168-180.compute-1.amazonaws.com': {'ansible_port': 2200, 'ansible_user': 'ubuntu', 'ansible_ssh_private_key_file': '/tmp/wazuh-qa/i-0af61f8e92c4b987c/ubuntu-22.04-amd64-key-1979'}}}} [2024-04-24 21:02:00] [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-2019-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-2019-amd64/inventory.yaml}'  - --live=True  - -s  delta: '0:04:57.433605'  end: '2024-04-24 21:07:00.120179'  msg: ''  rc: 0  start: '2024-04-24 21:02:02.686574'  stderr: |-  Warning: Permanently added '[ec2-44-202-168-180.compute-1.amazonaws.com]:2200,[44.202.168.180]:2200' (ECDSA) to the list of known hosts.  Warning: Permanently added '[ec2-44-202-168-180.compute-1.amazonaws.com]:2200,[44.202.168.180]:2200' (ECDSA) to the list of known hosts.  stderr_lines:   stdout: |-  [37m[2024-04-24 21:02:03] [DEBUG] SPNEGO._GSS: Python gssapi not available, cannot use any GSSAPIProxy protocols: No module named 'gssapi'[0m  [37m[2024-04-24 21:02:03] [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 21:02:03] [INFO] TESTER: Checking connection to server-2019[0m  [32m[2024-04-24 21:02:05] [INFO] TESTER: WinRM connection successful.[0m  [32m[2024-04-24 21:02:10] [INFO] TESTER: Checking connection to ubuntu-22.04[0m  [32m[2024-04-24 21:02:12] [INFO] TESTER: Connection established successfully in ubuntu-22.04[0m  [32m[2024-04-24 21:02:22] [INFO] TESTER: Manager is already installed in ubuntu-22.04[0m  [32m[2024-04-24 21:02:25] [INFO] TESTER: Generating Snapshot for Checkfile in server-2019[0m  [32m[2024-04-24 21:05:50] [INFO] TESTER: Installing Agent in server-2019[0m  [32m[2024-04-24 21:06:21] [INFO] TESTER: Generating Snapshot for Checkfile in server-2019[0m  [32m[2024-04-24 21:06:50] [INFO] TESTER: Applying filters in checkfiles in server-2019[0m  [32m[2024-04-24 21:06:50] [INFO] TESTER: Pre and post install checkfile comparison in server-2019: {'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 21:06:55] [INFO] TESTER: Getting status of server-2019[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 296.70s (0:04:56) ==================  stdout_lines:  PLAY RECAP ********************************************************************* localhost : ok=2  changed=1  unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 [2024-04-24 21:07:00] [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-2019-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 21:07:00] [DEBUG] TESTER: Rendering template /home/fcaffieri/wazuh-env/wazuh-qa/deployability/modules/testing/playbooks/test.yml [2024-04-24 21:07:00] [DEBUG] TESTER: Using inventory: {'all': {'hosts': {'ec2-44-202-168-180.compute-1.amazonaws.com': {'ansible_port': 2200, 'ansible_user': 'ubuntu', 'ansible_ssh_private_key_file': '/tmp/wazuh-qa/i-0af61f8e92c4b987c/ubuntu-22.04-amd64-key-1979'}}}} [2024-04-24 21:07:00] [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-2019-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-2019-amd64/inventory.yaml}'  - --live=True  - -s  delta: '0:01:46.273412'  end: '2024-04-24 21:08:48.648260'  msg: ''  rc: 0  start: '2024-04-24 21:07:02.374848'  stderr: |-  Warning: Permanently added '[ec2-44-202-168-180.compute-1.amazonaws.com]:2200,[44.202.168.180]:2200' (ECDSA) to the list of known hosts.  Warning: Permanently added '[ec2-44-202-168-180.compute-1.amazonaws.com]:2200,[44.202.168.180]:2200' (ECDSA) to the list of known hosts.  Warning: Permanently added '[ec2-44-202-168-180.compute-1.amazonaws.com]:2200,[44.202.168.180]:2200' (ECDSA) to the list of known hosts.  Warning: Permanently added '[ec2-44-202-168-180.compute-1.amazonaws.com]:2200,[44.202.168.180]:2200' (ECDSA) to the list of known hosts.  Warning: Permanently added '[ec2-44-202-168-180.compute-1.amazonaws.com]:2200,[44.202.168.180]:2200' (ECDSA) to the list of known hosts.  Warning: Permanently added '[ec2-44-202-168-180.compute-1.amazonaws.com]:2200,[44.202.168.180]:2200' (ECDSA) to the list of known hosts.  Warning: Permanently added '[ec2-44-202-168-180.compute-1.amazonaws.com]:2200,[44.202.168.180]:2200' (ECDSA) to the list of known hosts.  Warning: Permanently added '[ec2-44-202-168-180.compute-1.amazonaws.com]:2200,[44.202.168.180]:2200' (ECDSA) to the list of known hosts.  stderr_lines:   stdout: |-  [37m[2024-04-24 21:07:02] [DEBUG] SPNEGO._GSS: Python gssapi not available, cannot use any GSSAPIProxy protocols: No module named 'gssapi'[0m  [37m[2024-04-24 21:07:02] [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 21:07:03] [INFO] TESTER: Checking connection to server-2019[0m  [32m[2024-04-24 21:07:05] [INFO] TESTER: WinRM connection successful.[0m  [32m[2024-04-24 21:07:20] [INFO] TESTER: os_type windows[0m  [32m[2024-04-24 21:07:35] [INFO] TESTER: Getting status of server-2019[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 105.49s (0:01:45) ==================  stdout_lines:  PLAY RECAP ********************************************************************* localhost : ok=2  changed=1  unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 [2024-04-24 21:08:48] [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-2019-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 21:08:48] [DEBUG] TESTER: Rendering template /home/fcaffieri/wazuh-env/wazuh-qa/deployability/modules/testing/playbooks/test.yml [2024-04-24 21:08:48] [DEBUG] TESTER: Using inventory: {'all': {'hosts': {'ec2-44-202-168-180.compute-1.amazonaws.com': {'ansible_port': 2200, 'ansible_user': 'ubuntu', 'ansible_ssh_private_key_file': '/tmp/wazuh-qa/i-0af61f8e92c4b987c/ubuntu-22.04-amd64-key-1979'}}}} [2024-04-24 21:08:48] [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-2019-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-2019-amd64/inventory.yaml}'  - --live=True  - -s  delta: '0:01:16.776090'  end: '2024-04-24 21:10:07.700987'  msg: ''  rc: 0  start: '2024-04-24 21:08:50.924897'  stderr: |-  Warning: Permanently added '[ec2-44-202-168-180.compute-1.amazonaws.com]:2200,[44.202.168.180]:2200' (ECDSA) to the list of known hosts.  Warning: Permanently added '[ec2-44-202-168-180.compute-1.amazonaws.com]:2200,[44.202.168.180]:2200' (ECDSA) to the list of known hosts.  Warning: Permanently added '[ec2-44-202-168-180.compute-1.amazonaws.com]:2200,[44.202.168.180]:2200' (ECDSA) to the list of known hosts.  Warning: Permanently added '[ec2-44-202-168-180.compute-1.amazonaws.com]:2200,[44.202.168.180]:2200' (ECDSA) to the list of known hosts.  Warning: Permanently added '[ec2-44-202-168-180.compute-1.amazonaws.com]:2200,[44.202.168.180]:2200' (ECDSA) to the list of known hosts.  Warning: Permanently added '[ec2-44-202-168-180.compute-1.amazonaws.com]:2200,[44.202.168.180]:2200' (ECDSA) to the list of known hosts.  Warning: Permanently added '[ec2-44-202-168-180.compute-1.amazonaws.com]:2200,[44.202.168.180]:2200' (ECDSA) to the list of known hosts.  stderr_lines:   stdout: |-  [37m[2024-04-24 21:08:51] [DEBUG] SPNEGO._GSS: Python gssapi not available, cannot use any GSSAPIProxy protocols: No module named 'gssapi'[0m  [37m[2024-04-24 21:08:51] [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 21:08:51] [INFO] TESTER: Checking connection to server-2019[0m  [32m[2024-04-24 21:08:54] [INFO] TESTER: WinRM connection successful.[0m  PASSED  modules/testing/tests/test_agent/test_connection.py::test_status [32m[2024-04-24 21:09:30] [INFO] TESTER: Getting status of server-2019[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 76.05s (0:01:16) ===================  stdout_lines:  PLAY RECAP ********************************************************************* localhost : ok=2  changed=1  unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 [2024-04-24 21:10:07] [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-2019-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 21:10:07] [DEBUG] TESTER: Rendering template /home/fcaffieri/wazuh-env/wazuh-qa/deployability/modules/testing/playbooks/test.yml [2024-04-24 21:10:07] [DEBUG] TESTER: Using inventory: {'all': {'hosts': {'ec2-44-202-168-180.compute-1.amazonaws.com': {'ansible_port': 2200, 'ansible_user': 'ubuntu', 'ansible_ssh_private_key_file': '/tmp/wazuh-qa/i-0af61f8e92c4b987c/ubuntu-22.04-amd64-key-1979'}}}} [2024-04-24 21:10:07] [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-2019-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-2019-amd64/inventory.yaml}'  - --live=True  - -s  delta: '0:00:43.889075'  end: '2024-04-24 21:10:53.842370'  msg: ''  rc: 0  start: '2024-04-24 21:10:09.953295'  stderr: |-  Warning: Permanently added '[ec2-44-202-168-180.compute-1.amazonaws.com]:2200,[44.202.168.180]:2200' (ECDSA) to the list of known hosts.  Warning: Permanently added '[ec2-44-202-168-180.compute-1.amazonaws.com]:2200,[44.202.168.180]:2200' (ECDSA) to the list of known hosts.  Warning: Permanently added '[ec2-44-202-168-180.compute-1.amazonaws.com]:2200,[44.202.168.180]:2200' (ECDSA) to the list of known hosts.  stderr_lines:   stdout: |-  [37m[2024-04-24 21:10:10] [DEBUG] SPNEGO._GSS: Python gssapi not available, cannot use any GSSAPIProxy protocols: No module named 'gssapi'[0m  [37m[2024-04-24 21:10:10] [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 21:10:10] [INFO] TESTER: Checking connection to server-2019[0m  [32m[2024-04-24 21:10:13] [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 43.15s ========================  stdout_lines:  PLAY RECAP ********************************************************************* localhost : ok=2  changed=1  unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 [2024-04-24 21:10:54] [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-2019-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 21:10:54] [DEBUG] TESTER: Rendering template /home/fcaffieri/wazuh-env/wazuh-qa/deployability/modules/testing/playbooks/test.yml [2024-04-24 21:10:54] [DEBUG] TESTER: Using inventory: {'all': {'hosts': {'ec2-44-202-168-180.compute-1.amazonaws.com': {'ansible_port': 2200, 'ansible_user': 'ubuntu', 'ansible_ssh_private_key_file': '/tmp/wazuh-qa/i-0af61f8e92c4b987c/ubuntu-22.04-amd64-key-1979'}}}} [2024-04-24 21:10:54] [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-2019-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-2019-amd64/inventory.yaml}'  - --live=True  - -s  delta: '0:00:56.073299'  end: '2024-04-24 21:11:52.160053'  msg: ''  rc: 0  start: '2024-04-24 21:10:56.086754'  stderr: 'Warning: Permanently added ''[ec2-44-202-168-180.compute-1.amazonaws.com]:2200,[44.202.168.180]:2200'' (ECDSA) to the list of known hosts.'  stderr_lines:   stdout: |-  [37m[2024-04-24 21:10:56] [DEBUG] SPNEGO._GSS: Python gssapi not available, cannot use any GSSAPIProxy protocols: No module named 'gssapi'[0m  [37m[2024-04-24 21:10:56] [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 21:10:56] [INFO] TESTER: Checking connection to server-2019[0m  [32m[2024-04-24 21:10:59] [INFO] TESTER: WinRM connection successful.[0m  [32m[2024-04-24 21:11:12] [INFO] TESTER: Restarting wazuh-agent in server-2019[0m  PASSED  modules/testing/tests/test_agent/test_restart.py::test_status [32m[2024-04-24 21:11:23] [INFO] TESTER: Getting status of server-2019[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 55.36s ========================  stdout_lines:  PLAY RECAP ********************************************************************* localhost : ok=2  changed=1  unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 [2024-04-24 21:11:52] [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-2019-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 21:11:52] [DEBUG] TESTER: Rendering template /home/fcaffieri/wazuh-env/wazuh-qa/deployability/modules/testing/playbooks/test.yml [2024-04-24 21:11:52] [DEBUG] TESTER: Using inventory: {'all': {'hosts': {'ec2-44-202-168-180.compute-1.amazonaws.com': {'ansible_port': 2200, 'ansible_user': 'ubuntu', 'ansible_ssh_private_key_file': '/tmp/wazuh-qa/i-0af61f8e92c4b987c/ubuntu-22.04-amd64-key-1979'}}}} [2024-04-24 21:11:52] [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-2019-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-2019-amd64/inventory.yaml}'  - --live=True  - -s  delta: '0:00:57.872594'  end: '2024-04-24 21:12:52.320185'  msg: ''  rc: 0  start: '2024-04-24 21:11:54.447591'  stderr: |-  Warning: Permanently added '[ec2-44-202-168-180.compute-1.amazonaws.com]:2200,[44.202.168.180]:2200' (ECDSA) to the list of known hosts.  Warning: Permanently added '[ec2-44-202-168-180.compute-1.amazonaws.com]:2200,[44.202.168.180]:2200' (ECDSA) to the list of known hosts.  Warning: Permanently added '[ec2-44-202-168-180.compute-1.amazonaws.com]:2200,[44.202.168.180]:2200' (ECDSA) to the list of known hosts.  stderr_lines:   stdout: |-  [37m[2024-04-24 21:11:54] [DEBUG] SPNEGO._GSS: Python gssapi not available, cannot use any GSSAPIProxy protocols: No module named 'gssapi'[0m  [37m[2024-04-24 21:11:54] [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 21:11:55] [INFO] TESTER: Checking connection to server-2019[0m  [32m[2024-04-24 21:11:57] [INFO] TESTER: WinRM connection successful.[0m  [32m[2024-04-24 21:12:21] [INFO] TESTER: Stopping wazuh-agent in server-2019[0m  [32m[2024-04-24 21:12:26] [INFO] TESTER: Getting status of server-2019[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 21:12:42] [INFO] TESTER: Restarting wazuh-agent in server-2019[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 57.14s ========================  stdout_lines:  PLAY RECAP ********************************************************************* localhost : ok=2  changed=1  unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 [2024-04-24 21:12:52] [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-2019-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 21:12:52] [DEBUG] TESTER: Rendering template /home/fcaffieri/wazuh-env/wazuh-qa/deployability/modules/testing/playbooks/test.yml [2024-04-24 21:12:52] [DEBUG] TESTER: Using inventory: {'all': {'hosts': {'ec2-44-202-168-180.compute-1.amazonaws.com': {'ansible_port': 2200, 'ansible_user': 'ubuntu', 'ansible_ssh_private_key_file': '/tmp/wazuh-qa/i-0af61f8e92c4b987c/ubuntu-22.04-amd64-key-1979'}}}} [2024-04-24 21:12:52] [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-2019-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-2019-amd64/inventory.yaml}'  - --live=True  - -s  delta: '0:03:16.600347'  end: '2024-04-24 21:16:11.239900'  msg: ''  rc: 0  start: '2024-04-24 21:12:54.639553'  stderr: |-  Warning: Permanently added '[ec2-44-202-168-180.compute-1.amazonaws.com]:2200,[44.202.168.180]:2200' (ECDSA) to the list of known hosts.  Warning: Permanently added '[ec2-44-202-168-180.compute-1.amazonaws.com]:2200,[44.202.168.180]:2200' (ECDSA) to the list of known hosts.  Warning: Permanently added '[ec2-44-202-168-180.compute-1.amazonaws.com]:2200,[44.202.168.180]:2200' (ECDSA) to the list of known hosts.  Warning: Permanently added '[ec2-44-202-168-180.compute-1.amazonaws.com]:2200,[44.202.168.180]:2200' (ECDSA) to the list of known hosts.  stderr_lines:   stdout: |-  [37m[2024-04-24 21:12:55] [DEBUG] SPNEGO._GSS: Python gssapi not available, cannot use any GSSAPIProxy protocols: No module named 'gssapi'[0m  [37m[2024-04-24 21:12:55] [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 21:12:55] [INFO] TESTER: Checking connection to server-2019[0m  [32m[2024-04-24 21:12:57] [INFO] TESTER: WinRM connection successful.[0m  [32m[2024-04-24 21:13:21] [INFO] TESTER: Generating Snapshot for Checkfile in server-2019[0m  [32m[2024-04-24 21:14:59] [INFO] TESTER: Uninstalling Agent in server-2019[0m  [32m[2024-04-24 21:15:08] [INFO] TESTER: Generating Snapshot for Checkfile in server-2019[0m  [32m[2024-04-24 21:15:36] [INFO] TESTER: Applying filters in checkfiles in server-2019[0m  [32m[2024-04-24 21:15:36] [INFO] TESTER: Pre and post uninstall checkfile comparison in server-2019: {'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 195.87s (0:03:15) ==================  stdout_lines:  PLAY RECAP ********************************************************************* localhost : ok=2  changed=1  unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 [2024-04-24 21:16:11] [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-2019-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 21:16:11] [INFO] TESTER: Cleaning up [2024-04-24 21:16:11] [DEBUG] TESTER: Using inventory: {'all': {'hosts': {'ec2-44-202-168-180.compute-1.amazonaws.com': {'ansible_port': 2200, 'ansible_user': 'ubuntu', 'ansible_ssh_private_key_file': '/tmp/wazuh-qa/i-0af61f8e92c4b987c/ubuntu-22.04-amd64-key-1979'}}}} [2024-04-24 21:16:11] [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-44-202-168-180.compute-1.amazonaws.com] TASK [Clean test directory] **************************************************** ok: [ec2-44-202-168-180.compute-1.amazonaws.com] => changed=false   path: /tmp/tests  state: absent PLAY RECAP ********************************************************************* ec2-44-202-168-180.compute-1.amazonaws.com : ok=2  changed=0 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 [2024-04-24 21:16:25] [DEBUG] TESTER: Playbook /home/fcaffieri/wazuh-env/wazuh-qa/deployability/modules/testing/playbooks/cleanup.yml finished with status {'skipped': {}, 'ok': {'ec2-44-202-168-180.compute-1.amazonaws.com': 2}, 'dark': {}, 'failures': {}, 'ignored': {}, 'rescued': {}, 'processed': {'ec2-44-202-168-180.compute-1.amazonaws.com': 1}, 'changed': {}} [2024-04-24 21:16:25] [INFO] TESTER: Cleaning up [2024-04-24 21:16:25] [DEBUG] TESTER: Using inventory: {'all': {'hosts': {'ec2-44-202-168-180.compute-1.amazonaws.com': {'ansible_port': 2200, 'ansible_user': 'ubuntu', 'ansible_ssh_private_key_file': '/tmp/wazuh-qa/i-0af61f8e92c4b987c/ubuntu-22.04-amd64-key-1979'}}}} [2024-04-24 21:16:25] [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-44-202-168-180.compute-1.amazonaws.com] TASK [Clean test directory] **************************************************** ok: [ec2-44-202-168-180.compute-1.amazonaws.com] => changed=false   path: /tmp/tests  state: absent PLAY RECAP ********************************************************************* ec2-44-202-168-180.compute-1.amazonaws.com : ok=2  changed=0 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 [2024-04-24 21:16:37] [DEBUG] TESTER: Playbook /home/fcaffieri/wazuh-env/wazuh-qa/deployability/modules/testing/playbooks/cleanup.yml finished with status {'skipped': {}, 'ok': {'ec2-44-202-168-180.compute-1.amazonaws.com': 2}, 'dark': {}, 'failures': {}, 'ignored': {}, 'rescued': {}, 'processed': {'ec2-44-202-168-180.compute-1.amazonaws.com': 1}, 'changed': {}}  [2024-04-24 21:16:38] [INFO] [356149] [ThreadPoolExecutor-0_1] [workflow_engine]: [run-agent-windows-server-2019-amd64-tests] Finished task in 880.38 seconds. [2024-04-24 21:16:38] [INFO] [356149] [MainThread] [workflow_engine]: Executing Reverse DAG tasks. [2024-04-24 21:16:38] [INFO] [356149] [MainThread] [workflow_engine]: Executing tasks in parallel. [2024-04-24 21:16:38] [INFO] [356149] [ThreadPoolExecutor-1_0] [workflow_engine]: [allocate-manager-linux-ubuntu-22.04-amd64] Starting task. [2024-04-24 21:16:38] [INFO] [356149] [ThreadPoolExecutor-1_1] [workflow_engine]: [allocate-agent-windows-server-2019-amd64] Starting task. [2024-04-24 21:16:38] [DEBUG] [356149] [ThreadPoolExecutor-1_0] [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 21:16:38] [DEBUG] [356149] [ThreadPoolExecutor-1_1] [workflow_engine]: Running task "allocate-agent-windows-server-2019-amd64" with arguments: ['modules/allocation/main.py', '--action=delete', '--track-output=/tmp/dtt1-poc/agent-windows-server-2019-amd64/track.yaml'] [2024-04-24 21:17:27] [DEBUG] [356149] [ThreadPoolExecutor-1_0] [workflow_engine]: Finished task "allocate-manager-linux-ubuntu-22.04-amd64" execution with result: [2024-04-24 21:16:38] [DEBUG] SPNEGO._GSS: Python gssapi not available, cannot use any GSSAPIProxy protocols: No module named 'gssapi' [2024-04-24 21:16:38] [DEBUG] SPNEGO._GSS: Python gssapi IOV extension not available: No module named 'gssapi' [2024-04-24 21:16:38] [INFO] ALLOCATOR: Deleting instance from trackfile /tmp/dtt1-poc/manager-linux-ubuntu-22.04-amd64/track.yaml [2024-04-24 21:16:39] [DEBUG] ALLOCATOR: Deleting credentials: ubuntu-22.04-amd64-key-1979 [2024-04-24 21:17:27] [INFO] ALLOCATOR: Instance i-0af61f8e92c4b987c deleted.  [2024-04-24 21:17:27] [INFO] [356149] [ThreadPoolExecutor-1_0] [workflow_engine]: [allocate-manager-linux-ubuntu-22.04-amd64] Finished task in 49.34 seconds. [2024-04-24 21:18:12] [DEBUG] [356149] [ThreadPoolExecutor-1_1] [workflow_engine]: Finished task "allocate-agent-windows-server-2019-amd64" execution with result: [2024-04-24 21:16:38] [DEBUG] SPNEGO._GSS: Python gssapi not available, cannot use any GSSAPIProxy protocols: No module named 'gssapi' [2024-04-24 21:16:38] [DEBUG] SPNEGO._GSS: Python gssapi IOV extension not available: No module named 'gssapi' [2024-04-24 21:16:38] [INFO] ALLOCATOR: Deleting instance from trackfile /tmp/dtt1-poc/agent-windows-server-2019-amd64/track.yaml [2024-04-24 21:18:12] [INFO] ALLOCATOR: Instance i-06ec5773affd61f77 deleted.  [2024-04-24 21:18:12] [INFO] [356149] [ThreadPoolExecutor-1_1] [workflow_engine]: [allocate-agent-windows-server-2019-amd64] Finished task in 94.24 seconds.