[2024-04-25 00:11:09] [DEBUG] [362189] [MainThread] [workflow_engine]: Validating input file: modules/workflow_engine/examples/agent/aws/test_windows/test-isolated/windows-2022/test-agent-windows-complete.yaml [2024-04-25 00:11:09] [DEBUG] [362189] [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-25 00:11:09] [DEBUG] [362189] [MainThread] [workflow_engine]: Loading yaml file: modules/workflow_engine/examples/agent/aws/test_windows/test-isolated/windows-2022/test-agent-windows-complete.yaml [2024-04-25 00:11:09] [DEBUG] [362189] [MainThread] [workflow_engine]: Loading workflow file: modules/workflow_engine/examples/agent/aws/test_windows/test-isolated/windows-2022/test-agent-windows-complete.yaml [2024-04-25 00:11:09] [DEBUG] [362189] [MainThread] [workflow_engine]: Process workflow. [2024-04-25 00:11:09] [INFO] [362189] [MainThread] [workflow_engine]: Executing DAG tasks. [2024-04-25 00:11:09] [INFO] [362189] [MainThread] [workflow_engine]: Executing tasks in parallel. [2024-04-25 00:11:09] [INFO] [362189] [ThreadPoolExecutor-0_0] [workflow_engine]: [allocate-manager-linux-ubuntu-22.04-amd64] Starting task. [2024-04-25 00:11:09] [INFO] [362189] [ThreadPoolExecutor-0_1] [workflow_engine]: [allocate-agent-windows-server-2022-amd64] Starting task. [2024-04-25 00:11:09] [DEBUG] [362189] [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-25 00:11:09] [DEBUG] [362189] [ThreadPoolExecutor-0_1] [workflow_engine]: Running task "allocate-agent-windows-server-2022-amd64" with arguments: ['modules/allocation/main.py', '--action=create', '--provider=aws', '--size=medium', '--composite-name=windows-server-2022-amd64', '--inventory-output=/tmp/dtt1-poc/agent-windows-server-2022-amd64/inventory.yaml', '--track-output=/tmp/dtt1-poc/agent-windows-server-2022-amd64/track.yaml', '--label-termination-date=1d', '--label-team=qa'] [2024-04-25 00:12:03] [DEBUG] [362189] [ThreadPoolExecutor-0_0] [workflow_engine]: Finished task "allocate-manager-linux-ubuntu-22.04-amd64" execution with result: [2024-04-25 00:11:09] [DEBUG] SPNEGO._GSS: Python gssapi not available, cannot use any GSSAPIProxy protocols: No module named 'gssapi' [2024-04-25 00:11:09] [DEBUG] SPNEGO._GSS: Python gssapi IOV extension not available: No module named 'gssapi' [2024-04-25 00:11:09] [INFO] ALLOCATOR: Creating instance at /tmp/wazuh-qa [2024-04-25 00:11:09] [DEBUG] ALLOCATOR: No config provided. Generating from payload [2024-04-25 00:11:09] [DEBUG] ALLOCATOR: Generating new key pair [2024-04-25 00:11:09] [DEBUG] ALLOCATOR: Creating base directory: /tmp/wazuh-qa/AWS-DFD6D7F5-0F40-4244-AD69-586AE49CB7DC [2024-04-25 00:11:29] [DEBUG] ALLOCATOR: Renaming temp /tmp/wazuh-qa/AWS-DFD6D7F5-0F40-4244-AD69-586AE49CB7DC directory to /tmp/wazuh-qa/i-07b27a3f14c7108dd [2024-04-25 00:11:29] [INFO] ALLOCATOR: Instance i-07b27a3f14c7108dd created. [2024-04-25 00:11:30] [INFO] ALLOCATOR: Instance i-07b27a3f14c7108dd started. [2024-04-25 00:11:31] [INFO] ALLOCATOR: Inventory file generated at /tmp/dtt1-poc/manager-linux-ubuntu-22.04-amd64/inventory.yaml [2024-04-25 00:11:31] [WARNING] ALLOCATOR: Error on attempt 1 of 30: [Errno None] Unable to connect to port 2200 on 3.83.49.158 [2024-04-25 00:12:03] [INFO] ALLOCATOR: SSH connection successful. [2024-04-25 00:12:03] [INFO] ALLOCATOR: Track file generated at /tmp/dtt1-poc/manager-linux-ubuntu-22.04-amd64/track.yaml  [2024-04-25 00:12:03] [INFO] [362189] [ThreadPoolExecutor-0_0] [workflow_engine]: [allocate-manager-linux-ubuntu-22.04-amd64] Finished task in 53.96 seconds. [2024-04-25 00:12:03] [INFO] [362189] [ThreadPoolExecutor-0_0] [workflow_engine]: [provision-manager-linux-ubuntu-22.04-amd64] Starting task. [2024-04-25 00:12:03] [DEBUG] [362189] [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-25 00:14:10] [DEBUG] [362189] [ThreadPoolExecutor-0_1] [workflow_engine]: Finished task "allocate-agent-windows-server-2022-amd64" execution with result: [2024-04-25 00:11:09] [DEBUG] SPNEGO._GSS: Python gssapi not available, cannot use any GSSAPIProxy protocols: No module named 'gssapi' [2024-04-25 00:11:09] [DEBUG] SPNEGO._GSS: Python gssapi IOV extension not available: No module named 'gssapi' [2024-04-25 00:11:09] [INFO] ALLOCATOR: Creating instance at /tmp/wazuh-qa [2024-04-25 00:11:09] [DEBUG] ALLOCATOR: No config provided. Generating from payload [2024-04-25 00:11:09] [DEBUG] ALLOCATOR: Creating temp directory: /tmp/wazuh-qa/AWS-3879C0ED-1F01-4251-B711-3391453682F5 [2024-04-25 00:11:27] [DEBUG] ALLOCATOR: Renaming temp /tmp/wazuh-qa/AWS-3879C0ED-1F01-4251-B711-3391453682F5 directory to /tmp/wazuh-qa/i-0da38bce267094d43 [2024-04-25 00:11:27] [INFO] ALLOCATOR: Instance i-0da38bce267094d43 created. [2024-04-25 00:11:29] [INFO] ALLOCATOR: Instance i-0da38bce267094d43 started. [2024-04-25 00:11:29] [INFO] ALLOCATOR: Inventory file generated at /tmp/dtt1-poc/agent-windows-server-2022-amd64/inventory.yaml [2024-04-25 00:11:59] [WARNING] ALLOCATOR: Error on attempt 1 of 30: HTTPSConnectionPool(host='ec2-44-212-31-184.compute-1.amazonaws.com', port=5986): Max retries exceeded with url: /wsman (Caused by ConnectTimeoutError(, 'Connection to ec2-44-212-31-184.compute-1.amazonaws.com timed out. (connect timeout=30)')) [2024-04-25 00:12:59] [WARNING] ALLOCATOR: Error on attempt 2 of 30: HTTPSConnectionPool(host='ec2-44-212-31-184.compute-1.amazonaws.com', port=5986): Max retries exceeded with url: /wsman (Caused by ConnectTimeoutError(, 'Connection to ec2-44-212-31-184.compute-1.amazonaws.com timed out. (connect timeout=30)')) [2024-04-25 00:13:31] [WARNING] ALLOCATOR: Error on attempt 3 of 30: the specified credentials were rejected by the server [2024-04-25 00:14:10] [INFO] ALLOCATOR: WinRM connection successful. [2024-04-25 00:14:10] [INFO] ALLOCATOR: Track file generated at /tmp/dtt1-poc/agent-windows-server-2022-amd64/track.yaml  [2024-04-25 00:14:10] [INFO] [362189] [ThreadPoolExecutor-0_1] [workflow_engine]: [allocate-agent-windows-server-2022-amd64] Finished task in 181.34 seconds. [2024-04-25 00:14:10] [INFO] [362189] [ThreadPoolExecutor-0_1] [workflow_engine]: [run-agent-windows-server-2022-amd64-tests] Starting task. [2024-04-25 00:14:10] [DEBUG] [362189] [ThreadPoolExecutor-0_1] [workflow_engine]: Running task "run-agent-windows-server-2022-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-2022-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-25 00:16:25] [DEBUG] [362189] [ThreadPoolExecutor-0_0] [workflow_engine]: Finished task "provision-manager-linux-ubuntu-22.04-amd64" execution with result: [2024-04-25 00:12:03] [DEBUG] SPNEGO._GSS: Python gssapi not available, cannot use any GSSAPIProxy protocols: No module named 'gssapi' [2024-04-25 00:12:03] [DEBUG] SPNEGO._GSS: Python gssapi IOV extension not available: No module named 'gssapi' [2024-04-25 00:12:03] [DEBUG] PROVISIONER: Setting dependencies: {} for wazuh-manager component. [2024-04-25 00:12:03] [INFO] PROVISIONER: Initiating provisionment. [2024-04-25 00:12:03] [DEBUG] PROVISIONER: Running action install for components: [ComponentInfo(component='wazuh-manager', type='assistant', version='4.7.3', dependencies=None, live=True)] [2024-04-25 00:12:03] [INFO] PROVISIONER: Provisioning "wazuh-manager"... [2024-04-25 00:12:03] [DEBUG] PROVISIONER: Get OS family for ec2-3-83-49-158.compute-1.amazonaws.com. [2024-04-25 00:12:03] [DEBUG] PROVISIONER: Using inventory: {'all': {'hosts': {'ec2-3-83-49-158.compute-1.amazonaws.com': {'ansible_port': 2200, 'ansible_user': 'ubuntu', 'ansible_ssh_private_key_file': '/tmp/wazuh-qa/i-07b27a3f14c7108dd/ubuntu-22.04-amd64-key-1370'}}}} [2024-04-25 00:12:03] [DEBUG] PROVISIONER: Running playbook: {'hosts': 'ec2-3-83-49-158.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-3-83-49-158.compute-1.amazonaws.com] ********************************* TASK [Gathering Facts] ********************************************************* ok: [ec2-3-83-49-158.compute-1.amazonaws.com] TASK [Capture ansible_os_family] *********************************************** ok: [ec2-3-83-49-158.compute-1.amazonaws.com] => changed=false   ansible_facts:  ansible_os_family: Debian PLAY RECAP ********************************************************************* ec2-3-83-49-158.compute-1.amazonaws.com : ok=2  changed=0 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 [2024-04-25 00:12:13] [DEBUG] PROVISIONER: Playbook {'hosts': 'ec2-3-83-49-158.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-3-83-49-158.compute-1.amazonaws.com': 2}, 'dark': {}, 'failures': {}, 'ignored': {}, 'rescued': {}, 'processed': {'ec2-3-83-49-158.compute-1.amazonaws.com': 1}, 'changed': {}} [2024-04-25 00:12:13] [DEBUG] PROVISIONER: OS family: Debian. [2024-04-25 00:12:13] [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-25 00:12:13] [DEBUG] PROVISIONER: Templates found: ['download.j2', 'install.j2'] [2024-04-25 00:12:13] [DEBUG] PROVISIONER: Rendering template download.j2 [2024-04-25 00:12:13] [DEBUG] PROVISIONER: Rendering template install.j2 [2024-04-25 00:12:13] [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-25 00:12:13] [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-25 00:12:13] [INFO] PROVISIONER: Execute install for wazuh-manager. [2024-04-25 00:12:13] [DEBUG] PROVISIONER: Using inventory: {'all': {'hosts': {'ec2-3-83-49-158.compute-1.amazonaws.com': {'ansible_port': 2200, 'ansible_user': 'ubuntu', 'ansible_ssh_private_key_file': '/tmp/wazuh-qa/i-07b27a3f14c7108dd/ubuntu-22.04-amd64-key-1370'}}}} [2024-04-25 00:12:13] [DEBUG] PROVISIONER: Running playbook: {'hosts': 'ec2-3-83-49-158.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-3-83-49-158.compute-1.amazonaws.com] ********************************* TASK [Gathering Facts] ********************************************************* ok: [ec2-3-83-49-158.compute-1.amazonaws.com] TASK [Install the required packages] ******************************************* changed: [ec2-3-83-49-158.compute-1.amazonaws.com] => changed=true   cmd: |2-    sudo apt-get update && apt-get -y install curl  delta: '0:00:14.243147'  end: '2024-04-25 03:12:38.694504'  msg: ''  rc: 0  start: '2024-04-25 03:12:24.451357'  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://security.ubuntu.com/ubuntu jammy-security/main amd64 Packages [1394 kB]  Get:8 http://us-east-1.ec2.archive.ubuntu.com/ubuntu jammy/universe amd64 c-n-f Metadata [286 kB]  Get:9 http://us-east-1.ec2.archive.ubuntu.com/ubuntu jammy/multiverse amd64 Packages [217 kB]  Get:10 http://us-east-1.ec2.archive.ubuntu.com/ubuntu jammy/multiverse Translation-en [112 kB]  Get:11 http://us-east-1.ec2.archive.ubuntu.com/ubuntu jammy/multiverse amd64 c-n-f Metadata [8372 B]  Get:12 http://us-east-1.ec2.archive.ubuntu.com/ubuntu jammy-updates/main amd64 Packages [1610 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://security.ubuntu.com/ubuntu jammy-security/main Translation-en [243 kB]  Get:30 http://security.ubuntu.com/ubuntu jammy-security/main amd64 c-n-f Metadata [11.4 kB]  Get:31 http://security.ubuntu.com/ubuntu jammy-security/restricted amd64 Packages [1773 kB]  Get:32 http://us-east-1.ec2.archive.ubuntu.com/ubuntu jammy-backports/universe Translation-en [16.2 kB]  Get:33 http://us-east-1.ec2.archive.ubuntu.com/ubuntu jammy-backports/universe amd64 c-n-f Metadata [644 B]  Get:34 http://us-east-1.ec2.archive.ubuntu.com/ubuntu jammy-backports/multiverse amd64 c-n-f Metadata [116 B]  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.2 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 (25.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-3-83-49-158.compute-1.amazonaws.com] => changed=true   cmd: curl -sO https://packages.wazuh.com/4.7/wazuh-install.sh  delta: '0:00:00.077406'  end: '2024-04-25 03:12:42.995496'  msg: ''  rc: 0  start: '2024-04-25 03:12:42.918090'  stderr: ''  stderr_lines:   stdout: ''  stdout_lines:  TASK [Install wazuh-manager with assistant] ************************************ changed: [ec2-3-83-49-158.compute-1.amazonaws.com] => changed=true   cmd: bash ./wazuh-install.sh -a -i  delta: '0:03:37.571466'  end: '2024-04-25 03:16:24.410206'  msg: ''  rc: 0  start: '2024-04-25 03:12:46.838740'  stderr: ''  stderr_lines:   stdout: |-  25/04/2024 03:12:46 INFO: Starting Wazuh installation assistant. Wazuh version: 4.7.3  25/04/2024 03:12:46 INFO: Verbose logging redirected to /var/log/wazuh-install.log  25/04/2024 03:12:51 WARNING: Hardware and system checks ignored.  25/04/2024 03:12:51 INFO: Wazuh web interface port will be 443.  25/04/2024 03:12:54 INFO: --- Dependencies ----  25/04/2024 03:12:54 INFO: Installing apt-transport-https.  25/04/2024 03:12:59 INFO: Wazuh repository added.  25/04/2024 03:12:59 INFO: --- Configuration files ---  25/04/2024 03:12:59 INFO: Generating configuration files.  25/04/2024 03:13:01 INFO: Created wazuh-install-files.tar. It contains the Wazuh cluster key, certificates, and passwords necessary for installation.  25/04/2024 03:13:01 INFO: --- Wazuh indexer ---  25/04/2024 03:13:01 INFO: Starting Wazuh indexer installation.  25/04/2024 03:13:56 INFO: Wazuh indexer installation finished.  25/04/2024 03:13:56 INFO: Wazuh indexer post-install configuration finished.  25/04/2024 03:13:56 INFO: Starting service wazuh-indexer.  25/04/2024 03:14:07 INFO: wazuh-indexer service started.  25/04/2024 03:14:07 INFO: Initializing Wazuh indexer cluster security settings.  25/04/2024 03:14:18 INFO: Wazuh indexer cluster initialized.  25/04/2024 03:14:18 INFO: --- Wazuh server ---  25/04/2024 03:14:18 INFO: Starting the Wazuh manager installation.  25/04/2024 03:14:56 INFO: Wazuh manager installation finished.  25/04/2024 03:14:56 INFO: Starting service wazuh-manager.  25/04/2024 03:15:12 INFO: wazuh-manager service started.  25/04/2024 03:15:12 INFO: Starting Filebeat installation.  25/04/2024 03:15:18 INFO: Filebeat installation finished.  25/04/2024 03:15:19 INFO: Filebeat post-install configuration finished.  25/04/2024 03:15:19 INFO: Starting service filebeat.  25/04/2024 03:15:20 INFO: filebeat service started.  25/04/2024 03:15:20 INFO: --- Wazuh dashboard ---  25/04/2024 03:15:20 INFO: Starting Wazuh dashboard installation.  25/04/2024 03:16:03 INFO: Wazuh dashboard installation finished.  25/04/2024 03:16:03 INFO: Wazuh dashboard post-install configuration finished.  25/04/2024 03:16:03 INFO: Starting service wazuh-dashboard.  25/04/2024 03:16:04 INFO: wazuh-dashboard service started.  25/04/2024 03:16:23 INFO: Initializing Wazuh dashboard web application.  25/04/2024 03:16:24 INFO: Wazuh dashboard web application initialized.  25/04/2024 03:16:24 INFO: --- Summary ---  25/04/2024 03:16:24 INFO: You can access the web interface https://:443  User: admin  Password: e.3p?RY2DH.d*EIKuaS2xRGa.e0i+?le  25/04/2024 03:16:24 INFO: Installation finished.  stdout_lines:  PLAY RECAP ********************************************************************* ec2-3-83-49-158.compute-1.amazonaws.com : ok=4  changed=3  unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 [2024-04-25 00:16:25] [DEBUG] PROVISIONER: Playbook {'hosts': 'ec2-3-83-49-158.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-3-83-49-158.compute-1.amazonaws.com': 4}, 'dark': {}, 'failures': {}, 'ignored': {}, 'rescued': {}, 'processed': {'ec2-3-83-49-158.compute-1.amazonaws.com': 1}, 'changed': {'ec2-3-83-49-158.compute-1.amazonaws.com': 3}} [2024-04-25 00:16:25] [INFO] PROVISIONER: Provision of "wazuh-manager" complete successfully. [2024-04-25 00:16:25] [INFO] PROVISIONER: All components provisioned successfully. [2024-04-25 00:16:25] [DEBUG] PROVISIONER: Provision summary: {'skipped': {}, 'ok': {'ec2-3-83-49-158.compute-1.amazonaws.com': 4}, 'dark': {}, 'failures': {}, 'ignored': {}, 'rescued': {}, 'processed': {'ec2-3-83-49-158.compute-1.amazonaws.com': 1}, 'changed': {'ec2-3-83-49-158.compute-1.amazonaws.com': 3}}  [2024-04-25 00:16:25] [INFO] [362189] [ThreadPoolExecutor-0_0] [workflow_engine]: [provision-manager-linux-ubuntu-22.04-amd64] Finished task in 261.98 seconds. [2024-04-25 00:33:09] [DEBUG] [362189] [ThreadPoolExecutor-0_1] [workflow_engine]: Finished task "run-agent-windows-server-2022-amd64-tests" execution with result: [2024-04-25 00:14:11] [DEBUG] SPNEGO._GSS: Python gssapi not available, cannot use any GSSAPIProxy protocols: No module named 'gssapi' [2024-04-25 00:14:11] [DEBUG] SPNEGO._GSS: Python gssapi IOV extension not available: No module named 'gssapi' [2024-04-25 00:14:11] [INFO] TESTER: Running tests for ec2-3-83-49-158.compute-1.amazonaws.com [2024-04-25 00:14:11] [INFO] TESTER: Running tests for ec2-44-212-31-184.compute-1.amazonaws.com [2024-04-25 00:14:11] [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-3-83-49-158.compute-1.amazonaws.com', 'ec2-44-212-31-184.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-2022-amd64/inventory.yaml}', 'dependencies': '{}', 'local_host_path': '/home/fcaffieri/wazuh-env/wazuh-qa/deployability', 'current_user': 'fcaffieri'} [2024-04-25 00:14:11] [DEBUG] TESTER: Rendering template /home/fcaffieri/wazuh-env/wazuh-qa/deployability/modules/testing/playbooks/setup.yml [2024-04-25 00:14:11] [DEBUG] TESTER: Using inventory: {'all': {'hosts': {'ec2-3-83-49-158.compute-1.amazonaws.com': {'ansible_port': 2200, 'ansible_user': 'ubuntu', 'ansible_ssh_private_key_file': '/tmp/wazuh-qa/i-07b27a3f14c7108dd/ubuntu-22.04-amd64-key-1370'}}}} [2024-04-25 00:14:11] [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-3-83-49-158.compute-1.amazonaws.com', 'ec2-44-212-31-184.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-3-83-49-158.compute-1.amazonaws.com) => changed=true   ansible_loop_var: item  cmd:  - ssh-keygen  - -f  - /home/fcaffieri/.ssh/known_hosts  - -R  - ''  delta: '0:00:00.004491'  end: '2024-04-25 00:14:13.679308'  item: ec2-3-83-49-158.compute-1.amazonaws.com  msg: ''  rc: 0  start: '2024-04-25 00:14:13.674817'  stderr: Host not found in /home/fcaffieri/.ssh/known_hosts  stderr_lines:   stdout: ''  stdout_lines:  changed: [localhost] => (item=ec2-44-212-31-184.compute-1.amazonaws.com) => changed=true   ansible_loop_var: item  cmd:  - ssh-keygen  - -f  - /home/fcaffieri/.ssh/known_hosts  - -R  - ''  delta: '0:00:00.004633'  end: '2024-04-25 00:14:13.848462'  item: ec2-44-212-31-184.compute-1.amazonaws.com  msg: ''  rc: 0  start: '2024-04-25 00:14:13.843829'  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-25 00:14:14] [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-3-83-49-158.compute-1.amazonaws.com', 'ec2-44-212-31-184.compute-1.amazonaws.com']}]}] finished with status {'skipped': {}, 'ok': {'localhost': 2}, 'dark': {}, 'failures': {}, 'ignored': {}, 'rescued': {}, 'processed': {'localhost': 1}, 'changed': {'localhost': 1}} [2024-04-25 00:14:14] [DEBUG] TESTER: Rendering template /home/fcaffieri/wazuh-env/wazuh-qa/deployability/modules/testing/playbooks/test.yml [2024-04-25 00:14:14] [DEBUG] TESTER: Using inventory: {'all': {'hosts': {'ec2-3-83-49-158.compute-1.amazonaws.com': {'ansible_port': 2200, 'ansible_user': 'ubuntu', 'ansible_ssh_private_key_file': '/tmp/wazuh-qa/i-07b27a3f14c7108dd/ubuntu-22.04-amd64-key-1370'}}}} [2024-04-25 00:14:14] [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-2022-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-2022-amd64/inventory.yaml}'  - --live=True  - -s  delta: '0:06:23.675007'  end: '2024-04-25 00:20:39.872870'  msg: ''  rc: 0  start: '2024-04-25 00:14:16.197863'  stderr: |-  Warning: Permanently added '[ec2-3-83-49-158.compute-1.amazonaws.com]:2200,[3.83.49.158]:2200' (ECDSA) to the list of known hosts.  Warning: Permanently added '[ec2-3-83-49-158.compute-1.amazonaws.com]:2200,[3.83.49.158]:2200' (ECDSA) to the list of known hosts.  stderr_lines:   stdout: |-  [37m[2024-04-25 00:14:16] [DEBUG] SPNEGO._GSS: Python gssapi not available, cannot use any GSSAPIProxy protocols: No module named 'gssapi'[0m  [37m[2024-04-25 00:14:16] [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-25 00:14:16] [INFO] TESTER: Checking connection to server-2022[0m  [32m[2024-04-25 00:14:19] [INFO] TESTER: WinRM connection successful.[0m  [32m[2024-04-25 00:14:25] [INFO] TESTER: Checking connection to ubuntu-22.04[0m  [32m[2024-04-25 00:14:27] [INFO] TESTER: Connection established successfully in ubuntu-22.04[0m  [32m[2024-04-25 00:14:42] [INFO] TESTER: Manager is already installed in ubuntu-22.04[0m  [32m[2024-04-25 00:14:45] [INFO] TESTER: Generating Snapshot for Checkfile in server-2022[0m  [32m[2024-04-25 00:19:22] [INFO] TESTER: Installing Agent in server-2022[0m  [32m[2024-04-25 00:19:49] [INFO] TESTER: Generating Snapshot for Checkfile in server-2022[0m  [32m[2024-04-25 00:20:29] [INFO] TESTER: Applying filters in checkfiles in server-2022[0m  [32m[2024-04-25 00:20:29] [INFO] TESTER: Pre and post install checkfile comparison in server-2022: {'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-25 00:20:34] [INFO] TESTER: Getting status of server-2022[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 382.94s (0:06:22) ==================  stdout_lines:  PLAY RECAP ********************************************************************* localhost : ok=2  changed=1  unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 [2024-04-25 00:20:40] [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-2022-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-25 00:20:40] [DEBUG] TESTER: Rendering template /home/fcaffieri/wazuh-env/wazuh-qa/deployability/modules/testing/playbooks/test.yml [2024-04-25 00:20:40] [DEBUG] TESTER: Using inventory: {'all': {'hosts': {'ec2-3-83-49-158.compute-1.amazonaws.com': {'ansible_port': 2200, 'ansible_user': 'ubuntu', 'ansible_ssh_private_key_file': '/tmp/wazuh-qa/i-07b27a3f14c7108dd/ubuntu-22.04-amd64-key-1370'}}}} [2024-04-25 00:20:40] [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-2022-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-2022-amd64/inventory.yaml}'  - --live=True  - -s  delta: '0:02:54.814687'  end: '2024-04-25 00:23:36.953900'  msg: ''  rc: 0  start: '2024-04-25 00:20:42.139213'  stderr: |-  Warning: Permanently added '[ec2-3-83-49-158.compute-1.amazonaws.com]:2200,[3.83.49.158]:2200' (ECDSA) to the list of known hosts.  Warning: Permanently added '[ec2-3-83-49-158.compute-1.amazonaws.com]:2200,[3.83.49.158]:2200' (ECDSA) to the list of known hosts.  Warning: Permanently added '[ec2-3-83-49-158.compute-1.amazonaws.com]:2200,[3.83.49.158]:2200' (ECDSA) to the list of known hosts.  Warning: Permanently added '[ec2-3-83-49-158.compute-1.amazonaws.com]:2200,[3.83.49.158]:2200' (ECDSA) to the list of known hosts.  Warning: Permanently added '[ec2-3-83-49-158.compute-1.amazonaws.com]:2200,[3.83.49.158]:2200' (ECDSA) to the list of known hosts.  Warning: Permanently added '[ec2-3-83-49-158.compute-1.amazonaws.com]:2200,[3.83.49.158]:2200' (ECDSA) to the list of known hosts.  Warning: Permanently added '[ec2-3-83-49-158.compute-1.amazonaws.com]:2200,[3.83.49.158]:2200' (ECDSA) to the list of known hosts.  Warning: Permanently added '[ec2-3-83-49-158.compute-1.amazonaws.com]:2200,[3.83.49.158]:2200' (ECDSA) to the list of known hosts.  stderr_lines:   stdout: |-  [37m[2024-04-25 00:20:42] [DEBUG] SPNEGO._GSS: Python gssapi not available, cannot use any GSSAPIProxy protocols: No module named 'gssapi'[0m  [37m[2024-04-25 00:20:42] [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-25 00:20:42] [INFO] TESTER: Checking connection to server-2022[0m  [32m[2024-04-25 00:20:45] [INFO] TESTER: WinRM connection successful.[0m  [32m[2024-04-25 00:21:02] [INFO] TESTER: os_type windows[0m  [32m[2024-04-25 00:21:18] [INFO] TESTER: Getting status of server-2022[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 174.04s (0:02:54) ==================  stdout_lines:  PLAY RECAP ********************************************************************* localhost : ok=2  changed=1  unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 [2024-04-25 00:23:37] [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-2022-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-25 00:23:37] [DEBUG] TESTER: Rendering template /home/fcaffieri/wazuh-env/wazuh-qa/deployability/modules/testing/playbooks/test.yml [2024-04-25 00:23:37] [DEBUG] TESTER: Using inventory: {'all': {'hosts': {'ec2-3-83-49-158.compute-1.amazonaws.com': {'ansible_port': 2200, 'ansible_user': 'ubuntu', 'ansible_ssh_private_key_file': '/tmp/wazuh-qa/i-07b27a3f14c7108dd/ubuntu-22.04-amd64-key-1370'}}}} [2024-04-25 00:23:37] [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-2022-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-2022-amd64/inventory.yaml}'  - --live=True  - -s  delta: '0:01:17.758652'  end: '2024-04-25 00:24:56.983429'  msg: ''  rc: 0  start: '2024-04-25 00:23:39.224777'  stderr: |-  Warning: Permanently added '[ec2-3-83-49-158.compute-1.amazonaws.com]:2200,[3.83.49.158]:2200' (ECDSA) to the list of known hosts.  Warning: Permanently added '[ec2-3-83-49-158.compute-1.amazonaws.com]:2200,[3.83.49.158]:2200' (ECDSA) to the list of known hosts.  Warning: Permanently added '[ec2-3-83-49-158.compute-1.amazonaws.com]:2200,[3.83.49.158]:2200' (ECDSA) to the list of known hosts.  Warning: Permanently added '[ec2-3-83-49-158.compute-1.amazonaws.com]:2200,[3.83.49.158]:2200' (ECDSA) to the list of known hosts.  Warning: Permanently added '[ec2-3-83-49-158.compute-1.amazonaws.com]:2200,[3.83.49.158]:2200' (ECDSA) to the list of known hosts.  Warning: Permanently added '[ec2-3-83-49-158.compute-1.amazonaws.com]:2200,[3.83.49.158]:2200' (ECDSA) to the list of known hosts.  Warning: Permanently added '[ec2-3-83-49-158.compute-1.amazonaws.com]:2200,[3.83.49.158]:2200' (ECDSA) to the list of known hosts.  stderr_lines:   stdout: |-  [37m[2024-04-25 00:23:39] [DEBUG] SPNEGO._GSS: Python gssapi not available, cannot use any GSSAPIProxy protocols: No module named 'gssapi'[0m  [37m[2024-04-25 00:23:39] [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-25 00:23:39] [INFO] TESTER: Checking connection to server-2022[0m  [32m[2024-04-25 00:23:42] [INFO] TESTER: WinRM connection successful.[0m  PASSED  modules/testing/tests/test_agent/test_connection.py::test_status [32m[2024-04-25 00:24:21] [INFO] TESTER: Getting status of server-2022[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 77.02s (0:01:17) ===================  stdout_lines:  PLAY RECAP ********************************************************************* localhost : ok=2  changed=1  unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 [2024-04-25 00:24:57] [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-2022-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-25 00:24:57] [DEBUG] TESTER: Rendering template /home/fcaffieri/wazuh-env/wazuh-qa/deployability/modules/testing/playbooks/test.yml [2024-04-25 00:24:57] [DEBUG] TESTER: Using inventory: {'all': {'hosts': {'ec2-3-83-49-158.compute-1.amazonaws.com': {'ansible_port': 2200, 'ansible_user': 'ubuntu', 'ansible_ssh_private_key_file': '/tmp/wazuh-qa/i-07b27a3f14c7108dd/ubuntu-22.04-amd64-key-1370'}}}} [2024-04-25 00:24:57] [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-2022-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-2022-amd64/inventory.yaml}'  - --live=True  - -s  delta: '0:00:43.542461'  end: '2024-04-25 00:25:42.858427'  msg: ''  rc: 0  start: '2024-04-25 00:24:59.315966'  stderr: |-  Warning: Permanently added '[ec2-3-83-49-158.compute-1.amazonaws.com]:2200,[3.83.49.158]:2200' (ECDSA) to the list of known hosts.  Warning: Permanently added '[ec2-3-83-49-158.compute-1.amazonaws.com]:2200,[3.83.49.158]:2200' (ECDSA) to the list of known hosts.  Warning: Permanently added '[ec2-3-83-49-158.compute-1.amazonaws.com]:2200,[3.83.49.158]:2200' (ECDSA) to the list of known hosts.  stderr_lines:   stdout: |-  [37m[2024-04-25 00:24:59] [DEBUG] SPNEGO._GSS: Python gssapi not available, cannot use any GSSAPIProxy protocols: No module named 'gssapi'[0m  [37m[2024-04-25 00:24:59] [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-25 00:24:59] [INFO] TESTER: Checking connection to server-2022[0m  [32m[2024-04-25 00:25:02] [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 42.82s ========================  stdout_lines:  PLAY RECAP ********************************************************************* localhost : ok=2  changed=1  unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 [2024-04-25 00:25:43] [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-2022-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-25 00:25:43] [DEBUG] TESTER: Rendering template /home/fcaffieri/wazuh-env/wazuh-qa/deployability/modules/testing/playbooks/test.yml [2024-04-25 00:25:43] [DEBUG] TESTER: Using inventory: {'all': {'hosts': {'ec2-3-83-49-158.compute-1.amazonaws.com': {'ansible_port': 2200, 'ansible_user': 'ubuntu', 'ansible_ssh_private_key_file': '/tmp/wazuh-qa/i-07b27a3f14c7108dd/ubuntu-22.04-amd64-key-1370'}}}} [2024-04-25 00:25:43] [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-2022-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-2022-amd64/inventory.yaml}'  - --live=True  - -s  delta: '0:01:12.953955'  end: '2024-04-25 00:26:58.126820'  msg: ''  rc: 0  start: '2024-04-25 00:25:45.172865'  stderr: 'Warning: Permanently added ''[ec2-3-83-49-158.compute-1.amazonaws.com]:2200,[3.83.49.158]:2200'' (ECDSA) to the list of known hosts.'  stderr_lines:   stdout: |-  [37m[2024-04-25 00:25:45] [DEBUG] SPNEGO._GSS: Python gssapi not available, cannot use any GSSAPIProxy protocols: No module named 'gssapi'[0m  [37m[2024-04-25 00:25:45] [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-25 00:25:45] [INFO] TESTER: Checking connection to server-2022[0m  [32m[2024-04-25 00:25:48] [INFO] TESTER: WinRM connection successful.[0m  [32m[2024-04-25 00:26:02] [INFO] TESTER: Restarting wazuh-agent in server-2022[0m  PASSED  modules/testing/tests/test_agent/test_restart.py::test_status [32m[2024-04-25 00:26:14] [INFO] TESTER: Getting status of server-2022[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 72.24s (0:01:12) ===================  stdout_lines:  PLAY RECAP ********************************************************************* localhost : ok=2  changed=1  unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 [2024-04-25 00:26:58] [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-2022-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-25 00:26:58] [DEBUG] TESTER: Rendering template /home/fcaffieri/wazuh-env/wazuh-qa/deployability/modules/testing/playbooks/test.yml [2024-04-25 00:26:58] [DEBUG] TESTER: Using inventory: {'all': {'hosts': {'ec2-3-83-49-158.compute-1.amazonaws.com': {'ansible_port': 2200, 'ansible_user': 'ubuntu', 'ansible_ssh_private_key_file': '/tmp/wazuh-qa/i-07b27a3f14c7108dd/ubuntu-22.04-amd64-key-1370'}}}} [2024-04-25 00:26:58] [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-2022-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-2022-amd64/inventory.yaml}'  - --live=True  - -s  delta: '0:00:56.760488'  end: '2024-04-25 00:27:57.150278'  msg: ''  rc: 0  start: '2024-04-25 00:27:00.389790'  stderr: |-  Warning: Permanently added '[ec2-3-83-49-158.compute-1.amazonaws.com]:2200,[3.83.49.158]:2200' (ECDSA) to the list of known hosts.  Warning: Permanently added '[ec2-3-83-49-158.compute-1.amazonaws.com]:2200,[3.83.49.158]:2200' (ECDSA) to the list of known hosts.  Warning: Permanently added '[ec2-3-83-49-158.compute-1.amazonaws.com]:2200,[3.83.49.158]:2200' (ECDSA) to the list of known hosts.  stderr_lines:   stdout: |-  [37m[2024-04-25 00:27:00] [DEBUG] SPNEGO._GSS: Python gssapi not available, cannot use any GSSAPIProxy protocols: No module named 'gssapi'[0m  [37m[2024-04-25 00:27:00] [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-25 00:27:01] [INFO] TESTER: Checking connection to server-2022[0m  [32m[2024-04-25 00:27:03] [INFO] TESTER: WinRM connection successful.[0m  [32m[2024-04-25 00:27:26] [INFO] TESTER: Stopping wazuh-agent in server-2022[0m  [32m[2024-04-25 00:27:31] [INFO] TESTER: Getting status of server-2022[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-25 00:27:47] [INFO] TESTER: Restarting wazuh-agent in server-2022[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 56.02s ========================  stdout_lines:  PLAY RECAP ********************************************************************* localhost : ok=2  changed=1  unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 [2024-04-25 00:27:57] [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-2022-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-25 00:27:57] [DEBUG] TESTER: Rendering template /home/fcaffieri/wazuh-env/wazuh-qa/deployability/modules/testing/playbooks/test.yml [2024-04-25 00:27:57] [DEBUG] TESTER: Using inventory: {'all': {'hosts': {'ec2-3-83-49-158.compute-1.amazonaws.com': {'ansible_port': 2200, 'ansible_user': 'ubuntu', 'ansible_ssh_private_key_file': '/tmp/wazuh-qa/i-07b27a3f14c7108dd/ubuntu-22.04-amd64-key-1370'}}}} [2024-04-25 00:27:57] [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-2022-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-2022-amd64/inventory.yaml}'  - --live=True  - -s  delta: '0:04:40.968945'  end: '2024-04-25 00:32:40.420588'  msg: ''  rc: 0  start: '2024-04-25 00:27:59.451643'  stderr: |-  Warning: Permanently added '[ec2-3-83-49-158.compute-1.amazonaws.com]:2200,[3.83.49.158]:2200' (ECDSA) to the list of known hosts.  Warning: Permanently added '[ec2-3-83-49-158.compute-1.amazonaws.com]:2200,[3.83.49.158]:2200' (ECDSA) to the list of known hosts.  Warning: Permanently added '[ec2-3-83-49-158.compute-1.amazonaws.com]:2200,[3.83.49.158]:2200' (ECDSA) to the list of known hosts.  Warning: Permanently added '[ec2-3-83-49-158.compute-1.amazonaws.com]:2200,[3.83.49.158]:2200' (ECDSA) to the list of known hosts.  stderr_lines:   stdout: |-  [37m[2024-04-25 00:27:59] [DEBUG] SPNEGO._GSS: Python gssapi not available, cannot use any GSSAPIProxy protocols: No module named 'gssapi'[0m  [37m[2024-04-25 00:27:59] [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-25 00:28:00] [INFO] TESTER: Checking connection to server-2022[0m  [32m[2024-04-25 00:28:02] [INFO] TESTER: WinRM connection successful.[0m  [32m[2024-04-25 00:28:37] [INFO] TESTER: Generating Snapshot for Checkfile in server-2022[0m  [32m[2024-04-25 00:30:52] [INFO] TESTER: Uninstalling Agent in server-2022[0m  [32m[2024-04-25 00:31:06] [INFO] TESTER: Generating Snapshot for Checkfile in server-2022[0m  [32m[2024-04-25 00:32:07] [INFO] TESTER: Applying filters in checkfiles in server-2022[0m  [32m[2024-04-25 00:32:07] [INFO] TESTER: Pre and post uninstall checkfile comparison in server-2022: {'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 280.09s (0:04:40) ==================  stdout_lines:  PLAY RECAP ********************************************************************* localhost : ok=2  changed=1  unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 [2024-04-25 00:32:40] [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-2022-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-25 00:32:40] [INFO] TESTER: Cleaning up [2024-04-25 00:32:40] [DEBUG] TESTER: Using inventory: {'all': {'hosts': {'ec2-3-83-49-158.compute-1.amazonaws.com': {'ansible_port': 2200, 'ansible_user': 'ubuntu', 'ansible_ssh_private_key_file': '/tmp/wazuh-qa/i-07b27a3f14c7108dd/ubuntu-22.04-amd64-key-1370'}}}} [2024-04-25 00:32:40] [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-3-83-49-158.compute-1.amazonaws.com] TASK [Clean test directory] **************************************************** ok: [ec2-3-83-49-158.compute-1.amazonaws.com] => changed=false   path: /tmp/tests  state: absent PLAY RECAP ********************************************************************* ec2-3-83-49-158.compute-1.amazonaws.com : ok=2  changed=0 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 [2024-04-25 00:32:56] [DEBUG] TESTER: Playbook /home/fcaffieri/wazuh-env/wazuh-qa/deployability/modules/testing/playbooks/cleanup.yml finished with status {'skipped': {}, 'ok': {'ec2-3-83-49-158.compute-1.amazonaws.com': 2}, 'dark': {}, 'failures': {}, 'ignored': {}, 'rescued': {}, 'processed': {'ec2-3-83-49-158.compute-1.amazonaws.com': 1}, 'changed': {}} [2024-04-25 00:32:56] [INFO] TESTER: Cleaning up [2024-04-25 00:32:56] [DEBUG] TESTER: Using inventory: {'all': {'hosts': {'ec2-3-83-49-158.compute-1.amazonaws.com': {'ansible_port': 2200, 'ansible_user': 'ubuntu', 'ansible_ssh_private_key_file': '/tmp/wazuh-qa/i-07b27a3f14c7108dd/ubuntu-22.04-amd64-key-1370'}}}} [2024-04-25 00:32:56] [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-3-83-49-158.compute-1.amazonaws.com] TASK [Clean test directory] **************************************************** ok: [ec2-3-83-49-158.compute-1.amazonaws.com] => changed=false   path: /tmp/tests  state: absent PLAY RECAP ********************************************************************* ec2-3-83-49-158.compute-1.amazonaws.com : ok=2  changed=0 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 [2024-04-25 00:33:09] [DEBUG] TESTER: Playbook /home/fcaffieri/wazuh-env/wazuh-qa/deployability/modules/testing/playbooks/cleanup.yml finished with status {'skipped': {}, 'ok': {'ec2-3-83-49-158.compute-1.amazonaws.com': 2}, 'dark': {}, 'failures': {}, 'ignored': {}, 'rescued': {}, 'processed': {'ec2-3-83-49-158.compute-1.amazonaws.com': 1}, 'changed': {}}  [2024-04-25 00:33:09] [INFO] [362189] [ThreadPoolExecutor-0_1] [workflow_engine]: [run-agent-windows-server-2022-amd64-tests] Finished task in 1139.07 seconds. [2024-04-25 00:33:09] [INFO] [362189] [MainThread] [workflow_engine]: Executing Reverse DAG tasks. [2024-04-25 00:33:09] [INFO] [362189] [MainThread] [workflow_engine]: Executing tasks in parallel. [2024-04-25 00:33:09] [INFO] [362189] [ThreadPoolExecutor-1_0] [workflow_engine]: [allocate-manager-linux-ubuntu-22.04-amd64] Starting task. [2024-04-25 00:33:09] [INFO] [362189] [ThreadPoolExecutor-1_1] [workflow_engine]: [allocate-agent-windows-server-2022-amd64] Starting task. [2024-04-25 00:33:09] [DEBUG] [362189] [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-25 00:33:09] [DEBUG] [362189] [ThreadPoolExecutor-1_1] [workflow_engine]: Running task "allocate-agent-windows-server-2022-amd64" with arguments: ['modules/allocation/main.py', '--action=delete', '--track-output=/tmp/dtt1-poc/agent-windows-server-2022-amd64/track.yaml'] [2024-04-25 00:33:58] [DEBUG] [362189] [ThreadPoolExecutor-1_0] [workflow_engine]: Finished task "allocate-manager-linux-ubuntu-22.04-amd64" execution with result: [2024-04-25 00:33:10] [DEBUG] SPNEGO._GSS: Python gssapi not available, cannot use any GSSAPIProxy protocols: No module named 'gssapi' [2024-04-25 00:33:10] [DEBUG] SPNEGO._GSS: Python gssapi IOV extension not available: No module named 'gssapi' [2024-04-25 00:33:10] [INFO] ALLOCATOR: Deleting instance from trackfile /tmp/dtt1-poc/manager-linux-ubuntu-22.04-amd64/track.yaml [2024-04-25 00:33:11] [DEBUG] ALLOCATOR: Deleting credentials: ubuntu-22.04-amd64-key-1370 [2024-04-25 00:33:58] [INFO] ALLOCATOR: Instance i-07b27a3f14c7108dd deleted.  [2024-04-25 00:33:58] [INFO] [362189] [ThreadPoolExecutor-1_0] [workflow_engine]: [allocate-manager-linux-ubuntu-22.04-amd64] Finished task in 49.25 seconds. [2024-04-25 00:34:13] [DEBUG] [362189] [ThreadPoolExecutor-1_1] [workflow_engine]: Finished task "allocate-agent-windows-server-2022-amd64" execution with result: [2024-04-25 00:33:10] [DEBUG] SPNEGO._GSS: Python gssapi not available, cannot use any GSSAPIProxy protocols: No module named 'gssapi' [2024-04-25 00:33:10] [DEBUG] SPNEGO._GSS: Python gssapi IOV extension not available: No module named 'gssapi' [2024-04-25 00:33:10] [INFO] ALLOCATOR: Deleting instance from trackfile /tmp/dtt1-poc/agent-windows-server-2022-amd64/track.yaml [2024-04-25 00:34:13] [INFO] ALLOCATOR: Instance i-0da38bce267094d43 deleted.  [2024-04-25 00:34:13] [INFO] [362189] [ThreadPoolExecutor-1_1] [workflow_engine]: [allocate-agent-windows-server-2022-amd64] Finished task in 63.64 seconds.