Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Errors in Deployability testing 4.9.0 alpha 3 #5616

Closed
rauldpm opened this issue Jul 26, 2024 · 6 comments · Fixed by #5627
Closed

Errors in Deployability testing 4.9.0 alpha 3 #5616

rauldpm opened this issue Jul 26, 2024 · 6 comments · Fixed by #5627
Assignees

Comments

@rauldpm
Copy link
Member

rauldpm commented Jul 26, 2024

Description

We have detected some failed tests in the Deployability testing issue in v4.9.0 alpha 3, we need to investigate it and check if is a test problem or create issues to other teams

  • Agent tests (Windows Server 2016)
modules/testing/tests/test_agent/test_restart.py::test_port [2024-07-25 21:21:08] [ERROR] TESTER: Port is closed
 FAILED
....
=========================== short test summary info ============================
FAILED modules/testing/tests/test_agent/test_restart.py::test_port - Assertio...
=================== 1 failed, 6 passed, 4 warnings in 17.76s ===================
  • Central components (Amazon Linux 2)
modules/testing/tests/test_central_components/test_uninstall.py::test_manager_agent_enrollment_port [2024-07-26 00:05:04] [ERROR] TESTER: The Wazuh manager API port in amazon-2 is still active
FAILED
modules/testing/tests/test_central_components/test_uninstall.py::test_dashboard_port [2024-07-26 00:05:05] [ERROR] TESTER: The Wazuh dashboard port in amazon-2 is still active
FAILED
...
=========================== short test summary info ============================
FAILED modules/testing/tests/test_central_components/test_uninstall.py::test_manager_agent_enrollment_port
FAILED modules/testing/tests/test_central_components/test_uninstall.py::test_dashboard_port
=================== 2 failed, 5 passed, 4 warnings in 41.79s ===================
  • Central components (CentOS 8)
modules/testing/tests/test_central_components/test_uninstall.py::test_manager_agent_enrollment_port [2024-07-26 00:05:04] [ERROR] TESTER: The Wazuh manager API port in amazon-2 is still active
FAILED
modules/testing/tests/test_central_components/test_uninstall.py::test_dashboard_port [2024-07-26 00:05:05] [ERROR] TESTER: The Wazuh dashboard port in amazon-2 is still active
FAILED
...
=========================== short test summary info ============================
FAILED modules/testing/tests/test_central_components/test_uninstall.py::test_manager_api_port
FAILED modules/testing/tests/test_central_components/test_uninstall.py::test_manager_agent_enrollment_port
=================== 2 failed, 5 passed, 4 warnings in 58.03s ===================

Related

@pro-akim
Copy link
Member

pro-akim commented Jul 30, 2024

Central component testing 🟢

Centos-8

YAML
version: 0.1
description: This workflow is used to test the Wazuh manager deployment for DDT1 PoC
variables:
  central_components-os:
    - linux-centos-8-amd64
    #- linux-amazon-2-amd64
    #- linux-ubuntu-20.04-amd64
    #- linux-ubuntu-22.04-amd64
    #- linux-redhat-7-amd64
    #- linux-redhat-8-amd64
    #- linux-redhat-9-amd64
    #- linux-centos-7-amd64
    #- linux-debian-10-amd64
    #- linux-debian-11-amd64
    #- linux-debian-12-amd64
  infra-provider: aws
  working-dir: /tmp/dtt1-poc

tasks:
  # Unique central components allocate task
  - task: "allocate-central_components-{central_components}"
    description: "Allocate resources for the central_components."
    do:
      this: process
      with:
        path: python3
        args:
          - modules/allocation/main.py
          - action: create
          - provider: "{infra-provider}"
          - size: large
          - composite-name: "{central_components}"
          - inventory-output: "{working-dir}/central_components-{central_components}/inventory.yaml"
          - track-output: "{working-dir}/central_components-{central_components}/track.yaml"
          - label-termination-date: "1d"
          - label-team: "qa"
          - label-issue: "https://github.com/wazuh/wazuh-qa/issues/5616"
    foreach:
      - variable: central_components-os
        as: central_components
    cleanup:
      this: process
      with:
        path: python3
        args:
          - modules/allocation/main.py
          - action: delete
          - track-output: "{working-dir}/central_components-{central_components-os}/track.yaml"

  # Generic manager test task
  - task: "run-central_components-{central_components}-tests"
    description: "Run tests install for the central_components."
    do:
      this: process
      with:
        path: python3
        args:
          - modules/testing/main.py
          - targets:
            - wazuh-1: "{working-dir}/central_components-{central_components}/inventory.yaml"
          - tests: "install,restart,stop,uninstall"
          - component: "central_components"
          - wazuh-version: "4.9.0"
          - wazuh-revision: "40903"
          - live: False
    foreach:
      - variable: central_components-os
        as: central_components
    depends-on:
      - "allocate-central_components-linux-centos-8-amd64"
      #- "allocate-central_components-linux-amazon-2-amd64"
      #- "allocate-central_components-linux-ubuntu-20.04-amd64"
      #- "allocate-central_components-linux-ubuntu-22.04-amd64"
      #- "allocate-central_components-linux-redhat-7-amd64"
      #- "allocate-central_components-linux-redhat-8-amd64"
      #- "allocate-central_components-linux-redhat-8-amd64"
      #- "allocate-central_components-linux-redhat-9-amd64"
      #- "allocate-central_components-linux-centos-7-amd64"
      #- "allocate-central_components-linux-debian-10-amd64"
      #- "allocate-central_components-linux-debian-11-amd64"
      #- "allocate-central_components-linux-debian-12-amd64"

Results
[2024-07-30 13:00:42,837] [DEBUG] SPNEGO._GSS: Python gssapi not available, cannot use any GSSAPIProxy protocols: No module named 'gssapi'
[2024-07-30 13:00:42,837] [DEBUG] SPNEGO._GSS: Python gssapi IOV extension not available: No module named 'gssapi'
[2024-07-30 13:00:43,010] [INFO] TESTER: Checking connection to centos-8
[2024-07-30 13:00:44,350] [INFO] TESTER: Connection established successfully in centos-8
[2024-07-30 13:00:51,191] [INFO] TESTER: No Firewall to disable on centos-8
[2024-07-30 13:01:19,883] [INFO] TESTER: Installing the Wazuh manager with https://packages-dev.wazuh.com/4.9/wazuh-install.sh
[2024-07-30 13:01:22,181] [INFO] TESTER: Installing Wazuh central components (AIO) in centos-8
[2024-07-30 13:01:29,612] [ERROR] TESTER: The /var/ossec is not present in centos-8

Running the installation command by hand

[root@ip-172-31-95-21 cloud-user]# sudo bash ./wazuh-install.sh -a --ignore-check
30/07/2024 11:08:33 INFO: Starting Wazuh installation assistant. Wazuh version: 4.9.0
30/07/2024 11:08:33 INFO: Verbose logging redirected to /var/log/wazuh-install.log
30/07/2024 11:08:33 WARNING: Hardware checks ignored.
30/07/2024 11:08:33 INFO: Wazuh web interface port will be 443.
30/07/2024 11:08:33 INFO: --- Dependencies ---
30/07/2024 11:08:33 INFO: Installing lsof.
30/07/2024 11:08:33 WARNING: Cannot find lsof. Port checking will be skipped.
30/07/2024 11:08:33 INFO: Wazuh development repository added.
30/07/2024 11:08:33 INFO: --- Configuration files ---
30/07/2024 11:08:33 INFO: Generating configuration files.
30/07/2024 11:08:34 INFO: Generating the root certificate.
30/07/2024 11:08:34 INFO: Generating Admin certificates.
30/07/2024 11:08:34 INFO: Generating Wazuh indexer certificates.
30/07/2024 11:08:34 INFO: Generating Filebeat certificates.
30/07/2024 11:08:34 INFO: Generating Wazuh dashboard certificates.
30/07/2024 11:08:35 INFO: Created wazuh-install-files.tar. It contains the Wazuh cluster key, certificates, and passwords necessary for installation.
30/07/2024 11:08:35 INFO: --- Wazuh indexer ---
30/07/2024 11:08:35 INFO: Starting Wazuh indexer installation.
30/07/2024 11:08:36 ERROR: Wazuh indexer installation failed.
30/07/2024 11:08:36 INFO: --- Removing existing Wazuh installation ---
30/07/2024 11:08:36 INFO: --- Dependencies ---
30/07/2024 11:08:36 INFO: Removing lsof.
30/07/2024 11:08:36 INFO: Installation cleaned. Check the /var/log/wazuh-install.log file to learn more about the issue.
[root@ip-172-31-95-21 cloud-user]# cat /var/log/wazuh-install.log
30/07/2024 11:08:33 INFO: Starting Wazuh installation assistant. Wazuh version: 4.9.0
30/07/2024 11:08:33 INFO: Verbose logging redirected to /var/log/wazuh-install.log
30/07/2024 11:08:33 WARNING: Hardware checks ignored.
30/07/2024 11:08:33 INFO: Wazuh web interface port will be 443.
30/07/2024 11:08:33 INFO: --- Dependencies ---
30/07/2024 11:08:33 INFO: Installing lsof.
CentOS Stream 8 - AppStream 26 kB/s | 951 B 00:00 Errors during downloading metadata for repository 'appstream': - Status code: 502 for https://vault.centos.org/centos/8-stream/AppStream/x86_64/os/repodata/repomd.xml (IP: 99.84.108.2) Error: Failed to download metadata for repo 'appstream': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried
CentOS Stream 8 - AppStream 26 kB/s | 951 B 00:00 Errors during downloading metadata for repository 'appstream': - Status code: 502 for https://vault.centos.org/centos/8-stream/AppStream/x86_64/os/repodata/repomd.xml (IP: 99.84.108.2) Error: Failed to download metadata for repo 'appstream': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried
30/07/2024 11:08:33 WARNING: Cannot find lsof. Port checking will be skipped.
[wazuh]
gpgcheck=1
gpgkey=https://packages-dev.wazuh.com/key/GPG-KEY-WAZUH
enabled=1
name=EL-${releasever} - Wazuh
baseurl=https://packages-dev.wazuh.com/pre-release/yum/
protect=1
30/07/2024 11:08:33 INFO: Wazuh development repository added.
30/07/2024 11:08:33 INFO: --- Configuration files ---
30/07/2024 11:08:33 INFO: Generating configuration files.
30/07/2024 11:08:34 INFO: Generating the root certificate.
30/07/2024 11:08:34 INFO: Generating Admin certificates.
30/07/2024 11:08:34 INFO: Generating Wazuh indexer certificates.
30/07/2024 11:08:34 INFO: Generating Filebeat certificates.
30/07/2024 11:08:34 INFO: Generating Wazuh dashboard certificates.
30/07/2024 11:08:35 INFO: Created wazuh-install-files.tar. It contains the Wazuh cluster key, certificates, and passwords necessary for installation.
30/07/2024 11:08:35 INFO: --- Wazuh indexer ---
30/07/2024 11:08:35 INFO: Starting Wazuh indexer installation.
CentOS Stream 8 - AppStream 2.7 kB/s | 951 B 00:00 Errors during downloading metadata for repository 'appstream': - Status code: 502 for https://vault.centos.org/centos/8-stream/AppStream/x86_64/os/repodata/repomd.xml (IP: 99.84.108.110) Error: Failed to download metadata for repo 'appstream': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried
30/07/2024 11:08:36 ERROR: Wazuh indexer installation failed.
30/07/2024 11:08:36 INFO: --- Removing existing Wazuh installation ---
30/07/2024 11:08:36 INFO: --- Dependencies ---
30/07/2024 11:08:36 INFO: Removing lsof.
No match for argument: lsof No packages marked for removal. Dependencies resolved. Nothing to do. Complete!
30/07/2024 11:08:36 INFO: Installation cleaned. Check the /var/log/wazuh-install.log file to learn more about the issue.

Amazon-2

YAML
version: 0.1
description: This workflow is used to test the Wazuh manager deployment for DDT1 PoC
variables:
  central_components-os:
    #- linux-centos-8-amd64
    - linux-amazon-2-amd64
    #- linux-ubuntu-20.04-amd64
    #- linux-ubuntu-22.04-amd64
    #- linux-redhat-7-amd64
    #- linux-redhat-8-amd64
    #- linux-redhat-9-amd64
    #- linux-centos-7-amd64
    #- linux-debian-10-amd64
    #- linux-debian-11-amd64
    #- linux-debian-12-amd64
  infra-provider: aws
  working-dir: /tmp/dtt1-poc

tasks:
  # Unique central components allocate task
  - task: "allocate-central_components-{central_components}"
    description: "Allocate resources for the central_components."
    do:
      this: process
      with:
        path: python3
        args:
          - modules/allocation/main.py
          - action: create
          - provider: "{infra-provider}"
          - size: large
          - composite-name: "{central_components}"
          - inventory-output: "{working-dir}/central_components-{central_components}/inventory.yaml"
          - track-output: "{working-dir}/central_components-{central_components}/track.yaml"
          - label-termination-date: "1d"
          - label-team: "qa"
          - label-issue: "https://github.com/wazuh/wazuh-qa/issues/5616"
    foreach:
      - variable: central_components-os
        as: central_components
    cleanup:
      this: process
      with:
        path: python3
        args:
          - modules/allocation/main.py
          - action: delete
          - track-output: "{working-dir}/central_components-{central_components-os}/track.yaml"

  # Generic manager test task
  - task: "run-central_components-{central_components}-tests"
    description: "Run tests install for the central_components."
    do:
      this: process
      with:
        path: python3
        args:
          - modules/testing/main.py
          - targets:
            - wazuh-1: "{working-dir}/central_components-{central_components}/inventory.yaml"
          - tests: "install,restart,stop,uninstall"
          - component: "central_components"
          - wazuh-version: "4.9.0"
          - wazuh-revision: "40903"
          - live: False
    foreach:
      - variable: central_components-os
        as: central_components
    depends-on:
      #- "allocate-central_components-linux-centos-8-amd64"
      - "allocate-central_components-linux-amazon-2-amd64"
      #- "allocate-central_components-linux-ubuntu-20.04-amd64"
      #- "allocate-central_components-linux-ubuntu-22.04-amd64"
      #- "allocate-central_components-linux-redhat-7-amd64"
      #- "allocate-central_components-linux-redhat-8-amd64"
      #- "allocate-central_components-linux-redhat-8-amd64"
      #- "allocate-central_components-linux-redhat-9-amd64"
      #- "allocate-central_components-linux-centos-7-amd64"
      #- "allocate-central_components-linux-debian-10-amd64"
      #- "allocate-central_components-linux-debian-11-amd64"
      #- "allocate-central_components-linux-debian-12-amd64"

Result
[2024-07-30 13:15:31,691] [INFO] [216483] [MainThread] [jobflow]: Executing DAG tasks.
[2024-07-30 13:15:31,691] [INFO] [216483] [MainThread] [jobflow]: Executing tasks in parallel.
[2024-07-30 13:15:31,692] [INFO] [216483] [ThreadPoolExecutor-0_0] [jobflow]: [allocate-central_components-linux-amazon-2-amd64] Starting task.
[2024-07-30 13:15:32,048] [DEBUG] SPNEGO._GSS: Python gssapi not available, cannot use any GSSAPIProxy protocols: No module named 'gssapi'
[2024-07-30 13:15:32,048] [DEBUG] SPNEGO._GSS: Python gssapi IOV extension not available: No module named 'gssapi'
[2024-07-30 13:15:32,153] [INFO] ALLOCATOR: Creating instance at /tmp/wazuh-qa
[2024-07-30 13:15:33,143] [DEBUG] ALLOCATOR: No config provided. Generating from payload
[2024-07-30 13:15:33,144] [DEBUG] ALLOCATOR: Generating new key pair
[2024-07-30 13:15:33,144] [DEBUG] ALLOCATOR: Creating base directory: /tmp/wazuh-qa/AWS-CF475DBD-655E-4A82-AD7D-33B98601F60A
[2024-07-30 13:15:52,831] [DEBUG] ALLOCATOR: Renaming temp /tmp/wazuh-qa/AWS-CF475DBD-655E-4A82-AD7D-33B98601F60A directory to /tmp/wazuh-qa/i-0f964d9c70c19806b
[2024-07-30 13:15:52,843] [INFO] ALLOCATOR: Instance i-0f964d9c70c19806b created.
[2024-07-30 13:15:54,272] [INFO] ALLOCATOR: Instance i-0f964d9c70c19806b started.
[2024-07-30 13:15:54,692] [INFO] ALLOCATOR: The inventory file generated at /tmp/dtt1-poc/central_components-linux-amazon-2-amd64/inventory.yaml
[2024-07-30 13:15:54,692] [INFO] ALLOCATOR: The track file generated at /tmp/dtt1-poc/central_components-linux-amazon-2-amd64/track.yaml
[2024-07-30 13:15:54,818] [WARNING] ALLOCATOR: Error on attempt 1 of 30: [Errno None] Unable to connect to port 2200 on 52.87.183.207
[2024-07-30 13:16:25,101] [WARNING] ALLOCATOR: Error on attempt 2 of 30: [Errno None] Unable to connect to port 2200 on 52.87.183.207
[2024-07-30 13:16:57,050] [INFO] ALLOCATOR: SSH connection successful.
[2024-07-30 13:16:57,050] [INFO] ALLOCATOR: Instance i-0f964d9c70c19806b created successfully.
[2024-07-30 13:16:57,205] [INFO] [216483] [ThreadPoolExecutor-0_0] [jobflow]: [allocate-central_components-linux-amazon-2-amd64] Finished task in 85.51 seconds.
[2024-07-30 13:16:57,221] [INFO] [216483] [ThreadPoolExecutor-0_0] [jobflow]: [run-central_components-linux-amazon-2-amd64-tests] Starting task.
[2024-07-30 13:16:57,604] [DEBUG] SPNEGO._GSS: Python gssapi not available, cannot use any GSSAPIProxy protocols: No module named 'gssapi'
[2024-07-30 13:16:57,605] [DEBUG] SPNEGO._GSS: Python gssapi IOV extension not available: No module named 'gssapi'
[2024-07-30 13:16:57,707] [INFO] TESTER: Running tests for ec2-52-87-183-207.compute-1.amazonaws.com
[2024-07-30 13:16:57,707] [DEBUG] TESTER: Using extra vars: {'component': 'central_components', 'wazuh_version': '4.9.0', 'wazuh_revision': '40903', 'wazuh_branch': None, 'working_dir': '/tmp/tests', 'live': False, 'hosts_ip': ['ec2-52-87-183-207.compute-1.amazonaws.com'], 'targets': '{wazuh-1: /tmp/dtt1-poc/central_components-linux-amazon-2-amd64/inventory.yaml}', 'dependencies': '{}', 'local_host_path': '/home/akim/Desktop/wazuh-qa/deployability', 'current_user': 'akim'}
[2024-07-30 13:16:57,708] [DEBUG] TESTER: Using inventory: {'all': {'hosts': {'ec2-52-87-183-207.compute-1.amazonaws.com': {'ansible_port': 2200, 'ansible_user': 'ec2-user', 'ansible_ssh_private_key_file': '/tmp/wazuh-qa/i-0f964d9c70c19806b/qa-5616-amazon-2-key-6162'}}}}
[2024-07-30 13:16:57,708] [DEBUG] TESTER: Running playbook: /home/akim/Desktop/wazuh-qa/deployability/modules/testing/playbooks/setup.yml
[2024-07-30 13:17:03,556] [DEBUG] TESTER: Playbook /home/akim/Desktop/wazuh-qa/deployability/modules/testing/playbooks/setup.yml finished with status {'skipped': {}, 'ok': {'localhost': 2}, 'dark': {}, 'failures': {}, 'ignored': {}, 'rescued': {}, 'processed': {'localhost': 1}, 'changed': {'localhost': 1}}
[2024-07-30 13:17:03,558] [DEBUG] TESTER: Using inventory: {'all': {'hosts': {'ec2-52-87-183-207.compute-1.amazonaws.com': {'ansible_port': 2200, 'ansible_user': 'ec2-user', 'ansible_ssh_private_key_file': '/tmp/wazuh-qa/i-0f964d9c70c19806b/qa-5616-amazon-2-key-6162'}}}}
[2024-07-30 13:17:03,558] [DEBUG] TESTER: Running playbook: /home/akim/Desktop/wazuh-qa/deployability/modules/testing/playbooks/test.yml
[2024-07-30 13:17:06,687] [DEBUG] SPNEGO._GSS: Python gssapi not available, cannot use any GSSAPIProxy protocols: No module named 'gssapi'
[2024-07-30 13:17:06,687] [DEBUG] SPNEGO._GSS: Python gssapi IOV extension not available: No module named 'gssapi'
[2024-07-30 13:17:06,868] [INFO] TESTER: Checking connection to amazon-2
[2024-07-30 13:17:08,211] [INFO] TESTER: Connection established successfully in amazon-2
[2024-07-30 13:17:10,591] [INFO] TESTER: No Firewall to disable on amazon-2
[2024-07-30 13:17:40,998] [INFO] TESTER: Installing the Wazuh manager with https://packages-dev.wazuh.com/4.9/wazuh-install.sh
[2024-07-30 13:17:43,201] [INFO] TESTER: Installing Wazuh central components (AIO) in amazon-2
[2024-07-30 13:21:33,533] [INFO] TESTER: Getting status of amazon-2
[2024-07-30 13:22:15,313] [INFO] TESTER: Getting status of amazon-2
[2024-07-30 13:22:53,253] [INFO] TESTER: Getting status of amazon-2
[2024-07-30 13:23:37,130] [INFO] TESTER: Getting status of amazon-2
[2024-07-30 13:23:42,962] [DEBUG] TESTER: Playbook /home/akim/Desktop/wazuh-qa/deployability/modules/testing/playbooks/test.yml finished with status {'skipped': {}, 'ok': {'localhost': 2}, 'dark': {}, 'failures': {}, 'ignored': {}, 'rescued': {}, 'processed': {'localhost': 1}, 'changed': {'localhost': 1}}
[2024-07-30 13:23:42,964] [DEBUG] TESTER: Using inventory: {'all': {'hosts': {'ec2-52-87-183-207.compute-1.amazonaws.com': {'ansible_port': 2200, 'ansible_user': 'ec2-user', 'ansible_ssh_private_key_file': '/tmp/wazuh-qa/i-0f964d9c70c19806b/qa-5616-amazon-2-key-6162'}}}}
[2024-07-30 13:23:42,964] [DEBUG] TESTER: Running playbook: /home/akim/Desktop/wazuh-qa/deployability/modules/testing/playbooks/test.yml
[2024-07-30 13:23:49,064] [DEBUG] SPNEGO._GSS: Python gssapi not available, cannot use any GSSAPIProxy protocols: No module named 'gssapi'
[2024-07-30 13:23:49,064] [DEBUG] SPNEGO._GSS: Python gssapi IOV extension not available: No module named 'gssapi'
[2024-07-30 13:23:49,242] [INFO] TESTER: Restarting wazuh-manager in amazon-2
[2024-07-30 13:24:10,689] [INFO] TESTER: Restarting wazuh-indexer in amazon-2
[2024-07-30 13:24:27,306] [INFO] TESTER: Restarting wazuh-dashboard in amazon-2
[2024-07-30 13:24:29,865] [INFO] TESTER: Restarting filebeat in amazon-2
[2024-07-30 13:24:32,324] [INFO] TESTER: Getting status of amazon-2
[2024-07-30 13:24:34,992] [INFO] TESTER: Getting status of amazon-2
[2024-07-30 13:24:37,955] [INFO] TESTER: Getting status of amazon-2
[2024-07-30 13:24:41,130] [INFO] TESTER: Getting status of amazon-2
[2024-07-30 13:24:55,213] [DEBUG] TESTER: Playbook /home/akim/Desktop/wazuh-qa/deployability/modules/testing/playbooks/test.yml finished with status {'skipped': {}, 'ok': {'localhost': 2}, 'dark': {}, 'failures': {}, 'ignored': {}, 'rescued': {}, 'processed': {'localhost': 1}, 'changed': {'localhost': 1}}
[2024-07-30 13:24:55,215] [DEBUG] TESTER: Using inventory: {'all': {'hosts': {'ec2-52-87-183-207.compute-1.amazonaws.com': {'ansible_port': 2200, 'ansible_user': 'ec2-user', 'ansible_ssh_private_key_file': '/tmp/wazuh-qa/i-0f964d9c70c19806b/qa-5616-amazon-2-key-6162'}}}}
[2024-07-30 13:24:55,215] [DEBUG] TESTER: Running playbook: /home/akim/Desktop/wazuh-qa/deployability/modules/testing/playbooks/test.yml
[2024-07-30 13:25:01,371] [DEBUG] SPNEGO._GSS: Python gssapi not available, cannot use any GSSAPIProxy protocols: No module named 'gssapi'
[2024-07-30 13:25:01,371] [DEBUG] SPNEGO._GSS: Python gssapi IOV extension not available: No module named 'gssapi'
[2024-07-30 13:25:01,551] [INFO] TESTER: Stopping wazuh-manager in amazon-2
[2024-07-30 13:25:08,572] [INFO] TESTER: Stopping wazuh-indexer in amazon-2
[2024-07-30 13:25:11,030] [INFO] TESTER: Stopping wazuh-dashboard in amazon-2
[2024-07-30 13:25:13,344] [INFO] TESTER: Stopping filebeat in amazon-2
[2024-07-30 13:25:15,844] [INFO] TESTER: Getting status of amazon-2
[2024-07-30 13:25:18,264] [INFO] TESTER: Getting status of amazon-2
[2024-07-30 13:25:21,016] [INFO] TESTER: Getting status of amazon-2
[2024-07-30 13:25:24,241] [INFO] TESTER: Getting status of amazon-2
[2024-07-30 13:25:43,980] [INFO] TESTER: Restoring Wazuh central components statuses
[2024-07-30 13:25:43,980] [INFO] TESTER: Restarting wazuh-manager in amazon-2
[2024-07-30 13:25:57,212] [INFO] TESTER: Restarting wazuh-indexer in amazon-2
[2024-07-30 13:26:11,958] [INFO] TESTER: Restarting wazuh-dashboard in amazon-2
[2024-07-30 13:26:14,415] [INFO] TESTER: Restarting filebeat in amazon-2
[2024-07-30 13:26:17,228] [DEBUG] TESTER: Playbook /home/akim/Desktop/wazuh-qa/deployability/modules/testing/playbooks/test.yml finished with status {'skipped': {}, 'ok': {'localhost': 2}, 'dark': {}, 'failures': {}, 'ignored': {}, 'rescued': {}, 'processed': {'localhost': 1}, 'changed': {'localhost': 1}}
[2024-07-30 13:26:17,230] [DEBUG] TESTER: Using inventory: {'all': {'hosts': {'ec2-52-87-183-207.compute-1.amazonaws.com': {'ansible_port': 2200, 'ansible_user': 'ec2-user', 'ansible_ssh_private_key_file': '/tmp/wazuh-qa/i-0f964d9c70c19806b/qa-5616-amazon-2-key-6162'}}}}
[2024-07-30 13:26:17,230] [DEBUG] TESTER: Running playbook: /home/akim/Desktop/wazuh-qa/deployability/modules/testing/playbooks/test.yml
[2024-07-30 13:26:23,257] [DEBUG] SPNEGO._GSS: Python gssapi not available, cannot use any GSSAPIProxy protocols: No module named 'gssapi'
[2024-07-30 13:26:23,258] [DEBUG] SPNEGO._GSS: Python gssapi IOV extension not available: No module named 'gssapi'
[2024-07-30 13:26:23,430] [INFO] TESTER: Getting status of amazon-2
[2024-07-30 13:26:25,697] [INFO] TESTER: Getting status of amazon-2
[2024-07-30 13:26:28,444] [INFO] TESTER: Getting status of amazon-2
[2024-07-30 13:26:30,596] [INFO] TESTER: Getting status of amazon-2
[2024-07-30 13:26:32,877] [INFO] TESTER: Uninstalling Wazuh central components (AIO) in amazon-2
[2024-07-30 13:27:11,776] [DEBUG] TESTER: Playbook /home/akim/Desktop/wazuh-qa/deployability/modules/testing/playbooks/test.yml finished with status {'skipped': {}, 'ok': {'localhost': 2}, 'dark': {}, 'failures': {}, 'ignored': {}, 'rescued': {}, 'processed': {'localhost': 1}, 'changed': {'localhost': 1}}
[2024-07-30 13:27:11,779] [INFO] TESTER: Cleaning up
[2024-07-30 13:27:11,779] [DEBUG] TESTER: Using inventory: {'all': {'hosts': {'ec2-52-87-183-207.compute-1.amazonaws.com': {'ansible_port': 2200, 'ansible_user': 'ec2-user', 'ansible_ssh_private_key_file': '/tmp/wazuh-qa/i-0f964d9c70c19806b/qa-5616-amazon-2-key-6162'}}}}
[2024-07-30 13:27:11,779] [DEBUG] TESTER: Running playbook: /home/akim/Desktop/wazuh-qa/deployability/modules/testing/playbooks/cleanup.yml
[2024-07-30 13:27:26,417] [DEBUG] TESTER: Playbook /home/akim/Desktop/wazuh-qa/deployability/modules/testing/playbooks/cleanup.yml finished with status {'skipped': {}, 'ok': {'ec2-52-87-183-207.compute-1.amazonaws.com': 2}, 'dark': {}, 'failures': {}, 'ignored': {}, 'rescued': {}, 'processed': {'ec2-52-87-183-207.compute-1.amazonaws.com': 1}, 'changed': {}}
[2024-07-30 13:27:26,517] [INFO] [216483] [ThreadPoolExecutor-0_0] [jobflow]: [run-central_components-linux-amazon-2-amd64-tests] Finished task in 629.29 seconds.
[2024-07-30 13:27:26,528] [INFO] [216483] [MainThread] [jobflow]: Executing Reverse DAG tasks.
[2024-07-30 13:27:26,528] [INFO] [216483] [MainThread] [jobflow]: Executing tasks in parallel.
[2024-07-30 13:27:26,528] [INFO] [216483] [ThreadPoolExecutor-1_0] [jobflow]: [allocate-central_components-linux-amazon-2-amd64] Starting task.
[2024-07-30 13:27:26,908] [DEBUG] SPNEGO._GSS: Python gssapi not available, cannot use any GSSAPIProxy protocols: No module named 'gssapi'
[2024-07-30 13:27:26,909] [DEBUG] SPNEGO._GSS: Python gssapi IOV extension not available: No module named 'gssapi'
[2024-07-30 13:27:27,002] [INFO] ALLOCATOR: Deleting instance from trackfile /tmp/dtt1-poc/central_components-['linux-amazon-2-amd64']/track.yaml
[2024-07-30 13:27:27,096] [ERROR] [216483] [ThreadPoolExecutor-1_0] [jobflow]: [allocate-central_components-linux-amazon-2-amd64] Task failed with error: Error executing process task /home/akim/Desktop/venvs/24935/lib/python3.10/site-packages/paramiko/pkey.py:100: CryptographyDeprecationWarning: TripleDES has been moved to cryptography.hazmat.decrepit.ciphers.algorithms.TripleDES and will be removed from this module in 48.0.0.
  "cipher": algorithms.TripleDES,
/home/akim/Desktop/venvs/24935/lib/python3.10/site-packages/paramiko/transport.py:259: CryptographyDeprecationWarning: TripleDES has been moved to cryptography.hazmat.decrepit.ciphers.algorithms.TripleDES and will be removed from this module in 48.0.0.
  "class": algorithms.TripleDES,
Traceback (most recent call last):
  File "/home/akim/Desktop/wazuh-qa/deployability/modules/allocation/main.py", line 39, in <module>
    main()
  File "/home/akim/Desktop/wazuh-qa/deployability/modules/allocation/main.py", line 35, in main
    Allocator.run(InputPayload(**vars(parse_arguments())))
  File "/home/akim/Desktop/wazuh-qa/deployability/modules/allocation/allocation.py", line 43, in run
    return cls.__delete(payload)
  File "/home/akim/Desktop/wazuh-qa/deployability/modules/allocation/allocation.py", line 93, in __delete
    with open(payload.track_output, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: "/tmp/dtt1-poc/central_components-['linux-amazon-2-amd64']/track.yaml"

Amazon-2: I have not been able to find a bug in the tests
Centos-8: the guided installer under assistance does not work due to failure in the lsof installation.
In both cases: the delete of the instances mediated by the allocator have failed.


In relation to Centos-8 failure

Failed to download metadata for repo 'appstream': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried

The CentOS 8 reaching its end of life, the content from the CentOS 8 repositories has been moved to vault.centos.org. Please update your CentOS yum repository paths from 'mirror.centos.org' to 'vault.centos.org' to resolve the issue.

Information from here and here

However, the error message does look for the updated repository.
This is communicated to @devops-team to see if there are any pending modifications to the Centos-8 AMI

@devops-team tried to replicate the error but it was not successful.
The test was re-run and the correction of the previously mentioned error was confirmed.
The error was due to a failure in the vault.centos.org mirrors.


Executing same YAML only testing Centos-8

Result
�[36m[2024-07-30 19:57:55] [DEBUG] [610340] [MainThread] [jobflow]: Validating input file: modules/jobflow/examples/c24935.yaml�[0m
�[36m[2024-07-30 19:57:55] [DEBUG] [610340] [MainThread] [jobflow]: Loading schema file: /home/akim/Desktop/venvs/24935/lib/python3.10/site-packages/jobflow/schemas/schema_v1.json�[0m
�[36m[2024-07-30 19:57:55] [DEBUG] [610340] [MainThread] [jobflow]: Loading yaml file: modules/jobflow/examples/c24935.yaml�[0m
�[36m[2024-07-30 19:57:55] [DEBUG] [610340] [MainThread] [jobflow]: Loading workflow file: modules/jobflow/examples/c24935.yaml�[0m
�[36m[2024-07-30 19:57:55] [DEBUG] [610340] [MainThread] [jobflow]: Process workflow.�[0m
�[32m[2024-07-30 19:57:55] [INFO] [610340] [MainThread] [jobflow]: Executing DAG tasks.�[0m
�[32m[2024-07-30 19:57:55] [INFO] [610340] [MainThread] [jobflow]: Executing tasks in parallel.�[0m
�[32m[2024-07-30 19:57:55] [INFO] [610340] [ThreadPoolExecutor-0_0] [jobflow]: [allocate-central_components-linux-centos-8-amd64] Starting task.�[0m
�[36m[2024-07-30 19:57:55] [DEBUG] [610340] [ThreadPoolExecutor-0_0] [jobflow]: Running task "allocate-central_components-linux-centos-8-amd64" with arguments: ['modules/allocation/main.py', '--action=create', '--provider=aws', '--size=large', '--composite-name=linux-centos-8-amd64', '--inventory-output=/tmp/dtt1-poc/central_components-linux-centos-8-amd64/inventory.yaml', '--track-output=/tmp/dtt1-poc/central_components-linux-centos-8-amd64/track.yaml', '--label-termination-date=1d', '--label-team=qa', '--label-issue=https://github.com/wazuh/wazuh-qa/issues/5616']�[0m
�[36m[2024-07-30 19:58:56] [DEBUG] [610340] [ThreadPoolExecutor-0_0] [jobflow]: Finished task "allocate-central_components-linux-centos-8-amd64" execution with result:
�[37m[2024-07-30 19:57:56] [DEBUG] SPNEGO._GSS: Python gssapi not available, cannot use any GSSAPIProxy protocols: No module named 'gssapi'�[0m
�[37m[2024-07-30 19:57:56] [DEBUG] SPNEGO._GSS: Python gssapi IOV extension not available: No module named 'gssapi'�[0m
�[32m[2024-07-30 19:57:56] [INFO] ALLOCATOR: Creating instance at /tmp/wazuh-qa�[0m
�[37m[2024-07-30 19:57:57] [DEBUG] ALLOCATOR: No config provided. Generating from payload�[0m
�[37m[2024-07-30 19:57:57] [DEBUG] ALLOCATOR: Generating new key pair�[0m
�[37m[2024-07-30 19:57:57] [DEBUG] ALLOCATOR: Creating base directory: /tmp/wazuh-qa/AWS-33984F46-CA31-42C5-928B-7ACCCA66AAF3�[0m
�[37m[2024-07-30 19:58:22] [DEBUG] ALLOCATOR: Renaming temp /tmp/wazuh-qa/AWS-33984F46-CA31-42C5-928B-7ACCCA66AAF3 directory to /tmp/wazuh-qa/i-0c78e16645ebf5e58�[0m
�[32m[2024-07-30 19:58:22] [INFO] ALLOCATOR: Instance i-0c78e16645ebf5e58 created.�[0m
�[32m[2024-07-30 19:58:23] [INFO] ALLOCATOR: Instance i-0c78e16645ebf5e58 started.�[0m
�[32m[2024-07-30 19:58:23] [INFO] ALLOCATOR: The inventory file generated at /tmp/dtt1-poc/central_components-linux-centos-8-amd64/inventory.yaml�[0m
�[32m[2024-07-30 19:58:23] [INFO] ALLOCATOR: The track file generated at /tmp/dtt1-poc/central_components-linux-centos-8-amd64/track.yaml�[0m
�[33m[2024-07-30 19:58:24] [WARNING] ALLOCATOR: Error on attempt 1 of 30: [Errno None] Unable to connect to port 2200 on 3.88.132.146�[0m
�[32m[2024-07-30 19:58:55] [INFO] ALLOCATOR: SSH connection successful.�[0m
�[32m[2024-07-30 19:58:55] [INFO] ALLOCATOR: Instance i-0c78e16645ebf5e58 created successfully.�[0m
�[0m
�[32m[2024-07-30 19:58:56] [INFO] [610340] [ThreadPoolExecutor-0_0] [jobflow]: [allocate-central_components-linux-centos-8-amd64] Finished task in 60.49 seconds.�[0m
�[32m[2024-07-30 19:58:56] [INFO] [610340] [ThreadPoolExecutor-0_0] [jobflow]: [run-central_components-linux-centos-8-amd64-tests] Starting task.�[0m
�[36m[2024-07-30 19:58:56] [DEBUG] [610340] [ThreadPoolExecutor-0_0] [jobflow]: Running task "run-central_components-linux-centos-8-amd64-tests" with arguments: ['modules/testing/main.py', "--targets={'wazuh-1': '/tmp/dtt1-poc/central_components-linux-centos-8-amd64/inventory.yaml'}", '--tests=install,restart,stop,uninstall', '--component=central_components', '--wazuh-version=4.9.0', '--wazuh-revision=40903', '--live=False']�[0m
�[36m[2024-07-30 20:11:16] [DEBUG] [610340] [ThreadPoolExecutor-0_0] [jobflow]: Finished task "run-central_components-linux-centos-8-amd64-tests" execution with result:
�[37m[2024-07-30 19:58:56] [DEBUG] SPNEGO._GSS: Python gssapi not available, cannot use any GSSAPIProxy protocols: No module named 'gssapi'�[0m
�[37m[2024-07-30 19:58:56] [DEBUG] SPNEGO._GSS: Python gssapi IOV extension not available: No module named 'gssapi'�[0m
�[32m[2024-07-30 19:58:56] [INFO] TESTER: Running tests for ec2-3-88-132-146.compute-1.amazonaws.com�[0m
�[37m[2024-07-30 19:58:56] [DEBUG] TESTER: Using extra vars: {'component': 'central_components', 'wazuh_version': '4.9.0', 'wazuh_revision': '40903', 'wazuh_branch': None, 'working_dir': '/tmp/tests', 'live': False, 'hosts_ip': ['ec2-3-88-132-146.compute-1.amazonaws.com'], 'targets': '{wazuh-1: /tmp/dtt1-poc/central_components-linux-centos-8-amd64/inventory.yaml}', 'dependencies': '{}', 'local_host_path': '/home/akim/Desktop/wazuh-qa/deployability', 'current_user': 'akim'}�[0m
�[37m[2024-07-30 19:58:56] [DEBUG] TESTER: Using inventory: {'all': {'hosts': {'ec2-3-88-132-146.compute-1.amazonaws.com': {'ansible_port': 2200, 'ansible_user': 'cloud-user', 'ansible_ssh_private_key_file': '/tmp/wazuh-qa/i-0c78e16645ebf5e58/qa-5616-centos-8-key-7102'}}}}�[0m
�[37m[2024-07-30 19:58:56] [DEBUG] TESTER: Running playbook: /home/akim/Desktop/wazuh-qa/deployability/modules/testing/playbooks/setup.yml�[0m
/home/akim/Desktop/venvs/24935/lib/python3.10/site-packages/paramiko/pkey.py:100: CryptographyDeprecationWarning: TripleDES has been moved to cryptography.hazmat.decrepit.ciphers.algorithms.TripleDES and will be removed from this module in 48.0.0.
  "cipher": algorithms.TripleDES,
/home/akim/Desktop/venvs/24935/lib/python3.10/site-packages/paramiko/transport.py:259: CryptographyDeprecationWarning: TripleDES has been moved to cryptography.hazmat.decrepit.ciphers.algorithms.TripleDES and will be removed from this module in 48.0.0.
  "class": algorithms.TripleDES,
�[0;34mNo config file found; using defaults�[0m

PLAY [localhost] ***************************************************************

TASK [Gathering Facts] *********************************************************
�[0;32mok: [localhost]�[0m

TASK [Cleaning old key ssh-keygen registries] **********************************
�[0;33mchanged: [localhost] => (item=ec2-3-88-132-146.compute-1.amazonaws.com) => changed=true �[0m
�[0;33m  ansible_loop_var: item�[0m
�[0;33m  cmd:�[0m
�[0;33m  - ssh-keygen�[0m
�[0;33m  - -f�[0m
�[0;33m  - ~/.ssh/known_hosts�[0m
�[0;33m  - -R�[0m
�[0;33m  - ec2-3-88-132-146.compute-1.amazonaws.com�[0m
�[0;33m  delta: '0:00:00.012825'�[0m
�[0;33m  end: '2024-07-30 19:59:02.040041'�[0m
�[0;33m  item: ec2-3-88-132-146.compute-1.amazonaws.com�[0m
�[0;33m  msg: ''�[0m
�[0;33m  rc: 0�[0m
�[0;33m  start: '2024-07-30 19:59:02.027216'�[0m
�[0;33m  stderr: Host ec2-3-88-132-146.compute-1.amazonaws.com not found in /home/akim/.ssh/known_hosts�[0m
�[0;33m  stderr_lines: <omitted>�[0m
�[0;33m  stdout: ''�[0m
�[0;33m  stdout_lines: <omitted>�[0m

PLAY RECAP *********************************************************************
�[0;33mlocalhost�[0m                  : �[0;32mok=2   �[0m �[0;33mchanged=1   �[0m unreachable=0    failed=0    skipped=0    rescued=0    ignored=0   
�[37m[2024-07-30 19:59:02] [DEBUG] TESTER: Playbook /home/akim/Desktop/wazuh-qa/deployability/modules/testing/playbooks/setup.yml finished with status {'skipped': {}, 'ok': {'localhost': 2}, 'dark': {}, 'failures': {}, 'ignored': {}, 'rescued': {}, 'processed': {'localhost': 1}, 'changed': {'localhost': 1}}�[0m
�[37m[2024-07-30 19:59:02] [DEBUG] TESTER: Using inventory: {'all': {'hosts': {'ec2-3-88-132-146.compute-1.amazonaws.com': {'ansible_port': 2200, 'ansible_user': 'cloud-user', 'ansible_ssh_private_key_file': '/tmp/wazuh-qa/i-0c78e16645ebf5e58/qa-5616-centos-8-key-7102'}}}}�[0m
�[37m[2024-07-30 19:59:02] [DEBUG] TESTER: Running playbook: /home/akim/Desktop/wazuh-qa/deployability/modules/testing/playbooks/test.yml�[0m
/home/akim/Desktop/venvs/24935/lib/python3.10/site-packages/paramiko/pkey.py:100: CryptographyDeprecationWarning: TripleDES has been moved to cryptography.hazmat.decrepit.ciphers.algorithms.TripleDES and will be removed from this module in 48.0.0.
  "cipher": algorithms.TripleDES,
/home/akim/Desktop/venvs/24935/lib/python3.10/site-packages/paramiko/transport.py:259: CryptographyDeprecationWarning: TripleDES has been moved to cryptography.hazmat.decrepit.ciphers.algorithms.TripleDES and will be removed from this module in 48.0.0.
  "class": algorithms.TripleDES,
�[0;34mNo config file found; using defaults�[0m

PLAY [localhost] ***************************************************************

TASK [Gathering Facts] *********************************************************
�[0;32mok: [localhost]�[0m

TASK [Test install for central_components] *************************************
�[0;33mchanged: [localhost] => changed=true �[0m
�[0;33m  cmd:�[0m
�[0;33m  - python3�[0m
�[0;33m  - -m�[0m
�[0;33m  - pytest�[0m
�[0;33m  - modules/testing/tests/test_central_components/test_install.py�[0m
�[0;33m  - -v�[0m
�[0;33m  - --wazuh_version=4.9.0�[0m
�[0;33m  - --wazuh_revision=40903�[0m
�[0;33m  - --component=central_components�[0m
�[0;33m  - --dependencies={}�[0m
�[0;33m  - '--targets={wazuh-1: /tmp/dtt1-poc/central_components-linux-centos-8-amd64/inventory.yaml}'�[0m
�[0;33m  - --live=False�[0m
�[0;33m  - -s�[0m
�[0;33m  delta: '0:08:28.003133'�[0m
�[0;33m  end: '2024-07-30 20:07:33.087993'�[0m
�[0;33m  msg: ''�[0m
�[0;33m  rc: 0�[0m
�[0;33m  start: '2024-07-30 19:59:05.084860'�[0m
�[0;33m  stderr: |-�[0m
�[0;33m    Warning: Permanently added '[ec2-3-88-132-146.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.�[0m
�[0;33m    Warning: Permanently added '[ec2-3-88-132-146.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.�[0m
�[0;33m    Warning: Permanently added '[ec2-3-88-132-146.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.�[0m
�[0;33m    Warning: Permanently added '[ec2-3-88-132-146.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.�[0m
�[0;33m    Warning: Permanently added '[ec2-3-88-132-146.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.�[0m
�[0;33m    Warning: Permanently added '[ec2-3-88-132-146.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.�[0m
�[0;33m    Warning: Permanently added '[ec2-3-88-132-146.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.�[0m
�[0;33m    Warning: Permanently added '[ec2-3-88-132-146.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.�[0m
�[0;33m    Warning: Permanently added '[ec2-3-88-132-146.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.�[0m
�[0;33m    Warning: Permanently added '[ec2-3-88-132-146.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.�[0m
�[0;33m    Warning: Permanently added '[ec2-3-88-132-146.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.�[0m
�[0;33m    Warning: Permanently added '[ec2-3-88-132-146.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.�[0m
�[0;33m    Warning: Permanently added '[ec2-3-88-132-146.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.�[0m
�[0;33m    Warning: Permanently added '[ec2-3-88-132-146.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.�[0m
�[0;33m    Warning: Permanently added '[ec2-3-88-132-146.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.�[0m
�[0;33m    Warning: Permanently added '[ec2-3-88-132-146.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.�[0m
�[0;33m    Warning: Permanently added '[ec2-3-88-132-146.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.�[0m
�[0;33m    Warning: Permanently added '[ec2-3-88-132-146.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.�[0m
�[0;33m    Warning: Permanently added '[ec2-3-88-132-146.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.�[0m
�[0;33m    Warning: Permanently added '[ec2-3-88-132-146.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.�[0m
�[0;33m    Warning: Permanently added '[ec2-3-88-132-146.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.�[0m
�[0;33m    Warning: Permanently added '[ec2-3-88-132-146.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.�[0m
�[0;33m    Warning: Permanently added '[ec2-3-88-132-146.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.�[0m
�[0;33m    Warning: Permanently added '[ec2-3-88-132-146.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.�[0m
�[0;33m    Warning: Permanently added '[ec2-3-88-132-146.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.�[0m
�[0;33m    Warning: Permanently added '[ec2-3-88-132-146.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.�[0m
�[0;33m    Warning: Permanently added '[ec2-3-88-132-146.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.�[0m
�[0;33m    Warning: Permanently added '[ec2-3-88-132-146.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.�[0m
�[0;33m    Warning: Permanently added '[ec2-3-88-132-146.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.�[0m
�[0;33m    Warning: Permanently added '[ec2-3-88-132-146.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.�[0m
�[0;33m    Warning: Permanently added '[ec2-3-88-132-146.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.�[0m
�[0;33m    Warning: Permanently added '[ec2-3-88-132-146.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.�[0m
�[0;33m    Warning: Permanently added '[ec2-3-88-132-146.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.�[0m
�[0;33m    Warning: Permanently added '[ec2-3-88-132-146.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.�[0m
�[0;33m    Warning: Permanently added '[ec2-3-88-132-146.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.�[0m
�[0;33m    Warning: Permanently added '[ec2-3-88-132-146.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.�[0m
�[0;33m    Warning: Permanently added '[ec2-3-88-132-146.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.�[0m
�[0;33m    Warning: Permanently added '[ec2-3-88-132-146.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.�[0m
�[0;33m    Warning: Permanently added '[ec2-3-88-132-146.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.�[0m
�[0;33m    Warning: Permanently added '[ec2-3-88-132-146.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.�[0m
�[0;33m    Warning: Permanently added '[ec2-3-88-132-146.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.�[0m
�[0;33m    Warning: Permanently added '[ec2-3-88-132-146.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.�[0m
�[0;33m    Warning: Permanently added '[ec2-3-88-132-146.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.�[0m
�[0;33m    Warning: Permanently added '[ec2-3-88-132-146.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.�[0m
�[0;33m    Warning: Permanently added '[ec2-3-88-132-146.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.�[0m
�[0;33m    Warning: Permanently added '[ec2-3-88-132-146.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.�[0m
�[0;33m    Warning: Permanently added '[ec2-3-88-132-146.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.�[0m
�[0;33m    Warning: Permanently added '[ec2-3-88-132-146.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.�[0m
�[0;33m    Warning: Permanently added '[ec2-3-88-132-146.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.�[0m
�[0;33m    Warning: Permanently added '[ec2-3-88-132-146.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.�[0m
�[0;33m    Warning: Permanently added '[ec2-3-88-132-146.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.�[0m
�[0;33m      % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current�[0m
�[0;33m                                     Dload  Upload   Total   Spent    Left  Speed�[0m
�[0;33m      0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0100    70  100    70    0     0   4666      0 --:--:-- --:--:-- --:--:--  4666�[0m
�[0;33m    Warning: Permanently added '[ec2-3-88-132-146.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.�[0m
�[0;33m    Warning: Permanently added '[ec2-3-88-132-146.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.�[0m
�[0;33m    Warning: Permanently added '[ec2-3-88-132-146.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.�[0m
�[0;33m    Warning: Permanently added '[ec2-3-88-132-146.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.�[0m
�[0;33m    Warning: Permanently added '[ec2-3-88-132-146.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.�[0m
�[0;33m    Warning: Permanently added '[ec2-3-88-132-146.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.�[0m
�[0;33m      % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current�[0m
�[0;33m                                     Dload  Upload   Total   Spent    Left  Speed�[0m
�[0;33m      0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0100   684  100   684    0     0  18486      0 --:--:-- --:--:-- --:--:-- 18486�[0m
�[0;33m    Warning: Permanently added '[ec2-3-88-132-146.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.�[0m
�[0;33m    Warning: Permanently added '[ec2-3-88-132-146.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.�[0m
�[0;33m    Warning: Permanently added '[ec2-3-88-132-146.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.�[0m
�[0;33m    Warning: Permanently added '[ec2-3-88-132-146.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.�[0m
�[0;33m    Warning: Permanently added '[ec2-3-88-132-146.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.�[0m
�[0;33m  stderr_lines: <omitted>�[0m
�[0;33m  stdout: |-�[0m
�[0;33m    [37m[2024-07-30 19:59:05] [DEBUG] SPNEGO._GSS: Python gssapi not available, cannot use any GSSAPIProxy protocols: No module named 'gssapi'[0m�[0m
�[0;33m    [37m[2024-07-30 19:59:05] [DEBUG] SPNEGO._GSS: Python gssapi IOV extension not available: No module named 'gssapi'[0m�[0m
�[0;33m    ============================= test session starts ==============================�[0m
�[0;33m    platform linux -- Python 3.10.12, pytest-7.4.4, pluggy-1.5.0 -- /home/akim/Desktop/venvs/24935/bin/python3�[0m
�[0;33m    cachedir: .pytest_cache�[0m
�[0;33m    rootdir: /home/akim/Desktop/wazuh-qa/deployability/modules�[0m
�[0;33m    collecting ... collected 21 items�[0m
�[0;33m  �[0m
�[0;33m    modules/testing/tests/test_central_components/test_install.py::test_installation [32m[2024-07-30 19:59:05] [INFO] TESTER: Checking connection to centos-8[0m�[0m
�[0;33m    [32m[2024-07-30 19:59:06] [INFO] TESTER: Connection established successfully in centos-8[0m�[0m
�[0;33m    [32m[2024-07-30 19:59:08] [INFO] TESTER: No Firewall to disable on centos-8[0m�[0m
�[0;33m    [32m[2024-07-30 19:59:34] [INFO] TESTER: Installing the Wazuh manager with https://packages-dev.wazuh.com/4.9/wazuh-install.sh[0m�[0m
�[0;33m    [32m[2024-07-30 19:59:36] [INFO] TESTER: Installing Wazuh central components (AIO) in centos-8[0m�[0m
�[0;33m    PASSED�[0m
�[0;33m    modules/testing/tests/test_central_components/test_install.py::test_manager_status [32m[2024-07-30 20:05:34] [INFO] TESTER: Getting status of centos-8[0m�[0m
�[0;33m    PASSED�[0m
�[0;33m    modules/testing/tests/test_central_components/test_install.py::test_manager_version PASSED�[0m
�[0;33m    modules/testing/tests/test_central_components/test_install.py::test_manager_revision PASSED�[0m
�[0;33m    modules/testing/tests/test_central_components/test_install.py::test_manager_installed_directory PASSED�[0m
�[0;33m    modules/testing/tests/test_central_components/test_install.py::test_manager_api_port PASSED�[0m
�[0;33m    modules/testing/tests/test_central_components/test_install.py::test_manager_agent_port PASSED�[0m
�[0;33m    modules/testing/tests/test_central_components/test_install.py::test_manager_agent_enrollment_port PASSED�[0m
�[0;33m    modules/testing/tests/test_central_components/test_install.py::test_dashboard_status [32m[2024-07-30 20:06:05] [INFO] TESTER: Getting status of centos-8[0m�[0m
�[0;33m    PASSED�[0m
�[0;33m    modules/testing/tests/test_central_components/test_install.py::test_dashboard_version PASSED�[0m
�[0;33m    modules/testing/tests/test_central_components/test_install.py::test_dashboard_nodes PASSED�[0m
�[0;33m    modules/testing/tests/test_central_components/test_install.py::test_dashboard_keystore PASSED�[0m
�[0;33m    modules/testing/tests/test_central_components/test_install.py::test_dashboard_port PASSED�[0m
�[0;33m    modules/testing/tests/test_central_components/test_install.py::test_indexer_status [32m[2024-07-30 20:06:41] [INFO] TESTER: Getting status of centos-8[0m�[0m
�[0;33m    PASSED�[0m
�[0;33m    modules/testing/tests/test_central_components/test_install.py::test_indexer_clusters_status PASSED�[0m
�[0;33m    modules/testing/tests/test_central_components/test_install.py::test_indexer_indexes PASSED�[0m
�[0;33m    modules/testing/tests/test_central_components/test_install.py::test_indexer_internalUsers PASSED�[0m
�[0;33m    modules/testing/tests/test_central_components/test_install.py::test_indexer_version PASSED�[0m
�[0;33m    modules/testing/tests/test_central_components/test_install.py::test_indexer_port PASSED�[0m
�[0;33m    modules/testing/tests/test_central_components/test_install.py::test_filebeat_status [32m[2024-07-30 20:07:28] [INFO] TESTER: Getting status of centos-8[0m�[0m
�[0;33m    PASSED�[0m
�[0;33m    modules/testing/tests/test_central_components/test_install.py::test_indexer_conexion PASSED�[0m
�[0;33m  �[0m
�[0;33m    =============================== warnings summary ===============================�[0m
�[0;33m    modules/provision/models.py:36�[0m
�[0;33m      /home/akim/Desktop/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/�[0m
�[0;33m        @validator('dependencies', pre=True)�[0m
�[0;33m  �[0m
�[0;33m    modules/provision/models.py:64�[0m
�[0;33m      /home/akim/Desktop/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/�[0m
�[0;33m        @validator('install', 'uninstall', pre=True)�[0m
�[0;33m  �[0m
�[0;33m    ../../venvs/24935/lib/python3.10/site-packages/paramiko/pkey.py:100�[0m
�[0;33m      /home/akim/Desktop/venvs/24935/lib/python3.10/site-packages/paramiko/pkey.py:100: CryptographyDeprecationWarning: TripleDES has been moved to cryptography.hazmat.decrepit.ciphers.algorithms.TripleDES and will be removed from this module in 48.0.0.�[0m
�[0;33m        "cipher": algorithms.TripleDES,�[0m
�[0;33m  �[0m
�[0;33m    ../../venvs/24935/lib/python3.10/site-packages/paramiko/transport.py:259�[0m
�[0;33m      /home/akim/Desktop/venvs/24935/lib/python3.10/site-packages/paramiko/transport.py:259: CryptographyDeprecationWarning: TripleDES has been moved to cryptography.hazmat.decrepit.ciphers.algorithms.TripleDES and will be removed from this module in 48.0.0.�[0m
�[0;33m        "class": algorithms.TripleDES,�[0m
�[0;33m  �[0m
�[0;33m    -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html�[0m
�[0;33m    ================== 21 passed, 4 warnings in 507.25s (0:08:27) ==================�[0m
�[0;33m  stdout_lines: <omitted>�[0m

PLAY RECAP *********************************************************************
�[0;33mlocalhost�[0m                  : �[0;32mok=2   �[0m �[0;33mchanged=1   �[0m unreachable=0    failed=0    skipped=0    rescued=0    ignored=0   
�[37m[2024-07-30 20:07:33] [DEBUG] TESTER: Playbook /home/akim/Desktop/wazuh-qa/deployability/modules/testing/playbooks/test.yml finished with status {'skipped': {}, 'ok': {'localhost': 2}, 'dark': {}, 'failures': {}, 'ignored': {}, 'rescued': {}, 'processed': {'localhost': 1}, 'changed': {'localhost': 1}}�[0m
�[37m[2024-07-30 20:07:33] [DEBUG] TESTER: Using inventory: {'all': {'hosts': {'ec2-3-88-132-146.compute-1.amazonaws.com': {'ansible_port': 2200, 'ansible_user': 'cloud-user', 'ansible_ssh_private_key_file': '/tmp/wazuh-qa/i-0c78e16645ebf5e58/qa-5616-centos-8-key-7102'}}}}�[0m
�[37m[2024-07-30 20:07:33] [DEBUG] TESTER: Running playbook: /home/akim/Desktop/wazuh-qa/deployability/modules/testing/playbooks/test.yml�[0m
/home/akim/Desktop/venvs/24935/lib/python3.10/site-packages/paramiko/pkey.py:100: CryptographyDeprecationWarning: TripleDES has been moved to cryptography.hazmat.decrepit.ciphers.algorithms.TripleDES and will be removed from this module in 48.0.0.
  "cipher": algorithms.TripleDES,
/home/akim/Desktop/venvs/24935/lib/python3.10/site-packages/paramiko/transport.py:259: CryptographyDeprecationWarning: TripleDES has been moved to cryptography.hazmat.decrepit.ciphers.algorithms.TripleDES and will be removed from this module in 48.0.0.
  "class": algorithms.TripleDES,
�[0;34mNo config file found; using defaults�[0m

PLAY [localhost] ***************************************************************

TASK [Gathering Facts] *********************************************************
�[0;32mok: [localhost]�[0m

TASK [Test restart for central_components] *************************************
�[0;33mchanged: [localhost] => changed=true �[0m
�[0;33m  cmd:�[0m
�[0;33m  - python3�[0m
�[0;33m  - -m�[0m
�[0;33m  - pytest�[0m
�[0;33m  - modules/testing/tests/test_central_components/test_restart.py�[0m
�[0;33m  - -v�[0m
�[0;33m  - --wazuh_version=4.9.0�[0m
�[0;33m  - --wazuh_revision=40903�[0m
�[0;33m  - --component=central_components�[0m
�[0;33m  - --dependencies={}�[0m
�[0;33m  - '--targets={wazuh-1: /tmp/dtt1-poc/central_components-linux-centos-8-amd64/inventory.yaml}'�[0m
�[0;33m  - --live=False�[0m
�[0;33m  - -s�[0m
�[0;33m  delta: '0:00:58.150614'�[0m
�[0;33m  end: '2024-07-30 20:08:37.027096'�[0m
�[0;33m  msg: ''�[0m
�[0;33m  rc: 0�[0m
�[0;33m  start: '2024-07-30 20:07:38.876482'�[0m
�[0;33m  stderr: |-�[0m
�[0;33m    Warning: Permanently added '[ec2-3-88-132-146.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.�[0m
�[0;33m    Warning: Permanently added '[ec2-3-88-132-146.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.�[0m
�[0;33m    Warning: Permanently added '[ec2-3-88-132-146.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.�[0m
�[0;33m    Warning: Permanently added '[ec2-3-88-132-146.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.�[0m
�[0;33m    Warning: Permanently added '[ec2-3-88-132-146.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.�[0m
�[0;33m    Warning: Permanently added '[ec2-3-88-132-146.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.�[0m
�[0;33m    Warning: Permanently added '[ec2-3-88-132-146.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.�[0m
�[0;33m    Warning: Permanently added '[ec2-3-88-132-146.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.�[0m
�[0;33m    Warning: Permanently added '[ec2-3-88-132-146.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.�[0m
�[0;33m    Warning: Permanently added '[ec2-3-88-132-146.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.�[0m
�[0;33m    Warning: Permanently added '[ec2-3-88-132-146.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.�[0m
�[0;33m    Warning: Permanently added '[ec2-3-88-132-146.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.�[0m
�[0;33m    Warning: Permanently added '[ec2-3-88-132-146.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.�[0m
�[0;33m  stderr_lines: <omitted>�[0m
�[0;33m  stdout: |-�[0m
�[0;33m    [37m[2024-07-30 20:07:39] [DEBUG] SPNEGO._GSS: Python gssapi not available, cannot use any GSSAPIProxy protocols: No module named 'gssapi'[0m�[0m
�[0;33m    [37m[2024-07-30 20:07:39] [DEBUG] SPNEGO._GSS: Python gssapi IOV extension not available: No module named 'gssapi'[0m�[0m
�[0;33m    ============================= test session starts ==============================�[0m
�[0;33m    platform linux -- Python 3.10.12, pytest-7.4.4, pluggy-1.5.0 -- /home/akim/Desktop/venvs/24935/bin/python3�[0m
�[0;33m    cachedir: .pytest_cache�[0m
�[0;33m    rootdir: /home/akim/Desktop/wazuh-qa/deployability/modules�[0m
�[0;33m    collecting ... collected 10 items�[0m
�[0;33m  �[0m
�[0;33m    modules/testing/tests/test_central_components/test_restart.py::test_restart [32m[2024-07-30 20:07:39] [INFO] TESTER: Restarting wazuh-manager in centos-8[0m�[0m
�[0;33m    [32m[2024-07-30 20:07:56] [INFO] TESTER: Restarting wazuh-indexer in centos-8[0m�[0m
�[0;33m    [32m[2024-07-30 20:08:14] [INFO] TESTER: Restarting wazuh-dashboard in centos-8[0m�[0m
�[0;33m    [32m[2024-07-30 20:08:17] [INFO] TESTER: Restarting filebeat in centos-8[0m�[0m
�[0;33m    PASSED�[0m
�[0;33m    modules/testing/tests/test_central_components/test_restart.py::test_manager_status [32m[2024-07-30 20:08:19] [INFO] TESTER: Getting status of centos-8[0m�[0m
�[0;33m    PASSED�[0m
�[0;33m    modules/testing/tests/test_central_components/test_restart.py::test_dashboard_status [32m[2024-07-30 20:08:20] [INFO] TESTER: Getting status of centos-8[0m�[0m
�[0;33m    PASSED�[0m
�[0;33m    modules/testing/tests/test_central_components/test_restart.py::test_indexer_status [32m[2024-07-30 20:08:22] [INFO] TESTER: Getting status of centos-8[0m�[0m
�[0;33m    PASSED�[0m
�[0;33m    modules/testing/tests/test_central_components/test_restart.py::test_filebeat_status [32m[2024-07-30 20:08:24] [INFO] TESTER: Getting status of centos-8[0m�[0m
�[0;33m    PASSED�[0m
�[0;33m    modules/testing/tests/test_central_components/test_restart.py::test_manager_api_port PASSED�[0m
�[0;33m    modules/testing/tests/test_central_components/test_restart.py::test_manager_agent_port PASSED�[0m
�[0;33m    modules/testing/tests/test_central_components/test_restart.py::test_manager_agent_enrollment_port PASSED�[0m
�[0;33m    modules/testing/tests/test_central_components/test_restart.py::test_dashboard_port PASSED�[0m
�[0;33m    modules/testing/tests/test_central_components/test_restart.py::test_indexer_port PASSED�[0m
�[0;33m  �[0m
�[0;33m    =============================== warnings summary ===============================�[0m
�[0;33m    modules/provision/models.py:36�[0m
�[0;33m      /home/akim/Desktop/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/�[0m
�[0;33m        @validator('dependencies', pre=True)�[0m
�[0;33m  �[0m
�[0;33m    modules/provision/models.py:64�[0m
�[0;33m      /home/akim/Desktop/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/�[0m
�[0;33m        @validator('install', 'uninstall', pre=True)�[0m
�[0;33m  �[0m
�[0;33m    ../../venvs/24935/lib/python3.10/site-packages/paramiko/pkey.py:100�[0m
�[0;33m      /home/akim/Desktop/venvs/24935/lib/python3.10/site-packages/paramiko/pkey.py:100: CryptographyDeprecationWarning: TripleDES has been moved to cryptography.hazmat.decrepit.ciphers.algorithms.TripleDES and will be removed from this module in 48.0.0.�[0m
�[0;33m        "cipher": algorithms.TripleDES,�[0m
�[0;33m  �[0m
�[0;33m    ../../venvs/24935/lib/python3.10/site-packages/paramiko/transport.py:259�[0m
�[0;33m      /home/akim/Desktop/venvs/24935/lib/python3.10/site-packages/paramiko/transport.py:259: CryptographyDeprecationWarning: TripleDES has been moved to cryptography.hazmat.decrepit.ciphers.algorithms.TripleDES and will be removed from this module in 48.0.0.�[0m
�[0;33m        "class": algorithms.TripleDES,�[0m
�[0;33m  �[0m
�[0;33m    -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html�[0m
�[0;33m    ======================= 10 passed, 4 warnings in 57.48s ========================�[0m
�[0;33m  stdout_lines: <omitted>�[0m

PLAY RECAP *********************************************************************
�[0;33mlocalhost�[0m                  : �[0;32mok=2   �[0m �[0;33mchanged=1   �[0m unreachable=0    failed=0    skipped=0    rescued=0    ignored=0   
�[37m[2024-07-30 20:08:37] [DEBUG] TESTER: Playbook /home/akim/Desktop/wazuh-qa/deployability/modules/testing/playbooks/test.yml finished with status {'skipped': {}, 'ok': {'localhost': 2}, 'dark': {}, 'failures': {}, 'ignored': {}, 'rescued': {}, 'processed': {'localhost': 1}, 'changed': {'localhost': 1}}�[0m
�[37m[2024-07-30 20:08:37] [DEBUG] TESTER: Using inventory: {'all': {'hosts': {'ec2-3-88-132-146.compute-1.amazonaws.com': {'ansible_port': 2200, 'ansible_user': 'cloud-user', 'ansible_ssh_private_key_file': '/tmp/wazuh-qa/i-0c78e16645ebf5e58/qa-5616-centos-8-key-7102'}}}}�[0m
�[37m[2024-07-30 20:08:37] [DEBUG] TESTER: Running playbook: /home/akim/Desktop/wazuh-qa/deployability/modules/testing/playbooks/test.yml�[0m
/home/akim/Desktop/venvs/24935/lib/python3.10/site-packages/paramiko/pkey.py:100: CryptographyDeprecationWarning: TripleDES has been moved to cryptography.hazmat.decrepit.ciphers.algorithms.TripleDES and will be removed from this module in 48.0.0.
  "cipher": algorithms.TripleDES,
/home/akim/Desktop/venvs/24935/lib/python3.10/site-packages/paramiko/transport.py:259: CryptographyDeprecationWarning: TripleDES has been moved to cryptography.hazmat.decrepit.ciphers.algorithms.TripleDES and will be removed from this module in 48.0.0.
  "class": algorithms.TripleDES,
�[0;34mNo config file found; using defaults�[0m

PLAY [localhost] ***************************************************************

TASK [Gathering Facts] *********************************************************
�[0;32mok: [localhost]�[0m

TASK [Test stop for central_components] ****************************************
�[0;33mchanged: [localhost] => changed=true �[0m
�[0;33m  cmd:�[0m
�[0;33m  - python3�[0m
�[0;33m  - -m�[0m
�[0;33m  - pytest�[0m
�[0;33m  - modules/testing/tests/test_central_components/test_stop.py�[0m
�[0;33m  - -v�[0m
�[0;33m  - --wazuh_version=4.9.0�[0m
�[0;33m  - --wazuh_revision=40903�[0m
�[0;33m  - --component=central_components�[0m
�[0;33m  - --dependencies={}�[0m
�[0;33m  - '--targets={wazuh-1: /tmp/dtt1-poc/central_components-linux-centos-8-amd64/inventory.yaml}'�[0m
�[0;33m  - --live=False�[0m
�[0;33m  - -s�[0m
�[0;33m  delta: '0:01:07.045548'�[0m
�[0;33m  end: '2024-07-30 20:09:49.734109'�[0m
�[0;33m  msg: ''�[0m
�[0;33m  rc: 0�[0m
�[0;33m  start: '2024-07-30 20:08:42.688561'�[0m
�[0;33m  stderr: |-�[0m
�[0;33m    Warning: Permanently added '[ec2-3-88-132-146.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.�[0m
�[0;33m    Warning: Permanently added '[ec2-3-88-132-146.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.�[0m
�[0;33m    Warning: Permanently added '[ec2-3-88-132-146.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.�[0m
�[0;33m    Warning: Permanently added '[ec2-3-88-132-146.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.�[0m
�[0;33m    Warning: Permanently added '[ec2-3-88-132-146.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.�[0m
�[0;33m    Warning: Permanently added '[ec2-3-88-132-146.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.�[0m
�[0;33m    Warning: Permanently added '[ec2-3-88-132-146.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.�[0m
�[0;33m    Warning: Permanently added '[ec2-3-88-132-146.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.�[0m
�[0;33m    Warning: Permanently added '[ec2-3-88-132-146.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.�[0m
�[0;33m    Warning: Permanently added '[ec2-3-88-132-146.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.�[0m
�[0;33m    Warning: Permanently added '[ec2-3-88-132-146.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.�[0m
�[0;33m    Warning: Permanently added '[ec2-3-88-132-146.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.�[0m
�[0;33m    Warning: Permanently added '[ec2-3-88-132-146.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.�[0m
�[0;33m    Warning: Permanently added '[ec2-3-88-132-146.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.�[0m
�[0;33m    Warning: Permanently added '[ec2-3-88-132-146.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.�[0m
�[0;33m    Warning: Permanently added '[ec2-3-88-132-146.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.�[0m
�[0;33m    Warning: Permanently added '[ec2-3-88-132-146.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.�[0m
�[0;33m  stderr_lines: <omitted>�[0m
�[0;33m  stdout: |-�[0m
�[0;33m    [37m[2024-07-30 20:08:43] [DEBUG] SPNEGO._GSS: Python gssapi not available, cannot use any GSSAPIProxy protocols: No module named 'gssapi'[0m�[0m
�[0;33m    [37m[2024-07-30 20:08:43] [DEBUG] SPNEGO._GSS: Python gssapi IOV extension not available: No module named 'gssapi'[0m�[0m
�[0;33m    ============================= test session starts ==============================�[0m
�[0;33m    platform linux -- Python 3.10.12, pytest-7.4.4, pluggy-1.5.0 -- /home/akim/Desktop/venvs/24935/bin/python3�[0m
�[0;33m    cachedir: .pytest_cache�[0m
�[0;33m    rootdir: /home/akim/Desktop/wazuh-qa/deployability/modules�[0m
�[0;33m    collecting ... collected 10 items�[0m
�[0;33m  �[0m
�[0;33m    modules/testing/tests/test_central_components/test_stop.py::test_stop [32m[2024-07-30 20:08:43] [INFO] TESTER: Stopping wazuh-manager in centos-8[0m�[0m
�[0;33m    [32m[2024-07-30 20:08:47] [INFO] TESTER: Stopping wazuh-indexer in centos-8[0m�[0m
�[0;33m    [32m[2024-07-30 20:08:49] [INFO] TESTER: Stopping wazuh-dashboard in centos-8[0m�[0m
�[0;33m    [32m[2024-07-30 20:08:52] [INFO] TESTER: Stopping filebeat in centos-8[0m�[0m
�[0;33m    PASSED�[0m
�[0;33m    modules/testing/tests/test_central_components/test_stop.py::test_manager_status [32m[2024-07-30 20:08:54] [INFO] TESTER: Getting status of centos-8[0m�[0m
�[0;33m    PASSED�[0m
�[0;33m    modules/testing/tests/test_central_components/test_stop.py::test_dashboard_status [32m[2024-07-30 20:08:56] [INFO] TESTER: Getting status of centos-8[0m�[0m
�[0;33m    PASSED�[0m
�[0;33m    modules/testing/tests/test_central_components/test_stop.py::test_indexer_status [32m[2024-07-30 20:08:58] [INFO] TESTER: Getting status of centos-8[0m�[0m
�[0;33m    PASSED�[0m
�[0;33m    modules/testing/tests/test_central_components/test_stop.py::test_filebeat_status [32m[2024-07-30 20:09:00] [INFO] TESTER: Getting status of centos-8[0m�[0m
�[0;33m    PASSED�[0m
�[0;33m    modules/testing/tests/test_central_components/test_stop.py::test_manager_api_port PASSED�[0m
�[0;33m    modules/testing/tests/test_central_components/test_stop.py::test_manager_agent_port PASSED�[0m
�[0;33m    modules/testing/tests/test_central_components/test_stop.py::test_manager_agent_enrollment_port PASSED�[0m
�[0;33m    modules/testing/tests/test_central_components/test_stop.py::test_dashboard_port PASSED�[0m
�[0;33m    modules/testing/tests/test_central_components/test_stop.py::test_indexer_port PASSED[32m[2024-07-30 20:09:17] [INFO] TESTER: Restoring Wazuh central components statuses[0m�[0m
�[0;33m    [32m[2024-07-30 20:09:17] [INFO] TESTER: Restarting wazuh-manager in centos-8[0m�[0m
�[0;33m    [32m[2024-07-30 20:09:31] [INFO] TESTER: Restarting wazuh-indexer in centos-8[0m�[0m
�[0;33m    [32m[2024-07-30 20:09:45] [INFO] TESTER: Restarting wazuh-dashboard in centos-8[0m�[0m
�[0;33m    [32m[2024-07-30 20:09:47] [INFO] TESTER: Restarting filebeat in centos-8[0m�[0m
�[0;33m  �[0m
�[0;33m  �[0m
�[0;33m    =============================== warnings summary ===============================�[0m
�[0;33m    modules/provision/models.py:36�[0m
�[0;33m      /home/akim/Desktop/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/�[0m
�[0;33m        @validator('dependencies', pre=True)�[0m
�[0;33m  �[0m
�[0;33m    modules/provision/models.py:64�[0m
�[0;33m      /home/akim/Desktop/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/�[0m
�[0;33m        @validator('install', 'uninstall', pre=True)�[0m
�[0;33m  �[0m
�[0;33m    ../../venvs/24935/lib/python3.10/site-packages/paramiko/pkey.py:100�[0m
�[0;33m      /home/akim/Desktop/venvs/24935/lib/python3.10/site-packages/paramiko/pkey.py:100: CryptographyDeprecationWarning: TripleDES has been moved to cryptography.hazmat.decrepit.ciphers.algorithms.TripleDES and will be removed from this module in 48.0.0.�[0m
�[0;33m        "cipher": algorithms.TripleDES,�[0m
�[0;33m  �[0m
�[0;33m    ../../venvs/24935/lib/python3.10/site-packages/paramiko/transport.py:259�[0m
�[0;33m      /home/akim/Desktop/venvs/24935/lib/python3.10/site-packages/paramiko/transport.py:259: CryptographyDeprecationWarning: TripleDES has been moved to cryptography.hazmat.decrepit.ciphers.algorithms.TripleDES and will be removed from this module in 48.0.0.�[0m
�[0;33m        "class": algorithms.TripleDES,�[0m
�[0;33m  �[0m
�[0;33m    -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html�[0m
�[0;33m    ================== 10 passed, 4 warnings in 66.36s (0:01:06) ===================�[0m
�[0;33m  stdout_lines: <omitted>�[0m

PLAY RECAP *********************************************************************
�[0;33mlocalhost�[0m                  : �[0;32mok=2   �[0m �[0;33mchanged=1   �[0m unreachable=0    failed=0    skipped=0    rescued=0    ignored=0   
�[37m[2024-07-30 20:09:50] [DEBUG] TESTER: Playbook /home/akim/Desktop/wazuh-qa/deployability/modules/testing/playbooks/test.yml finished with status {'skipped': {}, 'ok': {'localhost': 2}, 'dark': {}, 'failures': {}, 'ignored': {}, 'rescued': {}, 'processed': {'localhost': 1}, 'changed': {'localhost': 1}}�[0m
�[37m[2024-07-30 20:09:50] [DEBUG] TESTER: Using inventory: {'all': {'hosts': {'ec2-3-88-132-146.compute-1.amazonaws.com': {'ansible_port': 2200, 'ansible_user': 'cloud-user', 'ansible_ssh_private_key_file': '/tmp/wazuh-qa/i-0c78e16645ebf5e58/qa-5616-centos-8-key-7102'}}}}�[0m
�[37m[2024-07-30 20:09:50] [DEBUG] TESTER: Running playbook: /home/akim/Desktop/wazuh-qa/deployability/modules/testing/playbooks/test.yml�[0m
/home/akim/Desktop/venvs/24935/lib/python3.10/site-packages/paramiko/pkey.py:100: CryptographyDeprecationWarning: TripleDES has been moved to cryptography.hazmat.decrepit.ciphers.algorithms.TripleDES and will be removed from this module in 48.0.0.
  "cipher": algorithms.TripleDES,
/home/akim/Desktop/venvs/24935/lib/python3.10/site-packages/paramiko/transport.py:259: CryptographyDeprecationWarning: TripleDES has been moved to cryptography.hazmat.decrepit.ciphers.algorithms.TripleDES and will be removed from this module in 48.0.0.
  "class": algorithms.TripleDES,
�[0;34mNo config file found; using defaults�[0m

PLAY [localhost] ***************************************************************

TASK [Gathering Facts] *********************************************************
�[0;32mok: [localhost]�[0m

TASK [Test uninstall for central_components] ***********************************
�[0;33mchanged: [localhost] => changed=true �[0m
�[0;33m  cmd:�[0m
�[0;33m  - python3�[0m
�[0;33m  - -m�[0m
�[0;33m  - pytest�[0m
�[0;33m  - modules/testing/tests/test_central_components/test_uninstall.py�[0m
�[0;33m  - -v�[0m
�[0;33m  - --wazuh_version=4.9.0�[0m
�[0;33m  - --wazuh_revision=40903�[0m
�[0;33m  - --component=central_components�[0m
�[0;33m  - --dependencies={}�[0m
�[0;33m  - '--targets={wazuh-1: /tmp/dtt1-poc/central_components-linux-centos-8-amd64/inventory.yaml}'�[0m
�[0;33m  - --live=False�[0m
�[0;33m  - -s�[0m
�[0;33m  delta: '0:01:11.891405'�[0m
�[0;33m  end: '2024-07-30 20:11:07.490973'�[0m
�[0;33m  msg: ''�[0m
�[0;33m  rc: 0�[0m
�[0;33m  start: '2024-07-30 20:09:55.599568'�[0m
�[0;33m  stderr: |-�[0m
�[0;33m    Warning: Permanently added '[ec2-3-88-132-146.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.�[0m
�[0;33m    Warning: Permanently added '[ec2-3-88-132-146.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.�[0m
�[0;33m    Warning: Permanently added '[ec2-3-88-132-146.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.�[0m
�[0;33m    Warning: Permanently added '[ec2-3-88-132-146.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.�[0m
�[0;33m    Warning: Permanently added '[ec2-3-88-132-146.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.�[0m
�[0;33m    Warning: Permanently added '[ec2-3-88-132-146.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.�[0m
�[0;33m    Warning: Permanently added '[ec2-3-88-132-146.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.�[0m
�[0;33m    Warning: Permanently added '[ec2-3-88-132-146.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.�[0m
�[0;33m    Warning: Permanently added '[ec2-3-88-132-146.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.�[0m
�[0;33m    Warning: Permanently added '[ec2-3-88-132-146.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.�[0m
�[0;33m    Warning: Permanently added '[ec2-3-88-132-146.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.�[0m
�[0;33m  stderr_lines: <omitted>�[0m
�[0;33m  stdout: |-�[0m
�[0;33m    [37m[2024-07-30 20:09:56] [DEBUG] SPNEGO._GSS: Python gssapi not available, cannot use any GSSAPIProxy protocols: No module named 'gssapi'[0m�[0m
�[0;33m    [37m[2024-07-30 20:09:56] [DEBUG] SPNEGO._GSS: Python gssapi IOV extension not available: No module named 'gssapi'[0m�[0m
�[0;33m    ============================= test session starts ==============================�[0m
�[0;33m    platform linux -- Python 3.10.12, pytest-7.4.4, pluggy-1.5.0 -- /home/akim/Desktop/venvs/24935/bin/python3�[0m
�[0;33m    cachedir: .pytest_cache�[0m
�[0;33m    rootdir: /home/akim/Desktop/wazuh-qa/deployability/modules�[0m
�[0;33m    collecting ... collected 7 items�[0m
�[0;33m  �[0m
�[0;33m    modules/testing/tests/test_central_components/test_uninstall.py::test_uninstall [32m[2024-07-30 20:09:56] [INFO] TESTER: Getting status of centos-8[0m�[0m
�[0;33m    [32m[2024-07-30 20:09:58] [INFO] TESTER: Getting status of centos-8[0m�[0m
�[0;33m    [32m[2024-07-30 20:10:00] [INFO] TESTER: Getting status of centos-8[0m�[0m
�[0;33m    [32m[2024-07-30 20:10:02] [INFO] TESTER: Getting status of centos-8[0m�[0m
�[0;33m    [32m[2024-07-30 20:10:04] [INFO] TESTER: Uninstalling Wazuh central components (AIO) in centos-8[0m�[0m
�[0;33m    PASSED�[0m
�[0;33m    modules/testing/tests/test_central_components/test_uninstall.py::test_component_uninstalled_directory PASSED�[0m
�[0;33m    modules/testing/tests/test_central_components/test_uninstall.py::test_manager_api_port PASSED�[0m
�[0;33m    modules/testing/tests/test_central_components/test_uninstall.py::test_manager_agent_port PASSED�[0m
�[0;33m    modules/testing/tests/test_central_components/test_uninstall.py::test_manager_agent_enrollment_port PASSED�[0m
�[0;33m    modules/testing/tests/test_central_components/test_uninstall.py::test_dashboard_port PASSED�[0m
�[0;33m    modules/testing/tests/test_central_components/test_uninstall.py::test_indexer_port PASSED�[0m
�[0;33m  �[0m
�[0;33m    =============================== warnings summary ===============================�[0m
�[0;33m    modules/provision/models.py:36�[0m
�[0;33m      /home/akim/Desktop/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/�[0m
�[0;33m        @validator('dependencies', pre=True)�[0m
�[0;33m  �[0m
�[0;33m    modules/provision/models.py:64�[0m
�[0;33m      /home/akim/Desktop/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/�[0m
�[0;33m        @validator('install', 'uninstall', pre=True)�[0m
�[0;33m  �[0m
�[0;33m    ../../venvs/24935/lib/python3.10/site-packages/paramiko/pkey.py:100�[0m
�[0;33m      /home/akim/Desktop/venvs/24935/lib/python3.10/site-packages/paramiko/pkey.py:100: CryptographyDeprecationWarning: TripleDES has been moved to cryptography.hazmat.decrepit.ciphers.algorithms.TripleDES and will be removed from this module in 48.0.0.�[0m
�[0;33m        "cipher": algorithms.TripleDES,�[0m
�[0;33m  �[0m
�[0;33m    ../../venvs/24935/lib/python3.10/site-packages/paramiko/transport.py:259�[0m
�[0;33m      /home/akim/Desktop/venvs/24935/lib/python3.10/site-packages/paramiko/transport.py:259: CryptographyDeprecationWarning: TripleDES has been moved to cryptography.hazmat.decrepit.ciphers.algorithms.TripleDES and will be removed from this module in 48.0.0.�[0m
�[0;33m        "class": algorithms.TripleDES,�[0m
�[0;33m  �[0m
�[0;33m    -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html�[0m
�[0;33m    =================== 7 passed, 4 warnings in 71.20s (0:01:11) ===================�[0m
�[0;33m  stdout_lines: <omitted>�[0m

PLAY RECAP *********************************************************************
�[0;33mlocalhost�[0m                  : �[0;32mok=2   �[0m �[0;33mchanged=1   �[0m unreachable=0    failed=0    skipped=0    rescued=0    ignored=0   
�[37m[2024-07-30 20:11:07] [DEBUG] TESTER: Playbook /home/akim/Desktop/wazuh-qa/deployability/modules/testing/playbooks/test.yml finished with status {'skipped': {}, 'ok': {'localhost': 2}, 'dark': {}, 'failures': {}, 'ignored': {}, 'rescued': {}, 'processed': {'localhost': 1}, 'changed': {'localhost': 1}}�[0m
�[32m[2024-07-30 20:11:07] [INFO] TESTER: Cleaning up�[0m
�[37m[2024-07-30 20:11:07] [DEBUG] TESTER: Using inventory: {'all': {'hosts': {'ec2-3-88-132-146.compute-1.amazonaws.com': {'ansible_port': 2200, 'ansible_user': 'cloud-user', 'ansible_ssh_private_key_file': '/tmp/wazuh-qa/i-0c78e16645ebf5e58/qa-5616-centos-8-key-7102'}}}}�[0m
�[37m[2024-07-30 20:11:07] [DEBUG] TESTER: Running playbook: /home/akim/Desktop/wazuh-qa/deployability/modules/testing/playbooks/cleanup.yml�[0m
/home/akim/Desktop/venvs/24935/lib/python3.10/site-packages/paramiko/pkey.py:100: CryptographyDeprecationWarning: TripleDES has been moved to cryptography.hazmat.decrepit.ciphers.algorithms.TripleDES and will be removed from this module in 48.0.0.
  "cipher": algorithms.TripleDES,
/home/akim/Desktop/venvs/24935/lib/python3.10/site-packages/paramiko/transport.py:259: CryptographyDeprecationWarning: TripleDES has been moved to cryptography.hazmat.decrepit.ciphers.algorithms.TripleDES and will be removed from this module in 48.0.0.
  "class": algorithms.TripleDES,
�[0;34mNo config file found; using defaults�[0m

PLAY [all] *********************************************************************

TASK [Gathering Facts] *********************************************************
�[0;31mfatal: [ec2-3-88-132-146.compute-1.amazonaws.com]: FAILED! => changed=false �[0m
�[0;31m  ansible_facts: {}�[0m
�[0;31m  failed_modules:�[0m
�[0;31m    ansible.legacy.setup:�[0m
�[0;31m      ansible_facts:�[0m
�[0;31m        discovered_interpreter_python: /usr/bin/python3�[0m
�[0;31m      failed: true�[0m
�[0;31m      module_stderr: |-�[0m
�[0;31m        OpenSSH_8.9p1 Ubuntu-3ubuntu0.10, OpenSSL 3.0.2 15 Mar 2022�[0m
�[0;31m        debug1: Reading configuration data /home/akim/.ssh/config�[0m
�[0;31m        debug1: Reading configuration data /etc/ssh/ssh_config�[0m
�[0;31m        debug1: /etc/ssh/ssh_config line 19: include /etc/ssh/ssh_config.d/*.conf matched no files�[0m
�[0;31m        debug1: /etc/ssh/ssh_config line 21: Applying options for *�[0m
�[0;31m        debug1: auto-mux: Trying existing master�[0m
�[0;31m        debug1: mux_client_request_session: master session id: 2�[0m
�[0;31m        Shared connection to ec2-3-88-132-146.compute-1.amazonaws.com closed.�[0m
�[0;31m      module_stdout: |-�[0m
�[0;31m        /bin/sh: /usr/bin/python3: No such file or directory�[0m
�[0;31m      msg: |-�[0m
�[0;31m        The module failed to execute correctly, you probably need to set the interpreter.�[0m
�[0;31m        See stdout/stderr for the exact error�[0m
�[0;31m      rc: 127�[0m
�[0;31m      warnings:�[0m
�[0;31m      - No python interpreters found for host ec2-3-88-132-146.compute-1.amazonaws.com (tried ['python3.12', 'python3.11', 'python3.10', 'python3.9', 'python3.8', 'python3.7', '/usr/bin/python3', 'python3'])�[0m
�[0;31m  msg: |-�[0m
�[0;31m    The following modules failed to execute: ansible.legacy.setup�[0m

PLAY RECAP *********************************************************************
�[0;31mec2-3-88-132-146.compute-1.amazonaws.com�[0m : ok=0    changed=0    unreachable=0    �[0;31mfailed=1   �[0m skipped=0    rescued=0    ignored=0   
�[37m[2024-07-30 20:11:16] [DEBUG] TESTER: Playbook /home/akim/Desktop/wazuh-qa/deployability/modules/testing/playbooks/cleanup.yml finished with status {'skipped': {}, 'ok': {}, 'dark': {}, 'failures': {'ec2-3-88-132-146.compute-1.amazonaws.com': 1}, 'ignored': {}, 'rescued': {}, 'processed': {'ec2-3-88-132-146.compute-1.amazonaws.com': 1}, 'changed': {}}�[0m
�[0m
�[32m[2024-07-30 20:11:16] [INFO] [610340] [ThreadPoolExecutor-0_0] [jobflow]: [run-central_components-linux-centos-8-amd64-tests] Finished task in 740.20 seconds.�[0m
�[32m[2024-07-30 20:11:16] [INFO] [610340] [MainThread] [jobflow]: Executing Reverse DAG tasks.�[0m
�[32m[2024-07-30 20:11:16] [INFO] [610340] [MainThread] [jobflow]: Executing tasks in parallel.�[0m
�[32m[2024-07-30 20:11:16] [INFO] [610340] [ThreadPoolExecutor-1_0] [jobflow]: [allocate-central_components-linux-centos-8-amd64] Starting task.�[0m
�[36m[2024-07-30 20:11:16] [DEBUG] [610340] [ThreadPoolExecutor-1_0] [jobflow]: Running task "allocate-central_components-linux-centos-8-amd64" with arguments: ['modules/allocation/main.py', '--action=delete', "--track-output=/tmp/dtt1-poc/central_components-['linux-centos-8-amd64']/track.yaml"]�[0m
�[31m[2024-07-30 20:11:16] [ERROR] [610340] [ThreadPoolExecutor-1_0] [jobflow]: [allocate-central_components-linux-centos-8-amd64] Task failed with error: Error executing process task /home/akim/Desktop/venvs/24935/lib/python3.10/site-packages/paramiko/pkey.py:100: CryptographyDeprecationWarning: TripleDES has been moved to cryptography.hazmat.decrepit.ciphers.algorithms.TripleDES and will be removed from this module in 48.0.0.
  "cipher": algorithms.TripleDES,
/home/akim/Desktop/venvs/24935/lib/python3.10/site-packages/paramiko/transport.py:259: CryptographyDeprecationWarning: TripleDES has been moved to cryptography.hazmat.decrepit.ciphers.algorithms.TripleDES and will be removed from this module in 48.0.0.
  "class": algorithms.TripleDES,
Traceback (most recent call last):
  File "/home/akim/Desktop/wazuh-qa/deployability/modules/allocation/main.py", line 39, in <module>
    main()
  File "/home/akim/Desktop/wazuh-qa/deployability/modules/allocation/main.py", line 35, in main
    Allocator.run(InputPayload(**vars(parse_arguments())))
  File "/home/akim/Desktop/wazuh-qa/deployability/modules/allocation/allocation.py", line 43, in run
    return cls.__delete(payload)
  File "/home/akim/Desktop/wazuh-qa/deployability/modules/allocation/allocation.py", line 93, in __delete
    with open(payload.track_output, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: "/tmp/dtt1-poc/central_components-['linux-centos-8-amd64']/track.yaml"
�[0m


Amazon-2 and Centos-8: I have not been able to find a bug in the tests
In both cases: the delete of the instances mediated by the allocator have failed.

Anyway I have added 5 seconds of waiting to all the methods that perform port checking to give a safety margin to the check after install/stop/restart.

@pro-akim
Copy link
Member

pro-akim commented Jul 30, 2024

Agent testing 🔴

YAML
version: 0.1
description: This workflow is used to test agents deployment for DDT1 PoC
variables:
  agent-os:
    #- linux-redhat-7-amd64
    #- linux-redhat-7-arm64
    #- linux-redhat-8-amd64
    #- linux-redhat-8-arm64
    #- linux-redhat-9-amd64
    #- linux-redhat-9-arm64
    #- linux-centos-7-amd64
    #- linux-centos-7-arm64
    #- linux-centos-8-amd64
    #- linux-centos-8-arm64
    #- linux-debian-10-amd64
    #- linux-debian-10-arm64
    #- linux-debian-11-amd64
    #- linux-debian-11-arm64
    - linux-debian-12-amd64
    - linux-debian-12-arm64
    #- linux-ubuntu-22.04-amd64
    #- linux-ubuntu-22.04-arm64
    #- linux-ubuntu-18.04-amd64
    #- linux-ubuntu-18.04-arm64
    #- linux-ubuntu-20.04-amd64
    #- linux-ubuntu-20.04-arm64
    - linux-oracle-9-amd64
    #- linux-amazon-2-amd64
    #- linux-amazon-2-arm64
    #- linux-amazon-2023-amd64
    #- linux-amazon-2023-arm64

  windows-agent-os:
    - windows-desktop-10-amd64
    #- windows-server-2012r2-amd64
    - windows-server-2016-amd64
    #- windows-server-2019-amd64
    #- windows-server-2022-amd64

  #macos-agent-os:
  #  - macos-ventura-13-amd64
  #  - macos-sonoma-14-amd64

  manager-os: linux-ubuntu-22.04-amd64
  infra-provider: aws
  macos-infra-provider: vagrant
  working-dir: /tmp/dtt1-poc

tasks:
  # Unique manager allocate task
  - task: "allocate-manager-{manager-os}"
    description: "Allocate resources for the manager."
    do:
      this: process
      with:
        path: python3
        args:
          - modules/allocation/main.py
          - action: create
          - provider: "{infra-provider}"
          - size: large
          - composite-name: "{manager-os}"
          - inventory-output: "{working-dir}/manager-{manager-os}/inventory.yaml"
          - track-output: "{working-dir}/manager-{manager-os}/track.yaml"
          - label-termination-date: "1d"
          - label-team: "qa"
          - label-issue: "https://github.com/wazuh/wazuh-qa/issues/5616"
    cleanup:
      this: process
      with:
        path: python3
        args:
          - modules/allocation/main.py
          - action: delete
          - track-output: "{working-dir}/manager-{manager-os}/track.yaml"

  # Unique manager provision task
  - task: "provision-manager-{manager-os}"
    description: "Provision the manager."
    do:
      this: process
      with:
        path: python3
        args:
          - modules/provision/main.py
          - inventory: "{working-dir}/manager-{manager-os}/inventory.yaml"
          - install:
            - component: wazuh-manager
              type: assistant
              version: 4.9.0
              live: False
    depends-on:
      - "allocate-manager-{manager-os}"
    on-error: "abort-all"

  # Unique agent allocate task
  - task: "allocate-agent-{agent}"
    description: "Allocate resources for the agent."
    do:
      this: process
      with:
        path: python3
        args:
          - modules/allocation/main.py
          - action: create
          - provider: "{infra-provider}"
          - size: small
          - composite-name: "{agent}"
          - inventory-output: "{working-dir}/agent-{agent}/inventory.yaml"
          - track-output: "{working-dir}/agent-{agent}/track.yaml"
          - label-termination-date: "1d"
          - label-team: "qa"
          - label-issue: "https://github.com/wazuh/wazuh-qa/issues/5616"
    foreach:
      - variable: agent-os
        as: agent
    depends-on:
      - "provision-manager-{manager-os}"
    cleanup:
      this: process
      with:
        path: python3
        args:
          - modules/allocation/main.py
          - action: delete
          - track-output: "{working-dir}/agent-{agent}/track.yaml"

  # Generic agent test task
  - task: "run-agent-{agent}-tests"
    description: "Run tests install for the agent {agent}."
    do:
      this: process
      with:
        path: python3
        args:
          - modules/testing/main.py
          - targets:
            - wazuh-1: "{working-dir}/manager-{manager-os}/inventory.yaml"
            - agent: "{working-dir}/agent-{agent}/inventory.yaml"
          - tests: "install,registration,connection,basic_info,restart,stop,uninstall"
          - component: "agent"
          - wazuh-version: "4.9.0"
          - wazuh-revision: "40903"
          - live: False
    foreach:
      - variable: agent-os
        as: agent
    depends-on:
      - "allocate-agent-{agent}"

  # Unique agent allocate task
  #- task: "allocate-macos-agent-{agent}"
  #  description: "Allocate resources for the agent."
  #  do:
  #    this: process
  #    with:
  #      path: python3
  #      args:
  #        - modules/allocation/main.py
  #        - action: create
  #        - provider: "{macos-infra-provider}"
  #        - size: small
  #        - composite-name: "{agent}"
  #        - inventory-output: "{working-dir}/agent-{agent}/inventory.yaml"
  #        - track-output: "{working-dir}/agent-{agent}/track.yaml"
  #        - label-termination-date: "1d"
  #        - label-team: "qa"
  #        - label-issue: "https://github.com/wazuh/wazuh/issues/24935"
  #  foreach:
  #    - variable: macos-agent-os
  #      as: agent
  #  depends-on:
  #    - "provision-manager-{manager-os}"
  #  cleanup:
  #    this: process
  #    with:
  #      path: python3
  #      args:
  #        - modules/allocation/main.py
  #        - action: delete
  #        - track-output: "{working-dir}/agent-{agent}/track.yaml"

  # Generic agent test task
  #- task: "run-macos-agent-{agent}-tests"
  #  description: "Run tests install for the agent {agent}."
  #  do:
  #    this: process
  #    with:
  #      path: python3
  #      args:
  #        - modules/testing/main.py
  #        - targets:
  #          - wazuh-1: "{working-dir}/manager-{manager-os}/inventory.yaml"
  #          - agent: "{working-dir}/agent-{agent}/inventory.yaml"
  #        - tests: "install,registration,connection,basic_info,restart,stop,uninstall"
  #        - component: "agent"
  #        - wazuh-version: "4.9.0"
  #        - wazuh-revision: "40903"
  #        - live: False
  #  foreach:
  #    - variable: macos-agent-os
  #      as: agent
  #  depends-on:
  #    - "allocate-macos-agent-{agent}"

  # Unique agent allocate task
  - task: "allocate-windows-agent-{agent}"
    description: "Allocate resources for the agent."
    do:
      this: process
      with:
        path: python3
        args:
          - modules/allocation/main.py
          - action: create
          - provider: "{infra-provider}"
          - size: large
          - composite-name: "{agent}"
          - inventory-output: "{working-dir}/agent-{agent}/inventory.yaml"
          - track-output: "{working-dir}/agent-{agent}/track.yaml"
          - label-termination-date: "1d"
          - label-team: "qa"
          - label-issue: "https://github.com/wazuh/wazuh-qa/issues/5616"
    foreach:
      - variable: windows-agent-os
        as: agent
    depends-on:
      - "provision-manager-{manager-os}"
    cleanup:
      this: process
      with:
        path: python3
        args:
          - modules/allocation/main.py
          - action: delete
          - track-output: "{working-dir}/agent-{agent}/track.yaml"

  # Generic agent test task
  - task: "run-windows-agent-{agent}-tests"
    description: "Run tests install for the agent {agent}."
    do:
      this: process
      with:
        path: python3
        args:
          - modules/testing/main.py
          - targets:
            - wazuh-1: "{working-dir}/manager-{manager-os}/inventory.yaml"
            - agent: "{working-dir}/agent-{agent}/inventory.yaml"
          - tests: "install,registration,connection,basic_info,restart,stop,uninstall"
          - component: "agent"
          - wazuh-version: "4.9.0"
          - wazuh-revision: "40903"
          - live: False
    foreach:
      - variable: windows-agent-os
        as: agent
    depends-on:
      - "allocate-windows-agent-{agent}"

Result
(24935) akim@akim-PC:~/Desktop/wazuh-qa/deployability$ python3 -m jobflow modules/jobflow/examples/c24935.yaml --log-level=DEBUG --threads=4
[2024-07-30 14:08:43] [DEBUG] [246805] [MainThread] [jobflow]: Validating input file: modules/jobflow/examples/c24935.yaml
[2024-07-30 14:08:43] [DEBUG] [246805] [MainThread] [jobflow]: Loading schema file: /home/akim/Desktop/venvs/24935/lib/python3.10/site-packages/jobflow/schemas/schema_v1.json
[2024-07-30 14:08:43] [DEBUG] [246805] [MainThread] [jobflow]: Loading yaml file: modules/jobflow/examples/c24935.yaml
[2024-07-30 14:08:43] [DEBUG] [246805] [MainThread] [jobflow]: Loading workflow file: modules/jobflow/examples/c24935.yaml
[2024-07-30 14:08:43] [DEBUG] [246805] [MainThread] [jobflow]: Process workflow.
[2024-07-30 14:08:43] [INFO] [246805] [MainThread] [jobflow]: Executing DAG tasks.
[2024-07-30 14:08:43] [INFO] [246805] [MainThread] [jobflow]: Executing tasks in parallel.
[2024-07-30 14:08:43] [INFO] [246805] [ThreadPoolExecutor-0_0] [jobflow]: [allocate-central_components-linux-centos-8-amd64] Starting task.
[2024-07-30 14:08:43] [DEBUG] [246805] [ThreadPoolExecutor-0_0] [jobflow]: Running task "allocate-central_components-linux-centos-8-amd64" with arguments: ['modules/allocation/main.py', '--action=create', '--provider=aws', '--size=large', '--composite-name=linux-centos-8-amd64', '--inventory-output=/tmp/dtt1-poc/central_components-linux-centos-8-amd64/inventory.yaml', '--track-output=/tmp/dtt1-poc/central_components-linux-centos-8-amd64/track.yaml', '--label-termination-date=1d', '--label-team=qa', '--label-issue=https://github.com/wazuh/wazuh-qa/issues/5616']
^Z
[13]+  Stopped                 python3 -m jobflow modules/jobflow/examples/c24935.yaml --log-level=DEBUG --threads=4
(24935) akim@akim-PC:~/Desktop/wazuh-qa/deployability$ python3 -m jobflow modules/jobflow/examples/24935.yaml --log-level=DEBUG --threads=4
[2024-07-30 14:09:20] [DEBUG] [248030] [MainThread] [jobflow]: Validating input file: modules/jobflow/examples/24935.yaml
[2024-07-30 14:09:20] [DEBUG] [248030] [MainThread] [jobflow]: Loading schema file: /home/akim/Desktop/venvs/24935/lib/python3.10/site-packages/jobflow/schemas/schema_v1.json
[2024-07-30 14:09:20] [DEBUG] [248030] [MainThread] [jobflow]: Loading yaml file: modules/jobflow/examples/24935.yaml
[2024-07-30 14:09:20] [DEBUG] [248030] [MainThread] [jobflow]: Loading workflow file: modules/jobflow/examples/24935.yaml
[2024-07-30 14:09:20] [DEBUG] [248030] [MainThread] [jobflow]: Process workflow.
[2024-07-30 14:09:20] [INFO] [248030] [MainThread] [jobflow]: Executing DAG tasks.
[2024-07-30 14:09:20] [INFO] [248030] [MainThread] [jobflow]: Executing tasks in parallel.
[2024-07-30 14:09:20] [INFO] [248030] [ThreadPoolExecutor-0_0] [jobflow]: [allocate-manager-linux-ubuntu-22.04-amd64] Starting task.
[2024-07-30 14:09:20] [DEBUG] [248030] [ThreadPoolExecutor-0_0] [jobflow]: 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', '--label-issue=https://github.com/wazuh/wazuh-qa/issues/5616']
[2024-07-30 14:10:14] [DEBUG] [248030] [ThreadPoolExecutor-0_0] [jobflow]: Finished task "allocate-manager-linux-ubuntu-22.04-amd64" execution with result:
[2024-07-30 14:09:20] [DEBUG] SPNEGO._GSS: Python gssapi not available, cannot use any GSSAPIProxy protocols: No module named 'gssapi'
[2024-07-30 14:09:20] [DEBUG] SPNEGO._GSS: Python gssapi IOV extension not available: No module named 'gssapi'
[2024-07-30 14:09:21] [INFO] ALLOCATOR: Creating instance at /tmp/wazuh-qa
[2024-07-30 14:09:21] [DEBUG] ALLOCATOR: No config provided. Generating from payload
[2024-07-30 14:09:21] [DEBUG] ALLOCATOR: Generating new key pair
[2024-07-30 14:09:21] [DEBUG] ALLOCATOR: Creating base directory: /tmp/wazuh-qa/AWS-EF697BAC-6500-4DB5-A7FD-FF99F8675BBE
[2024-07-30 14:09:41] [DEBUG] ALLOCATOR: Renaming temp /tmp/wazuh-qa/AWS-EF697BAC-6500-4DB5-A7FD-FF99F8675BBE directory to /tmp/wazuh-qa/i-05810d3545b592217
[2024-07-30 14:09:41] [INFO] ALLOCATOR: Instance i-05810d3545b592217 created.
[2024-07-30 14:09:42] [INFO] ALLOCATOR: Instance i-05810d3545b592217 started.
[2024-07-30 14:09:42] [INFO] ALLOCATOR: The inventory file generated at /tmp/dtt1-poc/manager-linux-ubuntu-22.04-amd64/inventory.yaml
[2024-07-30 14:09:42] [INFO] ALLOCATOR: The track file generated at /tmp/dtt1-poc/manager-linux-ubuntu-22.04-amd64/track.yaml
[2024-07-30 14:09:43] [WARNING] ALLOCATOR: Error on attempt 1 of 30: [Errno None] Unable to connect to port 2200 on 44.211.168.163
[2024-07-30 14:10:14] [INFO] ALLOCATOR: SSH connection successful.
[2024-07-30 14:10:14] [INFO] ALLOCATOR: Instance i-05810d3545b592217 created successfully.

[2024-07-30 14:10:14] [INFO] [248030] [ThreadPoolExecutor-0_0] [jobflow]: [allocate-manager-linux-ubuntu-22.04-amd64] Finished task in 53.87 seconds.
[2024-07-30 14:10:14] [INFO] [248030] [ThreadPoolExecutor-0_0] [jobflow]: [provision-manager-linux-ubuntu-22.04-amd64] Starting task.
[2024-07-30 14:10:14] [DEBUG] [248030] [ThreadPoolExecutor-0_0] [jobflow]: 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.9.0', 'live': False}"]

The jobflow remains blocked during the provisioning of the manager with no progress from that point on.


New execution

Result
(24935) akim@akim-PC:~/Desktop/wazuh-qa/deployability$ python3 -m jobflow modules/jobflow/examples/24935.yaml --log-level=DEBUG --threads=4
[2024-07-30 14:44:15] [DEBUG] [263972] [MainThread] [jobflow]: Validating input file: modules/jobflow/examples/24935.yaml
[2024-07-30 14:44:15] [DEBUG] [263972] [MainThread] [jobflow]: Loading schema file: /home/akim/Desktop/venvs/24935/lib/python3.10/site-packages/jobflow/schemas/schema_v1.json
[2024-07-30 14:44:15] [DEBUG] [263972] [MainThread] [jobflow]: Loading yaml file: modules/jobflow/examples/24935.yaml
[2024-07-30 14:44:15] [DEBUG] [263972] [MainThread] [jobflow]: Loading workflow file: modules/jobflow/examples/24935.yaml
[2024-07-30 14:44:15] [DEBUG] [263972] [MainThread] [jobflow]: Process workflow.
[2024-07-30 14:44:15] [INFO] [263972] [MainThread] [jobflow]: Executing DAG tasks.
[2024-07-30 14:44:15] [INFO] [263972] [MainThread] [jobflow]: Executing tasks in parallel.
[2024-07-30 14:44:15] [INFO] [263972] [ThreadPoolExecutor-0_0] [jobflow]: [allocate-manager-linux-ubuntu-22.04-amd64] Starting task.
[2024-07-30 14:44:15] [DEBUG] [263972] [ThreadPoolExecutor-0_0] [jobflow]: 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', '--label-issue=https://github.com/wazuh/wazuh-qa/issues/5616']
[2024-07-30 14:45:14] [DEBUG] [263972] [ThreadPoolExecutor-0_0] [jobflow]: Finished task "allocate-manager-linux-ubuntu-22.04-amd64" execution with result:
[2024-07-30 14:44:15] [DEBUG] SPNEGO._GSS: Python gssapi not available, cannot use any GSSAPIProxy protocols: No module named 'gssapi'
[2024-07-30 14:44:15] [DEBUG] SPNEGO._GSS: Python gssapi IOV extension not available: No module named 'gssapi'
[2024-07-30 14:44:15] [INFO] ALLOCATOR: Creating instance at /tmp/wazuh-qa
[2024-07-30 14:44:16] [DEBUG] ALLOCATOR: No config provided. Generating from payload
[2024-07-30 14:44:16] [DEBUG] ALLOCATOR: Generating new key pair
[2024-07-30 14:44:16] [DEBUG] ALLOCATOR: Creating base directory: /tmp/wazuh-qa/AWS-092AF11E-7498-4E39-B9DF-CDA7FC03412E
[2024-07-30 14:44:35] [DEBUG] ALLOCATOR: Renaming temp /tmp/wazuh-qa/AWS-092AF11E-7498-4E39-B9DF-CDA7FC03412E directory to /tmp/wazuh-qa/i-02d4f346656e7d4f5
[2024-07-30 14:44:35] [INFO] ALLOCATOR: Instance i-02d4f346656e7d4f5 created.
[2024-07-30 14:44:37] [INFO] ALLOCATOR: Instance i-02d4f346656e7d4f5 started.
[2024-07-30 14:44:37] [INFO] ALLOCATOR: The inventory file generated at /tmp/dtt1-poc/manager-linux-ubuntu-22.04-amd64/inventory.yaml
[2024-07-30 14:44:37] [INFO] ALLOCATOR: The track file generated at /tmp/dtt1-poc/manager-linux-ubuntu-22.04-amd64/track.yaml
[2024-07-30 14:44:37] [WARNING] ALLOCATOR: Error on attempt 1 of 30: [Errno None] Unable to connect to port 2200 on 54.175.236.117
[2024-07-30 14:45:13] [INFO] ALLOCATOR: SSH connection successful.
[2024-07-30 14:45:13] [INFO] ALLOCATOR: Instance i-02d4f346656e7d4f5 created successfully.

[2024-07-30 14:45:14] [INFO] [263972] [ThreadPoolExecutor-0_0] [jobflow]: [allocate-manager-linux-ubuntu-22.04-amd64] Finished task in 58.94 seconds.
[2024-07-30 14:45:14] [INFO] [263972] [ThreadPoolExecutor-0_0] [jobflow]: [provision-manager-linux-ubuntu-22.04-amd64] Starting task.
[2024-07-30 14:45:14] [DEBUG] [263972] [ThreadPoolExecutor-0_0] [jobflow]: 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.9.0', 'live': False}"]
[2024-07-30 14:52:02] [DEBUG] [263972] [ThreadPoolExecutor-0_0] [jobflow]: Finished task "provision-manager-linux-ubuntu-22.04-amd64" execution with result:
[2024-07-30 14:45:14] [DEBUG] SPNEGO._GSS: Python gssapi not available, cannot use any GSSAPIProxy protocols: No module named 'gssapi'
[2024-07-30 14:45:14] [DEBUG] SPNEGO._GSS: Python gssapi IOV extension not available: No module named 'gssapi'
[2024-07-30 14:45:14] [DEBUG] PROVISIONER: Setting dependencies: {} for wazuh-manager component.
[2024-07-30 14:45:14] [INFO] PROVISIONER: Initiating provisionment.
[2024-07-30 14:45:14] [DEBUG] PROVISIONER: Running action install for components: [ComponentInfo(component='wazuh-manager', type='assistant', version='4.9.0', dependencies=None, live=False)]
[2024-07-30 14:45:14] [INFO] PROVISIONER: Provisioning "wazuh-manager"...
[2024-07-30 14:45:14] [DEBUG] PROVISIONER: Get OS family for ec2-54-175-236-117.compute-1.amazonaws.com.
[2024-07-30 14:45:14] [DEBUG] PROVISIONER: Using inventory: {'all': {'hosts': {'ec2-54-175-236-117.compute-1.amazonaws.com': {'ansible_port': 2200, 'ansible_user': 'ubuntu', 'ansible_ssh_private_key_file': '/tmp/wazuh-qa/i-02d4f346656e7d4f5/qa-5616-ubuntu-22.04-key-9527'}}}}
[2024-07-30 14:45:14] [DEBUG] PROVISIONER: Running playbook: {'hosts': 'ec2-54-175-236-117.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'}}]}
/home/akim/Desktop/venvs/24935/lib/python3.10/site-packages/paramiko/pkey.py:100: CryptographyDeprecationWarning: TripleDES has been moved to cryptography.hazmat.decrepit.ciphers.algorithms.TripleDES and will be removed from this module in 48.0.0.
  "cipher": algorithms.TripleDES,
/home/akim/Desktop/venvs/24935/lib/python3.10/site-packages/paramiko/transport.py:259: CryptographyDeprecationWarning: TripleDES has been moved to cryptography.hazmat.decrepit.ciphers.algorithms.TripleDES and will be removed from this module in 48.0.0.
  "class": algorithms.TripleDES,
No config file found; using defaults

PLAY [ec2-54-175-236-117.compute-1.amazonaws.com] ******************************

TASK [Gathering Facts] *********************************************************
[WARNING]: Platform linux on host ec2-54-175-236-117.compute-1.amazonaws.com is
using the discovered Python interpreter at /usr/bin/python3.10, but future
installation of another Python interpreter could change the meaning of that
path. See https://docs.ansible.com/ansible-
core/2.17/reference_appendices/interpreter_discovery.html for more information.
ok: [ec2-54-175-236-117.compute-1.amazonaws.com]

TASK [Capture ansible_os_family] ***********************************************
ok: [ec2-54-175-236-117.compute-1.amazonaws.com] => changed=false 
  ansible_facts:
    ansible_os_family: Debian

PLAY RECAP *********************************************************************
ec2-54-175-236-117.compute-1.amazonaws.com : ok=2    changed=0    unreachable=0    failed=0    skipped=0    rescued=0    ignored=0   
[2024-07-30 14:45:30] [DEBUG] PROVISIONER: Playbook {'hosts': 'ec2-54-175-236-117.compute-1.amazonaws.com', 'become': True, 'gather_facts': True, 'tasks': [{'name': 'Capture ansible_os_family', 'set_fact': {'ansible_os_family': "{{ ansible_facts['distribution_file_variety'] }}", 'cacheable': 'yes'}}]} finished with status {'skipped': {}, 'ok': {'ec2-54-175-236-117.compute-1.amazonaws.com': 2}, 'dark': {}, 'failures': {}, 'ignored': {}, 'rescued': {}, 'processed': {'ec2-54-175-236-117.compute-1.amazonaws.com': 1}, 'changed': {}}
[2024-07-30 14:45:30] [DEBUG] PROVISIONER: OS family: Debian.
[2024-07-30 14:45:30] [DEBUG] PROVISIONER: Render playbook with vars: {'component': 'wazuh-manager', 'version': '4.9.0', 'live': False, 'type': 'assistant', 'dependencies': None, 'templates_path': '/home/akim/Desktop/wazuh-qa/deployability/modules/provision/playbooks/wazuh/assistant/install', 'templates_order': ['download.j2', 'install.j2'], 'ansible_os_family': 'Debian'}.
[2024-07-30 14:45:30] [DEBUG] PROVISIONER: Templates found: ['download.j2', 'install.j2']
[2024-07-30 14:45:30] [DEBUG] PROVISIONER: Rendering template download.j2
[2024-07-30 14:45:30] [DEBUG] PROVISIONER: Rendering template install.j2
[2024-07-30 14:45:30] [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-dev.wazuh.com/4.9/wazuh-install.sh'}, {'name': 'Install wazuh-manager with assistant', 'shell': 'bash ./wazuh-install.sh -a -i'}]
[2024-07-30 14:45:30] [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-dev.wazuh.com/4.9/wazuh-install.sh'}, {'name': 'Install wazuh-manager with assistant', 'shell': 'bash ./wazuh-install.sh -a -i'}].
[2024-07-30 14:45:30] [INFO] PROVISIONER: Execute install for wazuh-manager.
[2024-07-30 14:45:30] [DEBUG] PROVISIONER: Using inventory: {'all': {'hosts': {'ec2-54-175-236-117.compute-1.amazonaws.com': {'ansible_port': 2200, 'ansible_user': 'ubuntu', 'ansible_ssh_private_key_file': '/tmp/wazuh-qa/i-02d4f346656e7d4f5/qa-5616-ubuntu-22.04-key-9527'}}}}
[2024-07-30 14:45:30] [DEBUG] PROVISIONER: Running playbook: {'hosts': 'ec2-54-175-236-117.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-dev.wazuh.com/4.9/wazuh-install.sh'}, {'name': 'Install wazuh-manager with assistant', 'shell': 'bash ./wazuh-install.sh -a -i'}]}
/home/akim/Desktop/venvs/24935/lib/python3.10/site-packages/paramiko/pkey.py:100: CryptographyDeprecationWarning: TripleDES has been moved to cryptography.hazmat.decrepit.ciphers.algorithms.TripleDES and will be removed from this module in 48.0.0.
  "cipher": algorithms.TripleDES,
/home/akim/Desktop/venvs/24935/lib/python3.10/site-packages/paramiko/transport.py:259: CryptographyDeprecationWarning: TripleDES has been moved to cryptography.hazmat.decrepit.ciphers.algorithms.TripleDES and will be removed from this module in 48.0.0.
  "class": algorithms.TripleDES,
No config file found; using defaults

PLAY [ec2-54-175-236-117.compute-1.amazonaws.com] ******************************

TASK [Gathering Facts] *********************************************************
core/2.17/reference_appendices/interpreter_discovery.html for more information.
ok: [ec2-54-175-236-117.compute-1.amazonaws.com]

TASK [Install the required packages] *******************************************
changed: [ec2-54-175-236-117.compute-1.amazonaws.com] => changed=true 
  cmd: |2-
  
    sudo apt-get update && apt-get -y install curl
  delta: '0:00:16.215279'
  end: '2024-07-30 12:45:57.621159'
  msg: ''
  rc: 0
  start: '2024-07-30 12:45:41.405880'
  stderr: ''
  stderr_lines: <omitted>
  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 [128 kB]
    Get:3 http://us-east-1.ec2.archive.ubuntu.com/ubuntu jammy-backports InRelease [127 kB]
    Get:4 http://us-east-1.ec2.archive.ubuntu.com/ubuntu jammy/universe amd64 Packages [14.1 MB]
    Get:5 http://security.ubuntu.com/ubuntu jammy-security InRelease [129 kB]
    Get:6 http://us-east-1.ec2.archive.ubuntu.com/ubuntu jammy/universe Translation-en [5652 kB]
    Get:7 http://us-east-1.ec2.archive.ubuntu.com/ubuntu jammy/universe amd64 c-n-f Metadata [286 kB]
    Get:8 http://us-east-1.ec2.archive.ubuntu.com/ubuntu jammy/multiverse amd64 Packages [217 kB]
    Get:9 http://us-east-1.ec2.archive.ubuntu.com/ubuntu jammy/multiverse Translation-en [112 kB]
    Get:10 http://us-east-1.ec2.archive.ubuntu.com/ubuntu jammy/multiverse amd64 c-n-f Metadata [8372 B]
    Get:11 http://us-east-1.ec2.archive.ubuntu.com/ubuntu jammy-updates/main amd64 Packages [1900 kB]
    Get:12 http://us-east-1.ec2.archive.ubuntu.com/ubuntu jammy-updates/main Translation-en [338 kB]
    Get:13 http://us-east-1.ec2.archive.ubuntu.com/ubuntu jammy-updates/main amd64 c-n-f Metadata [17.7 kB]
    Get:14 http://us-east-1.ec2.archive.ubuntu.com/ubuntu jammy-updates/restricted amd64 Packages [2257 kB]
    Get:15 http://us-east-1.ec2.archive.ubuntu.com/ubuntu jammy-updates/restricted Translation-en [388 kB]
    Get:16 http://us-east-1.ec2.archive.ubuntu.com/ubuntu jammy-updates/restricted amd64 c-n-f Metadata [604 B]
    Get:17 http://us-east-1.ec2.archive.ubuntu.com/ubuntu jammy-updates/universe amd64 Packages [1109 kB]
    Get:18 http://us-east-1.ec2.archive.ubuntu.com/ubuntu jammy-updates/universe Translation-en [259 kB]
    Get:19 http://us-east-1.ec2.archive.ubuntu.com/ubuntu jammy-updates/universe amd64 c-n-f Metadata [25.4 kB]
    Get:20 http://us-east-1.ec2.archive.ubuntu.com/ubuntu jammy-updates/multiverse amd64 Packages [43.3 kB]
    Get:21 http://us-east-1.ec2.archive.ubuntu.com/ubuntu jammy-updates/multiverse Translation-en [10.8 kB]
    Get:22 http://us-east-1.ec2.archive.ubuntu.com/ubuntu jammy-updates/multiverse amd64 c-n-f Metadata [444 B]
    Get:23 http://us-east-1.ec2.archive.ubuntu.com/ubuntu jammy-backports/main amd64 Packages [67.1 kB]
    Get:24 http://us-east-1.ec2.archive.ubuntu.com/ubuntu jammy-backports/main Translation-en [11.0 kB]
    Get:25 http://us-east-1.ec2.archive.ubuntu.com/ubuntu jammy-backports/main amd64 c-n-f Metadata [388 B]
    Get:26 http://us-east-1.ec2.archive.ubuntu.com/ubuntu jammy-backports/restricted amd64 c-n-f Metadata [116 B]
    Get:27 http://us-east-1.ec2.archive.ubuntu.com/ubuntu jammy-backports/universe amd64 Packages [28.8 kB]
    Get:28 http://us-east-1.ec2.archive.ubuntu.com/ubuntu jammy-backports/universe Translation-en [16.5 kB]
    Get:29 http://us-east-1.ec2.archive.ubuntu.com/ubuntu jammy-backports/universe amd64 c-n-f Metadata [672 B]
    Get:30 http://us-east-1.ec2.archive.ubuntu.com/ubuntu jammy-backports/multiverse amd64 c-n-f Metadata [116 B]
    Get:31 http://security.ubuntu.com/ubuntu jammy-security/main amd64 Packages [1679 kB]
    Get:32 http://security.ubuntu.com/ubuntu jammy-security/main Translation-en [280 kB]
    Get:33 http://security.ubuntu.com/ubuntu jammy-security/main amd64 c-n-f Metadata [13.0 kB]
    Get:34 http://security.ubuntu.com/ubuntu jammy-security/restricted amd64 Packages [2178 kB]
    Get:35 http://security.ubuntu.com/ubuntu jammy-security/restricted Translation-en [374 kB]
    Get:36 http://security.ubuntu.com/ubuntu jammy-security/restricted amd64 c-n-f Metadata [572 B]
    Get:37 http://security.ubuntu.com/ubuntu jammy-security/universe amd64 Packages [887 kB]
    Get:38 http://security.ubuntu.com/ubuntu jammy-security/universe Translation-en [173 kB]
    Get:39 http://security.ubuntu.com/ubuntu jammy-security/universe amd64 c-n-f Metadata [18.9 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 [228 B]
    Fetched 32.9 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 203 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 (18.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: <omitted>

TASK [Download the Wazuh installation assistant] *******************************
changed: [ec2-54-175-236-117.compute-1.amazonaws.com] => changed=true 
  cmd: curl -sO https://packages-dev.wazuh.com/4.9/wazuh-install.sh
  delta: '0:00:00.363816'
  end: '2024-07-30 12:46:02.047767'
  msg: ''
  rc: 0
  start: '2024-07-30 12:46:01.683951'
  stderr: ''
  stderr_lines: <omitted>
  stdout: ''
  stdout_lines: <omitted>

TASK [Install wazuh-manager with assistant] ************************************
changed: [ec2-54-175-236-117.compute-1.amazonaws.com] => changed=true 
  cmd: bash ./wazuh-install.sh -a -i
  delta: '0:05:55.183307'
  end: '2024-07-30 12:52:01.266750'
  msg: ''
  rc: 0
  start: '2024-07-30 12:46:06.083443'
  stderr: ''
  stderr_lines: <omitted>
  stdout: |-
    30/07/2024 12:46:06 INFO: Starting Wazuh installation assistant. Wazuh version: 4.9.0
    30/07/2024 12:46:06 INFO: Verbose logging redirected to /var/log/wazuh-install.log
    30/07/2024 12:46:10 WARNING: Hardware checks ignored.
    30/07/2024 12:46:13 INFO: Wazuh web interface port will be 443.
    30/07/2024 12:46:18 INFO: --- Dependencies ----
    30/07/2024 12:46:18 INFO: Installing apt-transport-https.
    30/07/2024 12:46:22 INFO: Installing debhelper.
    30/07/2024 12:46:43 INFO: Wazuh development repository added.
    30/07/2024 12:46:43 INFO: --- Configuration files ---
    30/07/2024 12:46:43 INFO: Generating configuration files.
    30/07/2024 12:46:43 INFO: Generating the root certificate.
    30/07/2024 12:46:43 INFO: Generating Admin certificates.
    30/07/2024 12:46:44 INFO: Generating Wazuh indexer certificates.
    30/07/2024 12:46:44 INFO: Generating Filebeat certificates.
    30/07/2024 12:46:44 INFO: Generating Wazuh dashboard certificates.
    30/07/2024 12:46:45 INFO: Created wazuh-install-files.tar. It contains the Wazuh cluster key, certificates, and passwords necessary for installation.
    30/07/2024 12:46:45 INFO: --- Wazuh indexer ---
    30/07/2024 12:46:45 INFO: Starting Wazuh indexer installation.
    30/07/2024 12:47:16 INFO: Wazuh indexer installation finished.
    30/07/2024 12:47:16 INFO: Wazuh indexer post-install configuration finished.
    30/07/2024 12:47:16 INFO: Starting service wazuh-indexer.
    30/07/2024 12:47:28 INFO: wazuh-indexer service started.
    30/07/2024 12:47:28 INFO: Initializing Wazuh indexer cluster security settings.
    30/07/2024 12:47:31 INFO: Wazuh indexer cluster security configuration initialized.
    30/07/2024 12:47:31 INFO: Wazuh indexer cluster initialized.
    30/07/2024 12:47:31 INFO: --- Wazuh server ---
    30/07/2024 12:47:31 INFO: Starting the Wazuh manager installation.
    30/07/2024 12:48:27 INFO: Wazuh manager installation finished.
    30/07/2024 12:48:27 INFO: Wazuh manager vulnerability detection configuration finished.
    30/07/2024 12:48:27 INFO: Starting service wazuh-manager.
    30/07/2024 12:48:42 INFO: wazuh-manager service started.
    30/07/2024 12:48:42 INFO: Starting Filebeat installation.
    30/07/2024 12:48:53 INFO: Filebeat installation finished.
    30/07/2024 12:48:54 INFO: Filebeat post-install configuration finished.
    30/07/2024 12:48:54 INFO: Starting service filebeat.
    30/07/2024 12:48:55 INFO: filebeat service started.
    30/07/2024 12:48:55 INFO: --- Wazuh dashboard ---
    30/07/2024 12:48:55 INFO: Starting Wazuh dashboard installation.
    30/07/2024 12:51:22 INFO: Wazuh dashboard installation finished.
    30/07/2024 12:51:22 INFO: Wazuh dashboard post-install configuration finished.
    30/07/2024 12:51:22 INFO: Starting service wazuh-dashboard.
    30/07/2024 12:51:22 INFO: wazuh-dashboard service started.
    30/07/2024 12:51:23 INFO: Updating the internal users.
    30/07/2024 12:51:26 INFO: A backup of the internal users has been saved in the /etc/wazuh-indexer/internalusers-backup folder.
    30/07/2024 12:51:34 INFO: The filebeat.yml file has been updated to use the Filebeat Keystore username and password.
    30/07/2024 12:52:00 INFO: Initializing Wazuh dashboard web application.
    30/07/2024 12:52:01 INFO: Wazuh dashboard web application initialized.
    30/07/2024 12:52:01 INFO: --- Summary ---
    30/07/2024 12:52:01 INFO: You can access the web interface https://<wazuh-dashboard-ip>:443
        User: admin
        Password: pcJj*Hzt4ea3DlC7HZzRedptPzL.6PeT
    30/07/2024 12:52:01 INFO: Installation finished.
  stdout_lines: <omitted>

PLAY RECAP *********************************************************************
ec2-54-175-236-117.compute-1.amazonaws.com : ok=4    changed=3    unreachable=0    failed=0    skipped=0    rescued=0    ignored=0   
[2024-07-30 14:52:01] [DEBUG] PROVISIONER: Playbook {'hosts': 'ec2-54-175-236-117.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-dev.wazuh.com/4.9/wazuh-install.sh'}, {'name': 'Install wazuh-manager with assistant', 'shell': 'bash ./wazuh-install.sh -a -i'}]} finished with status {'skipped': {}, 'ok': {'ec2-54-175-236-117.compute-1.amazonaws.com': 4}, 'dark': {}, 'failures': {}, 'ignored': {}, 'rescued': {}, 'processed': {'ec2-54-175-236-117.compute-1.amazonaws.com': 1}, 'changed': {'ec2-54-175-236-117.compute-1.amazonaws.com': 3}}
[2024-07-30 14:52:01] [INFO] PROVISIONER: Provision of "wazuh-manager" complete successfully.
[2024-07-30 14:52:01] [INFO] PROVISIONER: All components provisioned successfully.
[2024-07-30 14:52:01] [DEBUG] PROVISIONER: Provision summary: {'skipped': {}, 'ok': {'ec2-54-175-236-117.compute-1.amazonaws.com': 4}, 'dark': {}, 'failures': {}, 'ignored': {}, 'rescued': {}, 'processed': {'ec2-54-175-236-117.compute-1.amazonaws.com': 1}, 'changed': {'ec2-54-175-236-117.compute-1.amazonaws.com': 3}}

[2024-07-30 14:52:02] [INFO] [263972] [ThreadPoolExecutor-0_0] [jobflow]: [provision-manager-linux-ubuntu-22.04-amd64] Finished task in 407.96 seconds.
[2024-07-30 14:52:02] [INFO] [263972] [ThreadPoolExecutor-0_0] [jobflow]: [allocate-agent-linux-debian-12-amd64] Starting task.
[2024-07-30 14:52:02] [INFO] [263972] [ThreadPoolExecutor-0_1] [jobflow]: [allocate-agent-linux-debian-12-arm64] Starting task.
[2024-07-30 14:52:02] [DEBUG] [263972] [ThreadPoolExecutor-0_0] [jobflow]: Running task "allocate-agent-linux-debian-12-amd64" with arguments: ['modules/allocation/main.py', '--action=create', '--provider=aws', '--size=small', '--composite-name=linux-debian-12-amd64', '--inventory-output=/tmp/dtt1-poc/agent-linux-debian-12-amd64/inventory.yaml', '--track-output=/tmp/dtt1-poc/agent-linux-debian-12-amd64/track.yaml', '--label-termination-date=1d', '--label-team=qa', '--label-issue=https://github.com/wazuh/wazuh-qa/issues/5616']
[2024-07-30 14:52:02] [INFO] [263972] [ThreadPoolExecutor-0_2] [jobflow]: [allocate-agent-linux-oracle-9-amd64] Starting task.
[2024-07-30 14:52:02] [DEBUG] [263972] [ThreadPoolExecutor-0_1] [jobflow]: Running task "allocate-agent-linux-debian-12-arm64" with arguments: ['modules/allocation/main.py', '--action=create', '--provider=aws', '--size=small', '--composite-name=linux-debian-12-arm64', '--inventory-output=/tmp/dtt1-poc/agent-linux-debian-12-arm64/inventory.yaml', '--track-output=/tmp/dtt1-poc/agent-linux-debian-12-arm64/track.yaml', '--label-termination-date=1d', '--label-team=qa', '--label-issue=https://github.com/wazuh/wazuh-qa/issues/5616']
[2024-07-30 14:52:02] [INFO] [263972] [ThreadPoolExecutor-0_3] [jobflow]: [allocate-windows-agent-windows-desktop-10-amd64] Starting task.
[2024-07-30 14:52:02] [DEBUG] [263972] [ThreadPoolExecutor-0_2] [jobflow]: Running task "allocate-agent-linux-oracle-9-amd64" with arguments: ['modules/allocation/main.py', '--action=create', '--provider=aws', '--size=small', '--composite-name=linux-oracle-9-amd64', '--inventory-output=/tmp/dtt1-poc/agent-linux-oracle-9-amd64/inventory.yaml', '--track-output=/tmp/dtt1-poc/agent-linux-oracle-9-amd64/track.yaml', '--label-termination-date=1d', '--label-team=qa', '--label-issue=https://github.com/wazuh/wazuh-qa/issues/5616']
[2024-07-30 14:52:02] [DEBUG] [263972] [ThreadPoolExecutor-0_3] [jobflow]: Running task "allocate-windows-agent-windows-desktop-10-amd64" with arguments: ['modules/allocation/main.py', '--action=create', '--provider=aws', '--size=large', '--composite-name=windows-desktop-10-amd64', '--inventory-output=/tmp/dtt1-poc/agent-windows-desktop-10-amd64/inventory.yaml', '--track-output=/tmp/dtt1-poc/agent-windows-desktop-10-amd64/track.yaml', '--label-termination-date=1d', '--label-team=qa', '--label-issue=https://github.com/wazuh/wazuh-qa/issues/5616']
[2024-07-30 14:52:06] [ERROR] [263972] [ThreadPoolExecutor-0_0] [jobflow]: [allocate-agent-linux-debian-12-amd64] Task failed with error: Error executing process task /home/akim/Desktop/venvs/24935/lib/python3.10/site-packages/paramiko/pkey.py:100: CryptographyDeprecationWarning: TripleDES has been moved to cryptography.hazmat.decrepit.ciphers.algorithms.TripleDES and will be removed from this module in 48.0.0.
  "cipher": algorithms.TripleDES,
/home/akim/Desktop/venvs/24935/lib/python3.10/site-packages/paramiko/transport.py:259: CryptographyDeprecationWarning: TripleDES has been moved to cryptography.hazmat.decrepit.ciphers.algorithms.TripleDES and will be removed from this module in 48.0.0.
  "class": algorithms.TripleDES,
Traceback (most recent call last):
  File "/home/akim/Desktop/wazuh-qa/deployability/modules/allocation/main.py", line 39, in <module>
    main()
  File "/home/akim/Desktop/wazuh-qa/deployability/modules/allocation/main.py", line 35, in main
    Allocator.run(InputPayload(**vars(parse_arguments())))
  File "/home/akim/Desktop/wazuh-qa/deployability/modules/allocation/allocation.py", line 40, in run
    return cls.__create(payload)
  File "/home/akim/Desktop/wazuh-qa/deployability/modules/allocation/allocation.py", line 59, in __create
    instance = provider.create_instance(
  File "/home/akim/Desktop/wazuh-qa/deployability/modules/allocation/generic/provider.py", line 71, in create_instance
    return cls._create_instance(base_dir, params, config, ssh_key)
  File "/home/akim/Desktop/wazuh-qa/deployability/modules/allocation/aws/provider.py", line 119, in _create_instance
    instance_id = cls.__create_ec2_instance(config)
  File "/home/akim/Desktop/wazuh-qa/deployability/modules/allocation/aws/provider.py", line 247, in __create_ec2_instance
    instance = resource.create_instances(**params)[0]
  File "/home/akim/Desktop/venvs/24935/lib/python3.10/site-packages/boto3/resources/factory.py", line 580, in do_action
    response = action(self, *args, **kwargs)
  File "/home/akim/Desktop/venvs/24935/lib/python3.10/site-packages/boto3/resources/action.py", line 88, in __call__
    response = getattr(parent.meta.client, operation_name)(*args, **params)
  File "/home/akim/Desktop/venvs/24935/lib/python3.10/site-packages/botocore/client.py", line 535, in _api_call
    return self._make_api_call(operation_name, kwargs)
  File "/home/akim/Desktop/venvs/24935/lib/python3.10/site-packages/botocore/client.py", line 983, in _make_api_call
    raise error_class(parsed_response, operation_name)
botocore.exceptions.ClientError: An error occurred (InvalidBlockDeviceMapping) when calling the RunInstances operation: Volume of size 20GB is smaller than snapshot 'snap-0e449fc6854107ee9', expect size>= 30GB

[2024-07-30 14:52:06] [INFO] [263972] [ThreadPoolExecutor-0_0] [jobflow]: [allocate-windows-agent-windows-server-2016-amd64] Starting task.
[2024-07-30 14:52:06] [DEBUG] [263972] [ThreadPoolExecutor-0_0] [jobflow]: Running task "allocate-windows-agent-windows-server-2016-amd64" with arguments: ['modules/allocation/main.py', '--action=create', '--provider=aws', '--size=large', '--composite-name=windows-server-2016-amd64', '--inventory-output=/tmp/dtt1-poc/agent-windows-server-2016-amd64/inventory.yaml', '--track-output=/tmp/dtt1-poc/agent-windows-server-2016-amd64/track.yaml', '--label-termination-date=1d', '--label-team=qa', '--label-issue=https://github.com/wazuh/wazuh-qa/issues/5616']
[2024-07-30 14:52:06] [ERROR] [263972] [ThreadPoolExecutor-0_1] [jobflow]: [allocate-agent-linux-debian-12-arm64] Task failed with error: Error executing process task /home/akim/Desktop/venvs/24935/lib/python3.10/site-packages/paramiko/pkey.py:100: CryptographyDeprecationWarning: TripleDES has been moved to cryptography.hazmat.decrepit.ciphers.algorithms.TripleDES and will be removed from this module in 48.0.0.
  "cipher": algorithms.TripleDES,
/home/akim/Desktop/venvs/24935/lib/python3.10/site-packages/paramiko/transport.py:259: CryptographyDeprecationWarning: TripleDES has been moved to cryptography.hazmat.decrepit.ciphers.algorithms.TripleDES and will be removed from this module in 48.0.0.
  "class": algorithms.TripleDES,
Traceback (most recent call last):
  File "/home/akim/Desktop/wazuh-qa/deployability/modules/allocation/main.py", line 39, in <module>
    main()
  File "/home/akim/Desktop/wazuh-qa/deployability/modules/allocation/main.py", line 35, in main
    Allocator.run(InputPayload(**vars(parse_arguments())))
  File "/home/akim/Desktop/wazuh-qa/deployability/modules/allocation/allocation.py", line 40, in run
    return cls.__create(payload)
  File "/home/akim/Desktop/wazuh-qa/deployability/modules/allocation/allocation.py", line 59, in __create
    instance = provider.create_instance(
  File "/home/akim/Desktop/wazuh-qa/deployability/modules/allocation/generic/provider.py", line 71, in create_instance
    return cls._create_instance(base_dir, params, config, ssh_key)
  File "/home/akim/Desktop/wazuh-qa/deployability/modules/allocation/aws/provider.py", line 119, in _create_instance
    instance_id = cls.__create_ec2_instance(config)
  File "/home/akim/Desktop/wazuh-qa/deployability/modules/allocation/aws/provider.py", line 247, in __create_ec2_instance
    instance = resource.create_instances(**params)[0]
  File "/home/akim/Desktop/venvs/24935/lib/python3.10/site-packages/boto3/resources/factory.py", line 580, in do_action
    response = action(self, *args, **kwargs)
  File "/home/akim/Desktop/venvs/24935/lib/python3.10/site-packages/boto3/resources/action.py", line 88, in __call__
    response = getattr(parent.meta.client, operation_name)(*args, **params)
  File "/home/akim/Desktop/venvs/24935/lib/python3.10/site-packages/botocore/client.py", line 535, in _api_call
    return self._make_api_call(operation_name, kwargs)
  File "/home/akim/Desktop/venvs/24935/lib/python3.10/site-packages/botocore/client.py", line 983, in _make_api_call
    raise error_class(parsed_response, operation_name)
botocore.exceptions.ClientError: An error occurred (InvalidBlockDeviceMapping) when calling the RunInstances operation: Volume of size 20GB is smaller than snapshot 'snap-0b66e817f7a8a614b', expect size>= 30GB

[2024-07-30 14:52:06] [WARNING] [263972] [ThreadPoolExecutor-0_1] [jobflow]: [run-agent-linux-debian-12-amd64-tests] Skipping task due to dependency failure.
[2024-07-30 14:52:06] [ERROR] [263972] [ThreadPoolExecutor-0_2] [jobflow]: [allocate-agent-linux-oracle-9-amd64] Task failed with error: Error executing process task /home/akim/Desktop/venvs/24935/lib/python3.10/site-packages/paramiko/pkey.py:100: CryptographyDeprecationWarning: TripleDES has been moved to cryptography.hazmat.decrepit.ciphers.algorithms.TripleDES and will be removed from this module in 48.0.0.
  "cipher": algorithms.TripleDES,
/home/akim/Desktop/venvs/24935/lib/python3.10/site-packages/paramiko/transport.py:259: CryptographyDeprecationWarning: TripleDES has been moved to cryptography.hazmat.decrepit.ciphers.algorithms.TripleDES and will be removed from this module in 48.0.0.
  "class": algorithms.TripleDES,
Traceback (most recent call last):
  File "/home/akim/Desktop/wazuh-qa/deployability/modules/allocation/main.py", line 39, in <module>
    main()
  File "/home/akim/Desktop/wazuh-qa/deployability/modules/allocation/main.py", line 35, in main
    Allocator.run(InputPayload(**vars(parse_arguments())))
  File "/home/akim/Desktop/wazuh-qa/deployability/modules/allocation/allocation.py", line 40, in run
    return cls.__create(payload)
  File "/home/akim/Desktop/wazuh-qa/deployability/modules/allocation/allocation.py", line 59, in __create
    instance = provider.create_instance(
  File "/home/akim/Desktop/wazuh-qa/deployability/modules/allocation/generic/provider.py", line 71, in create_instance
    return cls._create_instance(base_dir, params, config, ssh_key)
  File "/home/akim/Desktop/wazuh-qa/deployability/modules/allocation/aws/provider.py", line 119, in _create_instance
    instance_id = cls.__create_ec2_instance(config)
  File "/home/akim/Desktop/wazuh-qa/deployability/modules/allocation/aws/provider.py", line 247, in __create_ec2_instance
    instance = resource.create_instances(**params)[0]
  File "/home/akim/Desktop/venvs/24935/lib/python3.10/site-packages/boto3/resources/factory.py", line 580, in do_action
    response = action(self, *args, **kwargs)
  File "/home/akim/Desktop/venvs/24935/lib/python3.10/site-packages/boto3/resources/action.py", line 88, in __call__
    response = getattr(parent.meta.client, operation_name)(*args, **params)
  File "/home/akim/Desktop/venvs/24935/lib/python3.10/site-packages/botocore/client.py", line 535, in _api_call
    return self._make_api_call(operation_name, kwargs)
  File "/home/akim/Desktop/venvs/24935/lib/python3.10/site-packages/botocore/client.py", line 983, in _make_api_call
    raise error_class(parsed_response, operation_name)
botocore.exceptions.ClientError: An error occurred (InvalidBlockDeviceMapping) when calling the RunInstances operation: Volume of size 20GB is smaller than snapshot 'snap-025cf66574a6a608c', expect size>= 30GB

The following error message was found

botocore.exceptions.ClientError: An error occurred (InvalidBlockDeviceMapping) when calling the RunInstances operation: Volume of size 20GB is smaller than snapshot 'snap-025cf66574a6a608c', expect size>= 30GB

@pro-akim
Copy link
Member

pro-akim commented Jul 30, 2024

Agent testing - New execution 🔴 -> 🟢

Only windows-server2016 🟢

YAML
version: 0.1
description: This workflow is used to test agents deployment for DDT1 PoC
variables:
  #agent-os:
    #- linux-redhat-7-amd64
    #- linux-redhat-7-arm64
    #- linux-redhat-8-amd64
    #- linux-redhat-8-arm64
    #- linux-redhat-9-amd64
    #- linux-redhat-9-arm64
    #- linux-centos-7-amd64
    #- linux-centos-7-arm64
    #- linux-centos-8-amd64
    #- linux-centos-8-arm64
    #- linux-debian-10-amd64
    #- linux-debian-10-arm64
    #- linux-debian-11-amd64
    #- linux-debian-11-arm64
    #- linux-debian-12-amd64
    #- linux-debian-12-arm64
    #- linux-ubuntu-22.04-amd64
    #- linux-ubuntu-22.04-arm64
    #- linux-ubuntu-18.04-amd64
    #- linux-ubuntu-18.04-arm64
    #- linux-ubuntu-20.04-amd64
    #- linux-ubuntu-20.04-arm64
    #- linux-oracle-9-amd64
    #- linux-amazon-2-amd64
    #- linux-amazon-2-arm64
    #- linux-amazon-2023-amd64
    #- linux-amazon-2023-arm64

  windows-agent-os:
    #- windows-desktop-10-amd64
    #- windows-server-2012r2-amd64
    - windows-server-2016-amd64
    #- windows-server-2019-amd64
    #- windows-server-2022-amd64

  #macos-agent-os:
  #  - macos-ventura-13-amd64
  #  - macos-sonoma-14-amd64

  manager-os: linux-ubuntu-22.04-amd64
  infra-provider: aws
  macos-infra-provider: vagrant
  working-dir: /tmp/dtt1-poc

tasks:
  # Unique manager allocate task
  - task: "allocate-manager-{manager-os}"
    description: "Allocate resources for the manager."
    do:
      this: process
      with:
        path: python3
        args:
          - modules/allocation/main.py
          - action: create
          - provider: "{infra-provider}"
          - size: large
          - composite-name: "{manager-os}"
          - inventory-output: "{working-dir}/manager-{manager-os}/inventory.yaml"
          - track-output: "{working-dir}/manager-{manager-os}/track.yaml"
          - label-termination-date: "1d"
          - label-team: "qa"
          - label-issue: "https://github.com/wazuh/wazuh-qa/issues/5616"
    cleanup:
      this: process
      with:
        path: python3
        args:
          - modules/allocation/main.py
          - action: delete
          - track-output: "{working-dir}/manager-{manager-os}/track.yaml"

  # Unique manager provision task
  - task: "provision-manager-{manager-os}"
    description: "Provision the manager."
    do:
      this: process
      with:
        path: python3
        args:
          - modules/provision/main.py
          - inventory: "{working-dir}/manager-{manager-os}/inventory.yaml"
          - install:
            - component: wazuh-manager
              type: assistant
              version: 4.9.0
              live: False
    depends-on:
      - "allocate-manager-{manager-os}"
    on-error: "abort-all"

  # Unique agent allocate task
  #- task: "allocate-agent-{agent}"
  #  description: "Allocate resources for the agent."
  #  do:
  #    this: process
  #    with:
  #      path: python3
  #      args:
  #        - modules/allocation/main.py
  #        - action: create
  #        - provider: "{infra-provider}"
  #        - size: small
  #        - composite-name: "{agent}"
  #        - inventory-output: "{working-dir}/agent-{agent}/inventory.yaml"
  #        - track-output: "{working-dir}/agent-{agent}/track.yaml"
  #        - label-termination-date: "1d"
  #        - label-team: "qa"
  #        - label-issue: "https://github.com/wazuh/wazuh-qa/issues/5616"
  #  foreach:
  #    - variable: agent-os
  #      as: agent
  #  depends-on:
  #    - "provision-manager-{manager-os}"
  #  cleanup:
  #    this: process
  #    with:
  #      path: python3
  #      args:
  #        - modules/allocation/main.py
  #        - action: delete
  #        - track-output: "{working-dir}/agent-{agent}/track.yaml"

  # Generic agent test task
  #- task: "run-agent-{agent}-tests"
  #  description: "Run tests install for the agent {agent}."
  #  do:
  #    this: process
  #    with:
  #      path: python3
  #      args:
  #        - modules/testing/main.py
  #        - targets:
  #          - wazuh-1: "{working-dir}/manager-{manager-os}/inventory.yaml"
  #          - agent: "{working-dir}/agent-{agent}/inventory.yaml"
  #        - tests: "install,registration,connection,basic_info,restart,stop,uninstall"
  #        - component: "agent"
  #        - wazuh-version: "4.9.0"
  #        - wazuh-revision: "40903"
  #        - live: False
  #  foreach:
  #    - variable: agent-os
  #      as: agent
  #  depends-on:
  #    - "allocate-agent-{agent}"

  # Unique agent allocate task
  #- task: "allocate-macos-agent-{agent}"
  #  description: "Allocate resources for the agent."
  #  do:
  #    this: process
  #    with:
  #      path: python3
  #      args:
  #        - modules/allocation/main.py
  #        - action: create
  #        - provider: "{macos-infra-provider}"
  #        - size: small
  #        - composite-name: "{agent}"
  #        - inventory-output: "{working-dir}/agent-{agent}/inventory.yaml"
  #        - track-output: "{working-dir}/agent-{agent}/track.yaml"
  #        - label-termination-date: "1d"
  #        - label-team: "qa"
  #        - label-issue: "https://github.com/wazuh/wazuh/issues/24935"
  #  foreach:
  #    - variable: macos-agent-os
  #      as: agent
  #  depends-on:
  #    - "provision-manager-{manager-os}"
  #  cleanup:
  #    this: process
  #    with:
  #      path: python3
  #      args:
  #        - modules/allocation/main.py
  #        - action: delete
  #        - track-output: "{working-dir}/agent-{agent}/track.yaml"

  # Generic agent test task
  #- task: "run-macos-agent-{agent}-tests"
  #  description: "Run tests install for the agent {agent}."
  #  do:
  #    this: process
  #    with:
  #      path: python3
  #      args:
  #        - modules/testing/main.py
  #        - targets:
  #          - wazuh-1: "{working-dir}/manager-{manager-os}/inventory.yaml"
  #          - agent: "{working-dir}/agent-{agent}/inventory.yaml"
  #        - tests: "install,registration,connection,basic_info,restart,stop,uninstall"
  #        - component: "agent"
  #        - wazuh-version: "4.9.0"
  #        - wazuh-revision: "40903"
  #        - live: False
  #  foreach:
  #    - variable: macos-agent-os
  #      as: agent
  #  depends-on:
  #    - "allocate-macos-agent-{agent}"

  # Unique agent allocate task
  - task: "allocate-windows-agent-{agent}"
    description: "Allocate resources for the agent."
    do:
      this: process
      with:
        path: python3
        args:
          - modules/allocation/main.py
          - action: create
          - provider: "{infra-provider}"
          - size: large
          - composite-name: "{agent}"
          - inventory-output: "{working-dir}/agent-{agent}/inventory.yaml"
          - track-output: "{working-dir}/agent-{agent}/track.yaml"
          - label-termination-date: "1d"
          - label-team: "qa"
          - label-issue: "https://github.com/wazuh/wazuh-qa/issues/5616"
    foreach:
      - variable: windows-agent-os
        as: agent
    depends-on:
      - "provision-manager-{manager-os}"
    cleanup:
      this: process
      with:
        path: python3
        args:
          - modules/allocation/main.py
          - action: delete
          - track-output: "{working-dir}/agent-{agent}/track.yaml"

  # Generic agent test task
  - task: "run-windows-agent-{agent}-tests"
    description: "Run tests install for the agent {agent}."
    do:
      this: process
      with:
        path: python3
        args:
          - modules/testing/main.py
          - targets:
            - wazuh-1: "{working-dir}/manager-{manager-os}/inventory.yaml"
            - agent: "{working-dir}/agent-{agent}/inventory.yaml"
          - tests: "install,registration,connection,basic_info,restart,stop,uninstall"
          - component: "agent"
          - wazuh-version: "4.9.0"
          - wazuh-revision: "40903"
          - live: False
    foreach:
      - variable: windows-agent-os
        as: agent
    depends-on:
      - "allocate-windows-agent-{agent}"

Result
[2024-07-30 15:43:38,130] [INFO] [289569] [ThreadPoolExecutor-0_0] [jobflow]: [allocate-windows-agent-windows-server-2016-amd64] Finished task in 448.08 seconds.
[2024-07-30 15:43:38,146] [INFO] [289569] [ThreadPoolExecutor-0_0] [jobflow]: [run-windows-agent-windows-server-2016-amd64-tests] Starting task.
[2024-07-30 15:43:38,156] [DEBUG] [289569] [ThreadPoolExecutor-0_0] [jobflow]: Running task "run-windows-agent-windows-server-2016-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-2016-amd64/inventory.yaml'}", '--tests=install,registration,connection,basic_info,restart,stop,uninstall', '--component=agent', '--wazuh-version=4.9.0', '--wazuh-revision=40903', '--live=False']
[2024-07-30 15:43:38,575] [DEBUG] SPNEGO._GSS: Python gssapi not available, cannot use any GSSAPIProxy protocols: No module named 'gssapi'
[2024-07-30 15:43:38,575] [DEBUG] SPNEGO._GSS: Python gssapi IOV extension not available: No module named 'gssapi'
[2024-07-30 15:43:38,712] [INFO] TESTER: Running tests for ec2-3-84-26-166.compute-1.amazonaws.com
[2024-07-30 15:43:38,714] [INFO] TESTER: Running tests for ec2-52-1-166-116.compute-1.amazonaws.com
[2024-07-30 15:43:38,714] [DEBUG] TESTER: Using extra vars: {'component': 'agent', 'wazuh_version': '4.9.0', 'wazuh_revision': '40903', 'wazuh_branch': None, 'working_dir': '/tmp/tests', 'live': False, 'hosts_ip': ['ec2-3-84-26-166.compute-1.amazonaws.com', 'ec2-52-1-166-116.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-2016-amd64/inventory.yaml}', 'dependencies': '{}', 'local_host_path': '/home/akim/Desktop/wazuh-qa/deployability', 'current_user': 'akim'}
[2024-07-30 15:43:38,716] [DEBUG] TESTER: Using inventory: {'all': {'hosts': {'ec2-3-84-26-166.compute-1.amazonaws.com': {'ansible_port': 2200, 'ansible_user': 'ubuntu', 'ansible_ssh_private_key_file': '/tmp/wazuh-qa/i-0108f2b7b0046d8b4/qa-5616-ubuntu-22.04-key-8812'}}}}
[2024-07-30 15:43:38,716] [DEBUG] TESTER: Running playbook: /home/akim/Desktop/wazuh-qa/deployability/modules/testing/playbooks/setup.yml
[2024-07-30 15:43:45,699] [DEBUG] TESTER: Playbook /home/akim/Desktop/wazuh-qa/deployability/modules/testing/playbooks/setup.yml finished with status {'skipped': {}, 'ok': {'localhost': 2}, 'dark': {}, 'failures': {}, 'ignored': {}, 'rescued': {}, 'processed': {'localhost': 1}, 'changed': {'localhost': 1}}
[2024-07-30 15:43:45,701] [DEBUG] TESTER: Using inventory: {'all': {'hosts': {'ec2-3-84-26-166.compute-1.amazonaws.com': {'ansible_port': 2200, 'ansible_user': 'ubuntu', 'ansible_ssh_private_key_file': '/tmp/wazuh-qa/i-0108f2b7b0046d8b4/qa-5616-ubuntu-22.04-key-8812'}}}}
[2024-07-30 15:43:45,701] [DEBUG] TESTER: Running playbook: /home/akim/Desktop/wazuh-qa/deployability/modules/testing/playbooks/test.yml
[2024-07-30 15:43:49,812] [DEBUG] SPNEGO._GSS: Python gssapi not available, cannot use any GSSAPIProxy protocols: No module named 'gssapi'
[2024-07-30 15:43:49,813] [DEBUG] SPNEGO._GSS: Python gssapi IOV extension not available: No module named 'gssapi'
[2024-07-30 15:43:50,058] [INFO] TESTER: Checking connection to server-2016
[2024-07-30 15:43:52,595] [INFO] TESTER: WinRM connection successful.
[2024-07-30 15:43:54,747] [INFO] TESTER: Checking connection to ubuntu-22.04
[2024-07-30 15:43:56,179] [INFO] TESTER: Connection established successfully in ubuntu-22.04
[2024-07-30 15:43:56,180] [INFO] TESTER: Firewall disabled on server-2016
[2024-07-30 15:44:01,573] [INFO] TESTER: Manager is already installed in ubuntu-22.04
[2024-07-30 15:44:03,657] [INFO] TESTER: Installing Agent in server-2016
[2024-07-30 15:44:48,610] [INFO] TESTER: Getting status of server-2016
[2024-07-30 15:44:56,557] [DEBUG] TESTER: Playbook /home/akim/Desktop/wazuh-qa/deployability/modules/testing/playbooks/test.yml finished with status {'skipped': {}, 'ok': {'localhost': 2}, 'dark': {}, 'failures': {}, 'ignored': {}, 'rescued': {}, 'processed': {'localhost': 1}, 'changed': {'localhost': 1}}
[2024-07-30 15:44:56,559] [DEBUG] TESTER: Using inventory: {'all': {'hosts': {'ec2-3-84-26-166.compute-1.amazonaws.com': {'ansible_port': 2200, 'ansible_user': 'ubuntu', 'ansible_ssh_private_key_file': '/tmp/wazuh-qa/i-0108f2b7b0046d8b4/qa-5616-ubuntu-22.04-key-8812'}}}}
[2024-07-30 15:44:56,559] [DEBUG] TESTER: Running playbook: /home/akim/Desktop/wazuh-qa/deployability/modules/testing/playbooks/test.yml
[2024-07-30 15:45:03,484] [DEBUG] SPNEGO._GSS: Python gssapi not available, cannot use any GSSAPIProxy protocols: No module named 'gssapi'
[2024-07-30 15:45:03,484] [DEBUG] SPNEGO._GSS: Python gssapi IOV extension not available: No module named 'gssapi'
[2024-07-30 15:45:03,739] [INFO] TESTER: Checking connection to server-2016
[2024-07-30 15:45:06,129] [INFO] TESTER: WinRM connection successful.
[2024-07-30 15:45:12,807] [INFO] TESTER: Registering agent in server-2016
[2024-07-30 15:45:20,151] [INFO] TESTER: Getting status of server-2016
[2024-07-30 15:46:18,772] [DEBUG] TESTER: Playbook /home/akim/Desktop/wazuh-qa/deployability/modules/testing/playbooks/test.yml finished with status {'skipped': {}, 'ok': {'localhost': 2}, 'dark': {}, 'failures': {}, 'ignored': {}, 'rescued': {}, 'processed': {'localhost': 1}, 'changed': {'localhost': 1}}
[2024-07-30 15:46:18,774] [DEBUG] TESTER: Using inventory: {'all': {'hosts': {'ec2-3-84-26-166.compute-1.amazonaws.com': {'ansible_port': 2200, 'ansible_user': 'ubuntu', 'ansible_ssh_private_key_file': '/tmp/wazuh-qa/i-0108f2b7b0046d8b4/qa-5616-ubuntu-22.04-key-8812'}}}}
[2024-07-30 15:46:18,774] [DEBUG] TESTER: Running playbook: /home/akim/Desktop/wazuh-qa/deployability/modules/testing/playbooks/test.yml
[2024-07-30 15:46:25,596] [DEBUG] SPNEGO._GSS: Python gssapi not available, cannot use any GSSAPIProxy protocols: No module named 'gssapi'
[2024-07-30 15:46:25,596] [DEBUG] SPNEGO._GSS: Python gssapi IOV extension not available: No module named 'gssapi'
[2024-07-30 15:46:25,837] [INFO] TESTER: Checking connection to server-2016
[2024-07-30 15:46:28,551] [INFO] TESTER: WinRM connection successful.
[2024-07-30 15:46:50,213] [INFO] TESTER: Getting status of server-2016
[2024-07-30 15:47:15,976] [DEBUG] TESTER: Playbook /home/akim/Desktop/wazuh-qa/deployability/modules/testing/playbooks/test.yml finished with status {'skipped': {}, 'ok': {'localhost': 2}, 'dark': {}, 'failures': {}, 'ignored': {}, 'rescued': {}, 'processed': {'localhost': 1}, 'changed': {'localhost': 1}}
[2024-07-30 15:47:15,978] [DEBUG] TESTER: Using inventory: {'all': {'hosts': {'ec2-3-84-26-166.compute-1.amazonaws.com': {'ansible_port': 2200, 'ansible_user': 'ubuntu', 'ansible_ssh_private_key_file': '/tmp/wazuh-qa/i-0108f2b7b0046d8b4/qa-5616-ubuntu-22.04-key-8812'}}}}
[2024-07-30 15:47:15,978] [DEBUG] TESTER: Running playbook: /home/akim/Desktop/wazuh-qa/deployability/modules/testing/playbooks/test.yml
[2024-07-30 15:47:22,818] [DEBUG] SPNEGO._GSS: Python gssapi not available, cannot use any GSSAPIProxy protocols: No module named 'gssapi'
[2024-07-30 15:47:22,819] [DEBUG] SPNEGO._GSS: Python gssapi IOV extension not available: No module named 'gssapi'
[2024-07-30 15:47:23,069] [INFO] TESTER: Checking connection to server-2016
[2024-07-30 15:47:25,691] [INFO] TESTER: WinRM connection successful.
[2024-07-30 15:47:49,755] [DEBUG] TESTER: Version obtained from agent: 10.0
[2024-07-30 15:47:49,756] [DEBUG] TESTER: Version obtained from Wazuh API: 10.0.14393.5648
[2024-07-30 15:47:55,579] [DEBUG] TESTER: Playbook /home/akim/Desktop/wazuh-qa/deployability/modules/testing/playbooks/test.yml finished with status {'skipped': {}, 'ok': {'localhost': 2}, 'dark': {}, 'failures': {}, 'ignored': {}, 'rescued': {}, 'processed': {'localhost': 1}, 'changed': {'localhost': 1}}
[2024-07-30 15:47:55,581] [DEBUG] TESTER: Using inventory: {'all': {'hosts': {'ec2-3-84-26-166.compute-1.amazonaws.com': {'ansible_port': 2200, 'ansible_user': 'ubuntu', 'ansible_ssh_private_key_file': '/tmp/wazuh-qa/i-0108f2b7b0046d8b4/qa-5616-ubuntu-22.04-key-8812'}}}}
[2024-07-30 15:47:55,581] [DEBUG] TESTER: Running playbook: /home/akim/Desktop/wazuh-qa/deployability/modules/testing/playbooks/test.yml
[2024-07-30 15:48:02,455] [DEBUG] SPNEGO._GSS: Python gssapi not available, cannot use any GSSAPIProxy protocols: No module named 'gssapi'
[2024-07-30 15:48:02,455] [DEBUG] SPNEGO._GSS: Python gssapi IOV extension not available: No module named 'gssapi'
[2024-07-30 15:48:02,701] [INFO] TESTER: Checking connection to server-2016
[2024-07-30 15:48:05,115] [INFO] TESTER: WinRM connection successful.
[2024-07-30 15:48:11,260] [INFO] TESTER: Restarting wazuh-agent in server-2016
[2024-07-30 15:48:16,091] [INFO] TESTER: Getting status of server-2016
[2024-07-30 15:48:31,226] [DEBUG] TESTER: Playbook /home/akim/Desktop/wazuh-qa/deployability/modules/testing/playbooks/test.yml finished with status {'skipped': {}, 'ok': {'localhost': 2}, 'dark': {}, 'failures': {}, 'ignored': {}, 'rescued': {}, 'processed': {'localhost': 1}, 'changed': {'localhost': 1}}
[2024-07-30 15:48:31,229] [DEBUG] TESTER: Using inventory: {'all': {'hosts': {'ec2-3-84-26-166.compute-1.amazonaws.com': {'ansible_port': 2200, 'ansible_user': 'ubuntu', 'ansible_ssh_private_key_file': '/tmp/wazuh-qa/i-0108f2b7b0046d8b4/qa-5616-ubuntu-22.04-key-8812'}}}}
[2024-07-30 15:48:31,229] [DEBUG] TESTER: Running playbook: /home/akim/Desktop/wazuh-qa/deployability/modules/testing/playbooks/test.yml
[2024-07-30 15:48:39,114] [DEBUG] SPNEGO._GSS: Python gssapi not available, cannot use any GSSAPIProxy protocols: No module named 'gssapi'
[2024-07-30 15:48:39,115] [DEBUG] SPNEGO._GSS: Python gssapi IOV extension not available: No module named 'gssapi'
[2024-07-30 15:48:39,351] [INFO] TESTER: Checking connection to server-2016
[2024-07-30 15:48:42,183] [INFO] TESTER: WinRM connection successful.
[2024-07-30 15:48:55,169] [INFO] TESTER: Stopping wazuh-agent in server-2016
[2024-07-30 15:48:58,670] [INFO] TESTER: Getting status of server-2016
[2024-07-30 15:49:06,146] [INFO] TESTER: Restarting wazuh-agent in server-2016
[2024-07-30 15:49:11,614] [DEBUG] TESTER: Playbook /home/akim/Desktop/wazuh-qa/deployability/modules/testing/playbooks/test.yml finished with status {'skipped': {}, 'ok': {'localhost': 2}, 'dark': {}, 'failures': {}, 'ignored': {}, 'rescued': {}, 'processed': {'localhost': 1}, 'changed': {'localhost': 1}}
[2024-07-30 15:49:11,616] [DEBUG] TESTER: Using inventory: {'all': {'hosts': {'ec2-3-84-26-166.compute-1.amazonaws.com': {'ansible_port': 2200, 'ansible_user': 'ubuntu', 'ansible_ssh_private_key_file': '/tmp/wazuh-qa/i-0108f2b7b0046d8b4/qa-5616-ubuntu-22.04-key-8812'}}}}
[2024-07-30 15:49:11,616] [DEBUG] TESTER: Running playbook: /home/akim/Desktop/wazuh-qa/deployability/modules/testing/playbooks/test.yml
[2024-07-30 15:49:18,467] [DEBUG] SPNEGO._GSS: Python gssapi not available, cannot use any GSSAPIProxy protocols: No module named 'gssapi'
[2024-07-30 15:49:18,467] [DEBUG] SPNEGO._GSS: Python gssapi IOV extension not available: No module named 'gssapi'
[2024-07-30 15:49:18,719] [INFO] TESTER: Checking connection to server-2016
[2024-07-30 15:49:20,891] [INFO] TESTER: WinRM connection successful.
[2024-07-30 15:49:33,180] [INFO] TESTER: Uninstalling Agent in server-2016
[2024-07-30 15:49:57,870] [DEBUG] TESTER: Playbook /home/akim/Desktop/wazuh-qa/deployability/modules/testing/playbooks/test.yml finished with status {'skipped': {}, 'ok': {'localhost': 2}, 'dark': {}, 'failures': {}, 'ignored': {}, 'rescued': {}, 'processed': {'localhost': 1}, 'changed': {'localhost': 1}}
[2024-07-30 15:49:57,873] [INFO] TESTER: Cleaning up
[2024-07-30 15:49:57,874] [DEBUG] TESTER: Using inventory: {'all': {'hosts': {'ec2-3-84-26-166.compute-1.amazonaws.com': {'ansible_port': 2200, 'ansible_user': 'ubuntu', 'ansible_ssh_private_key_file': '/tmp/wazuh-qa/i-0108f2b7b0046d8b4/qa-5616-ubuntu-22.04-key-8812'}}}}
[2024-07-30 15:49:57,874] [DEBUG] TESTER: Running playbook: /home/akim/Desktop/wazuh-qa/deployability/modules/testing/playbooks/cleanup.yml
[2024-07-30 15:50:12,632] [DEBUG] TESTER: Playbook /home/akim/Desktop/wazuh-qa/deployability/modules/testing/playbooks/cleanup.yml finished with status {'skipped': {}, 'ok': {'ec2-3-84-26-166.compute-1.amazonaws.com': 2}, 'dark': {}, 'failures': {}, 'ignored': {}, 'rescued': {}, 'processed': {'ec2-3-84-26-166.compute-1.amazonaws.com': 1}, 'changed': {}}
[2024-07-30 15:50:12,633] [INFO] TESTER: Cleaning up
[2024-07-30 15:50:12,633] [DEBUG] TESTER: Using inventory: {'all': {'hosts': {'ec2-3-84-26-166.compute-1.amazonaws.com': {'ansible_port': 2200, 'ansible_user': 'ubuntu', 'ansible_ssh_private_key_file': '/tmp/wazuh-qa/i-0108f2b7b0046d8b4/qa-5616-ubuntu-22.04-key-8812'}}}}
[2024-07-30 15:50:12,634] [DEBUG] TESTER: Running playbook: /home/akim/Desktop/wazuh-qa/deployability/modules/testing/playbooks/cleanup.yml
[2024-07-30 15:50:24,289] [DEBUG] TESTER: Playbook /home/akim/Desktop/wazuh-qa/deployability/modules/testing/playbooks/cleanup.yml finished with status {'skipped': {}, 'ok': {'ec2-3-84-26-166.compute-1.amazonaws.com': 2}, 'dark': {}, 'failures': {}, 'ignored': {}, 'rescued': {}, 'processed': {'ec2-3-84-26-166.compute-1.amazonaws.com': 1}, 'changed': {}}
[2024-07-30 15:50:24,402] [DEBUG] [289569] [ThreadPoolExecutor-0_0] [jobflow]: Finished task "run-windows-agent-windows-server-2016-amd64-tests" execution with result:
[2024-07-30 15:43:38] [DEBUG] SPNEGO._GSS: Python gssapi not available, cannot use any GSSAPIProxy protocols: No module named 'gssapi'
[2024-07-30 15:43:38] [DEBUG] SPNEGO._GSS: Python gssapi IOV extension not available: No module named 'gssapi'
[2024-07-30 15:43:38] [INFO] TESTER: Running tests for ec2-3-84-26-166.compute-1.amazonaws.com
[2024-07-30 15:43:38] [INFO] TESTER: Running tests for ec2-52-1-166-116.compute-1.amazonaws.com
[2024-07-30 15:43:38] [DEBUG] TESTER: Using extra vars: {'component': 'agent', 'wazuh_version': '4.9.0', 'wazuh_revision': '40903', 'wazuh_branch': None, 'working_dir': '/tmp/tests', 'live': False, 'hosts_ip': ['ec2-3-84-26-166.compute-1.amazonaws.com', 'ec2-52-1-166-116.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-2016-amd64/inventory.yaml}', 'dependencies': '{}', 'local_host_path': '/home/akim/Desktop/wazuh-qa/deployability', 'current_user': 'akim'}
[2024-07-30 15:43:38] [DEBUG] TESTER: Using inventory: {'all': {'hosts': {'ec2-3-84-26-166.compute-1.amazonaws.com': {'ansible_port': 2200, 'ansible_user': 'ubuntu', 'ansible_ssh_private_key_file': '/tmp/wazuh-qa/i-0108f2b7b0046d8b4/qa-5616-ubuntu-22.04-key-8812'}}}}
[2024-07-30 15:43:38] [DEBUG] TESTER: Running playbook: /home/akim/Desktop/wazuh-qa/deployability/modules/testing/playbooks/setup.yml
/home/akim/Desktop/venvs/24935/lib/python3.10/site-packages/paramiko/pkey.py:100: CryptographyDeprecationWarning: TripleDES has been moved to cryptography.hazmat.decrepit.ciphers.algorithms.TripleDES and will be removed from this module in 48.0.0.
  "cipher": algorithms.TripleDES,
/home/akim/Desktop/venvs/24935/lib/python3.10/site-packages/paramiko/transport.py:259: CryptographyDeprecationWarning: TripleDES has been moved to cryptography.hazmat.decrepit.ciphers.algorithms.TripleDES and will be removed from this module in 48.0.0.
  "class": algorithms.TripleDES,
No config file found; using defaults

PLAY [localhost] ***************************************************************

TASK [Gathering Facts] *********************************************************
ok: [localhost]

TASK [Cleaning old key ssh-keygen registries] **********************************
changed: [localhost] => (item=ec2-3-84-26-166.compute-1.amazonaws.com) => changed=true 
  ansible_loop_var: item
  cmd:
  - ssh-keygen
  - -f
  - ~/.ssh/known_hosts
  - -R
  - ec2-3-84-26-166.compute-1.amazonaws.com
  delta: '0:00:00.021669'
  end: '2024-07-30 15:43:45.077835'
  item: ec2-3-84-26-166.compute-1.amazonaws.com
  msg: ''
  rc: 0
  start: '2024-07-30 15:43:45.056166'
  stderr: Host ec2-3-84-26-166.compute-1.amazonaws.com not found in /home/akim/.ssh/known_hosts
  stderr_lines: <omitted>
  stdout: ''
  stdout_lines: <omitted>
changed: [localhost] => (item=ec2-52-1-166-116.compute-1.amazonaws.com) => changed=true 
  ansible_loop_var: item
  cmd:
  - ssh-keygen
  - -f
  - ~/.ssh/known_hosts
  - -R
  - ec2-52-1-166-116.compute-1.amazonaws.com
  delta: '0:00:00.027584'
  end: '2024-07-30 15:43:45.340318'
  item: ec2-52-1-166-116.compute-1.amazonaws.com
  msg: ''
  rc: 0
  start: '2024-07-30 15:43:45.312734'
  stderr: Host ec2-52-1-166-116.compute-1.amazonaws.com not found in /home/akim/.ssh/known_hosts
  stderr_lines: <omitted>
  stdout: ''
  stdout_lines: <omitted>

PLAY RECAP *********************************************************************
localhost                  : ok=2    changed=1    unreachable=0    failed=0    skipped=0    rescued=0    ignored=0   
[2024-07-30 15:43:45] [DEBUG] TESTER: Playbook /home/akim/Desktop/wazuh-qa/deployability/modules/testing/playbooks/setup.yml finished with status {'skipped': {}, 'ok': {'localhost': 2}, 'dark': {}, 'failures': {}, 'ignored': {}, 'rescued': {}, 'processed': {'localhost': 1}, 'changed': {'localhost': 1}}
[2024-07-30 15:43:45] [DEBUG] TESTER: Using inventory: {'all': {'hosts': {'ec2-3-84-26-166.compute-1.amazonaws.com': {'ansible_port': 2200, 'ansible_user': 'ubuntu', 'ansible_ssh_private_key_file': '/tmp/wazuh-qa/i-0108f2b7b0046d8b4/qa-5616-ubuntu-22.04-key-8812'}}}}
[2024-07-30 15:43:45] [DEBUG] TESTER: Running playbook: /home/akim/Desktop/wazuh-qa/deployability/modules/testing/playbooks/test.yml
/home/akim/Desktop/venvs/24935/lib/python3.10/site-packages/paramiko/pkey.py:100: CryptographyDeprecationWarning: TripleDES has been moved to cryptography.hazmat.decrepit.ciphers.algorithms.TripleDES and will be removed from this module in 48.0.0.
  "cipher": algorithms.TripleDES,
/home/akim/Desktop/venvs/24935/lib/python3.10/site-packages/paramiko/transport.py:259: CryptographyDeprecationWarning: TripleDES has been moved to cryptography.hazmat.decrepit.ciphers.algorithms.TripleDES and will be removed from this module in 48.0.0.
  "class": algorithms.TripleDES,
No config file found; using defaults

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.9.0
  - --wazuh_revision=40903
  - --component=agent
  - --dependencies={}
  - '--targets={wazuh-1: /tmp/dtt1-poc/manager-linux-ubuntu-22.04-amd64/inventory.yaml, agent: /tmp/dtt1-poc/agent-windows-server-2016-amd64/inventory.yaml}'
  - --live=False
  - -s
  delta: '0:01:07.049095'
  end: '2024-07-30 15:44:56.266929'
  msg: ''
  rc: 0
  start: '2024-07-30 15:43:49.217834'
  stderr: |-
    Warning: Permanently added '[ec2-3-84-26-166.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-3-84-26-166.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
  stderr_lines: <omitted>
  stdout: |-
    [37m[2024-07-30 15:43:49] [DEBUG] SPNEGO._GSS: Python gssapi not available, cannot use any GSSAPIProxy protocols: No module named 'gssapi'[0m
    [37m[2024-07-30 15:43:49] [DEBUG] SPNEGO._GSS: Python gssapi IOV extension not available: No module named 'gssapi'[0m
    ============================= test session starts ==============================
    platform linux -- Python 3.10.12, pytest-7.4.4, pluggy-1.5.0 -- /home/akim/Desktop/venvs/24935/bin/python3
    cachedir: .pytest_cache
    rootdir: /home/akim/Desktop/wazuh-qa/deployability/modules
    collecting ... collected 2 items
  
    modules/testing/tests/test_agent/test_install.py::test_installation [32m[2024-07-30 15:43:50] [INFO] TESTER: Checking connection to server-2016[0m
    [32m[2024-07-30 15:43:52] [INFO] TESTER: WinRM connection successful.[0m
    [32m[2024-07-30 15:43:54] [INFO] TESTER: Checking connection to ubuntu-22.04[0m
    [32m[2024-07-30 15:43:56] [INFO] TESTER: Connection established successfully in ubuntu-22.04[0m
    [32m[2024-07-30 15:43:56] [INFO] TESTER: Firewall disabled on server-2016[0m
    [32m[2024-07-30 15:44:01] [INFO] TESTER: Manager is already installed in ubuntu-22.04[0m
    [32m[2024-07-30 15:44:03] [INFO] TESTER: Installing Agent in server-2016[0m
    PASSED
    modules/testing/tests/test_agent/test_install.py::test_status [32m[2024-07-30 15:44:48] [INFO] TESTER: Getting status of server-2016[0m
    PASSED
  
    =============================== warnings summary ===============================
    modules/provision/models.py:36
      /home/akim/Desktop/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/akim/Desktop/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)
  
    ../../venvs/24935/lib/python3.10/site-packages/paramiko/pkey.py:100
      /home/akim/Desktop/venvs/24935/lib/python3.10/site-packages/paramiko/pkey.py:100: CryptographyDeprecationWarning: TripleDES has been moved to cryptography.hazmat.decrepit.ciphers.algorithms.TripleDES and will be removed from this module in 48.0.0.
        "cipher": algorithms.TripleDES,
  
    ../../venvs/24935/lib/python3.10/site-packages/paramiko/transport.py:259
      /home/akim/Desktop/venvs/24935/lib/python3.10/site-packages/paramiko/transport.py:259: CryptographyDeprecationWarning: TripleDES has been moved to cryptography.hazmat.decrepit.ciphers.algorithms.TripleDES and will be removed from this module in 48.0.0.
        "class": algorithms.TripleDES,
  
    -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
    =================== 2 passed, 4 warnings in 66.11s (0:01:06) ===================
  stdout_lines: <omitted>

PLAY RECAP *********************************************************************
localhost                  : ok=2    changed=1    unreachable=0    failed=0    skipped=0    rescued=0    ignored=0   
[2024-07-30 15:44:56] [DEBUG] TESTER: Playbook /home/akim/Desktop/wazuh-qa/deployability/modules/testing/playbooks/test.yml finished with status {'skipped': {}, 'ok': {'localhost': 2}, 'dark': {}, 'failures': {}, 'ignored': {}, 'rescued': {}, 'processed': {'localhost': 1}, 'changed': {'localhost': 1}}
[2024-07-30 15:44:56] [DEBUG] TESTER: Using inventory: {'all': {'hosts': {'ec2-3-84-26-166.compute-1.amazonaws.com': {'ansible_port': 2200, 'ansible_user': 'ubuntu', 'ansible_ssh_private_key_file': '/tmp/wazuh-qa/i-0108f2b7b0046d8b4/qa-5616-ubuntu-22.04-key-8812'}}}}
[2024-07-30 15:44:56] [DEBUG] TESTER: Running playbook: /home/akim/Desktop/wazuh-qa/deployability/modules/testing/playbooks/test.yml
/home/akim/Desktop/venvs/24935/lib/python3.10/site-packages/paramiko/pkey.py:100: CryptographyDeprecationWarning: TripleDES has been moved to cryptography.hazmat.decrepit.ciphers.algorithms.TripleDES and will be removed from this module in 48.0.0.
  "cipher": algorithms.TripleDES,
/home/akim/Desktop/venvs/24935/lib/python3.10/site-packages/paramiko/transport.py:259: CryptographyDeprecationWarning: TripleDES has been moved to cryptography.hazmat.decrepit.ciphers.algorithms.TripleDES and will be removed from this module in 48.0.0.
  "class": algorithms.TripleDES,
No config file found; using defaults

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.9.0
  - --wazuh_revision=40903
  - --component=agent
  - --dependencies={}
  - '--targets={wazuh-1: /tmp/dtt1-poc/manager-linux-ubuntu-22.04-amd64/inventory.yaml, agent: /tmp/dtt1-poc/agent-windows-server-2016-amd64/inventory.yaml}'
  - --live=False
  - -s
  delta: '0:01:15.593562'
  end: '2024-07-30 15:46:18.475623'
  msg: ''
  rc: 0
  start: '2024-07-30 15:45:02.882061'
  stderr: |-
    Warning: Permanently added '[ec2-3-84-26-166.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-3-84-26-166.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-3-84-26-166.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-3-84-26-166.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-3-84-26-166.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-3-84-26-166.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-3-84-26-166.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-3-84-26-166.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
  stderr_lines: <omitted>
  stdout: |-
    [37m[2024-07-30 15:45:03] [DEBUG] SPNEGO._GSS: Python gssapi not available, cannot use any GSSAPIProxy protocols: No module named 'gssapi'[0m
    [37m[2024-07-30 15:45:03] [DEBUG] SPNEGO._GSS: Python gssapi IOV extension not available: No module named 'gssapi'[0m
    ============================= test session starts ==============================
    platform linux -- Python 3.10.12, pytest-7.4.4, pluggy-1.5.0 -- /home/akim/Desktop/venvs/24935/bin/python3
    cachedir: .pytest_cache
    rootdir: /home/akim/Desktop/wazuh-qa/deployability/modules
    collecting ... collected 4 items
  
    modules/testing/tests/test_agent/test_registration.py::test_status [32m[2024-07-30 15:45:03] [INFO] TESTER: Checking connection to server-2016[0m
    [32m[2024-07-30 15:45:06] [INFO] TESTER: WinRM connection successful.[0m
    [32m[2024-07-30 15:45:12] [INFO] TESTER: Registering agent in server-2016[0m
    [32m[2024-07-30 15:45:20] [INFO] TESTER: Getting status of server-2016[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/akim/Desktop/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/akim/Desktop/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)
  
    ../../venvs/24935/lib/python3.10/site-packages/paramiko/pkey.py:100
      /home/akim/Desktop/venvs/24935/lib/python3.10/site-packages/paramiko/pkey.py:100: CryptographyDeprecationWarning: TripleDES has been moved to cryptography.hazmat.decrepit.ciphers.algorithms.TripleDES and will be removed from this module in 48.0.0.
        "cipher": algorithms.TripleDES,
  
    ../../venvs/24935/lib/python3.10/site-packages/paramiko/transport.py:259
      /home/akim/Desktop/venvs/24935/lib/python3.10/site-packages/paramiko/transport.py:259: CryptographyDeprecationWarning: TripleDES has been moved to cryptography.hazmat.decrepit.ciphers.algorithms.TripleDES and will be removed from this module in 48.0.0.
        "class": algorithms.TripleDES,
  
    -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
    =================== 4 passed, 4 warnings in 74.60s (0:01:14) ===================
  stdout_lines: <omitted>

PLAY RECAP *********************************************************************
localhost                  : ok=2    changed=1    unreachable=0    failed=0    skipped=0    rescued=0    ignored=0   
[2024-07-30 15:46:18] [DEBUG] TESTER: Playbook /home/akim/Desktop/wazuh-qa/deployability/modules/testing/playbooks/test.yml finished with status {'skipped': {}, 'ok': {'localhost': 2}, 'dark': {}, 'failures': {}, 'ignored': {}, 'rescued': {}, 'processed': {'localhost': 1}, 'changed': {'localhost': 1}}
[2024-07-30 15:46:18] [DEBUG] TESTER: Using inventory: {'all': {'hosts': {'ec2-3-84-26-166.compute-1.amazonaws.com': {'ansible_port': 2200, 'ansible_user': 'ubuntu', 'ansible_ssh_private_key_file': '/tmp/wazuh-qa/i-0108f2b7b0046d8b4/qa-5616-ubuntu-22.04-key-8812'}}}}
[2024-07-30 15:46:18] [DEBUG] TESTER: Running playbook: /home/akim/Desktop/wazuh-qa/deployability/modules/testing/playbooks/test.yml
/home/akim/Desktop/venvs/24935/lib/python3.10/site-packages/paramiko/pkey.py:100: CryptographyDeprecationWarning: TripleDES has been moved to cryptography.hazmat.decrepit.ciphers.algorithms.TripleDES and will be removed from this module in 48.0.0.
  "cipher": algorithms.TripleDES,
/home/akim/Desktop/venvs/24935/lib/python3.10/site-packages/paramiko/transport.py:259: CryptographyDeprecationWarning: TripleDES has been moved to cryptography.hazmat.decrepit.ciphers.algorithms.TripleDES and will be removed from this module in 48.0.0.
  "class": algorithms.TripleDES,
No config file found; using defaults

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.9.0
  - --wazuh_revision=40903
  - --component=agent
  - --dependencies={}
  - '--targets={wazuh-1: /tmp/dtt1-poc/manager-linux-ubuntu-22.04-amd64/inventory.yaml, agent: /tmp/dtt1-poc/agent-windows-server-2016-amd64/inventory.yaml}'
  - --live=False
  - -s
  delta: '0:00:50.670989'
  end: '2024-07-30 15:47:15.688438'
  msg: ''
  rc: 0
  start: '2024-07-30 15:46:25.017449'
  stderr: |-
    Warning: Permanently added '[ec2-3-84-26-166.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-3-84-26-166.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-3-84-26-166.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-3-84-26-166.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-3-84-26-166.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-3-84-26-166.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-3-84-26-166.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
  stderr_lines: <omitted>
  stdout: |-
    [37m[2024-07-30 15:46:25] [DEBUG] SPNEGO._GSS: Python gssapi not available, cannot use any GSSAPIProxy protocols: No module named 'gssapi'[0m
    [37m[2024-07-30 15:46:25] [DEBUG] SPNEGO._GSS: Python gssapi IOV extension not available: No module named 'gssapi'[0m
    ============================= test session starts ==============================
    platform linux -- Python 3.10.12, pytest-7.4.4, pluggy-1.5.0 -- /home/akim/Desktop/venvs/24935/bin/python3
    cachedir: .pytest_cache
    rootdir: /home/akim/Desktop/wazuh-qa/deployability/modules
    collecting ... collected 6 items
  
    modules/testing/tests/test_agent/test_connection.py::test_connection [32m[2024-07-30 15:46:25] [INFO] TESTER: Checking connection to server-2016[0m
    [32m[2024-07-30 15:46:28] [INFO] TESTER: WinRM connection successful.[0m
    PASSED
    modules/testing/tests/test_agent/test_connection.py::test_status [32m[2024-07-30 15:46:50] [INFO] TESTER: Getting status of server-2016[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/akim/Desktop/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/akim/Desktop/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)
  
    ../../venvs/24935/lib/python3.10/site-packages/paramiko/pkey.py:100
      /home/akim/Desktop/venvs/24935/lib/python3.10/site-packages/paramiko/pkey.py:100: CryptographyDeprecationWarning: TripleDES has been moved to cryptography.hazmat.decrepit.ciphers.algorithms.TripleDES and will be removed from this module in 48.0.0.
        "cipher": algorithms.TripleDES,
  
    ../../venvs/24935/lib/python3.10/site-packages/paramiko/transport.py:259
      /home/akim/Desktop/venvs/24935/lib/python3.10/site-packages/paramiko/transport.py:259: CryptographyDeprecationWarning: TripleDES has been moved to cryptography.hazmat.decrepit.ciphers.algorithms.TripleDES and will be removed from this module in 48.0.0.
        "class": algorithms.TripleDES,
  
    -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
    ======================== 6 passed, 4 warnings in 49.75s ========================
  stdout_lines: <omitted>

PLAY RECAP *********************************************************************
localhost                  : ok=2    changed=1    unreachable=0    failed=0    skipped=0    rescued=0    ignored=0   
[2024-07-30 15:47:15] [DEBUG] TESTER: Playbook /home/akim/Desktop/wazuh-qa/deployability/modules/testing/playbooks/test.yml finished with status {'skipped': {}, 'ok': {'localhost': 2}, 'dark': {}, 'failures': {}, 'ignored': {}, 'rescued': {}, 'processed': {'localhost': 1}, 'changed': {'localhost': 1}}
[2024-07-30 15:47:15] [DEBUG] TESTER: Using inventory: {'all': {'hosts': {'ec2-3-84-26-166.compute-1.amazonaws.com': {'ansible_port': 2200, 'ansible_user': 'ubuntu', 'ansible_ssh_private_key_file': '/tmp/wazuh-qa/i-0108f2b7b0046d8b4/qa-5616-ubuntu-22.04-key-8812'}}}}
[2024-07-30 15:47:15] [DEBUG] TESTER: Running playbook: /home/akim/Desktop/wazuh-qa/deployability/modules/testing/playbooks/test.yml
/home/akim/Desktop/venvs/24935/lib/python3.10/site-packages/paramiko/pkey.py:100: CryptographyDeprecationWarning: TripleDES has been moved to cryptography.hazmat.decrepit.ciphers.algorithms.TripleDES and will be removed from this module in 48.0.0.
  "cipher": algorithms.TripleDES,
/home/akim/Desktop/venvs/24935/lib/python3.10/site-packages/paramiko/transport.py:259: CryptographyDeprecationWarning: TripleDES has been moved to cryptography.hazmat.decrepit.ciphers.algorithms.TripleDES and will be removed from this module in 48.0.0.
  "class": algorithms.TripleDES,
No config file found; using defaults

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.9.0
  - --wazuh_revision=40903
  - --component=agent
  - --dependencies={}
  - '--targets={wazuh-1: /tmp/dtt1-poc/manager-linux-ubuntu-22.04-amd64/inventory.yaml, agent: /tmp/dtt1-poc/agent-windows-server-2016-amd64/inventory.yaml}'
  - --live=False
  - -s
  delta: '0:00:33.047078'
  end: '2024-07-30 15:47:55.290101'
  msg: ''
  rc: 0
  start: '2024-07-30 15:47:22.243023'
  stderr: |-
    Warning: Permanently added '[ec2-3-84-26-166.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-3-84-26-166.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-3-84-26-166.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
  stderr_lines: <omitted>
  stdout: |-
    [37m[2024-07-30 15:47:22] [DEBUG] SPNEGO._GSS: Python gssapi not available, cannot use any GSSAPIProxy protocols: No module named 'gssapi'[0m
    [37m[2024-07-30 15:47:22] [DEBUG] SPNEGO._GSS: Python gssapi IOV extension not available: No module named 'gssapi'[0m
    ============================= test session starts ==============================
    platform linux -- Python 3.10.12, pytest-7.4.4, pluggy-1.5.0 -- /home/akim/Desktop/venvs/24935/bin/python3
    cachedir: .pytest_cache
    rootdir: /home/akim/Desktop/wazuh-qa/deployability/modules
    collecting ... collected 3 items
  
    modules/testing/tests/test_agent/test_basic_info.py::test_wazuh_os_version [32m[2024-07-30 15:47:23] [INFO] TESTER: Checking connection to server-2016[0m
    [32m[2024-07-30 15:47:25] [INFO] TESTER: WinRM connection successful.[0m
    [37m[2024-07-30 15:47:49] [DEBUG] TESTER: Version obtained from agent: 10.0[0m
    [37m[2024-07-30 15:47:49] [DEBUG] TESTER: Version obtained from Wazuh API: 10.0.14393.5648[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/akim/Desktop/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/akim/Desktop/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)
  
    ../../venvs/24935/lib/python3.10/site-packages/paramiko/pkey.py:100
      /home/akim/Desktop/venvs/24935/lib/python3.10/site-packages/paramiko/pkey.py:100: CryptographyDeprecationWarning: TripleDES has been moved to cryptography.hazmat.decrepit.ciphers.algorithms.TripleDES and will be removed from this module in 48.0.0.
        "cipher": algorithms.TripleDES,
  
    ../../venvs/24935/lib/python3.10/site-packages/paramiko/transport.py:259
      /home/akim/Desktop/venvs/24935/lib/python3.10/site-packages/paramiko/transport.py:259: CryptographyDeprecationWarning: TripleDES has been moved to cryptography.hazmat.decrepit.ciphers.algorithms.TripleDES and will be removed from this module in 48.0.0.
        "class": algorithms.TripleDES,
  
    -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
    ======================== 3 passed, 4 warnings in 32.14s ========================
  stdout_lines: <omitted>

PLAY RECAP *********************************************************************
localhost                  : ok=2    changed=1    unreachable=0    failed=0    skipped=0    rescued=0    ignored=0   
[2024-07-30 15:47:55] [DEBUG] TESTER: Playbook /home/akim/Desktop/wazuh-qa/deployability/modules/testing/playbooks/test.yml finished with status {'skipped': {}, 'ok': {'localhost': 2}, 'dark': {}, 'failures': {}, 'ignored': {}, 'rescued': {}, 'processed': {'localhost': 1}, 'changed': {'localhost': 1}}
[2024-07-30 15:47:55] [DEBUG] TESTER: Using inventory: {'all': {'hosts': {'ec2-3-84-26-166.compute-1.amazonaws.com': {'ansible_port': 2200, 'ansible_user': 'ubuntu', 'ansible_ssh_private_key_file': '/tmp/wazuh-qa/i-0108f2b7b0046d8b4/qa-5616-ubuntu-22.04-key-8812'}}}}
[2024-07-30 15:47:55] [DEBUG] TESTER: Running playbook: /home/akim/Desktop/wazuh-qa/deployability/modules/testing/playbooks/test.yml
/home/akim/Desktop/venvs/24935/lib/python3.10/site-packages/paramiko/pkey.py:100: CryptographyDeprecationWarning: TripleDES has been moved to cryptography.hazmat.decrepit.ciphers.algorithms.TripleDES and will be removed from this module in 48.0.0.
  "cipher": algorithms.TripleDES,
/home/akim/Desktop/venvs/24935/lib/python3.10/site-packages/paramiko/transport.py:259: CryptographyDeprecationWarning: TripleDES has been moved to cryptography.hazmat.decrepit.ciphers.algorithms.TripleDES and will be removed from this module in 48.0.0.
  "class": algorithms.TripleDES,
No config file found; using defaults

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.9.0
  - --wazuh_revision=40903
  - --component=agent
  - --dependencies={}
  - '--targets={wazuh-1: /tmp/dtt1-poc/manager-linux-ubuntu-22.04-amd64/inventory.yaml, agent: /tmp/dtt1-poc/agent-windows-server-2016-amd64/inventory.yaml}'
  - --live=False
  - -s
  delta: '0:00:29.068055'
  end: '2024-07-30 15:48:30.938624'
  msg: ''
  rc: 0
  start: '2024-07-30 15:48:01.870569'
  stderr: 'Warning: Permanently added ''[ec2-3-84-26-166.compute-1.amazonaws.com]:2200'' (ED25519) to the list of known hosts.'
  stderr_lines: <omitted>
  stdout: |-
    [37m[2024-07-30 15:48:02] [DEBUG] SPNEGO._GSS: Python gssapi not available, cannot use any GSSAPIProxy protocols: No module named 'gssapi'[0m
    [37m[2024-07-30 15:48:02] [DEBUG] SPNEGO._GSS: Python gssapi IOV extension not available: No module named 'gssapi'[0m
    ============================= test session starts ==============================
    platform linux -- Python 3.10.12, pytest-7.4.4, pluggy-1.5.0 -- /home/akim/Desktop/venvs/24935/bin/python3
    cachedir: .pytest_cache
    rootdir: /home/akim/Desktop/wazuh-qa/deployability/modules
    collecting ... collected 7 items
  
    modules/testing/tests/test_agent/test_restart.py::test_restart [32m[2024-07-30 15:48:02] [INFO] TESTER: Checking connection to server-2016[0m
    [32m[2024-07-30 15:48:05] [INFO] TESTER: WinRM connection successful.[0m
    [32m[2024-07-30 15:48:11] [INFO] TESTER: Restarting wazuh-agent in server-2016[0m
    PASSED
    modules/testing/tests/test_agent/test_restart.py::test_status [32m[2024-07-30 15:48:16] [INFO] TESTER: Getting status of server-2016[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/akim/Desktop/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/akim/Desktop/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)
  
    ../../venvs/24935/lib/python3.10/site-packages/paramiko/pkey.py:100
      /home/akim/Desktop/venvs/24935/lib/python3.10/site-packages/paramiko/pkey.py:100: CryptographyDeprecationWarning: TripleDES has been moved to cryptography.hazmat.decrepit.ciphers.algorithms.TripleDES and will be removed from this module in 48.0.0.
        "cipher": algorithms.TripleDES,
  
    ../../venvs/24935/lib/python3.10/site-packages/paramiko/transport.py:259
      /home/akim/Desktop/venvs/24935/lib/python3.10/site-packages/paramiko/transport.py:259: CryptographyDeprecationWarning: TripleDES has been moved to cryptography.hazmat.decrepit.ciphers.algorithms.TripleDES and will be removed from this module in 48.0.0.
        "class": algorithms.TripleDES,
  
    -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
    ======================== 7 passed, 4 warnings in 28.14s ========================
  stdout_lines: <omitted>

PLAY RECAP *********************************************************************
localhost                  : ok=2    changed=1    unreachable=0    failed=0    skipped=0    rescued=0    ignored=0   
[2024-07-30 15:48:31] [DEBUG] TESTER: Playbook /home/akim/Desktop/wazuh-qa/deployability/modules/testing/playbooks/test.yml finished with status {'skipped': {}, 'ok': {'localhost': 2}, 'dark': {}, 'failures': {}, 'ignored': {}, 'rescued': {}, 'processed': {'localhost': 1}, 'changed': {'localhost': 1}}
[2024-07-30 15:48:31] [DEBUG] TESTER: Using inventory: {'all': {'hosts': {'ec2-3-84-26-166.compute-1.amazonaws.com': {'ansible_port': 2200, 'ansible_user': 'ubuntu', 'ansible_ssh_private_key_file': '/tmp/wazuh-qa/i-0108f2b7b0046d8b4/qa-5616-ubuntu-22.04-key-8812'}}}}
[2024-07-30 15:48:31] [DEBUG] TESTER: Running playbook: /home/akim/Desktop/wazuh-qa/deployability/modules/testing/playbooks/test.yml
/home/akim/Desktop/venvs/24935/lib/python3.10/site-packages/paramiko/pkey.py:100: CryptographyDeprecationWarning: TripleDES has been moved to cryptography.hazmat.decrepit.ciphers.algorithms.TripleDES and will be removed from this module in 48.0.0.
  "cipher": algorithms.TripleDES,
/home/akim/Desktop/venvs/24935/lib/python3.10/site-packages/paramiko/transport.py:259: CryptographyDeprecationWarning: TripleDES has been moved to cryptography.hazmat.decrepit.ciphers.algorithms.TripleDES and will be removed from this module in 48.0.0.
  "class": algorithms.TripleDES,
No config file found; using defaults

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.9.0
  - --wazuh_revision=40903
  - --component=agent
  - --dependencies={}
  - '--targets={wazuh-1: /tmp/dtt1-poc/manager-linux-ubuntu-22.04-amd64/inventory.yaml, agent: /tmp/dtt1-poc/agent-windows-server-2016-amd64/inventory.yaml}'
  - --live=False
  - -s
  delta: '0:00:32.725956'
  end: '2024-07-30 15:49:11.269634'
  msg: ''
  rc: 0
  start: '2024-07-30 15:48:38.543678'
  stderr: |-
    Warning: Permanently added '[ec2-3-84-26-166.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-3-84-26-166.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-3-84-26-166.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
  stderr_lines: <omitted>
  stdout: |-
    [37m[2024-07-30 15:48:39] [DEBUG] SPNEGO._GSS: Python gssapi not available, cannot use any GSSAPIProxy protocols: No module named 'gssapi'[0m
    [37m[2024-07-30 15:48:39] [DEBUG] SPNEGO._GSS: Python gssapi IOV extension not available: No module named 'gssapi'[0m
    ============================= test session starts ==============================
    platform linux -- Python 3.10.12, pytest-7.4.4, pluggy-1.5.0 -- /home/akim/Desktop/venvs/24935/bin/python3
    cachedir: .pytest_cache
    rootdir: /home/akim/Desktop/wazuh-qa/deployability/modules
    collecting ... collected 3 items
  
    modules/testing/tests/test_agent/test_stop.py::test_service [32m[2024-07-30 15:48:39] [INFO] TESTER: Checking connection to server-2016[0m
    [32m[2024-07-30 15:48:42] [INFO] TESTER: WinRM connection successful.[0m
    [32m[2024-07-30 15:48:55] [INFO] TESTER: Stopping wazuh-agent in server-2016[0m
    [32m[2024-07-30 15:48:58] [INFO] TESTER: Getting status of server-2016[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-07-30 15:49:06] [INFO] TESTER: Restarting wazuh-agent in server-2016[0m
  
  
    =============================== warnings summary ===============================
    modules/provision/models.py:36
      /home/akim/Desktop/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/akim/Desktop/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)
  
    ../../venvs/24935/lib/python3.10/site-packages/paramiko/pkey.py:100
      /home/akim/Desktop/venvs/24935/lib/python3.10/site-packages/paramiko/pkey.py:100: CryptographyDeprecationWarning: TripleDES has been moved to cryptography.hazmat.decrepit.ciphers.algorithms.TripleDES and will be removed from this module in 48.0.0.
        "cipher": algorithms.TripleDES,
  
    ../../venvs/24935/lib/python3.10/site-packages/paramiko/transport.py:259
      /home/akim/Desktop/venvs/24935/lib/python3.10/site-packages/paramiko/transport.py:259: CryptographyDeprecationWarning: TripleDES has been moved to cryptography.hazmat.decrepit.ciphers.algorithms.TripleDES and will be removed from this module in 48.0.0.
        "class": algorithms.TripleDES,
  
    -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
    ======================== 3 passed, 4 warnings in 31.83s ========================
  stdout_lines: <omitted>

PLAY RECAP *********************************************************************
localhost                  : ok=2    changed=1    unreachable=0    failed=0    skipped=0    rescued=0    ignored=0   
[2024-07-30 15:49:11] [DEBUG] TESTER: Playbook /home/akim/Desktop/wazuh-qa/deployability/modules/testing/playbooks/test.yml finished with status {'skipped': {}, 'ok': {'localhost': 2}, 'dark': {}, 'failures': {}, 'ignored': {}, 'rescued': {}, 'processed': {'localhost': 1}, 'changed': {'localhost': 1}}
[2024-07-30 15:49:11] [DEBUG] TESTER: Using inventory: {'all': {'hosts': {'ec2-3-84-26-166.compute-1.amazonaws.com': {'ansible_port': 2200, 'ansible_user': 'ubuntu', 'ansible_ssh_private_key_file': '/tmp/wazuh-qa/i-0108f2b7b0046d8b4/qa-5616-ubuntu-22.04-key-8812'}}}}
[2024-07-30 15:49:11] [DEBUG] TESTER: Running playbook: /home/akim/Desktop/wazuh-qa/deployability/modules/testing/playbooks/test.yml
/home/akim/Desktop/venvs/24935/lib/python3.10/site-packages/paramiko/pkey.py:100: CryptographyDeprecationWarning: TripleDES has been moved to cryptography.hazmat.decrepit.ciphers.algorithms.TripleDES and will be removed from this module in 48.0.0.
  "cipher": algorithms.TripleDES,
/home/akim/Desktop/venvs/24935/lib/python3.10/site-packages/paramiko/transport.py:259: CryptographyDeprecationWarning: TripleDES has been moved to cryptography.hazmat.decrepit.ciphers.algorithms.TripleDES and will be removed from this module in 48.0.0.
  "class": algorithms.TripleDES,
No config file found; using defaults

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.9.0
  - --wazuh_revision=40903
  - --component=agent
  - --dependencies={}
  - '--targets={wazuh-1: /tmp/dtt1-poc/manager-linux-ubuntu-22.04-amd64/inventory.yaml, agent: /tmp/dtt1-poc/agent-windows-server-2016-amd64/inventory.yaml}'
  - --live=False
  - -s
  delta: '0:00:39.684287'
  end: '2024-07-30 15:49:57.578142'
  msg: ''
  rc: 0
  start: '2024-07-30 15:49:17.893855'
  stderr: |-
    Warning: Permanently added '[ec2-3-84-26-166.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-3-84-26-166.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-3-84-26-166.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
    Warning: Permanently added '[ec2-3-84-26-166.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
  stderr_lines: <omitted>
  stdout: |-
    [37m[2024-07-30 15:49:18] [DEBUG] SPNEGO._GSS: Python gssapi not available, cannot use any GSSAPIProxy protocols: No module named 'gssapi'[0m
    [37m[2024-07-30 15:49:18] [DEBUG] SPNEGO._GSS: Python gssapi IOV extension not available: No module named 'gssapi'[0m
    ============================= test session starts ==============================
    platform linux -- Python 3.10.12, pytest-7.4.4, pluggy-1.5.0 -- /home/akim/Desktop/venvs/24935/bin/python3
    cachedir: .pytest_cache
    rootdir: /home/akim/Desktop/wazuh-qa/deployability/modules
    collecting ... collected 5 items
  
    modules/testing/tests/test_agent/test_uninstall.py::test_uninstall [32m[2024-07-30 15:49:18] [INFO] TESTER: Checking connection to server-2016[0m
    [32m[2024-07-30 15:49:20] [INFO] TESTER: WinRM connection successful.[0m
    [32m[2024-07-30 15:49:33] [INFO] TESTER: Uninstalling Agent in server-2016[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/akim/Desktop/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/akim/Desktop/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)
  
    ../../venvs/24935/lib/python3.10/site-packages/paramiko/pkey.py:100
      /home/akim/Desktop/venvs/24935/lib/python3.10/site-packages/paramiko/pkey.py:100: CryptographyDeprecationWarning: TripleDES has been moved to cryptography.hazmat.decrepit.ciphers.algorithms.TripleDES and will be removed from this module in 48.0.0.
        "cipher": algorithms.TripleDES,
  
    ../../venvs/24935/lib/python3.10/site-packages/paramiko/transport.py:259
      /home/akim/Desktop/venvs/24935/lib/python3.10/site-packages/paramiko/transport.py:259: CryptographyDeprecationWarning: TripleDES has been moved to cryptography.hazmat.decrepit.ciphers.algorithms.TripleDES and will be removed from this module in 48.0.0.
        "class": algorithms.TripleDES,
  
    -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
    ======================== 5 passed, 4 warnings in 38.78s ========================
  stdout_lines: <omitted>

PLAY RECAP *********************************************************************
localhost                  : ok=2    changed=1    unreachable=0    failed=0    skipped=0    rescued=0    ignored=0   
[2024-07-30 15:49:57] [DEBUG] TESTER: Playbook /home/akim/Desktop/wazuh-qa/deployability/modules/testing/playbooks/test.yml finished with status {'skipped': {}, 'ok': {'localhost': 2}, 'dark': {}, 'failures': {}, 'ignored': {}, 'rescued': {}, 'processed': {'localhost': 1}, 'changed': {'localhost': 1}}
[2024-07-30 15:49:57] [INFO] TESTER: Cleaning up
[2024-07-30 15:49:57] [DEBUG] TESTER: Using inventory: {'all': {'hosts': {'ec2-3-84-26-166.compute-1.amazonaws.com': {'ansible_port': 2200, 'ansible_user': 'ubuntu', 'ansible_ssh_private_key_file': '/tmp/wazuh-qa/i-0108f2b7b0046d8b4/qa-5616-ubuntu-22.04-key-8812'}}}}
[2024-07-30 15:49:57] [DEBUG] TESTER: Running playbook: /home/akim/Desktop/wazuh-qa/deployability/modules/testing/playbooks/cleanup.yml
/home/akim/Desktop/venvs/24935/lib/python3.10/site-packages/paramiko/pkey.py:100: CryptographyDeprecationWarning: TripleDES has been moved to cryptography.hazmat.decrepit.ciphers.algorithms.TripleDES and will be removed from this module in 48.0.0.
  "cipher": algorithms.TripleDES,
/home/akim/Desktop/venvs/24935/lib/python3.10/site-packages/paramiko/transport.py:259: CryptographyDeprecationWarning: TripleDES has been moved to cryptography.hazmat.decrepit.ciphers.algorithms.TripleDES and will be removed from this module in 48.0.0.
  "class": algorithms.TripleDES,
No config file found; using defaults

PLAY [all] *********************************************************************

TASK [Gathering Facts] *********************************************************
[WARNING]: Platform linux on host ec2-3-84-26-166.compute-1.amazonaws.com is
using the discovered Python interpreter at /usr/bin/python3.10, but future
installation of another Python interpreter could change the meaning of that
path. See https://docs.ansible.com/ansible-
core/2.17/reference_appendices/interpreter_discovery.html for more information.
ok: [ec2-3-84-26-166.compute-1.amazonaws.com]

TASK [Clean test directory] ****************************************************
ok: [ec2-3-84-26-166.compute-1.amazonaws.com] => changed=false 
  path: /tmp/tests
  state: absent

PLAY RECAP *********************************************************************
ec2-3-84-26-166.compute-1.amazonaws.com : ok=2    changed=0    unreachable=0    failed=0    skipped=0    rescued=0    ignored=0   
[2024-07-30 15:50:12] [DEBUG] TESTER: Playbook /home/akim/Desktop/wazuh-qa/deployability/modules/testing/playbooks/cleanup.yml finished with status {'skipped': {}, 'ok': {'ec2-3-84-26-166.compute-1.amazonaws.com': 2}, 'dark': {}, 'failures': {}, 'ignored': {}, 'rescued': {}, 'processed': {'ec2-3-84-26-166.compute-1.amazonaws.com': 1}, 'changed': {}}
[2024-07-30 15:50:12] [INFO] TESTER: Cleaning up
[2024-07-30 15:50:12] [DEBUG] TESTER: Using inventory: {'all': {'hosts': {'ec2-3-84-26-166.compute-1.amazonaws.com': {'ansible_port': 2200, 'ansible_user': 'ubuntu', 'ansible_ssh_private_key_file': '/tmp/wazuh-qa/i-0108f2b7b0046d8b4/qa-5616-ubuntu-22.04-key-8812'}}}}
[2024-07-30 15:50:12] [DEBUG] TESTER: Running playbook: /home/akim/Desktop/wazuh-qa/deployability/modules/testing/playbooks/cleanup.yml
/home/akim/Desktop/venvs/24935/lib/python3.10/site-packages/paramiko/pkey.py:100: CryptographyDeprecationWarning: TripleDES has been moved to cryptography.hazmat.decrepit.ciphers.algorithms.TripleDES and will be removed from this module in 48.0.0.
  "cipher": algorithms.TripleDES,
/home/akim/Desktop/venvs/24935/lib/python3.10/site-packages/paramiko/transport.py:259: CryptographyDeprecationWarning: TripleDES has been moved to cryptography.hazmat.decrepit.ciphers.algorithms.TripleDES and will be removed from this module in 48.0.0.
  "class": algorithms.TripleDES,
No config file found; using defaults

PLAY [all] *********************************************************************

TASK [Gathering Facts] *********************************************************
core/2.17/reference_appendices/interpreter_discovery.html for more information.
ok: [ec2-3-84-26-166.compute-1.amazonaws.com]

TASK [Clean test directory] ****************************************************
ok: [ec2-3-84-26-166.compute-1.amazonaws.com] => changed=false 
  path: /tmp/tests
  state: absent

PLAY RECAP *********************************************************************
ec2-3-84-26-166.compute-1.amazonaws.com : ok=2    changed=0    unreachable=0    failed=0    skipped=0    rescued=0    ignored=0   
[2024-07-30 15:50:24] [DEBUG] TESTER: Playbook /home/akim/Desktop/wazuh-qa/deployability/modules/testing/playbooks/cleanup.yml finished with status {'skipped': {}, 'ok': {'ec2-3-84-26-166.compute-1.amazonaws.com': 2}, 'dark': {}, 'failures': {}, 'ignored': {}, 'rescued': {}, 'processed': {'ec2-3-84-26-166.compute-1.amazonaws.com': 1}, 'changed': {}}

[2024-07-30 15:50:24,413] [INFO] [289569] [ThreadPoolExecutor-0_0] [jobflow]: [run-windows-agent-windows-server-2016-amd64-tests] Finished task in 406.26 seconds.
[2024-07-30 15:50:24,424] [INFO] [289569] [MainThread] [jobflow]: Executing Reverse DAG tasks.
[2024-07-30 15:50:24,424] [INFO] [289569] [MainThread] [jobflow]: Executing tasks in parallel.
[2024-07-30 15:50:24,424] [INFO] [289569] [ThreadPoolExecutor-1_0] [jobflow]: [allocate-windows-agent-windows-server-2016-amd64] Starting task.
[2024-07-30 15:50:24,435] [DEBUG] [289569] [ThreadPoolExecutor-1_0] [jobflow]: Running task "allocate-windows-agent-windows-server-2016-amd64" with arguments: ['modules/allocation/main.py', '--action=delete', '--track-output=/tmp/dtt1-poc/agent-windows-server-2016-amd64/track.yaml']
[2024-07-30 15:50:24,942] [DEBUG] SPNEGO._GSS: Python gssapi not available, cannot use any GSSAPIProxy protocols: No module named 'gssapi'
[2024-07-30 15:50:24,943] [DEBUG] SPNEGO._GSS: Python gssapi IOV extension not available: No module named 'gssapi'
[2024-07-30 15:50:25,097] [INFO] ALLOCATOR: Deleting instance from trackfile /tmp/dtt1-poc/agent-windows-server-2016-amd64/track.yaml
[2024-07-30 15:50:57,219] [INFO] ALLOCATOR: Instance i-0f399a04c5228e89d deleted.
[2024-07-30 15:50:57,390] [DEBUG] [289569] [ThreadPoolExecutor-1_0] [jobflow]: Finished task "allocate-windows-agent-windows-server-2016-amd64" execution with result:
[2024-07-30 15:50:24] [DEBUG] SPNEGO._GSS: Python gssapi not available, cannot use any GSSAPIProxy protocols: No module named 'gssapi'
[2024-07-30 15:50:24] [DEBUG] SPNEGO._GSS: Python gssapi IOV extension not available: No module named 'gssapi'
[2024-07-30 15:50:25] [INFO] ALLOCATOR: Deleting instance from trackfile /tmp/dtt1-poc/agent-windows-server-2016-amd64/track.yaml
[2024-07-30 15:50:57] [INFO] ALLOCATOR: Instance i-0f399a04c5228e89d deleted.

[2024-07-30 15:50:57,400] [INFO] [289569] [ThreadPoolExecutor-1_0] [jobflow]: [allocate-windows-agent-windows-server-2016-amd64] Finished task in 32.97 seconds.

Windows-server-2016: I have not been able to find a bug in the tests


Many hosts + windows-server2016 🔴

YAML
version: 0.1
description: This workflow is used to test agents deployment for DDT1 PoC
variables:
  agent-os:
    - linux-redhat-7-amd64
    - linux-redhat-7-arm64
    - linux-redhat-8-amd64
    - linux-redhat-8-arm64
    - linux-redhat-9-amd64
    - linux-redhat-9-arm64
    - linux-centos-7-amd64
    - linux-centos-7-arm64
    - linux-centos-8-amd64
    - linux-centos-8-arm64
    - linux-debian-10-amd64
    - linux-debian-10-arm64
    - linux-debian-11-amd64
    - linux-debian-11-arm64
    #- linux-debian-12-amd64
    #- linux-debian-12-arm64
    - linux-ubuntu-22.04-amd64
    - linux-ubuntu-22.04-arm64
    - linux-ubuntu-18.04-amd64
    - linux-ubuntu-18.04-arm64
    - linux-ubuntu-20.04-amd64
    - linux-ubuntu-20.04-arm64
    #- linux-oracle-9-amd64
    - linux-amazon-2-amd64
    - linux-amazon-2-arm64
    - linux-amazon-2023-amd64
    - linux-amazon-2023-arm64

  windows-agent-os:
    #- windows-desktop-10-amd64
    - windows-server-2012r2-amd64
    - windows-server-2016-amd64
    - windows-server-2019-amd64
    - windows-server-2022-amd64

  #macos-agent-os:
  #  - macos-ventura-13-amd64
  #  - macos-sonoma-14-amd64

  manager-os: linux-ubuntu-22.04-amd64
  infra-provider: aws
  macos-infra-provider: vagrant
  working-dir: /tmp/dtt1-poc

tasks:
  # Unique manager allocate task
  - task: "allocate-manager-{manager-os}"
    description: "Allocate resources for the manager."
    do:
      this: process
      with:
        path: python3
        args:
          - modules/allocation/main.py
          - action: create
          - provider: "{infra-provider}"
          - size: large
          - composite-name: "{manager-os}"
          - inventory-output: "{working-dir}/manager-{manager-os}/inventory.yaml"
          - track-output: "{working-dir}/manager-{manager-os}/track.yaml"
          - label-termination-date: "1d"
          - label-team: "qa"
          - label-issue: "https://github.com/wazuh/wazuh/issues/5616"
    cleanup:
      this: process
      with:
        path: python3
        args:
          - modules/allocation/main.py
          - action: delete
          - track-output: "{working-dir}/manager-{manager-os}/track.yaml"

  # Unique manager provision task
  - task: "provision-manager-{manager-os}"
    description: "Provision the manager."
    do:
      this: process
      with:
        path: python3
        args:
          - modules/provision/main.py
          - inventory: "{working-dir}/manager-{manager-os}/inventory.yaml"
          - install:
            - component: wazuh-manager
              type: assistant
              version: 4.9.0
              live: False
    depends-on:
      - "allocate-manager-{manager-os}"
    on-error: "abort-all"

  # Unique agent allocate task
  - task: "allocate-agent-{agent}"
    description: "Allocate resources for the agent."
    do:
      this: process
      with:
        path: python3
        args:
          - modules/allocation/main.py
          - action: create
          - provider: "{infra-provider}"
          - size: small
          - composite-name: "{agent}"
          - inventory-output: "{working-dir}/agent-{agent}/inventory.yaml"
          - track-output: "{working-dir}/agent-{agent}/track.yaml"
          - label-termination-date: "1d"
          - label-team: "qa"
          - label-issue: "https://github.com/wazuh/wazuh/issues/5616"
    foreach:
      - variable: agent-os
        as: agent
    depends-on:
      - "provision-manager-{manager-os}"
    cleanup:
      this: process
      with:
        path: python3
        args:
          - modules/allocation/main.py
          - action: delete
          - track-output: "{working-dir}/agent-{agent}/track.yaml"

  # Generic agent test task
  - task: "run-agent-{agent}-tests"
    description: "Run tests install for the agent {agent}."
    do:
      this: process
      with:
        path: python3
        args:
          - modules/testing/main.py
          - targets:
            - wazuh-1: "{working-dir}/manager-{manager-os}/inventory.yaml"
            - agent: "{working-dir}/agent-{agent}/inventory.yaml"
          - tests: "install,registration,connection,basic_info,restart,stop,uninstall"
          - component: "agent"
          - wazuh-version: "4.9.0"
          - wazuh-revision: "40903"
          - live: False
    foreach:
      - variable: agent-os
        as: agent
    depends-on:
      - "allocate-agent-{agent}"

  # Unique agent allocate task
  #- task: "allocate-macos-agent-{agent}"
  #  description: "Allocate resources for the agent."
  #  do:
  #    this: process
  #    with:
  #      path: python3
  #      args:
  #        - modules/allocation/main.py
  #        - action: create
  #        - provider: "{macos-infra-provider}"
  #        - size: small
  #        - composite-name: "{agent}"
  #        - inventory-output: "{working-dir}/agent-{agent}/inventory.yaml"
  #        - track-output: "{working-dir}/agent-{agent}/track.yaml"
  #        - label-termination-date: "1d"
  #        - label-team: "qa"
  #        - label-issue: "https://github.com/wazuh/wazuh/issues/5616"
  #  foreach:
  #    - variable: macos-agent-os
  #      as: agent
  #  depends-on:
  #    - "provision-manager-{manager-os}"
  #  cleanup:
  #    this: process
  #    with:
  #      path: python3
  #      args:
  #        - modules/allocation/main.py
  #        - action: delete
  #        - track-output: "{working-dir}/agent-{agent}/track.yaml"

  # Generic agent test task
  #- task: "run-macos-agent-{agent}-tests"
  #  description: "Run tests install for the agent {agent}."
  #  do:
  #    this: process
  #    with:
  #      path: python3
  #      args:
  #        - modules/testing/main.py
  #        - targets:
  #          - wazuh-1: "{working-dir}/manager-{manager-os}/inventory.yaml"
  #          - agent: "{working-dir}/agent-{agent}/inventory.yaml"
  #        - tests: "install,registration,connection,basic_info,restart,stop,uninstall"
  #        - component: "agent"
  #        - wazuh-version: "4.9.0"
  #        - wazuh-revision: "40903"
  #        - live: False
  #  foreach:
  #    - variable: macos-agent-os
  #      as: agent
  #  depends-on:
  #    - "allocate-macos-agent-{agent}"

  # Unique agent allocate task
  - task: "allocate-windows-agent-{agent}"
    description: "Allocate resources for the agent."
    do:
      this: process
      with:
        path: python3
        args:
          - modules/allocation/main.py
          - action: create
          - provider: "{infra-provider}"
          - size: large
          - composite-name: "{agent}"
          - inventory-output: "{working-dir}/agent-{agent}/inventory.yaml"
          - track-output: "{working-dir}/agent-{agent}/track.yaml"
          - label-termination-date: "1d"
          - label-team: "qa"
          - label-issue: "https://github.com/wazuh/wazuh/issues/5616"
    foreach:
      - variable: windows-agent-os
        as: agent
    depends-on:
      - "provision-manager-{manager-os}"
    cleanup:
      this: process
      with:
        path: python3
        args:
          - modules/allocation/main.py
          - action: delete
          - track-output: "{working-dir}/agent-{agent}/track.yaml"

  # Generic agent test task
  - task: "run-windows-agent-{agent}-tests"
    description: "Run tests install for the agent {agent}."
    do:
      this: process
      with:
        path: python3
        args:
          - modules/testing/main.py
          - targets:
            - wazuh-1: "{working-dir}/manager-{manager-os}/inventory.yaml"
            - agent: "{working-dir}/agent-{agent}/inventory.yaml"
          - tests: "install,registration,connection,basic_info,restart,stop,uninstall"
          - component: "agent"
          - wazuh-version: "4.9.0"
          - wazuh-revision: "40903"
          - live: False
    foreach:
      - variable: windows-agent-os
        as: agent
    depends-on:
      - "allocate-windows-agent-{agent}"

Result
[2024-07-30 17:36:05,748] [INFO] TESTER: Getting status of server-2019
[2024-07-30 17:36:06,032] [INFO] TESTER: WinRM connection successful.
[2024-07-30 17:36:08,980] [INFO] TESTER: Getting status of server-2016
[2024-07-30 17:36:13,789] [ERROR] TESTER: Port is closed
[2024-07-30 17:36:15,864] [DEBUG] TESTER: Playbook /home/akim/Desktop/wazuh-qa/deployability/modules/testing/playbooks/test.yml finished with status {'skipped': {}, 'ok': {'localhost': 1}, 'dark': {}, 'failures': {'localhost': 1}, 'ignored': {}, 'rescued': {}, 'processed': {'localhost': 1}, 'changed': {}}
[2024-07-30 17:36:17,247] [ERROR] TESTER: Port is closed

When running tests with more load, the reported error can be observed to repeat.
Apparently the error is related to system performance.

I run smaller runs of Windows systems to see if the error persists.


Testing manually, the commands , the environment and the installation works OK

image


Adding a dynamic wait I could correctly handled this problem 🟢

    modules/testing/tests/test_agent/test_restart.py::test_restart [32m[2024-07-30 19:41:20] [INFO] TESTER: Checking connection to server-2016[0m
    [32m[2024-07-30 19:41:42] [INFO] TESTER: WinRM connection successful.[0m
    [32m[2024-07-30 19:41:52] [INFO] TESTER: Restarting wazuh-agent in server-2016[0m
    PASSED
    modules/testing/tests/test_agent/test_restart.py::test_status [32m[2024-07-30 19:41:56] [INFO] TESTER: Getting status of server-2016[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

@pro-akim
Copy link
Member

pro-akim commented Jul 31, 2024

Final results after fixes 🟢

Central Components YAML
version: 0.1
description: This workflow is used to test the Wazuh manager deployment for DDT1 PoC
variables:
  central_components-os:
    - linux-ubuntu-20.04-amd64
    - linux-ubuntu-22.04-amd64
    - linux-amazon-2-amd64
    - linux-redhat-7-amd64
    - linux-redhat-8-amd64
    - linux-redhat-9-amd64
    - linux-centos-7-amd64
    - linux-centos-8-amd64
    - linux-debian-10-amd64
    - linux-debian-11-amd64
    - linux-debian-12-amd64
  infra-provider: aws
  working-dir: /tmp/dtt1-poc

tasks:
  # Unique central components allocate task
  - task: "allocate-central_components-{central_components}"
    description: "Allocate resources for the central_components."
    do:
      this: process
      with:
        path: python3
        args:
          - modules/allocation/main.py
          - action: create
          - provider: "{infra-provider}"
          - size: large
          - composite-name: "{central_components}"
          - inventory-output: "{working-dir}/central_components-{central_components}/inventory.yaml"
          - track-output: "{working-dir}/central_components-{central_components}/track.yaml"
          - label-termination-date: "1d"
          - label-team: "qa"
          - label-issue: "https://github.com/wazuh/wazuh/issues/24935"
    foreach:
      - variable: central_components-os
        as: central_components
    cleanup:
      this: process
      with:
        path: python3
        args:
          - modules/allocation/main.py
          - action: delete
          - track-output: "{working-dir}/central_components-{central_components-os}/track.yaml"

  # Generic manager test task
  - task: "run-central_components-{central_components}-tests"
    description: "Run tests install for the central_components."
    do:
      this: process
      with:
        path: python3
        args:
          - modules/testing/main.py
          - targets:
            - wazuh-1: "{working-dir}/central_components-{central_components}/inventory.yaml"
          - tests: "install,restart,stop,uninstall"
          - component: "central_components"
          - wazuh-version: "4.9.0"
          - wazuh-revision: "40903"
          - live: False
    foreach:
      - variable: central_components-os
        as: central_components
    depends-on:
      - "allocate-central_components-linux-ubuntu-20.04-amd64"
      - "allocate-central_components-linux-ubuntu-22.04-amd64"
      - "allocate-central_components-linux-amazon-2-amd64"
      - "allocate-central_components-linux-redhat-7-amd64"
      - "allocate-central_components-linux-redhat-8-amd64"
      - "allocate-central_components-linux-redhat-8-amd64"
      - "allocate-central_components-linux-redhat-9-amd64"
      - "allocate-central_components-linux-centos-7-amd64"
      - "allocate-central_components-linux-centos-8-amd64"
      - "allocate-central_components-linux-debian-10-amd64"
      - "allocate-central_components-linux-debian-11-amd64"
      - "allocate-central_components-linux-debian-12-amd64"

Central_components.log

Agents YAML
version: 0.1
description: This workflow is used to test agents deployment for DDT1 PoC
variables:
  agent-os:
    - linux-redhat-7-amd64
    - linux-redhat-7-arm64
    - linux-redhat-8-amd64
    - linux-redhat-8-arm64
    - linux-redhat-9-amd64
    - linux-redhat-9-arm64
    - linux-centos-7-amd64
    - linux-centos-7-arm64
    - linux-centos-8-amd64
    - linux-centos-8-arm64
    - linux-debian-10-amd64
    - linux-debian-10-arm64
    - linux-debian-11-amd64
    - linux-debian-11-arm64
    - linux-debian-12-amd64
    - linux-debian-12-arm64
    - linux-ubuntu-22.04-amd64
    - linux-ubuntu-22.04-arm64
    - linux-ubuntu-18.04-amd64
    - linux-ubuntu-18.04-arm64
    - linux-ubuntu-20.04-amd64
    - linux-ubuntu-20.04-arm64
    - linux-oracle-9-amd64
    - linux-amazon-2-amd64
    - linux-amazon-2-arm64
    - linux-amazon-2023-amd64
    - linux-amazon-2023-arm64

  windows-agent-os:
    - windows-desktop-10-amd64
    - windows-server-2012r2-amd64
    - windows-server-2016-amd64
    - windows-server-2019-amd64
    - windows-server-2022-amd64

  #macos-agent-os:
  #  - macos-ventura-13-amd64
  #  - macos-sonoma-14-amd64

  manager-os: linux-ubuntu-22.04-amd64
  infra-provider: aws
  macos-infra-provider: vagrant
  working-dir: /tmp/dtt1-poc

tasks:
  # Unique manager allocate task
  - task: "allocate-manager-{manager-os}"
    description: "Allocate resources for the manager."
    do:
      this: process
      with:
        path: python3
        args:
          - modules/allocation/main.py
          - action: create
          - provider: "{infra-provider}"
          - size: large
          - composite-name: "{manager-os}"
          - inventory-output: "{working-dir}/manager-{manager-os}/inventory.yaml"
          - track-output: "{working-dir}/manager-{manager-os}/track.yaml"
          - label-termination-date: "1d"
          - label-team: "qa"
          - label-issue: "https://github.com/wazuh/wazuh/issues/24935"
    cleanup:
      this: process
      with:
        path: python3
        args:
          - modules/allocation/main.py
          - action: delete
          - track-output: "{working-dir}/manager-{manager-os}/track.yaml"

  # Unique manager provision task
  - task: "provision-manager-{manager-os}"
    description: "Provision the manager."
    do:
      this: process
      with:
        path: python3
        args:
          - modules/provision/main.py
          - inventory: "{working-dir}/manager-{manager-os}/inventory.yaml"
          - install:
            - component: wazuh-manager
              type: assistant
              version: 4.9.0
              live: False
    depends-on:
      - "allocate-manager-{manager-os}"
    on-error: "abort-all"

  # Unique agent allocate task
  - task: "allocate-agent-{agent}"
    description: "Allocate resources for the agent."
    do:
      this: process
      with:
        path: python3
        args:
          - modules/allocation/main.py
          - action: create
          - provider: "{infra-provider}"
          - size: small
          - composite-name: "{agent}"
          - inventory-output: "{working-dir}/agent-{agent}/inventory.yaml"
          - track-output: "{working-dir}/agent-{agent}/track.yaml"
          - label-termination-date: "1d"
          - label-team: "qa"
          - label-issue: "https://github.com/wazuh/wazuh/issues/24935"
    foreach:
      - variable: agent-os
        as: agent
    depends-on:
      - "provision-manager-{manager-os}"
    cleanup:
      this: process
      with:
        path: python3
        args:
          - modules/allocation/main.py
          - action: delete
          - track-output: "{working-dir}/agent-{agent}/track.yaml"

  # Generic agent test task
  - task: "run-agent-{agent}-tests"
    description: "Run tests install for the agent {agent}."
    do:
      this: process
      with:
        path: python3
        args:
          - modules/testing/main.py
          - targets:
            - wazuh-1: "{working-dir}/manager-{manager-os}/inventory.yaml"
            - agent: "{working-dir}/agent-{agent}/inventory.yaml"
          - tests: "install,registration,connection,basic_info,restart,stop,uninstall"
          - component: "agent"
          - wazuh-version: "4.9.0"
          - wazuh-revision: "40903"
          - live: False
    foreach:
      - variable: agent-os
        as: agent
    depends-on:
      - "allocate-agent-{agent}"

  # Unique agent allocate task
  #- task: "allocate-macos-agent-{agent}"
  #  description: "Allocate resources for the agent."
  #  do:
  #    this: process
  #    with:
  #      path: python3
  #      args:
  #        - modules/allocation/main.py
  #        - action: create
  #        - provider: "{macos-infra-provider}"
  #        - size: small
  #        - composite-name: "{agent}"
  #        - inventory-output: "{working-dir}/agent-{agent}/inventory.yaml"
  #        - track-output: "{working-dir}/agent-{agent}/track.yaml"
  #        - label-termination-date: "1d"
  #        - label-team: "qa"
  #        - label-issue: "https://github.com/wazuh/wazuh/issues/24935"
  #  foreach:
  #    - variable: macos-agent-os
  #      as: agent
  #  depends-on:
  #    - "provision-manager-{manager-os}"
  #  cleanup:
  #    this: process
  #    with:
  #      path: python3
  #      args:
  #        - modules/allocation/main.py
  #        - action: delete
  #        - track-output: "{working-dir}/agent-{agent}/track.yaml"

  # Generic agent test task
  #- task: "run-macos-agent-{agent}-tests"
  #  description: "Run tests install for the agent {agent}."
  #  do:
  #    this: process
  #    with:
  #      path: python3
  #      args:
  #        - modules/testing/main.py
  #        - targets:
  #          - wazuh-1: "{working-dir}/manager-{manager-os}/inventory.yaml"
  #          - agent: "{working-dir}/agent-{agent}/inventory.yaml"
  #        - tests: "install,registration,connection,basic_info,restart,stop,uninstall"
  #        - component: "agent"
  #        - wazuh-version: "4.9.0"
  #        - wazuh-revision: "40903"
  #        - live: False
  #  foreach:
  #    - variable: macos-agent-os
  #      as: agent
  #  depends-on:
  #    - "allocate-macos-agent-{agent}"

  # Unique agent allocate task
  - task: "allocate-windows-agent-{agent}"
    description: "Allocate resources for the agent."
    do:
      this: process
      with:
        path: python3
        args:
          - modules/allocation/main.py
          - action: create
          - provider: "{infra-provider}"
          - size: large
          - composite-name: "{agent}"
          - inventory-output: "{working-dir}/agent-{agent}/inventory.yaml"
          - track-output: "{working-dir}/agent-{agent}/track.yaml"
          - label-termination-date: "1d"
          - label-team: "qa"
          - label-issue: "https://github.com/wazuh/wazuh/issues/24935"
    foreach:
      - variable: windows-agent-os
        as: agent
    depends-on:
      - "provision-manager-{manager-os}"
    cleanup:
      this: process
      with:
        path: python3
        args:
          - modules/allocation/main.py
          - action: delete
          - track-output: "{working-dir}/agent-{agent}/track.yaml"

  # Generic agent test task
  - task: "run-windows-agent-{agent}-tests"
    description: "Run tests install for the agent {agent}."
    do:
      this: process
      with:
        path: python3
        args:
          - modules/testing/main.py
          - targets:
            - wazuh-1: "{working-dir}/manager-{manager-os}/inventory.yaml"
            - agent: "{working-dir}/agent-{agent}/inventory.yaml"
          - tests: "install,registration,connection,basic_info,restart,stop,uninstall"
          - component: "agent"
          - wazuh-version: "4.9.0"
          - wazuh-revision: "40903"
          - live: False
    foreach:
      - variable: windows-agent-os
        as: agent
    depends-on:
      - "allocate-windows-agent-{agent}"

Agent_test.log


By performing several tests, it has been proven that the port verification methods do not fail.
The problem is related to the performance of the methods, since when many hosts are executed in parallel, the methods execute the verifications prematurely and errors appear there.
For this reason, fixed 5-second waits are added before performing the verifications and some methods that did not have dynamic verifications of the results are modified.

@pro-akim pro-akim linked a pull request Jul 31, 2024 that will close this issue
@fcaffieri
Copy link
Member

LGTM

pro-akim added a commit that referenced this issue Aug 1, 2024
@pro-akim pro-akim linked a pull request Aug 1, 2024 that will close this issue
@pro-akim
Copy link
Member

pro-akim commented Aug 1, 2024

Update

Fixes after review done

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
No open projects
Status: Done
4 participants