wazuh / wazuh-qa

Wazuh - Quality Assurance
GNU General Public License v2.0
61 stars 30 forks source link

DTT1 - Iteration 3 - Test module - Add Wazuh central components tests #4844

Closed QU3B1M closed 1 month ago

QU3B1M commented 4 months ago

Epic #4495

Description

This issue aims to implement tests for Wazuh server to meet the DTT1 requirements

Tasks

QU3B1M commented 3 months ago

Update report - On Hold

This issue will be paused until we complete the fix in the IPs returned by the Vagrant provider that is required to correctly execute the tests and get the IPs of every central component:

Also, the test_install requires to discuss about the check-files, the same goes for the issue DTT1 - Iteration 3 - Test module - Improve Wazuh agent tests.

pro-akim commented 3 months ago

Update

Some tests were researched. it will remain on hold until the vagrant IP can be configured.

pro-akim commented 3 months ago

Update

After speaking with @QU3B1M , I have understood that the testing of central components must be carried out with a Wazuh manager connected to components other than an agent. I will investigate how to generate such a structure in order to develop the tests.

pro-akim commented 3 months ago

Update

It seems that the structure needed to generate an infrastructure provisioned with the central components is not developed. It will remain on hold until we can confirm this.

pro-akim commented 2 months ago

Update

The tests that I could find in the the repository enhancement/4844-dtt1-iteration-3-test-central-components are based in the old structure where the test module was only checking the system. Some changes should be done around the installation process


Actions to be created:

After conversing with @fcaffieri, we realized that the installation of the central component should be approached by following the steps below:

Step Action Detail
1 Generate Certificate - Download setup file Download from the corresponding URL for the version
2 Generate Certificate - Modify data Change data according to the desired setup
3 Execute cert-tools
4 Turn off firewall
5 SCP - Set sshd_config Modify parameters to enable SCP between computers
6 SCP - Usage Perform SCP between VMs
7 Install Manager on both computers (Manager only)
8 Cluster Configuration Hexadecimal code should be set in both ossec.conf files
9 Restart both computers
10 Check connected clusters /var/ossec/bin/cluster_control -l

On the other side, as these tests are not going to work between a manager and an agent, changes should be done in the fixture (yaml file) where 2 central components should be mentioned to allocate and provision.


Using the following fixture:

version: 0.1
description: This workflow is used to test agents deployment por DDT1 PoC
variables:
  #agents-os:
  manager-os: 
    - linux-ubuntu-22.04-amd64
    - linux-centos-8-amd64
  infra-provider: vagrant
  working-dir: /tmp/dtt1-poc

tasks:
  # Unique manager allocate task
  - task: "allocate-{manager}"
    description: "Allocate resources for the managers."
    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"
    foreach:
      - variable: manager-os
        as: manager

This error was present:

(deplo_test) akim@akim-PC:~/Desktop/test/wazuh-qa/deployability$ python3 -m workflow_engine  /home/akim/Desktop/test/wazuh-qa/deployability/modules/workflow_engine/examples/dtt1-agents-poc.yaml 
[2024-02-26 18:59:39] [INFO] [1704038] [MainThread] [workflow_engine]: Executing DAG tasks.
[2024-02-26 18:59:39] [INFO] [1704038] [MainThread] [workflow_engine]: Executing tasks in parallel.
[2024-02-26 18:59:39] [INFO] [1704038] [ThreadPoolExecutor-0_0] [workflow_engine]: [allocate-linux-ubuntu-22.04-amd64] Starting task.
[2024-02-26 18:59:41] [ERROR] [1704038] [ThreadPoolExecutor-0_0] [workflow_engine]: [allocate-linux-ubuntu-22.04-amd64] Task failed with error: Error executing process task Traceback (most recent call last):
  File "/home/akim/Desktop/test/wazuh-qa/deployability/modules/allocation/main.py", line 30, in <module>
    main()
  File "/home/akim/Desktop/test/wazuh-qa/deployability/modules/allocation/main.py", line 26, in main
    Allocator.run(InputPayload(**vars(parse_arguments())))
  File "/home/akim/Desktop/test/wazuh-qa/deployability/modules/allocation/allocation.py", line 31, in run
    return cls.__create(payload)
  File "/home/akim/Desktop/test/wazuh-qa/deployability/modules/allocation/allocation.py", line 50, in __create
    instance = provider.create_instance(
  File "/home/akim/Desktop/test/wazuh-qa/deployability/modules/allocation/generic/provider.py", line 65, in create_instance
    return cls._create_instance(base_dir, params, config)
  File "/home/akim/Desktop/test/wazuh-qa/deployability/modules/allocation/vagrant/provider.py", line 48, in _create_instance
    config = cls.__parse_config(params, credentials, instance_id)
  File "/home/akim/Desktop/test/wazuh-qa/deployability/modules/allocation/vagrant/provider.py", line 136, in __parse_config
    os_specs = cls._get_os_specs()[params.composite_name]
KeyError: "['linux-ubuntu-22.04-amd64', 'linux-centos-8-amd64']"
.
[2024-02-26 18:59:41] [INFO] [1704038] [ThreadPoolExecutor-0_0] [workflow_engine]: [allocate-linux-centos-8-amd64] Starting task.
[2024-02-26 18:59:41] [ERROR] [1704038] [ThreadPoolExecutor-0_0] [workflow_engine]: [allocate-linux-centos-8-amd64] Task failed with error: Error executing process task Traceback (most recent call last):
  File "/home/akim/Desktop/test/wazuh-qa/deployability/modules/allocation/main.py", line 30, in <module>
    main()
  File "/home/akim/Desktop/test/wazuh-qa/deployability/modules/allocation/main.py", line 26, in main
    Allocator.run(InputPayload(**vars(parse_arguments())))
  File "/home/akim/Desktop/test/wazuh-qa/deployability/modules/allocation/allocation.py", line 31, in run
    return cls.__create(payload)
  File "/home/akim/Desktop/test/wazuh-qa/deployability/modules/allocation/allocation.py", line 50, in __create
    instance = provider.create_instance(
  File "/home/akim/Desktop/test/wazuh-qa/deployability/modules/allocation/generic/provider.py", line 65, in create_instance
    return cls._create_instance(base_dir, params, config)
  File "/home/akim/Desktop/test/wazuh-qa/deployability/modules/allocation/vagrant/provider.py", line 48, in _create_instance
    config = cls.__parse_config(params, credentials, instance_id)
  File "/home/akim/Desktop/test/wazuh-qa/deployability/modules/allocation/vagrant/provider.py", line 136, in __parse_config
    os_specs = cls._get_os_specs()[params.composite_name]
KeyError: "['linux-ubuntu-22.04-amd64', 'linux-centos-8-amd64']"
.
[2024-02-26 18:59:41] [INFO] [1704038] [MainThread] [workflow_engine]: Executing Reverse DAG tasks.
[2024-02-26 18:59:41] [INFO] [1704038] [MainThread] [workflow_engine]: Executing tasks in parallel.

Using the following fixture it worked

version: 0.1
description: This workflow is used to test agents deployment por DDT1 PoC
variables:
  #agents-os:
  #  - linux-ubuntu-22.04-amd64
  manager-os: 
    - linux-ubuntu-22.04-amd64
    - linux-ubuntu-20.04-amd64
  infra-provider: vagrant
  working-dir: /tmp/dtt1-poc
tasks:
  # Unique manager allocate task
  - task: "allocate-manager-{manager}"
    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}"
          - inventory-output: "{working-dir}/manager-{manager-os}/inventory.yaml"
          - track-output: "{working-dir}/manager-{manager-os}/track.yaml"
    foreach:
      - variable: manager-os
        as: manager

However, some issues around the naming of the allocation happens

akim@akim-PC:/tmp$ ls dtt1-poc/
'manager-['\''linux-ubuntu-22.04-amd64'\'', '\''linux-ubuntu-20.04-amd64'\'']'

akim@akim-PC:/tmp$ ls dtt1-poc/manager-\[\'linux-ubuntu-22.04-amd64\'\,\ \'linux-ubuntu-20.04-amd64\'\]/
inventory.yaml  track.yaml

akim@akim-PC:/tmp$ cat dtt1-poc/manager-\[\'linux-ubuntu-22.04-amd64\'\,\ \'linux-ubuntu-20.04-amd64\'\]/inventory.yaml 
ansible_host: 192.168.57.3
ansible_port: 22
ansible_ssh_private_key_file: /tmp/wazuh-qa/VAGRANT-BD3641B4-CA7F-4C94-AF82-B2F303EF8D9B/instance_key
ansible_user: vagrant

Changing the manager-os to manager in inventory and track path made the allocator work correctly:

  manager-os: 
    - linux-ubuntu-22.04-amd64
    - linux-ubuntu-20.04-amd64
  infra-provider: vagrant
  working-dir: /tmp/dtt1-poc
tasks:
  # Unique manager allocate task
  - task: "allocate-manager-{manager}"
    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}"
          - inventory-output: "{working-dir}/manager-{manager}/inventory.yaml"
          - track-output: "{working-dir}/manager-{manager}/track.yaml"
    foreach:
      - variable: manager-os
        as: manager
pro-akim commented 2 months ago

Update

Installs the manager in the host of the inventory IP

python3 modules/testing/main.py --inventory "/tmp/dtt1-poc/manager-linux-ubuntu-22.04-amd64/inventory.yaml" --component "manager" --wazuh-version "4.7.2" --wazuh-revision "1" --tests install --dependencies "{'manager': '/tmp/dtt1-poc/manager-linux-ubuntu-22.04-amd64/inventory.yaml'}" --dependencies "{'manager':'/tmp/dtt1-poc/manager-linux-ubuntu-20.04-amd64/inventory.yaml'}" --live False --one_line True

Installs the manager in the host of the inventory IP (host1)

python3 modules/testing/main.py --inventory "/tmp/dtt1-poc/manager-linux-ubuntu-22.04-amd64/inventory.yaml" --component "manager" --wazuh-version "4.7.2" --wazuh-revision "1" --tests install --dependencies "{'manager':'/
tmp/dtt1-poc/manager-linux-ubuntu-22.04-amd64/inventory.yaml'}" --live False --one_line True

Should install the manager in the host of the inventory IP (host2), however, some issues around the WazuhAPI methods are raised

python3 modules/testing/main.py --inventory "/tmp/dtt1-poc/manager-linux-ubuntu-20.04-amd64/inventory.yaml" --component "manager" --wazuh-version "4.7.2" --wazuh-revision "1" --tests install --dependencies "{'manager':'/
tmp/dtt1-poc/manager-linux-ubuntu-20.04-amd64/inventory.yaml'}" --live False --one_line True
TASK [Test install for manager] ************************************************
fatal: [192.168.57.3]: FAILED! => changed=true 
  cmd:
  - pytest
  - test_manager/test_install.py
  - -v
  - --wazuh_version=4.7.2
  - --wazuh_revision=1
  - --component=manager
  - '--dependencies={manager: 192.168.57.3}'
  - --live=False
  - --one_line=True
  - -s
  delta: '0:00:00.408456'
  end: '2024-02-27 15:52:52.636765'
  msg: non-zero return code
  rc: 4
  start: '2024-02-27 15:52:52.228309'
  stderr: |-
    /usr/local/lib/python3.8/dist-packages/_pytest/config/__init__.py:331: PluggyTeardownRaisedWarning: A plugin raised an exception during an old-style hookwrapper teardown.
    Plugin: helpconfig, Hook: pytest_cmdline_parse
    ConftestImportFailure: TypeError: 'type' object is not subscriptable (from /tmp/tests/conftest.py)
    For more information see https://pluggy.readthedocs.io/en/stable/api_reference.html#pluggy.PluggyTeardownRaisedWarning
      config = pluginmanager.hook.pytest_cmdline_parse(
    ImportError while loading conftest '/tmp/tests/conftest.py'.
    conftest.py:5: in <module>
        from .helpers.wazuh_api.api import WazuhAPI
    helpers/wazuh_api/api.py:9: in <module>
        class WazuhAPI:
    helpers/wazuh_api/api.py:62: in WazuhAPI
        def get_agents(self, **kwargs: dict) -> list[dict]:
    E   TypeError: 'type' object is not subscriptable
  stderr_lines: <omitted>
  stdout: ''
  stdout_lines: <omitted>

Trying to check how the flow is moving to WazuhAPI get_agents method


On the other hand, testing scp from one manager host to another. I could find that the scp is not working:

image

Even changing the sshd_config

image

pro-akim commented 2 months ago

Update

Reviewing the tests (agent and central)

manager-agent => manager provisioned by provisioner .install => install in agent .register => register in agent .basic_info => agent in info .restart => stop in agent .stop => stop in agent .uninstall => uninstall in agent

manager-manager => manager can't be provisioned by provisioner => It should generate certs (provisioner can't generate them becase the module doesn't know the type of test to get the manager2 ip) .install => generate certs, share certs, install managers (both), register cluters .restart => restart manager2 .stop => restart manager2 .uninstall => uninstall manager2

Points to be modified

  1. install agent, uninstall agent => ansible => actions using ansible
  2. generarate certs, share certs, install managers => ansible => actions using ansible (it should have an if test manager-manager => consider both ips to create certs and distribute them)

The problem is that as the module test is executed inside of 1 host, in case that I want to generate certs, share them and trigger actions in both hosts, it will not be possible to do so being inside of 1 host. These actions should be done by the test module using ansible.

Considering this new approach.

  1. Agent tests should be modified
  2. Central component tests: a. Generate a ansible yaml that generates certificates (certs_generator) b. Generate a ansible yaml that shares the certificates (certs_distribution) c. Generate a FS snapshot for checkfile purposes d. Generate a ansible yaml that installs the managers (manager installer) e. Validation using pytest (includes checkfile validation)

Certs_generation done Trying to send the wazuh-certificates.tar from one host to the destination hostas from local to the destination host. I could find the following error:

TASK [Copy file from one remote host to another] *******************************
fatal: [192.168.57.3 -> 192.168.57.2]: UNREACHABLE! => changed=false 
  msg: |-
    Failed to connect to the host via ssh: @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
    @    WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!     @
    @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
    IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!
    Someone could be eavesdropping on you right now (man-in-the-middle attack)!
    It is also possible that a host key has just been changed.
    The fingerprint for the ED25519 key sent by the remote host is
    SHA256:+hifkGLpCfIhjli3EljIuJI60jchvxCCKp/6RtZN6Ps.
    Please contact your system administrator.
    Add correct host key in /home/akim/.ssh/known_hosts to get rid of this message.
    Offending ED25519 key in /home/akim/.ssh/known_hosts:812
      remove with:
      ssh-keygen -f "/home/akim/.ssh/known_hosts" -R "192.168.57.2"
    UpdateHostkeys is disabled because the host key is not trusted.
    akim@192.168.57.2: Permission denied (publickey).
  unreachable: true

While

akim@akim-PC:~/Desktop$ ping 192.168.57.2
PING 192.168.57.2 (192.168.57.2) 56(84) bytes of data.
64 bytes from 192.168.57.2: icmp_seq=1 ttl=64 time=2.63 ms
64 bytes from 192.168.57.2: icmp_seq=2 ttl=64 time=0.755 ms
64 bytes from 192.168.57.2: icmp_seq=3 ttl=64 time=0.465 ms
64 bytes from 192.168.57.2: icmp_seq=4 ttl=64 time=15.8 ms
64 bytes from 192.168.57.2: icmp_seq=5 ttl=64 time=2.12 ms
^C
--- 192.168.57.2 ping statistics ---
5 packets transmitted, 5 received, 0% packet loss, time 4054ms
rtt min/avg/max/mdev = 0.465/4.362/15.836/5.794 ms
akim@akim-PC:~/Desktop$ telnet 192.168.57.2 22
Trying 192.168.57.2...
Connected to 192.168.57.2.
Escape character is '^]'.
SSH-2.0-OpenSSH_8.9p1 Ubuntu-3ubuntu0.6
Connection closed by foreign host.

Editing /etc/ssh/sshd_d in both managers (ubuntu22.04 and ubuntu20.04) Adding: PasswordAuthentication yes PermitRootLogin yes

Restarting using systemctl restart sshd Checking if firewald is off

Ubuntu20.04, 18.04, rhel7 allowed me to connect and transfer files using scp.


Using sshpass + scp it was possible to pass a file from one host to another.

After creating a couple of playbooks in order to satisfy the setup and running them manually, I could finally get the following result

TASK [Command stout] **********************************************
ok: [192.168.57.3] => 
  cluster_output.stdout_lines:
  - 'NAME     TYPE    VERSION  ADDRESS       '
  - 'wazuh-1  master  4.7.2    192.168.57.2  '
  - 'node01   worker  4.7.2    192.168.57.3  '

The point now is to create the best arrangement of the playbook to satisfy the test requirements.

On the other hand, sshpass was not working 100% well. After a manual validation it worked, however, running it by code did not work.

pro-akim commented 2 months ago

Update

After some discussion about the test module with the DTT Team we conclude that

TEST MODULE SHOULD:

On the other hand, we will do a poll to check the possible requirements for the test module before we refactor the module.

Poll Models

1

https://docs.google.com/forms/d/1XCRTax17I949P39puYrNRXoOV_cLL1j8htg8iVEOIco/edit

2

https://docs.google.com/forms/d/1uRpbjlDMb2ojOn_o3PPAWPCw9wE-HsQ6_gDlNq3yC2w/edit

The current module has many points to enhance and scripts done until now will be reused.


Creating a layer that allows the execution of multihost commands.

Using paramiko, I could create a script that executes commands into the VMS, the problem is that when the process takes a certain time to finish, the script does not work. This means that the installation processes should be handled by ansible.

Considering this point:

Step Action Detail Handler Tested
1 Generate Certificate - Download setup file Download from the corresponding URL for the version python-script-layer :green_circle:
2 Generate Certificate - Modify data Change data according to the desired setup python-script-layer :green_circle:
3 Execute cert-tools python-script-layer :green_circle:
4 Turn off firewall python-script-layer :green_circle:
5 SCP - Set sshd_config Modify parameters to enable SCP between computers python-script-layer :green_circle:
6 SCP - Usage Perform SCP between VMs python-script-layer :green_circle:
7 Install Manager on both computers (Manager only) ansible :green_circle:
8 Cluster Configuration Hexadecimal code should be set in both ossec.conf files python-script-layer :green_circle:
9 Restart both computers python-script-layer :green_circle:
10 Check connected clusters /var/ossec/bin/cluster_control -l python-script-layer :green_circle:

All the steps were tested in each handler. Now it will be necessary to know how to create the layer and how all these methods will be handled even in upcoming cases.

pro-akim commented 2 months ago

Update

The second survey has been delivered to the QA team. Meanwhile, a layer has been developed that enables remote command execution from the executing node.

This layer is being tested and is functional for installations, leading to the decision to proceed solely using Python without Ansible for generating actions in the tests.

This decision was evaluated collectively with @fcaffieri and @QU3B1M

pro-akim commented 2 months ago

Update

The new layer was created. Agent, Manager, and General host methods are done.

I will start to join all the objects to the existing test method.

pro-akim commented 2 months ago

Update

Working in checkfile setting. Some fixes should be done depending the OS


Install

After obtaining all the files generated in var and comparing them with the pre install files, we could see that (except for those that contained ossec or wazuh in their path)

Rhel7 ``` ['/var/cache/yum/x86_64/7Server/epel/228b14c6993c17f29d685c24f81902ab92cb1d3eb1b219fd2db396c5db656751-updateinfo.xml.bz2', '/var/cache/yum/x86_64/7Server/timedhosts', '/var/lib/rpm/__db.001', '/var/cache/yum/x86_64/7Server/epel/gen/updateinfo.xml', '/var/cache/yum/x86_64', '/var/lib/rpm/__db.002', '/var/log/yum.log', '/var/cache/yum/x86_64/7Server/epel', '/var/cache/yum/x86_64/7Server/.gpgkeyschecked.yum', '/var/lib/yum/history/2022-02-02/8/config-repos', '/var/lib/yum/rpmdb-indexes/file-requires', '/var/cache/yum/x86_64/7Server/epel/repomd.xml', '/var/cache/yum/x86_64/7Server/epel/645d6e0f00f5e7cdebd5d547c1a11506048edf6505cf30c01554e4255b2456ad-comps-Everything.x86_64.xml.gz', '/var/lib/yum/rpmdb-indexes/obsoletes', '/var/lib/yum/rpmdb-indexes/pkgtups-checksums', '/var/lib/yum/history/2022-02-02/8/config-main', '/var/cache/yum/x86_64/7Server/epel/cachecookie', '/var/lib/yum/rpmdb-indexes/conflicts', '/var/cache/yum/x86_64/7Server/epel/gen/primary_db.sqlite', '/var/cache/yum/x86_64/7Server/epel/gen', '/var/lib/rpm/__db.003', '/var/cache/yum/x86_64/7Server/epel/686ce8ed6fe8321eec6c42a4cf164265e2ffc78268818d131813b142b860ee0f-primary.sqlite.bz2', '/var/cache/yum/x86_64/7Server', '/var/cache/yum/x86_64/7Server/epel/metalink.xml', '/var/cache/yum/x86_64/7Server/epel/packages', '/var/lib/yum/history/2022-02-02/8/saved_tx', '/var/lib/yum/history/2022-02-02/8', '/var/lib/yum/rpmdb-indexes/version'] ```
Ubuntu18.04 ``` ['/var/lib/lxcfs/cgroup/memory/system.slice/systemd-udev-trigger.service/memory.failcnt', '/var/lib/lxcfs/cgroup/blkio/system.slice/systemd-sysctl.service/cgroup.procs', '/var/lib/lxcfs/cgroup/name=systemd/user.slice/user-1000.slice/session-13.scope/tasks', '/var/lib/lxcfs/cgroup/blkio/system.slice/blk-availability.service/blkio.weight', '/var/lib/lxcfs/cgroup/pids/system.slice/systemd-user-sessions.service/notify_on_release', '/var/lib/lxcfs/cgroup/memory/system.slice/systemd-udev-trigger.service/cgroup.clone_children', '/var/lib/lxcfs/cgroup/blkio/system.slice/setvtrgb.service/blkio.io_service_time_recursive', '/var/lib/lxcfs/cgroup/blkio/system.slice/systemd-update-utmp.service/blkio.sectors', '/var/lib/lxcfs/cgroup/memory/system.slice/systemd-tmpfiles-setup-dev.service/memory.pressure_level', '/var/lib/lxcfs/cgroup/name=systemd/system.slice/systemd-user-sessions.service', '/var/lib/lxcfs/cgroup/blkio/system.slice/systemd-remount-fs.service/blkio.io_wait_time_recursive', '/var/lib/lxcfs/cgroup/blkio/system.slice/snapd.seeded.service/blkio.io_serviced_recursive', '/var/lib/lxcfs/cgroup/pids/system.slice/lvm2-monitor.service/notify_on_release', '/var/lib/lxcfs/cgroup/devices/system.slice/apparmor.service/notify_on_release', '/var/lib/lxcfs/cgroup/cpu,cpuacct/system.slice/systemd-udev-trigger.service/cpuacct.usage_sys', '/var/lib/lxcfs/cgroup/memory/system.slice/systemd-journal-flush.service/memory.kmem.tcp.failcnt', '/var/lib/lxcfs/cgroup/pids/system.slice/systemd-fsck-root.service/notify_on_release', '/var/lib/lxcfs/cgroup/memory/system.slice/console-setup.service/cgroup.event_control', '/var/lib/lxcfs/cgroup/cpu,cpuacct/system.slice/systemd-tmpfiles-setup-dev.service/cpuacct.usage_user', '/var/lib/lxcfs/cgroup/memory/system.slice/systemd-user-sessions.service/memory.use_hierarchy', '/var/lib/lxcfs/cgroup/devices/system.slice/systemd-remount-fs.service/devices.allow', '/var/lib/lxcfs/cgroup/name=systemd/system.slice/systemd-sysctl.service', '/var/lib/lxcfs/cgroup/name=systemd/system.slice/systemd-random-seed.service/cgroup.clone_children', '/var/lib/lxcfs/cgroup/blkio/system.slice/blk-availability.service/blkio.throttle.io_serviced', '/var/lib/lxcfs/cgroup/memory/system.slice/systemd-update-utmp.service/memory.kmem.slabinfo', '/var/lib/lxcfs/cgroup/cpu,cpuacct/system.slice/ebtables.service/cpuacct.usage_percpu_sys', '/var/lib/lxcfs/cgroup/blkio/system.slice/apparmor.service/blkio.io_wait_time', '/var/lib/lxcfs/cgroup/cpu,cpuacct/system.slice/systemd-random-seed.service/cgroup.clone_children', '/var/lib/lxcfs/cgroup/memory/system.slice/systemd-tmpfiles-setup-dev.service/memory.force_empty', '/var/lib/lxcfs/cgroup/cpu,cpuacct/system.slice/systemd-update-utmp.service/cpuacct.usage', '/var/lib/lxcfs/cgroup/cpu,cpuacct/system.slice/kmod-static-nodes.service/cpuacct.usage', '/var/lib/lxcfs/cgroup/blkio/system.slice/systemd-remount-fs.service/blkio.io_service_time_recursive', '/var/lib/lxcfs/cgroup/devices/system.slice/systemd-remount-fs.service', '/var/lib/lxcfs/cgroup/devices/system.slice/systemd-sysctl.service/cgroup.procs', '/var/lib/lxcfs/cgroup/devices/system.slice/systemd-journal-flush.service/devices.list', '/var/lib/lxcfs/cgroup/cpu,cpuacct/system.slice/systemd-modules-load.service/cpuacct.usage', '/var/lib/lxcfs/cgroup/blkio/system.slice/lxd-containers.service/blkio.leaf_weight_device', '/var/lib/lxcfs/cgroup/cpu,cpuacct/system.slice/systemd-update-utmp.service/cpu.stat', '/var/lib/lxcfs/cgroup/blkio/system.slice/systemd-udev-trigger.service/blkio.weight', '/var/lib/lxcfs/cgroup/blkio/system.slice/systemd-remount-fs.service/blkio.io_serviced', '/var/lib/lxcfs/cgroup/devices/system.slice/systemd-sysctl.service/notify_on_release', '/var/lib/lxcfs/cgroup/devices/system.slice/apport.service/tasks', '/var/lib/lxcfs/cgroup/cpu,cpuacct/system.slice/snapd.seeded.service/cgroup.clone_children', '/var/lib/lxcfs/cgroup/devices/system.slice/lxd-containers.service/cgroup.clone_children', '/var/lib/lxcfs/cgroup/devices/system.slice/keyboard-setup.service', '/var/lib/lxcfs/cgroup/pids/system.slice/snapd.apparmor.service/tasks', '/var/lib/lxcfs/cgroup/cpu,cpuacct/system.slice/systemd-fsck-root.service/cpuacct.usage_percpu_user', '/var/lib/ubuntu-advantage/apt-esm/etc/apt/trusted.gpg.d', '/var/lib/lxcfs/cgroup/blkio/system.slice/console-setup.service/cgroup.clone_children', '/var/lib/lxcfs/cgroup/blkio/system.slice/ufw.service/blkio.io_queued', '/var/lib/lxcfs/cgroup/name=systemd/system.slice/systemd-udev-trigger.service/cgroup.procs', '/var/lib/lxcfs/cgroup/blkio/system.slice/systemd-remount-fs.service/blkio.io_merged', '/var/lib/lxcfs/cgroup/memory/system.slice/systemd-udev-trigger.service/memory.force_empty', '/var/lib/lxcfs/cgroup/memory/system.slice/systemd-remount-fs.service/cgroup.clone_children', '/var/lib/lxcfs/cgroup/memory/system.slice/systemd-modules-load.service/memory.kmem.failcnt', '/var/lib/lxcfs/cgroup/blkio/system.slice/systemd-remount-fs.service/blkio.io_serviced_recursive', '/var/lib/lxcfs/cgroup/memory/system.slice/systemd-sysctl.service', '/var/lib/lxcfs/cgroup/pids/system.slice/snapd.apparmor.service', '/var/lib/lxcfs/cgroup/cpu,cpuacct/system.slice/setvtrgb.service/cgroup.clone_children', '/var/lib/lxcfs/cgroup/memory/system.slice/systemd-remount-fs.service/memory.kmem.tcp.usage_in_bytes', '/var/lib/lxcfs/cgroup/memory/system.slice/systemd-tmpfiles-setup.service/memory.use_hierarchy', '/var/lib/lxcfs/cgroup/cpu,cpuacct/system.slice/blk-availability.service/cpuacct.usage_all', '/var/lib/lxcfs/cgroup/memory/system.slice/ufw.service/memory.kmem.limit_in_bytes', '/var/lib/lxcfs/cgroup/devices/system.slice/systemd-update-utmp.service', '/var/lib/lxcfs/cgroup/memory/system.slice/apport.service/memory.usage_in_bytes', '/var/lib/lxcfs/cgroup/cpu,cpuacct/system.slice/systemd-machine-id-commit.service/cpuacct.usage_percpu', '/var/lib/lxcfs/cgroup/blkio/system.slice/systemd-remount-fs.service/blkio.reset_stats', '/var/lib/lxcfs/cgroup/cpu,cpuacct/system.slice/systemd-remount-fs.service/cpuacct.usage_percpu', '/var/lib/lxcfs/cgroup/memory/system.slice/systemd-fsck-root.service/memory.kmem.tcp.usage_in_bytes', '/var/lib/lxcfs/cgroup/memory/system.slice/systemd-user-sessions.service', '/var/lib/lxcfs/cgroup/blkio/system.slice/systemd-remount-fs.service/blkio.io_queued_recursive', '/var/lib/lxcfs/cgroup/blkio/system.slice/apport.service/blkio.io_merged', '/var/lib/lxcfs/cgroup/devices/system.slice/systemd-machine-id-commit.service/devices.list', '/var/lib/lxcfs/cgroup/cpu,cpuacct/system.slice/apport.service/cpu.stat', '/var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_bionic-backports_InRelease', '/var/lib/lxcfs/cgroup/devices/system.slice/systemd-remount-fs.service/devices.deny', '/var/lib/lxcfs/cgroup/cpu,cpuacct/system.slice/systemd-machine-id-commit.service/cpuacct.usage_all', '/var/lib/lxcfs/cgroup/pids/system.slice/snapd.seeded.service/tasks', '/var/lib/lxcfs/cgroup/cpu,cpuacct/system.slice/systemd-user-sessions.service/cpu.cfs_quota_us', '/var/lib/lxcfs/cgroup/memory/system.slice/grub-common.service/memory.kmem.tcp.failcnt', '/var/lib/lxcfs/cgroup/memory/system.slice/ebtables.service/memory.limit_in_bytes', '/var/lib/lxcfs/cgroup/memory/system.slice/setvtrgb.service/memory.oom_control', '/var/lib/lxcfs/cgroup/pids/user.slice/user-1000.slice/session-22.scope/pids.current', '/var/lib/lxcfs/cgroup/memory/system.slice/ufw.service/memory.force_empty', '/var/lib/lxcfs/cgroup/memory/system.slice/snapd.apparmor.service/memory.kmem.tcp.max_usage_in_bytes', '/var/lib/lxcfs/cgroup/cpu,cpuacct/system.slice/lvm2-monitor.service/cpuacct.usage_sys', '/var/lib/lxcfs/cgroup/memory/system.slice/systemd-random-seed.service/memory.kmem.tcp.max_usage_in_bytes', '/var/lib/lxcfs/cgroup/cpu,cpuacct/system.slice/setvtrgb.service/cpu.shares', '/var/lib/lxcfs/cgroup/blkio/system.slice/snapd.seeded.service/blkio.io_service_bytes', '/var/lib/lxcfs/cgroup/blkio/system.slice/lvm2-monitor.service/blkio.reset_stats', '/var/lib/lxcfs/cgroup/pids/user.slice/user-1000.slice/session-22.scope/tasks', '/var/lib/lxcfs/cgroup/name=systemd/user.slice/user-1000.slice/session-22.scope/tasks', '/var/lib/lxcfs/cgroup/cpu,cpuacct/system.slice/snapd.seeded.service/cpuacct.usage', '/var/lib/apt/lists/security.ubuntu.com_ubuntu_dists_bionic-security_universe_i18n_Translation-en', '/var/lib/lxcfs/cgroup/blkio/system.slice/grub-common.service/blkio.io_wait_time', '/var/lib/lxcfs/cgroup/memory/system.slice/console-setup.service/cgroup.procs', '/var/lib/lxcfs/cgroup/cpu,cpuacct/system.slice/keyboard-setup.service/cpuacct.usage_percpu', '/var/lib/lxcfs/cgroup/pids/system.slice/systemd-user-sessions.service/pids.events', '/var/lib/lxcfs/cgroup/blkio/system.slice/keyboard-setup.service/blkio.throttle.write_iops_device', '/var/lib/lxcfs/cgroup/memory/system.slice/grub-common.service/memory.failcnt', '/var/lib/lxcfs/cgroup/cpu,cpuacct/system.slice/lxd-containers.service/cpuacct.usage_percpu', '/var/lib/lxcfs/cgroup/cpu,cpuacct/system.slice/systemd-udev-trigger.service/notify_on_release', '/var/lib/lxcfs/cgroup/blkio/system.slice/apparmor.service/cgroup.clone_children', '/var/lib/lxcfs/cgroup/blkio/system.slice/grub-common.service/blkio.leaf_weight_device', '/var/lib/lxcfs/cgroup/memory/system.slice/lxd-containers.service/memory.kmem.slabinfo', '/var/lib/lxcfs/cgroup/memory/system.slice/systemd-random-seed.service/memory.kmem.tcp.limit_in_bytes', '/var/lib/lxcfs/cgroup/memory/system.slice/systemd-journal-flush.service/memory.kmem.tcp.max_usage_in_bytes', '/var/lib/lxcfs/cgroup/memory/system.slice/ebtables.service/tasks', '/var/lib/lxcfs/cgroup/memory/system.slice/systemd-remount-fs.service/memory.max_usage_in_bytes', '/var/lib/lxcfs/cgroup/memory/system.slice/ebtables.service/memory.usage_in_bytes', '/var/lib/lxcfs/cgroup/name=systemd/system.slice/keyboard-setup.service/cgroup.clone_children', '/var/lib/lxcfs/cgroup/memory/system.slice/systemd-modules-load.service/memory.kmem.limit_in_bytes', '/var/lib/lxcfs/cgroup/memory/system.slice/systemd-udev-trigger.service/memory.soft_limit_in_bytes', '/var/lib/lxcfs/cgroup/blkio/system.slice/systemd-udev-trigger.service/blkio.throttle.write_iops_device', '/var/lib/lxcfs/cgroup/blkio/system.slice/console-setup.service/notify_on_release', '/var/lib/lxcfs/cgroup/memory/system.slice/systemd-remount-fs.service/memory.swappiness', '/var/lib/lxcfs/cgroup/memory/system.slice/snapd.seeded.service/memory.limit_in_bytes', '/var/lib/lxcfs/cgroup/memory/system.slice/setvtrgb.service/memory.failcnt', '/var/lib/lxcfs/cgroup/blkio/system.slice/apparmor.service/blkio.time_recursive', '/var/lib/lxcfs/cgroup/blkio/system.slice/apport.service/blkio.io_serviced', '/var/lib/lxcfs/cgroup/memory/system.slice/ufw.service/memory.kmem.tcp.failcnt', '/var/lib/lxcfs/cgroup/cpu,cpuacct/system.slice/systemd-journal-flush.service/notify_on_release', '/var/lib/lxcfs/cgroup/pids/system.slice/grub-common.service/pids.events', '/var/lib/lxcfs/cgroup/memory/system.slice/keyboard-setup.service/memory.stat', '/var/lib/lxcfs/cgroup/memory/system.slice/systemd-sysctl.service/cgroup.clone_children', '/var/lib/lxcfs/cgroup/cpu,cpuacct/system.slice/apparmor.service/tasks', '/var/lib/lxcfs/cgroup/cpu,cpuacct/system.slice/apparmor.service/cpuacct.usage_percpu_sys', '/var/lib/lxcfs/cgroup/blkio/system.slice/keyboard-setup.service/notify_on_release', '/var/lib/lxcfs/cgroup/cpu,cpuacct/system.slice/systemd-journal-flush.service/cgroup.clone_children', '/var/lib/lxcfs/cgroup/blkio/system.slice/snapd.seeded.service/blkio.io_service_time', '/var/lib/lxcfs/cgroup/memory/system.slice/blk-availability.service/memory.kmem.max_usage_in_bytes', '/var/lib/lxcfs/cgroup/blkio/system.slice/apport.service/blkio.weight', '/var/lib/lxcfs/cgroup/memory/system.slice/systemd-journal-flush.service/cgroup.procs', '/var/lib/lxcfs/cgroup/memory/system.slice/systemd-fsck-root.service/memory.kmem.limit_in_bytes', '/var/lib/lxcfs/cgroup/memory/system.slice/kmod-static-nodes.service/memory.oom_control', '/var/lib/lxcfs/cgroup/memory/system.slice/console-setup.service/memory.max_usage_in_bytes', '/var/lib/lxcfs/cgroup/cpu,cpuacct/system.slice/systemd-machine-id-commit.service/cpuacct.usage_sys', '/var/lib/ubuntu-advantage/apt-esm/etc/apt/trusted.gpg.d/ubuntu-advantage-esm-infra-trusty.gpg', '/var/lib/lxcfs/cgroup/name=systemd/user.slice/user-1000.slice/session-13.scope/cgroup.clone_children', '/var/lib/lxcfs/cgroup/memory/system.slice/lxd-containers.service/memory.kmem.max_usage_in_bytes', '/var/lib/lxcfs/cgroup/blkio/system.slice/systemd-journal-flush.service/tasks', '/var/lib/lxcfs/cgroup/devices/system.slice/systemd-update-utmp.service/devices.list', '/var/lib/lxcfs/cgroup/blkio/system.slice/systemd-tmpfiles-setup-dev.service/blkio.reset_stats', '/var/lib/lxcfs/cgroup/devices/system.slice/lxd-containers.service/devices.deny', '/var/lib/lxcfs/cgroup/blkio/system.slice/snapd.apparmor.service/blkio.io_serviced_recursive', '/var/lib/lxcfs/cgroup/devices/system.slice/systemd-fsck-root.service/cgroup.procs', '/var/lib/lxcfs/cgroup/blkio/system.slice/systemd-modules-load.service/blkio.reset_stats', '/var/lib/lxcfs/cgroup/blkio/system.slice/console-setup.service/blkio.time', '/var/lib/lxcfs/cgroup/pids/system.slice/systemd-user-sessions.service/pids.current', '/var/lib/lxcfs/cgroup/cpu,cpuacct/system.slice/apparmor.service/cpuacct.usage_percpu_user', '/var/lib/lxcfs/cgroup/memory/system.slice/kmod-static-nodes.service/memory.soft_limit_in_bytes', '/var/lib/lxcfs/cgroup/cpu,cpuacct/system.slice/ebtables.service', '/var/lib/lxcfs/cgroup/blkio/system.slice/apparmor.service/blkio.sectors_recursive', '/var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_bionic-backports_universe_i18n_Translation-en', '/var/lib/lxcfs/cgroup/blkio/system.slice/snapd.seeded.service/blkio.io_queued', '/var/lib/lxcfs/cgroup/blkio/system.slice/grub-common.service/blkio.sectors_recursive', '/var/lib/lxcfs/cgroup/memory/system.slice/console-setup.service/memory.kmem.slabinfo', '/var/lib/lxcfs/cgroup/cpu,cpuacct/system.slice/apparmor.service/cpuacct.usage_sys', '/var/lib/lxcfs/cgroup/blkio/system.slice/ebtables.service/blkio.leaf_weight', '/var/lib/lxcfs/cgroup/memory/system.slice/lvm2-monitor.service/memory.kmem.failcnt', '/var/lib/lxcfs/cgroup/memory/system.slice/apparmor.service/cgroup.procs', '/var/lib/lxcfs/cgroup/devices/system.slice/lxd-containers.service/cgroup.procs', '/var/lib/lxcfs/cgroup/memory/system.slice/grub-common.service/memory.kmem.failcnt', '/var/lib/lxcfs/cgroup/memory/system.slice/systemd-user-sessions.service/memory.numa_stat', '/var/lib/lxcfs/cgroup/blkio/system.slice/systemd-random-seed.service/blkio.io_queued_recursive', '/var/lib/lxcfs/cgroup/cpu,cpuacct/system.slice/systemd-user-sessions.service/cpuacct.usage', '/var/lib/lxcfs/cgroup/devices/system.slice/blk-availability.service/devices.allow', '/var/lib/lxcfs/cgroup/memory/system.slice/snapd.apparmor.service/memory.kmem.limit_in_bytes', '/var/lib/lxcfs/cgroup/devices/system.slice/keyboard-setup.service/cgroup.clone_children', '/var/lib/lxcfs/cgroup/blkio/system.slice/systemd-udev-trigger.service/blkio.io_merged_recursive', '/var/lib/lxcfs/cgroup/pids/system.slice/systemd-machine-id-commit.service/pids.max', '/var/lib/lxcfs/cgroup/devices/system.slice/systemd-udev-trigger.service/devices.allow', '/var/lib/lxcfs/cgroup/blkio/system.slice/systemd-tmpfiles-setup-dev.service/blkio.io_serviced_recursive', '/var/lib/lxcfs/cgroup/name=systemd/user.slice/user-1000.slice/session-13.scope/notify_on_release', '/var/lib/lxcfs/cgroup/name=systemd/system.slice/systemd-machine-id-commit.service/tasks', '/var/lib/lxcfs/cgroup/cpu,cpuacct/system.slice/blk-availability.service/cgroup.clone_children', '/var/lib/lxcfs/cgroup/memory/system.slice/systemd-user-sessions.service/memory.kmem.tcp.max_usage_in_bytes', '/var/lib/lxcfs/cgroup/devices/system.slice/apparmor.service/devices.allow', '/var/lib/lxcfs/cgroup/blkio/system.slice/apparmor.service/blkio.throttle.read_iops_device', '/var/lib/lxcfs/cgroup/cpu,cpuacct/system.slice/systemd-sysctl.service/cpuacct.usage_all', '/var/lib/lxcfs/cgroup/cpu,cpuacct/system.slice/snapd.seeded.service/cpuacct.usage_user', '/var/lib/lxcfs/cgroup/pids/system.slice/snapd.seeded.service/pids.current', '/var/lib/lxcfs/cgroup/blkio/system.slice/systemd-journal-flush.service/cgroup.procs', '/var/lib/lxcfs/cgroup/name=systemd/system.slice/grub-common.service/notify_on_release', '/var/lib/lxcfs/cgroup/memory/system.slice/systemd-udev-trigger.service/memory.kmem.slabinfo', '/var/lib/lxcfs/cgroup/blkio/system.slice/systemd-fsck-root.service/blkio.io_serviced', '/var/lib/lxcfs/cgroup/blkio/system.slice/lvm2-monitor.service/blkio.io_queued', '/var/lib/lxcfs/cgroup/cpu,cpuacct/system.slice/systemd-tmpfiles-setup.service/cpuacct.usage_all', '/var/lib/lxcfs/cgroup/cpu,cpuacct/system.slice/lvm2-monitor.service/cgroup.clone_children', '/var/lib/lxcfs/cgroup/memory/system.slice/grub-common.service/memory.max_usage_in_bytes', '/var/lib/lxcfs/cgroup/blkio/system.slice/systemd-fsck-root.service/blkio.io_queued', '/var/lib/lxcfs/cgroup/blkio/system.slice/systemd-fsck-root.service/blkio.weight_device', '/var/lib/lxcfs/cgroup/pids/system.slice/kmod-static-nodes.service/cgroup.procs', '/var/lib/lxcfs/cgroup/memory/system.slice/systemd-machine-id-commit.service', '/var/lib/lxcfs/cgroup/cpu,cpuacct/system.slice/systemd-modules-load.service/tasks', '/var/lib/lxcfs/cgroup/blkio/system.slice/systemd-machine-id-commit.service/blkio.sectors', '/var/lib/lxcfs/cgroup/memory/system.slice/apparmor.service/memory.use_hierarchy', '/var/lib/lxcfs/cgroup/pids/system.slice/console-setup.service', '/var/lib/lxcfs/cgroup/pids/system.slice/systemd-update-utmp.service/pids.current', '/var/lib/lxcfs/cgroup/devices/system.slice/blk-availability.service/notify_on_release', '/var/lib/lxcfs/cgroup/memory/system.slice/systemd-remount-fs.service/memory.pressure_level', '/var/lib/lxcfs/cgroup/cpu,cpuacct/system.slice/systemd-remount-fs.service/cpuacct.usage_user', '/var/lib/ubuntu-advantage/apt-esm/var/lib/dpkg/status', '/var/lib/lxcfs/cgroup/blkio/system.slice/setvtrgb.service/blkio.sectors', '/var/lib/lxcfs/cgroup/devices/system.slice/console-setup.service/devices.allow', '/var/lib/lxcfs/cgroup/cpu,cpuacct/system.slice/systemd-journal-flush.service/cpuacct.usage_percpu_user', '/var/lib/lxcfs/cgroup/cpu,cpuacct/system.slice/systemd-fsck-root.service/cpu.shares', '/var/lib/lxcfs/cgroup/pids/system.slice/ufw.service/tasks', '/var/lib/lxcfs/cgroup/name=systemd/system.slice/systemd-user-sessions.service/tasks', '/var/lib/lxcfs/cgroup/memory/system.slice/lvm2-monitor.service/tasks', '/var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_bionic-backports_universe_binary-amd64_Packages', '/var/lib/lxcfs/cgroup/memory/system.slice/systemd-remount-fs.service/notify_on_release', '/var/lib/lxcfs/cgroup/name=systemd/system.slice/ebtables.service/notify_on_release', '/var/lib/lxcfs/cgroup/cpu,cpuacct/system.slice/systemd-random-seed.service/cpu.cfs_period_us', '/var/lib/lxcfs/cgroup/devices/system.slice/systemd-tmpfiles-setup-dev.service/notify_on_release', '/var/lib/lxcfs/cgroup/blkio/system.slice/systemd-journal-flush.service/blkio.sectors_recursive', '/var/lib/lxcfs/cgroup/memory/system.slice/blk-availability.service/memory.kmem.tcp.limit_in_bytes', '/var/lib/lxcfs/cgroup/devices/system.slice/systemd-udev-trigger.service/devices.deny', '/var/lib/lxcfs/cgroup/memory/system.slice/systemd-tmpfiles-setup.service/memory.swappiness', '/var/lib/lxcfs/cgroup/devices/system.slice/systemd-fsck-root.service/tasks', '/var/lib/lxcfs/cgroup/devices/system.slice/snapd.apparmor.service/devices.deny', '/var/lib/lxcfs/cgroup/memory/system.slice/snapd.apparmor.service/memory.max_usage_in_bytes', '/var/lib/lxcfs/cgroup/blkio/system.slice/ebtables.service/blkio.throttle.io_serviced', '/var/lib/lxcfs/cgroup/cpu,cpuacct/system.slice/systemd-update-utmp.service/cpuacct.usage_user', '/var/lib/lxcfs/cgroup/memory/system.slice/lvm2-monitor.service/memory.pressure_level', '/var/lib/lxcfs/cgroup/blkio/system.slice/systemd-tmpfiles-setup-dev.service/blkio.io_service_bytes_recursive', '/var/lib/lxcfs/cgroup/blkio/system.slice/grub-common.service/tasks', '/var/lib/lxcfs/cgroup/memory/system.slice/systemd-udev-trigger.service/memory.use_hierarchy', '/var/lib/lxcfs/cgroup/cpu,cpuacct/system.slice/systemd-random-seed.service/cpuacct.usage_user', '/var/lib/lxcfs/cgroup/cpu,cpuacct/system.slice/systemd-random-seed.service/cpuacct.usage_percpu_sys', '/var/lib/lxcfs/cgroup/name=systemd/system.slice/systemd-tmpfiles-setup.service/tasks', '/var/lib/lxcfs/cgroup/blkio/system.slice/systemd-tmpfiles-setup.service/blkio.reset_stats', '/var/lib/lxcfs/cgroup/cpu,cpuacct/system.slice/lxd-containers.service/cpuacct.usage_all', '/var/lib/lxcfs/cgroup/blkio/system.slice/ebtables.service/blkio.io_wait_time_recursive', '/var/lib/lxcfs/cgroup/blkio/system.slice/apparmor.service/blkio.io_service_time', '/var/lib/lxcfs/cgroup/blkio/system.slice/grub-common.service/blkio.io_service_time_recursive', '/var/lib/lxcfs/cgroup/memory/system.slice/snapd.seeded.service/memory.usage_in_bytes', '/var/lib/lxcfs/cgroup/blkio/system.slice/kmod-static-nodes.service/blkio.io_wait_time_recursive', '/var/lib/lxcfs/cgroup/memory/system.slice/systemd-remount-fs.service/memory.numa_stat', '/var/lib/lxcfs/cgroup/memory/system.slice/apport.service/memory.soft_limit_in_bytes', '/var/lib/lxcfs/cgroup/blkio/system.slice/systemd-machine-id-commit.service/blkio.throttle.read_iops_device', '/var/lib/lxcfs/cgroup/memory/system.slice/lvm2-monitor.service/memory.failcnt', '/var/lib/lxcfs/cgroup/cpu,cpuacct/system.slice/systemd-sysctl.service/cpuacct.stat', '/var/lib/lxcfs/cgroup/cpu,cpuacct/system.slice/setvtrgb.service/cpuacct.usage_percpu_user', '/var/lib/lxcfs/cgroup/blkio/system.slice/blk-availability.service/blkio.io_service_bytes', '/var/lib/lxcfs/cgroup/memory/system.slice/apparmor.service/memory.kmem.failcnt', '/var/lib/lxcfs/cgroup/memory/system.slice/snapd.apparmor.service/memory.oom_control', '/var/lib/lxcfs/cgroup/memory/system.slice/systemd-modules-load.service/memory.use_hierarchy', '/var/lib/lxcfs/cgroup/memory/system.slice/keyboard-setup.service/memory.pressure_level', '/var/lib/lxcfs/cgroup/blkio/system.slice/systemd-remount-fs.service/blkio.throttle.io_serviced', '/var/lib/lxcfs/cgroup/memory/system.slice/systemd-user-sessions.service/memory.limit_in_bytes', '/var/lib/lxcfs/cgroup/pids/system.slice/apparmor.service/pids.max', '/var/lib/lxcfs/cgroup/cpu,cpuacct/system.slice/lvm2-monitor.service', '/var/lib/lxcfs/cgroup/cpu,cpuacct/system.slice/apport.service/cpu.shares', '/var/lib/lxcfs/cgroup/memory/system.slice/systemd-remount-fs.service', '/var/lib/lxcfs/cgroup/blkio/system.slice/systemd-journal-flush.service/blkio.weight_device', '/var/lib/lxcfs/cgroup/blkio/system.slice/systemd-sysctl.service/blkio.io_wait_time_recursive', '/var/lib/lxcfs/cgroup/blkio/system.slice/snapd.apparmor.service/cgroup.clone_children', '/var/lib/lxcfs/cgroup/name=systemd/system.slice/systemd-update-utmp.service/tasks', '/var/lib/lxcfs/cgroup/blkio/system.slice/systemd-journal-flush.service/blkio.throttle.read_iops_device', '/var/lib/lxcfs/cgroup/pids/system.slice/systemd-tmpfiles-setup-dev.service/pids.current', '/var/lib/lxcfs/cgroup/blkio/system.slice/systemd-fsck-root.service/blkio.weight', '/var/lib/lxcfs/cgroup/memory/system.slice/snapd.seeded.service', '/var/lib/lxcfs/cgroup/memory/system.slice/keyboard-setup.service/memory.force_empty', '/var/lib/lxcfs/cgroup/pids/system.slice/ufw.service', '/var/lib/lxcfs/cgroup/name=systemd/system.slice/lvm2-monitor.service/cgroup.procs', '/var/lib/lxcfs/cgroup/pids/system.slice/keyboard-setup.service/tasks', '/var/lib/lxcfs/cgroup/memory/system.slice/lvm2-monitor.service/memory.kmem.tcp.usage_in_bytes', '/var/lib/lxcfs/cgroup/pids/system.slice/blk-availability.service/tasks', '/var/lib/lxcfs/cgroup/blkio/system.slice/keyboard-setup.service/blkio.io_service_time', '/var/lib/lxcfs/cgroup/name=systemd/system.slice/systemd-remount-fs.service', '/var/lib/lxcfs/cgroup/pids/system.slice/systemd-sysctl.service/cgroup.clone_children', '/var/lib/lxcfs/cgroup/cpu,cpuacct/system.slice/systemd-update-utmp.service/cpuacct.usage_percpu_user', '/var/lib/lxcfs/cgroup/name=systemd/system.slice/snapd.apparmor.service/cgroup.procs', '/var/lib/lxcfs/cgroup/blkio/system.slice/lxd-containers.service/blkio.sectors', '/var/lib/lxcfs/cgroup/cpu,cpuacct/system.slice/keyboard-setup.service/cpuacct.usage', '/var/lib/lxcfs/cgroup/blkio/system.slice/snapd.apparmor.service', '/var/lib/lxcfs/cgroup/pids/system.slice/systemd-remount-fs.service', '/var/lib/lxcfs/cgroup/blkio/system.slice/lxd-containers.service/blkio.throttle.write_bps_device', '/var/lib/lxcfs/cgroup/cpu,cpuacct/system.slice/snapd.apparmor.service/cgroup.clone_children', '/var/lib/lxcfs/cgroup/blkio/system.slice/ufw.service/blkio.throttle.io_serviced', '/var/lib/lxcfs/cgroup/cpu,cpuacct/system.slice/blk-availability.service/cpu.cfs_period_us', '/var/lib/lxcfs/cgroup/blkio/system.slice/grub-common.service/blkio.throttle.read_bps_device', '/var/lib/lxcfs/cgroup/memory/system.slice/systemd-tmpfiles-setup-dev.service/memory.kmem.max_usage_in_bytes', '/var/lib/lxcfs/cgroup/memory/system.slice/systemd-remount-fs.service/memory.kmem.tcp.limit_in_bytes', '/var/lib/lxcfs/cgroup/memory/system.slice/kmod-static-nodes.service/memory.kmem.max_usage_in_bytes', '/var/lib/lxcfs/cgroup/name=systemd/system.slice/console-setup.service/tasks', '/var/lib/lxcfs/cgroup/memory/system.slice/kmod-static-nodes.service/cgroup.event_control', '/var/lib/lxcfs/cgroup/blkio/system.slice/systemd-modules-load.service/blkio.io_service_bytes_recursive', '/var/lib/lxcfs/cgroup/blkio/system.slice/systemd-journal-flush.service/blkio.throttle.write_iops_device', '/var/lib/lxcfs/cgroup/blkio/system.slice/systemd-modules-load.service/blkio.io_wait_time_recursive', '/var/lib/lxcfs/cgroup/devices/system.slice/console-setup.service/cgroup.procs', '/var/lib/lxcfs/cgroup/cpu,cpuacct/system.slice/ebtables.service/tasks', '/var/lib/lxcfs/cgroup/memory/system.slice/systemd-tmpfiles-setup.service/cgroup.procs', '/var/lib/lxcfs/cgroup/blkio/system.slice/console-setup.service/blkio.reset_stats', '/var/lib/lxcfs/cgroup/memory/system.slice/grub-common.service/memory.kmem.limit_in_bytes', '/var/lib/lxcfs/cgroup/memory/system.slice/systemd-update-utmp.service/memory.move_charge_at_immigrate', '/var/lib/lxcfs/cgroup/memory/system.slice/ufw.service/memory.limit_in_bytes', '/var/lib/lxcfs/cgroup/blkio/system.slice/systemd-modules-load.service/blkio.leaf_weight', '/var/lib/lxcfs/cgroup/memory/system.slice/systemd-remount-fs.service/memory.usage_in_bytes', '/var/lib/lxcfs/cgroup/devices/system.slice/console-setup.service/cgroup.clone_children', '/var/lib/lxcfs/cgroup/cpu,cpuacct/system.slice/systemd-update-utmp.service/cpuacct.stat', '/var/lib/lxcfs/cgroup/blkio/system.slice/systemd-remount-fs.service/blkio.throttle.read_bps_device', '/var/lib/lxcfs/cgroup/name=systemd/system.slice/ebtables.service/cgroup.clone_children', '/var/lib/lxcfs/cgroup/blkio/system.slice/setvtrgb.service/blkio.time', '/var/lib/lxcfs/cgroup/cpu,cpuacct/system.slice/lxd-containers.service/cpuacct.usage_user', '/var/lib/lxcfs/cgroup/blkio/system.slice/systemd-modules-load.service/blkio.time_recursive', '/var/lib/lxcfs/cgroup/cpu,cpuacct/system.slice/systemd-journal-flush.service/cpu.cfs_quota_us', '/var/lib/lxcfs/cgroup/memory/system.slice/ufw.service/memory.failcnt', '/var/lib/lxcfs/cgroup/blkio/system.slice/systemd-sysctl.service/blkio.throttle.write_bps_device', '/var/lib/lxcfs/cgroup/blkio/system.slice/setvtrgb.service/tasks', '/var/lib/lxcfs/cgroup/devices/system.slice/ufw.service/cgroup.clone_children', '/var/lib/lxcfs/cgroup/blkio/system.slice/systemd-machine-id-commit.service/cgroup.clone_children', '/var/lib/lxcfs/cgroup/cpu,cpuacct/system.slice/systemd-sysctl.service/tasks', '/var/lib/lxcfs/cgroup/memory/system.slice/systemd-sysctl.service/memory.kmem.tcp.failcnt', '/var/lib/lxcfs/cgroup/memory/system.slice/lvm2-monitor.service/memory.kmem.usage_in_bytes', '/var/lib/lxcfs/cgroup/devices/system.slice/systemd-machine-id-commit.service/notify_on_release', '/var/lib/lxcfs/cgroup/memory/system.slice/systemd-machine-id-commit.service/memory.failcnt', '/var/lib/lxcfs/cgroup/pids/system.slice/apport.service/cgroup.procs', '/var/lib/lxcfs/cgroup/devices/system.slice/systemd-modules-load.service/devices.allow', '/var/lib/lxcfs/cgroup/pids/system.slice/systemd-udev-trigger.service/notify_on_release', '/var/lib/lxcfs/cgroup/blkio/system.slice/lxd-containers.service/blkio.throttle.read_iops_device', '/var/lib/lxcfs/cgroup/memory/system.slice/systemd-update-utmp.service', '/var/lib/lxcfs/cgroup/cpu,cpuacct/system.slice/systemd-remount-fs.service/cpu.shares', '/var/lib/lxcfs/cgroup/memory/system.slice/snapd.apparmor.service/memory.move_charge_at_immigrate', '/var/lib/lxcfs/cgroup/name=systemd/system.slice/lxd-containers.service/cgroup.clone_children', '/var/lib/lxcfs/cgroup/devices/system.slice/systemd-remount-fs.service/tasks', '/var/lib/lxcfs/cgroup/memory/system.slice/systemd-journal-flush.service/memory.max_usage_in_bytes', '/var/lib/lxcfs/cgroup/blkio/system.slice/kmod-static-nodes.service/blkio.leaf_weight', '/var/lib/lxcfs/cgroup/cpu,cpuacct/system.slice/systemd-random-seed.service/tasks', '/var/lib/lxcfs/cgroup/memory/system.slice/systemd-user-sessions.service/memory.kmem.slabinfo', '/var/lib/lxcfs/cgroup/cpu,cpuacct/system.slice/systemd-journal-flush.service/tasks', '/var/lib/lxcfs/cgroup/name=systemd/system.slice/lvm2-monitor.service/tasks', '/var/lib/lxcfs/cgroup/pids/system.slice/snapd.apparmor.service/pids.events', '/var/lib/lxcfs/cgroup/blkio/system.slice/keyboard-setup.service', '/var/lib/lxcfs/cgroup/memory/system.slice/systemd-random-seed.service/memory.move_charge_at_immigrate', '/var/lib/lxcfs/cgroup/blkio/system.slice/grub-common.service/blkio.io_merged', '/var/lib/lxcfs/cgroup/memory/system.slice/systemd-machine-id-commit.service/memory.limit_in_bytes', '/var/lib/lxcfs/cgroup/blkio/system.slice/systemd-user-sessions.service/blkio.leaf_weight_device', '/var/lib/lxcfs/cgroup/devices/system.slice/systemd-tmpfiles-setup-dev.service/devices.deny', '/var/lib/lxcfs/cgroup/blkio/system.slice/setvtrgb.service/notify_on_release', '/var/lib/lxcfs/cgroup/devices/system.slice/lvm2-monitor.service/tasks', '/var/lib/lxcfs/cgroup/cpu,cpuacct/system.slice/systemd-tmpfiles-setup-dev.service/cgroup.procs', '/var/lib/lxcfs/cgroup/cpu,cpuacct/system.slice/systemd-user-sessions.service/cpuacct.usage_percpu_user', '/var/lib/lxcfs/cgroup/cpu,cpuacct/system.slice/systemd-tmpfiles-setup.service/cpuacct.usage_user', '/var/lib/lxcfs/cgroup/devices/system.slice/apparmor.service/cgroup.procs', '/var/lib/lxcfs/cgroup/cpu,cpuacct/system.slice/systemd-tmpfiles-setup-dev.service/cpu.cfs_period_us', '/var/lib/lxcfs/cgroup/blkio/system.slice/systemd-user-sessions.service/blkio.throttle.read_iops_device', '/var/lib/lxcfs/cgroup/memory/system.slice/ebtables.service/memory.kmem.tcp.failcnt', '/var/lib/lxcfs/cgroup/pids/system.slice/ufw.service/pids.current', '/var/lib/lxcfs/cgroup/memory/system.slice/apparmor.service/cgroup.event_control', '/var/lib/lxcfs/cgroup/memory/system.slice/systemd-journal-flush.service/memory.kmem.tcp.usage_in_bytes', '/var/lib/lxcfs/cgroup/cpu,cpuacct/system.slice/kmod-static-nodes.service/cpuacct.usage_percpu_sys', '/var/lib/lxcfs/cgroup/cpu,cpuacct/system.slice/systemd-fsck-root.service/notify_on_release', '/var/lib/lxcfs/cgroup/memory/system.slice/ufw.service', '/var/lib/lxcfs/cgroup/memory/system.slice/console-setup.service/memory.use_hierarchy', '/var/lib/lxcfs/cgroup/memory/system.slice/ufw.service/memory.usage_in_bytes', '/var/lib/lxcfs/cgroup/blkio/system.slice/systemd-machine-id-commit.service/blkio.io_service_time_recursive', '/var/lib/lxcfs/cgroup/memory/system.slice/apparmor.service/memory.kmem.tcp.usage_in_bytes', '/var/lib/lxcfs/cgroup/cpu,cpuacct/system.slice/apparmor.service/cpu.stat', '/var/lib/lxcfs/cgroup/name=systemd/system.slice/blk-availability.service', '/var/lib/lxcfs/cgroup/memory/system.slice/apparmor.service/memory.kmem.limit_in_bytes', '/var/lib/lxcfs/cgroup/memory/system.slice/systemd-tmpfiles-setup-dev.service/memory.kmem.usage_in_bytes', '/var/lib/lxcfs/cgroup/blkio/system.slice/systemd-machine-id-commit.service/blkio.io_wait_time_recursive', '/var/lib/lxcfs/cgroup/blkio/system.slice/kmod-static-nodes.service', '/var/lib/lxcfs/cgroup/blkio/system.slice/kmod-static-nodes.service/blkio.time_recursive', '/var/lib/lxcfs/cgroup/memory/system.slice/systemd-tmpfiles-setup-dev.service/cgroup.procs', '/var/lib/lxcfs/cgroup/cpu,cpuacct/system.slice/keyboard-setup.service/tasks', '/var/lib/lxcfs/cgroup/devices/system.slice/systemd-sysctl.service', '/var/lib/lxcfs/cgroup/blkio/system.slice/systemd-update-utmp.service/cgroup.procs', '/var/lib/lxcfs/cgroup/blkio/system.slice/blk-availability.service/blkio.throttle.io_service_bytes', '/var/lib/lxcfs/cgroup/memory/system.slice/ebtables.service/memory.use_hierarchy', '/var/lib/lxcfs/cgroup/blkio/system.slice/ebtables.service/blkio.io_serviced_recursive', '/var/lib/lxcfs/cgroup/cpu,cpuacct/system.slice/systemd-fsck-root.service/cpuacct.usage_percpu', '/var/lib/lxcfs/cgroup/blkio/system.slice/apparmor.service/blkio.time', '/var/lib/lxcfs/cgroup/blkio/system.slice/setvtrgb.service/cgroup.clone_children', '/var/lib/lxcfs/cgroup/memory/system.slice/snapd.apparmor.service/memory.kmem.failcnt', '/var/lib/lxcfs/cgroup/memory/system.slice/systemd-tmpfiles-setup.service/memory.kmem.tcp.max_usage_in_bytes', '/var/lib/lxcfs/cgroup/blkio/system.slice/systemd-udev-trigger.service/blkio.weight_device', '/var/lib/lxcfs/cgroup/devices/system.slice/console-setup.service/tasks', '/var/lib/lxcfs/cgroup/devices/system.slice/apport.service/cgroup.procs', '/var/lib/lxcfs/cgroup/pids/system.slice/systemd-tmpfiles-setup.service/pids.current', '/var/lib/lxcfs/cgroup/memory/system.slice/systemd-tmpfiles-setup-dev.service/memory.oom_control', '/var/lib/lxcfs/cgroup/name=systemd/system.slice/setvtrgb.service/cgroup.procs', '/var/lib/lxcfs/cgroup/memory/system.slice/systemd-tmpfiles-setup-dev.service/memory.failcnt', '/var/lib/lxcfs/cgroup/devices/system.slice/lxd-containers.service/devices.list', '/var/lib/lxcfs/cgroup/name=systemd/system.slice/snapd.seeded.service/cgroup.clone_children', '/var/lib/lxcfs/cgroup/pids/system.slice/systemd-modules-load.service/cgroup.clone_children', '/var/lib/lxcfs/cgroup/devices/system.slice/systemd-machine-id-commit.service/devices.allow', '/var/lib/lxcfs/cgroup/memory/system.slice/systemd-udev-trigger.service/memory.kmem.limit_in_bytes', '/var/lib/lxcfs/cgroup/name=systemd/system.slice/keyboard-setup.service/cgroup.procs', '/var/lib/lxcfs/cgroup/blkio/system.slice/kmod-static-nodes.service/blkio.io_wait_time', '/var/lib/lxcfs/cgroup/blkio/system.slice/systemd-user-sessions.service/blkio.io_wait_time_recursive', '/var/lib/lxcfs/cgroup/blkio/system.slice/ebtables.service/blkio.throttle.read_bps_device', '/var/lib/lxcfs/cgroup/cpu,cpuacct/system.slice/systemd-modules-load.service/cpuacct.usage_percpu', '/var/lib/lxcfs/cgroup/blkio/system.slice/systemd-fsck-root.service/blkio.throttle.read_iops_device', '/var/lib/lxcfs/cgroup/devices/system.slice/systemd-udev-trigger.service/cgroup.clone_children', '/var/lib/lxcfs/cgroup/memory/system.slice/systemd-journal-flush.service/memory.oom_control', '/var/lib/lxcfs/cgroup/memory/system.slice/blk-availability.service/memory.kmem.limit_in_bytes', '/var/lib/lxcfs/cgroup/memory/system.slice/snapd.seeded.service/memory.kmem.tcp.failcnt', '/var/lib/lxcfs/cgroup/pids/system.slice/lxd-containers.service/cgroup.clone_children', '/var/lib/lxcfs/cgroup/memory/system.slice/console-setup.service/memory.kmem.tcp.failcnt', '/var/lib/lxcfs/cgroup/cpu,cpuacct/system.slice/systemd-remount-fs.service/cpuacct.usage', '/var/lib/lxcfs/cgroup/devices/system.slice/systemd-modules-load.service/cgroup.procs', '/var/lib/lxcfs/cgroup/blkio/system.slice/keyboard-setup.service/blkio.io_serviced', '/var/lib/lxcfs/cgroup/cpu,cpuacct/system.slice/ufw.service/cpuacct.usage_percpu', '/var/lib/lxcfs/cgroup/memory/system.slice/systemd-udev-trigger.service/memory.kmem.failcnt', '/var/lib/lxcfs/cgroup/cpu,cpuacct/system.slice/ufw.service', '/var/lib/lxcfs/cgroup/blkio/system.slice/lxd-containers.service/blkio.io_wait_time_recursive', '/var/lib/lxcfs/cgroup/devices/system.slice/systemd-fsck-root.service/devices.deny', '/var/lib/lxcfs/cgroup/memory/system.slice/systemd-remount-fs.service/tasks', '/var/lib/lxcfs/cgroup/memory/system.slice/ufw.service/cgroup.event_control', '/var/lib/lxcfs/cgroup/blkio/system.slice/systemd-machine-id-commit.service', '/var/lib/lxcfs/cgroup/memory/system.slice/blk-availability.service/cgroup.clone_children', '/var/lib/lxcfs/cgroup/name=systemd/system.slice/lxd-containers.service/notify_on_release', '/var/lib/lxcfs/cgroup/blkio/system.slice/snapd.seeded.service/cgroup.clone_children', '/var/lib/lxcfs/cgroup/pids/system.slice/systemd-user-sessions.service/pids.max', '/var/lib/lxcfs/cgroup/cpu,cpuacct/system.slice/lvm2-monitor.service/cpuacct.stat', '/var/lib/lxcfs/cgroup/blkio/system.slice/ufw.service/blkio.io_wait_time_recursive', '/var/lib/lxcfs/cgroup/pids/system.slice/grub-common.service/cgroup.procs', '/var/lib/lxcfs/cgroup/memory/system.slice/systemd-sysctl.service/memory.numa_stat', '/var/lib/lxcfs/cgroup/blkio/system.slice/ufw.service/blkio.time_recursive', '/var/lib/lxcfs/cgroup/blkio/system.slice/systemd-journal-flush.service/blkio.leaf_weight_device', '/var/lib/lxcfs/cgroup/pids/system.slice/systemd-tmpfiles-setup-dev.service/notify_on_release', '/var/lib/lxcfs/cgroup/devices/system.slice/systemd-update-utmp.service/devices.deny', '/var/lib/lxcfs/cgroup/memory/system.slice/ufw.service/memory.move_charge_at_immigrate', '/var/lib/lxcfs/cgroup/devices/system.slice/lxd-containers.service/tasks', '/var/lib/lxcfs/cgroup/blkio/system.slice/systemd-tmpfiles-setup-dev.service/blkio.io_service_time', '/var/lib/lxcfs/cgroup/memory/system.slice/systemd-remount-fs.service/memory.oom_control', '/var/lib/lxcfs/cgroup/memory/system.slice/ufw.service/memory.kmem.failcnt', '/var/lib/lxcfs/cgroup/memory/system.slice/kmod-static-nodes.service/memory.kmem.limit_in_bytes', '/var/lib/lxcfs/cgroup/cpu,cpuacct/system.slice/setvtrgb.service/cpuacct.usage', '/var/lib/lxcfs/cgroup/memory/system.slice/systemd-user-sessions.service/memory.kmem.usage_in_bytes', '/var/lib/lxcfs/cgroup/memory/system.slice/blk-availability.service/memory.kmem.tcp.failcnt', '/var/lib/lxcfs/cgroup/memory/system.slice/apport.service/memory.use_hierarchy', '/var/lib/lxcfs/cgroup/cpu,cpuacct/system.slice/console-setup.service/cpuacct.usage_percpu_sys', '/var/lib/lxcfs/cgroup/memory/system.slice/grub-common.service/tasks', '/var/lib/lxcfs/cgroup/cpu,cpuacct/system.slice/blk-availability.service', '/var/lib/lxcfs/cgroup/blkio/system.slice/systemd-random-seed.service/blkio.io_queued', '/var/lib/lxcfs/cgroup/blkio/system.slice/keyboard-setup.service/blkio.io_merged', '/var/lib/lxcfs/cgroup/cpu,cpuacct/system.slice/snapd.seeded.service', '/var/lib/lxcfs/cgroup/cpu,cpuacct/system.slice/apport.service/cpuacct.usage_percpu_sys', '/var/lib/lxcfs/cgroup/blkio/system.slice/lxd-containers.service/blkio.io_service_time', '/var/lib/lxcfs/cgroup/cpu,cpuacct/system.slice/blk-availability.service/cpuacct.usage_percpu', '/var/lib/lxcfs/cgroup/cpu,cpuacct/system.slice/systemd-machine-id-commit.service/tasks', '/var/lib/lxcfs/cgroup/memory/system.slice/kmod-static-nodes.service/memory.pressure_level', '/var/lib/lxcfs/cgroup/memory/system.slice/snapd.apparmor.service/memory.limit_in_bytes', '/var/lib/lxcfs/cgroup/blkio/system.slice/lxd-containers.service/blkio.io_merged', '/var/lib/lxcfs/cgroup/blkio/system.slice/systemd-update-utmp.service', '/var/lib/lxcfs/cgroup/memory/system.slice/blk-availability.service', '/var/lib/lxcfs/cgroup/cpu,cpuacct/system.slice/apparmor.service/cpu.shares', '/var/lib/lxcfs/cgroup/memory/system.slice/systemd-tmpfiles-setup-dev.service/memory.limit_in_bytes', '/var/lib/lxcfs/cgroup/devices/system.slice/keyboard-setup.service/devices.deny', '/var/lib/lxcfs/cgroup/blkio/system.slice/snapd.apparmor.service/blkio.io_merged', '/var/lib/lxcfs/cgroup/memory/system.slice/systemd-update-utmp.service/memory.failcnt', '/var/lib/lxcfs/cgroup/blkio/system.slice/ufw.service/blkio.io_merged_recursive', '/var/lib/lxcfs/cgroup/pids/system.slice/systemd-journal-flush.service/tasks', '/var/lib/lxcfs/cgroup/blkio/system.slice/systemd-udev-trigger.service/blkio.io_serviced', '/var/lib/lxcfs/cgroup/cpu,cpuacct/system.slice/setvtrgb.service/cpuacct.usage_percpu', '/var/lib/lxcfs/cgroup/blkio/system.slice/grub-common.service/blkio.io_wait_time_recursive', '/var/lib/lxcfs/cgroup/cpu,cpuacct/system.slice/ufw.service/cpuacct.usage_percpu_sys', '/var/lib/lxcfs/cgroup/devices/system.slice/apport.service', '/var/lib/lxcfs/cgroup/memory/system.slice/grub-common.service/memory.move_charge_at_immigrate', '/var/lib/lxcfs/cgroup/cpu,cpuacct/system.slice/lxd-containers.service/cpu.shares', '/var/lib/lxcfs/cgroup/cpu,cpuacct/system.slice/systemd-random-seed.service/cpuacct.usage_sys', '/var/lib/ubuntu-advantage/apt-esm/etc', '/var/lib/lxcfs/cgroup/cpu,cpuacct/system.slice/apparmor.service/cpuacct.usage', '/var/lib/lxcfs/cgroup/memory/system.slice/ebtables.service/memory.stat', '/var/lib/lxcfs/cgroup/memory/system.slice/systemd-tmpfiles-setup-dev.service/memory.max_usage_in_bytes', '/var/lib/lxcfs/cgroup/memory/system.slice/ufw.service/cgroup.clone_children', '/var/lib/lxcfs/cgroup/blkio/system.slice/kmod-static-nodes.service/blkio.sectors', '/var/lib/lxcfs/cgroup/blkio/system.slice/systemd-tmpfiles-setup-dev.service/blkio.throttle.read_iops_device', '/var/lib/lxcfs/cgroup/blkio/system.slice/keyboard-setup.service/blkio.weight', '/var/lib/lxcfs/cgroup/blkio/system.slice/setvtrgb.service/blkio.time_recursive', '/var/lib/lxcfs/cgroup/memory/system.slice/kmod-static-nodes.service/notify_on_release', '/var/lib/lxcfs/cgroup/blkio/system.slice/apport.service/blkio.io_service_time', '/var/lib/lxcfs/cgroup/devices/system.slice/systemd-update-utmp.service/devices.allow', '/var/lib/lxcfs/cgroup/name=systemd/system.slice/snapd.seeded.service/cgroup.procs', '/var/lib/lxcfs/cgroup/blkio/system.slice/systemd-remount-fs.service/cgroup.procs', '/var/lib/lxcfs/cgroup/devices/system.slice/systemd-tmpfiles-setup-dev.service/tasks', '/var/lib/lxcfs/cgroup/memory/system.slice/systemd-sysctl.service/memory.limit_in_bytes', '/var/lib/lxcfs/cgroup/name=systemd/system.slice/keyboard-setup.service/tasks', '/var/lib/lxcfs/cgroup/memory/system.slice/snapd.seeded.service/memory.kmem.limit_in_bytes', '/var/lib/lxcfs/cgroup/cpu,cpuacct/system.slice/systemd-machine-id-commit.service/cpu.shares', '/var/lib/lxcfs/cgroup/devices/system.slice/systemd-udev-trigger.service/devices.list', '/var/lib/lxcfs/cgroup/cpu,cpuacct/system.slice/systemd-remount-fs.service/cpuacct.usage_percpu_user', '/var/lib/lxcfs/cgroup/blkio/system.slice/lvm2-monitor.service/blkio.throttle.io_serviced', '/var/lib/lxcfs/cgroup/cpu,cpuacct/system.slice/systemd-machine-id-commit.service/cpu.stat', '/var/lib/lxcfs/cgroup/blkio/system.slice/lvm2-monitor.service/blkio.io_serviced', '/var/lib/lxcfs/cgroup/blkio/system.slice/ebtables.service/blkio.io_queued_recursive', '/var/lib/lxcfs/cgroup/memory/system.slice/keyboard-setup.service/memory.limit_in_bytes', '/var/lib/lxcfs/cgroup/name=systemd/system.slice/snapd.seeded.service/tasks', '/var/lib/lxcfs/cgroup/memory/system.slice/systemd-journal-flush.service/memory.failcnt', '/var/lib/lxcfs/cgroup/blkio/system.slice/blk-availability.service/blkio.weight_device', '/var/lib/lxcfs/cgroup/memory/system.slice/setvtrgb.service/memory.kmem.usage_in_bytes', '/var/lib/lxcfs/cgroup/name=systemd/system.slice/systemd-update-utmp.service', '/var/lib/lxcfs/cgroup/pids/system.slice/systemd-user-sessions.service/tasks', '/var/lib/lxcfs/cgroup/blkio/system.slice/systemd-user-sessions.service/blkio.reset_stats', '/var/lib/lxcfs/cgroup/pids/system.slice/apport.service', '/var/lib/lxcfs/cgroup/memory/system.slice/systemd-user-sessions.service/memory.failcnt', '/var/lib/lxcfs/cgroup/blkio/system.slice/lxd-containers.service/blkio.leaf_weight', '/var/lib/lxcfs/cgroup/cpu,cpuacct/system.slice/systemd-sysctl.service/cgroup.procs', '/var/lib/lxcfs/cgroup/cpu,cpuacct/system.slice/systemd-remount-fs.service/notify_on_release', '/var/lib/lxcfs/cgroup/blkio/system.slice/apport.service/blkio.io_queued', '/var/lib/lxcfs/cgroup/pids/system.slice/systemd-tmpfiles-setup-dev.service/pids.events', '/var/lib/lxcfs/cgroup/devices/system.slice/setvtrgb.service/cgroup.procs', '/var/lib/lxcfs/cgroup/devices/system.slice/systemd-user-sessions.service', '/var/lib/lxcfs/cgroup/memory/system.slice/systemd-update-utmp.service/memory.swappiness', '/var/lib/lxcfs/cgroup/cpu,cpuacct/system.slice/apparmor.service', '/var/lib/lxcfs/cgroup/blkio/system.slice/snapd.seeded.service/blkio.reset_stats', '/var/lib/lxcfs/cgroup/blkio/system.slice/systemd-modules-load.service/blkio.io_service_bytes', '/var/lib/lxcfs/cgroup/pids/user.slice/user-1000.slice/session-13.scope/pids.max', '/var/lib/lxcfs/cgroup/blkio/system.slice/lxd-containers.service/tasks', '/var/lib/lxcfs/cgroup/blkio/system.slice/systemd-update-utmp.service/blkio.time', '/var/lib/lxcfs/cgroup/blkio/system.slice/ufw.service/blkio.reset_stats', '/var/lib/lxcfs/cgroup/cpu,cpuacct/system.slice/snapd.seeded.service/cpu.cfs_quota_us', '/var/lib/lxcfs/cgroup/devices/system.slice/snapd.seeded.service/devices.allow', '/var/lib/lxcfs/cgroup/memory/system.slice/lvm2-monitor.service/memory.oom_control', '/var/lib/lxcfs/cgroup/pids/system.slice/ebtables.service/pids.events', '/var/lib/lxcfs/cgroup/pids/user.slice/user-1000.slice/session-22.scope/cgroup.procs', '/var/lib/lxcfs/cgroup/cpu,cpuacct/system.slice/kmod-static-nodes.service', '/var/lib/lxcfs/cgroup/memory/system.slice/systemd-random-seed.service/memory.use_hierarchy', '/var/lib/lxcfs/cgroup/cpu,cpuacct/system.slice/systemd-udev-trigger.service/cpuacct.usage_percpu_user', '/var/lib/lxcfs/cgroup/memory/system.slice/setvtrgb.service/memory.kmem.slabinfo', '/var/lib/lxcfs/cgroup/blkio/system.slice/grub-common.service/blkio.time', '/var/lib/lxcfs/cgroup/blkio/system.slice/apport.service/blkio.weight_device', '/var/lib/lxcfs/cgroup/pids/system.slice/kmod-static-nodes.service/cgroup.clone_children', '/var/lib/lxcfs/cgroup/cpu,cpuacct/system.slice/systemd-journal-flush.service/cpu.stat', '/var/lib/lxcfs/cgroup/memory/system.slice/console-setup.service/memory.kmem.max_usage_in_bytes', '/var/lib/lxcfs/cgroup/memory/system.slice/grub-common.service/memory.stat', '/var/lib/lxcfs/cgroup/memory/system.slice/systemd-user-sessions.service/tasks', '/var/lib/lxcfs/cgroup/memory/system.slice/ufw.service/memory.oom_control', '/var/lib/lxcfs/cgroup/memory/system.slice/ufw.service/memory.soft_limit_in_bytes', '/var/lib/lxcfs/cgroup/devices/system.slice/console-setup.service/notify_on_release', '/var/lib/lxcfs/cgroup/blkio/system.slice/ebtables.service/blkio.io_queued', '/var/lib/lxcfs/cgroup/memory/system.slice/snapd.apparmor.service/cgroup.clone_children', '/var/lib/lxcfs/cgroup/blkio/system.slice/systemd-sysctl.service/notify_on_release', '/var/lib/lxcfs/cgroup/devices/system.slice/systemd-sysctl.service/devices.allow', '/var/lib/lxcfs/cgroup/pids/system.slice/snapd.seeded.service/pids.events', '/var/lib/lxcfs/cgroup/memory/system.slice/systemd-journal-flush.service/memory.kmem.failcnt', '/var/lib/lxcfs/cgroup/cpu,cpuacct/system.slice/snapd.apparmor.service/tasks', '/var/lib/lxcfs/cgroup/memory/system.slice/blk-availability.service/notify_on_release', '/var/lib/lxcfs/cgroup/blkio/system.slice/ebtables.service/blkio.throttle.write_bps_device', '/var/lib/lxcfs/cgroup/memory/system.slice/snapd.apparmor.service/memory.kmem.tcp.usage_in_bytes', '/var/lib/lxcfs/cgroup/blkio/system.slice/ebtables.service/blkio.throttle.io_service_bytes', '/var/lib/lxcfs/cgroup/blkio/system.slice/blk-availability.service/blkio.io_service_time_recursive', '/var/lib/lxcfs/cgroup/blkio/system.slice/systemd-remount-fs.service/tasks', '/var/lib/lxcfs/cgroup/blkio/system.slice/systemd-machine-id-commit.service/blkio.io_service_time', '/var/lib/lxcfs/cgroup/memory/system.slice/systemd-machine-id-commit.service/memory.use_hierarchy', '/var/lib/lxcfs/cgroup/memory/system.slice/systemd-udev-trigger.service/memory.kmem.tcp.limit_in_bytes', '/var/lib/lxcfs/cgroup/memory/system.slice/systemd-machine-id-commit.service/notify_on_release', '/var/lib/lxcfs/cgroup/blkio/system.slice/setvtrgb.service/cgroup.procs', '/var/lib/ubuntu-advantage/apt-esm/var/cache/apt/srcpkgcache.bin', '/var/lib/lxcfs/cgroup/blkio/system.slice/ufw.service/blkio.throttle.read_bps_device', '/var/lib/lxcfs/cgroup/pids/system.slice/apport.service/tasks', '/var/lib/lxcfs/cgroup/blkio/system.slice/systemd-machine-id-commit.service/blkio.io_service_bytes', '/var/lib/lxcfs/cgroup/pids/system.slice/ebtables.service/pids.current', '/var/lib/lxcfs/cgroup/memory/system.slice/ebtables.service/cgroup.clone_children', '/var/lib/lxcfs/cgroup/memory/system.slice/systemd-udev-trigger.service/notify_on_release', '/var/lib/lxcfs/cgroup/blkio/system.slice/apparmor.service/blkio.io_merged_recursive', '/var/lib/lxcfs/cgroup/memory/system.slice/kmod-static-nodes.service/memory.limit_in_bytes', '/var/lib/lxcfs/cgroup/name=systemd/system.slice/blk-availability.service/cgroup.clone_children', '/var/lib/lxcfs/cgroup/blkio/system.slice/systemd-user-sessions.service/blkio.throttle.write_iops_device', '/var/lib/lxcfs/cgroup/blkio/system.slice/systemd-fsck-root.service/blkio.io_merged_recursive', '/var/lib/lxcfs/cgroup/devices/system.slice/systemd-udev-trigger.service', '/var/lib/lxcfs/cgroup/pids/system.slice/ufw.service/pids.max', '/var/lib/lxcfs/cgroup/memory/system.slice/systemd-update-utmp.service/memory.kmem.tcp.limit_in_bytes', '/var/lib/lxcfs/cgroup/memory/system.slice/systemd-update-utmp.service/memory.kmem.tcp.failcnt', '/var/lib/lxcfs/cgroup/blkio/system.slice/snapd.seeded.service/blkio.io_wait_time_recursive', '/var/lib/lxcfs/cgroup/cpu,cpuacct/system.slice/systemd-journal-flush.service/cgroup.procs', '/var/lib/lxcfs/cgroup/blkio/system.slice/systemd-udev-trigger.service/blkio.io_service_time_recursive', '/var/lib/lxcfs/cgroup/blkio/system.slice/systemd-modules-load.service/blkio.sectors_recursive', '/var/lib/lxcfs/cgroup/memory/system.slice/systemd-tmpfiles-setup.service/memory.numa_stat', '/var/lib/lxcfs/cgroup/cpu,cpuacct/system.slice/kmod-static-nodes.service/cgroup.procs', '/var/lib/lxcfs/cgroup/name=systemd/system.slice/systemd-tmpfiles-setup-dev.service/notify_on_release', '/var/lib/lxcfs/cgroup/memory/system.slice/systemd-update-utmp.service/memory.limit_in_bytes', '/var/lib/lxcfs/cgroup/memory/system.slice/lxd-containers.service/memory.limit_in_bytes', '/var/lib/lxcfs/cgroup/memory/system.slice/systemd-random-seed.service', '/var/lib/lxcfs/cgroup/memory/system.slice/keyboard-setup.service/memory.swappiness', '/var/lib/lxcfs/cgroup/devices/system.slice/kmod-static-nodes.service/notify_on_release', '/var/lib/lxcfs/cgroup/memory/system.slice/console-setup.service/tasks', '/var/lib/lxcfs/cgroup/memory/system.slice/systemd-journal-flush.service/memory.use_hierarchy', '/var/lib/lxcfs/cgroup/memory/system.slice/blk-availability.service/memory.pressure_level', '/var/lib/lxcfs/cgroup/cpu,cpuacct/system.slice/systemd-update-utmp.service/cpuacct.usage_percpu_sys', '/var/lib/lxcfs/cgroup/blkio/system.slice/lxd-containers.service/cgroup.clone_children', '/var/lib/lxcfs/cgroup/blkio/system.slice/snapd.seeded.service/blkio.io_merged', '/var/lib/lxcfs/cgroup/cpu,cpuacct/system.slice/apport.service/cpuacct.usage_sys', '/var/lib/lxcfs/cgroup/devices/system.slice/systemd-remount-fs.service/cgroup.clone_children', '/var/lib/lxcfs/cgroup/name=systemd/system.slice/console-setup.service', '/var/lib/lxcfs/cgroup/blkio/system.slice/systemd-modules-load.service/blkio.io_serviced', '/var/lib/lxcfs/cgroup/memory/system.slice/ufw.service/tasks', '/var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_bionic_multiverse_binary-amd64_Packages', '/var/lib/lxcfs/cgroup/blkio/system.slice/systemd-random-seed.service/blkio.io_serviced_recursive', '/var/lib/lxcfs/cgroup/memory/system.slice/keyboard-setup.service/memory.kmem.max_usage_in_bytes', '/var/lib/lxcfs/cgroup/blkio/system.slice/console-setup.service/cgroup.procs', '/var/lib/lxcfs/cgroup/cpu,cpuacct/system.slice/systemd-user-sessions.service/cpuacct.usage_all', '/var/lib/lxcfs/cgroup/cpu,cpuacct/system.slice/systemd-machine-id-commit.service/cpuacct.usage', '/var/lib/lxcfs/cgroup/cpu,cpuacct/system.slice/apparmor.service/cpuacct.usage_user', '/var/lib/lxcfs/cgroup/pids/system.slice/snapd.apparmor.service/pids.max', '/var/lib/lxcfs/cgroup/cpu,cpuacct/system.slice/systemd-tmpfiles-setup-dev.service/cpuacct.usage_percpu_sys', '/var/lib/lxcfs/cgroup/memory/system.slice/ebtables.service/memory.kmem.tcp.max_usage_in_bytes', '/var/lib/lxcfs/cgroup/blkio/system.slice/systemd-tmpfiles-setup.service/blkio.leaf_weight', '/var/lib/lxcfs/cgroup/cpu,cpuacct/system.slice/apparmor.service/cpuacct.usage_percpu', '/var/lib/lxcfs/cgroup/memory/system.slice/apport.service/memory.kmem.tcp.limit_in_bytes', '/var/lib/lxcfs/cgroup/cpu,cpuacct/system.slice/ufw.service/notify_on_release', '/var/lib/lxcfs/cgroup/memory/system.slice/blk-availability.service/cgroup.procs', '/var/lib/lxcfs/cgroup/devices/system.slice/systemd-journal-flush.service/notify_on_release', '/var/lib/lxcfs/cgroup/cpu,cpuacct/system.slice/systemd-fsck-root.service/cpuacct.stat', '/var/lib/lxcfs/cgroup/memory/system.slice/systemd-update-utmp.service/memory.force_empty', '/var/lib/lxcfs/cgroup/blkio/system.slice/systemd-update-utmp.service/blkio.io_service_bytes_recursive', '/var/lib/lxcfs/cgroup/name=systemd/system.slice/grub-common.service/cgroup.procs', '/var/lib/ubuntu-advantage/apt-esm/var/lib/apt/lists/esm.ubuntu.com_apps_ubuntu_dists_bionic-apps-updates_InRelease', '/var/lib/lxcfs/cgroup/memory/system.slice/setvtrgb.service/cgroup.event_control', '/var/lib/lxcfs/cgroup/pids/system.slice/systemd-machine-id-commit.service/pids.current', '/var/lib/lxcfs/cgroup/blkio/system.slice/systemd-sysctl.service/blkio.weight', '/var/lib/lxcfs/cgroup/memory/system.slice/ebtables.service/notify_on_release', '/var/lib/lxcfs/cgroup/pids/system.slice/systemd-modules-load.service/pids.current', '/var/lib/lxcfs/cgroup/memory/system.slice/systemd-tmpfiles-setup-dev.service/memory.kmem.failcnt', '/var/lib/lxcfs/cgroup/cpu,cpuacct/system.slice/systemd-tmpfiles-setup-dev.service/cpuacct.usage_sys', '/var/lib/lxcfs/cgroup/blkio/system.slice/systemd-tmpfiles-setup.service/blkio.time', '/var/lib/lxcfs/cgroup/blkio/system.slice/lxd-containers.service/blkio.time', '/var/lib/lxcfs/cgroup/devices/system.slice/kmod-static-nodes.service/devices.allow', '/var/lib/lxcfs/cgroup/memory/system.slice/console-setup.service/memory.usage_in_bytes', '/var/lib/lxcfs/cgroup/blkio/system.slice/systemd-fsck-root.service/cgroup.procs', '/var/lib/lxcfs/cgroup/blkio/system.slice/lvm2-monitor.service/notify_on_release', '/var/lib/lxcfs/cgroup/blkio/system.slice/snapd.apparmor.service/blkio.throttle.read_bps_device', '/var/lib/lxcfs/cgroup/memory/system.slice/systemd-tmpfiles-setup-dev.service/memory.swappiness', '/var/lib/lxcfs/cgroup/pids/system.slice/apparmor.service/pids.events', '/var/lib/lxcfs/cgroup/blkio/system.slice/keyboard-setup.service/blkio.io_wait_time', '/var/lib/lxcfs/cgroup/blkio/system.slice/systemd-sysctl.service/blkio.throttle.write_iops_device', '/var/lib/lxcfs/cgroup/memory/system.slice/lvm2-monitor.service', '/var/lib/lxcfs/cgroup/blkio/system.slice/systemd-fsck-root.service/blkio.io_wait_time', '/var/lib/lxcfs/cgroup/blkio/system.slice/grub-common.service/notify_on_release', '/var/lib/lxcfs/cgroup/memory/system.slice/kmod-static-nodes.service/memory.use_hierarchy', '/var/lib/lxcfs/cgroup/cpu,cpuacct/system.slice/snapd.seeded.service/cpu.cfs_period_us', '/var/lib/lxcfs/cgroup/cpu,cpuacct/system.slice/systemd-user-sessions.service/cpuacct.usage_user', '/var/lib/lxcfs/cgroup/memory/system.slice/keyboard-setup.service/notify_on_release', '/var/lib/lxcfs/cgroup/devices/system.slice/systemd-sysctl.service/tasks', '/var/lib/lxcfs/cgroup/blkio/system.slice/blk-availability.service/blkio.leaf_weight', '/var/lib/lxcfs/cgroup/blkio/system.slice/systemd-user-sessions.service/blkio.io_wait_time', '/var/lib/lxcfs/cgroup/blkio/system.slice/ebtables.service/blkio.io_merged', '/var/lib/lxcfs/cgroup/blkio/system.slice/systemd-fsck-root.service/blkio.reset_stats', '/var/lib/lxcfs/cgroup/blkio/system.slice/lvm2-monitor.service/blkio.weight', '/var/lib/lxcfs/cgroup/memory/system.slice/systemd-tmpfiles-setup-dev.service/memory.kmem.tcp.max_usage_in_bytes', '/var/lib/lxcfs/cgroup/memory/system.slice/console-setup.service/memory.numa_stat', '/var/lib/lxcfs/cgroup/memory/system.slice/snapd.seeded.service/memory.failcnt', '/var/lib/lxcfs/cgroup/cpu,cpuacct/system.slice/systemd-update-utmp.service/cpuacct.usage_sys', '/var/lib/lxcfs/cgroup/blkio/system.slice/blk-availability.service/blkio.sectors_recursive', '/var/lib/lxcfs/cgroup/blkio/system.slice/lxd-containers.service/blkio.time_recursive', '/var/lib/lxcfs/cgroup/devices/system.slice/systemd-tmpfiles-setup.service', '/var/lib/lxcfs/cgroup/blkio/system.slice/grub-common.service/blkio.io_service_bytes', '/var/lib/lxcfs/cgroup/name=systemd/system.slice/ufw.service/notify_on_release', '/var/lib/lxcfs/cgroup/memory/system.slice/console-setup.service/memory.limit_in_bytes', '/var/lib/lxcfs/cgroup/devices/system.slice/systemd-tmpfiles-setup-dev.service/devices.allow', '/var/lib/lxcfs/cgroup/name=systemd/system.slice/systemd-modules-load.service/cgroup.clone_children', '/var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_bionic-updates_universe_binary-amd64_Packages', '/var/lib/lxcfs/cgroup/cpu,cpuacct/system.slice/keyboard-setup.service/cpuacct.stat', '/var/lib/lxcfs/cgroup/blkio/system.slice/blk-availability.service/blkio.throttle.write_bps_device', '/var/lib/lxcfs/cgroup/devices/system.slice/ufw.service/tasks', '/var/lib/lxcfs/cgroup/name=systemd/system.slice/setvtrgb.service/cgroup.clone_children', '/var/lib/lxcfs/cgroup/cpu,cpuacct/system.slice/apport.service/cpuacct.usage', '/var/lib/lxcfs/cgroup/blkio/system.slice/apport.service/blkio.throttle.read_iops_device', '/var/lib/lxcfs/cgroup/memory/system.slice/ebtables.service/memory.max_usage_in_bytes', '/var/lib/lxcfs/cgroup/cpu,cpuacct/system.slice/ufw.service/cpuacct.stat', '/var/lib/lxcfs/cgroup/memory/system.slice/ebtables.service', '/var/lib/lxcfs/cgroup/blkio/system.slice/apparmor.service/blkio.throttle.io_serviced', '/var/lib/lxcfs/cgroup/pids/system.slice/snapd.apparmor.service/notify_on_release', '/var/lib/lxcfs/cgroup/memory/system.slice/systemd-modules-load.service/memory.kmem.tcp.failcnt', '/var/lib/lxcfs/cgroup/blkio/system.slice/systemd-user-sessions.service/blkio.leaf_weight', '/var/lib/lxcfs/cgroup/devices/system.slice/snapd.seeded.service/cgroup.clone_children', '/var/lib/lxcfs/cgroup/memory/system.slice/systemd-sysctl.service/memory.soft_limit_in_bytes', '/var/lib/lxcfs/cgroup/devices/system.slice/keyboard-setup.service/cgroup.procs', '/var/lib/lxcfs/cgroup/blkio/system.slice/systemd-update-utmp.service/blkio.io_service_time', '/var/lib/lxcfs/cgroup/cpu,cpuacct/system.slice/systemd-update-utmp.service/notify_on_release', '/var/lib/lxcfs/cgroup/pids/system.slice/keyboard-setup.service/cgroup.procs', '/var/lib/lxcfs/cgroup/memory/system.slice/systemd-tmpfiles-setup.service/memory.max_usage_in_bytes', '/var/lib/lxcfs/cgroup/name=systemd/system.slice/lvm2-monitor.service/cgroup.clone_children', '/var/lib/lxcfs/cgroup/name=systemd/system.slice/apparmor.service/notify_on_release', '/var/lib/lxcfs/cgroup/blkio/system.slice/systemd-modules-load.service/blkio.throttle.write_iops_device', '/var/lib/lxcfs/cgroup/memory/system.slice/blk-availability.service/memory.failcnt', '/var/lib/ubuntu-advantage/apt-esm/var/cache/apt/archives/partial', '/var/lib/lxcfs/cgroup/memory/system.slice/snapd.seeded.service/cgroup.event_control', '/var/lib/lxcfs/cgroup/memory/system.slice/systemd-udev-trigger.service/memory.usage_in_bytes', '/var/lib/lxcfs/cgroup/pids/system.slice/console-setup.service/tasks', '/var/lib/lxcfs/cgroup/memory/system.slice/console-setup.service', '/var/lib/lxcfs/cgroup/devices/system.slice/apport.service/notify_on_release', '/var/lib/lxcfs/cgroup/cpu,cpuacct/system.slice/snapd.seeded.service/cpuacct.usage_percpu_user', '/var/lib/lxcfs/cgroup/memory/system.slice/kmod-static-nodes.service/memory.force_empty', '/var/lib/lxcfs/cgroup/blkio/system.slice/snapd.apparmor.service/blkio.leaf_weight_device', '/var/lib/lxcfs/cgroup/blkio/system.slice/setvtrgb.service/blkio.io_queued', '/var/lib/lxcfs/cgroup/blkio/system.slice/grub-common.service/blkio.leaf_weight', '/var/lib/lxcfs/cgroup/cpu,cpuacct/system.slice/keyboard-setup.service/cpu.cfs_quota_us', '/var/lib/lxcfs/cgroup/cpu,cpuacct/system.slice/systemd-sysctl.service/notify_on_release', '/var/lib/lxcfs/cgroup/memory/system.slice/setvtrgb.service/memory.kmem.max_usage_in_bytes', '/var/lib/lxcfs/cgroup/blkio/system.slice/systemd-udev-trigger.service/blkio.sectors_recursive', '/var/lib/lxcfs/cgroup/pids/system.slice/console-setup.service/pids.events', '/var/lib/lxcfs/cgroup/blkio/system.slice/systemd-modules-load.service/blkio.throttle.read_iops_device', '/var/lib/lxcfs/cgroup/memory/system.slice/apparmor.service/memory.kmem.tcp.limit_in_bytes', '/var/lib/lxcfs/cgroup/memory/system.slice/systemd-modules-load.service/memory.kmem.tcp.max_usage_in_bytes', '/var/lib/lxcfs/cgroup/name=systemd/system.slice/lxd-containers.service/cgroup.procs', '/var/lib/lxcfs/cgroup/memory/system.slice/systemd-random-seed.service/memory.usage_in_bytes', '/var/lib/lxcfs/cgroup/memory/system.slice/grub-common.service/notify_on_release', '/var/lib/lxcfs/cgroup/blkio/system.slice/systemd-update-utmp.service/blkio.io_service_bytes', '/var/lib/lxcfs/cgroup/blkio/system.slice/ufw.service/blkio.throttle.write_iops_device', '/var/lib/lxcfs/cgroup/blkio/system.slice/blk-availability.service/blkio.throttle.read_bps_device', '/var/lib/lxcfs/cgroup/memory/system.slice/systemd-tmpfiles-setup.service/memory.kmem.failcnt', '/var/lib/lxcfs/cgroup/cpu,cpuacct/system.slice/grub-common.service/cpuacct.usage_percpu_sys', '/var/lib/lxcfs/cgroup/name=systemd/system.slice/lxd-containers.service', '/var/lib/lxcfs/cgroup/blkio/system.slice/snapd.apparmor.service/blkio.throttle.write_iops_device', '/var/lib/lxcfs/cgroup/memory/system.slice/keyboard-setup.service/memory.kmem.limit_in_bytes', '/var/lib/lxcfs/cgroup/blkio/system.slice/lvm2-monitor.service/blkio.sectors_recursive', '/var/lib/lxcfs/cgroup/memory/system.slice/apport.service/memory.kmem.slabinfo', '/var/lib/lxcfs/cgroup/blkio/system.slice/systemd-tmpfiles-setup.service/blkio.io_service_time', '/var/lib/lxcfs/cgroup/cpu,cpuacct/system.slice/systemd-fsck-root.service/tasks', '/var/lib/lxcfs/cgroup/cpu,cpuacct/system.slice/lxd-containers.service/notify_on_release', '/var/lib/lxcfs/cgroup/memory/system.slice/systemd-sysctl.service/notify_on_release', '/var/lib/lxcfs/cgroup/name=systemd/system.slice/grub-common.service', '/var/lib/lxcfs/cgroup/memory/system.slice/snapd.apparmor.service/memory.kmem.max_usage_in_bytes', '/var/lib/lxcfs/cgroup/memory/system.slice/console-setup.service/notify_on_release', '/var/lib/lxcfs/cgroup/blkio/system.slice/keyboard-setup.service/cgroup.clone_children', '/var/lib/lxcfs/cgroup/blkio/system.slice/systemd-user-sessions.service/blkio.throttle.read_bps_device', '/var/lib/lxcfs/cgroup/memory/system.slice/systemd-random-seed.service/memory.kmem.slabinfo', '/var/lib/lxcfs/cgroup/memory/system.slice/lvm2-monitor.service/memory.kmem.limit_in_bytes', '/var/lib/lxcfs/cgroup/memory/system.slice/systemd-modules-load.service/memory.limit_in_bytes', '/var/lib/lxcfs/cgroup/blkio/system.slice/systemd-update-utmp.service/blkio.io_serviced_recursive', '/var/lib/lxcfs/cgroup/pids/system.slice/systemd-remount-fs.service/pids.events', '/var/lib/lxcfs/cgroup/devices/system.slice/console-setup.service/devices.deny', '/var/lib/lxcfs/cgroup/pids/system.slice/apparmor.service/notify_on_release', '/var/lib/lxcfs/cgroup/blkio/system.slice/setvtrgb.service/blkio.throttle.io_serviced', '/var/lib/lxcfs/cgroup/pids/system.slice/blk-availability.service', '/var/lib/lxcfs/cgroup/blkio/system.slice/systemd-sysctl.service/blkio.throttle.read_bps_device', '/var/lib/lxcfs/cgroup/pids/system.slice/systemd-modules-load.service/notify_on_release', '/var/lib/lxcfs/cgroup/cpu,cpuacct/system.slice/lvm2-monitor.service/tasks', '/var/lib/lxcfs/cgroup/blkio/system.slice/grub-common.service', '/var/lib/lxcfs/cgroup/memory/system.slice/systemd-modules-load.service/memory.usage_in_bytes', '/var/lib/lxcfs/cgroup/cpu,cpuacct/system.slice/grub-common.service/cpu.shares', '/var/lib/lxcfs/cgroup/cpu,cpuacct/system.slice/systemd-udev-trigger.service/cgroup.procs', '/var/lib/lxcfs/cgroup/memory/system.slice/snapd.seeded.service/memory.force_empty', '/var/lib/lxcfs/cgroup/blkio/system.slice/systemd-modules-load.service/blkio.io_merged_recursive', '/var/lib/lxcfs/cgroup/memory/system.slice/blk-availability.service/memory.kmem.tcp.max_usage_in_bytes', '/var/lib/lxcfs/cgroup/blkio/system.slice/systemd-udev-trigger.service/blkio.throttle.write_bps_device', '/var/lib/lxcfs/cgroup/blkio/system.slice/snapd.apparmor.service/blkio.io_wait_time_recursive', '/var/lib/lxcfs/cgroup/memory/system.slice/systemd-modules-load.service/memory.soft_limit_in_bytes', '/var/lib/lxcfs/cgroup/blkio/system.slice/ebtables.service/blkio.io_service_time', '/var/lib/lxcfs/cgroup/devices/system.slice/lvm2-monitor.service/notify_on_release', '/var/lib/lxcfs/cgroup/name=systemd/system.slice/setvtrgb.service/tasks', '/var/lib/lxcfs/cgroup/devices/system.slice/lvm2-monitor.service/devices.allow', '/var/lib/lxcfs/cgroup/pids/system.slice/systemd-tmpfiles-setup.service/notify_on_release', '/var/lib/lxcfs/cgroup/name=systemd/user.slice/user-1000.slice/session-22.scope', '/var/lib/lxcfs/cgroup/devices/system.slice/grub-common.service/devices.deny', '/var/lib/lxcfs/cgroup/cpu,cpuacct/system.slice/systemd-udev-trigger.service/cpu.cfs_quota_us', '/var/lib/lxcfs/cgroup/name=systemd/system.slice/systemd-remount-fs.service/notify_on_release', '/var/lib/lxcfs/cgroup/pids/system.slice/setvtrgb.service/pids.max', '/var/lib/lxcfs/cgroup/cpu,cpuacct/system.slice/kmod-static-nodes.service/cpuacct.stat', '/var/lib/lxcfs/cgroup/pids/system.slice/systemd-update-utmp.service/pids.max', '/var/lib/lxcfs/cgroup/blkio/system.slice/systemd-remount-fs.service/blkio.io_service_time', '/var/lib/lxcfs/cgroup/pids/system.slice/apport.service/cgroup.clone_children', '/var/lib/lxcfs/cgroup/cpu,cpuacct/system.slice/systemd-journal-flush.service/cpuacct.usage', '/var/lib/lxcfs/cgroup/devices/system.slice/systemd-sysctl.service/devices.deny', '/var/lib/lxcfs/cgroup/memory/system.slice/systemd-machine-id-commit.service/memory.oom_control', '/var/lib/lxcfs/cgroup/memory/system.slice/kmod-static-nodes.service/memory.max_usage_in_bytes', '/var/lib/lxcfs/cgroup/cpu,cpuacct/system.slice/ufw.service/cpuacct.usage_all', '/var/lib/lxcfs/cgroup/memory/system.slice/blk-availability.service/tasks', '/var/lib/lxcfs/cgroup/blkio/system.slice/systemd-update-utmp.service/blkio.io_serviced', '/var/lib/lxcfs/cgroup/cpu,cpuacct/system.slice/systemd-journal-flush.service/cpuacct.usage_percpu', '/var/lib/lxcfs/cgroup/cpu,cpuacct/system.slice/systemd-random-seed.service/cgroup.procs', '/var/log/ubuntu-advantage.log', '/var/lib/lxcfs/cgroup/pids/system.slice/snapd.apparmor.service/cgroup.clone_children', '/var/lib/lxcfs/cgroup/cpu,cpuacct/system.slice/systemd-fsck-root.service/cpuacct.usage_percpu_sys', '/var/lib/lxcfs/cgroup/pids/user.slice/user-1000.slice/session-13.scope/cgroup.clone_children', '/var/lib/lxcfs/cgroup/blkio/system.slice/snapd.seeded.service/blkio.throttle.read_iops_device', '/var/lib/lxcfs/cgroup/blkio/system.slice/systemd-journal-flush.service/blkio.leaf_weight', '/var/lib/lxcfs/cgroup/memory/system.slice/kmod-static-nodes.service/memory.kmem.failcnt', '/var/lib/lxcfs/cgroup/memory/system.slice/keyboard-setup.service/cgroup.event_control', '/var/lib/lxcfs/cgroup/cpu,cpuacct/system.slice/systemd-fsck-root.service/cpuacct.usage_user', '/var/lib/lxcfs/cgroup/cpu,cpuacct/system.slice/systemd-tmpfiles-setup.service/cpu.cfs_quota_us', '/var/lib/lxcfs/cgroup/blkio/system.slice/systemd-user-sessions.service/blkio.io_service_time_recursive', '/var/lib/lxcfs/cgroup/devices/system.slice/snapd.seeded.service/notify_on_release', '/var/lib/lxcfs/cgroup/blkio/system.slice/systemd-fsck-root.service/tasks', '/var/lib/lxcfs/cgroup/pids/system.slice/systemd-fsck-root.service', '/var/lib/lxcfs/cgroup/memory/system.slice/systemd-remount-fs.service/memory.failcnt', '/var/lib/lxcfs/cgroup/memory/system.slice/systemd-tmpfiles-setup.service/memory.force_empty', '/var/lib/lxcfs/cgroup/blkio/system.slice/lxd-containers.service/blkio.throttle.io_serviced', '/var/lib/lxcfs/cgroup/cpu,cpuacct/system.slice/systemd-fsck-root.service/cpuacct.usage_all', '/var/lib/lxcfs/cgroup/cpu,cpuacct/system.slice/snapd.apparmor.service/cpuacct.usage_percpu_user', '/var/lib/lxcfs/cgroup/cpu,cpuacct/system.slice/systemd-tmpfiles-setup.service/cpu.cfs_period_us', '/var/lib/lxcfs/cgroup/cpu,cpuacct/system.slice/snapd.apparmor.service', '/var/lib/lxcfs/cgroup/cpu,cpuacct/system.slice/console-setup.service/tasks', '/var/lib/lxcfs/cgroup/cpu,cpuacct/system.slice/grub-common.service/cpu.cfs_quota_us', '/var/lib/lxcfs/cgroup/devices/system.slice/kmod-static-nodes.service/devices.deny', '/var/lib/lxcfs/cgroup/memory/system.slice/apparmor.service/memory.usage_in_bytes', '/var/lib/lxcfs/cgroup/memory/system.slice/apport.service/notify_on_release', '/var/lib/lxcfs/cgroup/memory/system.slice/apparmor.service/memory.swappiness', '/var/lib/lxcfs/cgroup/pids/system.slice/systemd-tmpfiles-setup.service', '/var/lib/lxcfs/cgroup/blkio/system.slice/systemd-udev-trigger.service/blkio.io_service_time', '/var/lib/lxcfs/cgroup/blkio/system.slice/systemd-sysctl.service/blkio.leaf_weight_device', '/var/lib/lxcfs/cgroup/memory/system.slice/ufw.service/memory.pressure_level', '/var/lib/lxcfs/cgroup/blkio/system.slice/snapd.apparmor.service/blkio.io_merged_recursive', '/var/lib/lxcfs/cgroup/memory/system.slice/systemd-random-seed.service/memory.kmem.tcp.usage_in_bytes', '/var/lib/lxcfs/cgroup/memory/system.slice/systemd-sysctl.service/memory.max_usage_in_bytes', '/var/lib/lxcfs/cgroup/cpu,cpuacct/system.slice/kmod-static-nodes.service/cpu.cfs_quota_us', '/var/lib/lxcfs/cgroup/blkio/system.slice/grub-common.service/blkio.io_merged_recursive', '/var/lib/lxcfs/cgroup/memory/system.slice/kmod-static-nodes.service/memory.kmem.tcp.limit_in_bytes', '/var/lib/lxcfs/cgroup/blkio/system.slice/snapd.seeded.service/blkio.throttle.write_bps_device', '/var/lib/lxcfs/cgroup/memory/system.slice/grub-common.service/memory.kmem.tcp.max_usage_in_bytes', '/var/lib/lxcfs/cgroup/blkio/system.slice/systemd-sysctl.service/blkio.io_serviced_recursive', '/var/lib/lxcfs/cgroup/blkio/system.slice/apparmor.service/blkio.io_queued', '/var/lib/lxcfs/cgroup/cpu,cpuacct/system.slice/apparmor.service/cpuacct.usage_all', '/var/lib/lxcfs/cgroup/blkio/system.slice/systemd-remount-fs.service/blkio.leaf_weight_device', '/var/lib/lxcfs/cgroup/cpu,cpuacct/system.slice/systemd-tmpfiles-setup-dev.service/tasks', '/var/lib/lxcfs/cgroup/blkio/system.slice/systemd-random-seed.service/blkio.time', '/var/lib/lxcfs/cgroup/pids/system.slice/grub-common.service/tasks', '/var/lib/lxcfs/cgroup/devices/system.slice/lvm2-monitor.service/devices.deny', '/var/lib/lxcfs/cgroup/blkio/system.slice/grub-common.service/blkio.io_service_bytes_recursive', '/var/lib/lxcfs/cgroup/cpu,cpuacct/system.slice/systemd-random-seed.service', '/var/lib/lxcfs/cgroup/cpu,cpuacct/system.slice/systemd-udev-trigger.service/cpuacct.usage_all', '/var/lib/lxcfs/cgroup/cpu,cpuacct/system.slice/keyboard-setup.service/cpuacct.usage_all', '/var/lib/lxcfs/cgroup/pids/system.slice/systemd-machine-id-commit.service/cgroup.clone_children', '/var/lib/lxcfs/cgroup/devices/system.slice/lvm2-monitor.service', '/var/lib/lxcfs/cgroup/cpu,cpuacct/system.slice/grub-common.service/tasks', '/var/lib/lxcfs/cgroup/cpu,cpuacct/system.slice/keyboard-setup.service/cpuacct.usage_sys', '/var/lib/lxcfs/cgroup/pids/system.slice/blk-availability.service/notify_on_release', '/var/lib/lxcfs/cgroup/name=systemd/system.slice/systemd-random-seed.service', '/var/lib/lxcfs/cgroup/memory/system.slice/apparmor.service/memory.oom_control', '/var/lib/lxcfs/cgroup/devices/system.slice/systemd-machine-id-commit.service/devices.deny', '/var/lib/lxcfs/cgroup/memory/system.slice/apparmor.service', '/var/lib/lxcfs/cgroup/memory/system.slice/apparmor.service/memory.move_charge_at_immigrate', '/var/lib/lxcfs/cgroup/name=systemd/system.slice/systemd-random-seed.service/tasks', '/var/lib/lxcfs/cgroup/blkio/system.slice/apparmor.service/notify_on_release', '/var/lib/lxcfs/cgroup/memory/system.slice/systemd-user-sessions.service/memory.pressure_level', '/var/lib/lxcfs/cgroup/memory/system.slice/systemd-journal-flush.service/memory.soft_limit_in_bytes', '/var/lib/lxcfs/cgroup/blkio/system.slice/apparmor.service/blkio.sectors', '/var/lib/lxcfs/cgroup/blkio/system.slice/systemd-journal-flush.service/blkio.time', '/var/lib/lxcfs/cgroup/blkio/system.slice/systemd-fsck-root.service', '/var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_bionic-updates_multiverse_binary-amd64_Packages', '/var/lib/lxcfs/cgroup/cpu,cpuacct/system.slice/systemd-sysctl.service/cpuacct.usage', '/var/lib/lxcfs/cgroup/devices/system.slice/lvm2-monitor.service/cgroup.clone_children', '/var/lib/lxcfs/cgroup/blkio/system.slice/systemd-udev-trigger.service/blkio.throttle.read_bps_device', '/var/lib/lxcfs/cgroup/blkio/system.slice/blk-availability.service/tasks', '/var/lib/lxcfs/cgroup/pids/system.slice/systemd-udev-trigger.service/tasks', '/var/lib/lxcfs/cgroup/memory/system.slice/lxd-containers.service/memory.kmem.tcp.limit_in_bytes', '/var/lib/lxcfs/cgroup/cpu,cpuacct/system.slice/grub-common.service/notify_on_release', '/var/lib/lxcfs/cgroup/memory/system.slice/grub-common.service/cgroup.event_control', '/var/lib/lxcfs/cgroup/memory/system.slice/setvtrgb.service/memory.use_hierarchy', '/var/lib/lxcfs/cgroup/blkio/system.slice/lxd-containers.service/blkio.io_queued_recursive', '/var/lib/lxcfs/cgroup/blkio/system.slice/setvtrgb.service/blkio.io_serviced', '/var/lib/lxcfs/cgroup/blkio/system.slice/systemd-update-utmp.service/blkio.throttle.io_service_bytes', '/var/lib/lxcfs/cgroup/memory/system.slice/systemd-tmpfiles-setup-dev.service/notify_on_release', '/var/lib/lxcfs/cgroup/blkio/system.slice/kmod-static-nodes.service/blkio.io_merged', '/var/lib/lxcfs/cgroup/memory/system.slice/systemd-sysctl.service/memory.usage_in_bytes', '/var/lib/lxcfs/cgroup/blkio/system.slice/kmod-static-nodes.service/blkio.throttle.io_serviced', '/var/lib/ubuntu-advantage/apt-esm/var/lib/apt/lists/partial', '/var/lib/lxcfs/cgroup/memory/system.slice/apport.service/cgroup.clone_children', '/var/lib/lxcfs/cgroup/blkio/system.slice/blk-availability.service/blkio.io_service_bytes_recursive', '/var/lib/lxcfs/cgroup/blkio/system.slice/systemd-tmpfiles-setup-dev.service/blkio.io_wait_time', '/var/lib/lxcfs/cgroup/name=systemd/system.slice/systemd-journal-flush.service/notify_on_release', '/var/lib/lxcfs/cgroup/blkio/system.slice/systemd-tmpfiles-setup-dev.service/blkio.io_service_time_recursive', '/var/lib/lxcfs/cgroup/memory/system.slice/blk-availability.service/memory.limit_in_bytes', '/var/lib/lxcfs/cgroup/memory/system.slice/systemd-udev-trigger.service/cgroup.procs', '/var/lib/lxcfs/cgroup/blkio/system.slice/systemd-tmpfiles-setup.service/blkio.io_merged', '/var/lib/lxcfs/cgroup/blkio/system.slice/systemd-remount-fs.service/blkio.io_service_bytes', '/var/lib/lxcfs/cgroup/blkio/system.slice/kmod-static-nodes.service/blkio.io_service_time', '/var/lib/lxcfs/cgroup/cpu,cpuacct/system.slice/systemd-sysctl.service/cgroup.clone_children', '/var/lib/lxcfs/cgroup/pids/system.slice/setvtrgb.service/cgroup.clone_children', '/var/lib/lxcfs/cgroup/memory/system.slice/systemd-machine-id-commit.service/memory.soft_limit_in_bytes', '/var/lib/lxcfs/cgroup/devices/system.slice/lvm2-monitor.service/devices.list', '/var/lib/lxcfs/cgroup/name=systemd/system.slice/systemd-udev-trigger.service/cgroup.clone_children', '/var/lib/lxcfs/cgroup/cpu,cpuacct/system.slice/blk-availability.service/cpuacct.usage_sys', '/var/lib/lxcfs/cgroup/cpu,cpuacct/system.slice/apport.service/cpuacct.usage_user', '/var/lib/lxcfs/cgroup/blkio/system.slice/grub-common.service/blkio.throttle.io_service_bytes', '/var/lib/lxcfs/cgroup/blkio/system.slice/systemd-fsck-root.service/blkio.io_queued_recursive', '/var/lib/lxcfs/cgroup/name=systemd/system.slice/lxd-containers.service/tasks', '/var/lib/lxcfs/cgroup/devices/system.slice/systemd-fsck-root.service', '/var/lib/lxcfs/cgroup/cpu,cpuacct/system.slice/systemd-remount-fs.service/cpu.stat', '/var/lib/lxcfs/cgroup/memory/system.slice/systemd-journal-flush.service/memory.swappiness', '/var/lib/lxcfs/cgroup/blkio/system.slice/systemd-journal-flush.service/blkio.io_wait_time_recursive', '/var/lib/lxcfs/cgroup/blkio/system.slice/kmod-static-nodes.service/blkio.reset_stats', '/var/lib/lxcfs/cgroup/name=systemd/system.slice/systemd-fsck-root.service/cgroup.clone_children', '/var/lib/lxcfs/cgroup/cpu,cpuacct/system.slice/snapd.apparmor.service/cpuacct.usage_percpu_sys', '/var/lib/lxcfs/cgroup/blkio/system.slice/blk-availability.service/blkio.io_merged', '/var/lib/lxcfs/cgroup/blkio/system.slice/systemd-tmpfiles-setup.service/blkio.io_queued', '/var/lib/lxcfs/cgroup/pids/system.slice/systemd-machine-id-commit.service/tasks', '/var/lib/lxcfs/cgroup/blkio/system.slice/lvm2-monitor.service/cgroup.clone_children', '/var/lib/lxcfs/cgroup/pids/system.slice/systemd-machine-id-commit.service/pids.events', '/var/lib/lxcfs/cgroup/memory/system.slice/blk-availability.service/memory.oom_control', '/var/lib/lxcfs/cgroup/memory/system.slice/lxd-containers.service/memory.kmem.limit_in_bytes', '/var/lib/lxcfs/cgroup/blkio/system.slice/kmod-static-nodes.service/blkio.time', '/var/lib/lxcfs/cgroup/memory/system.slice/systemd-modules-load.service/memory.pressure_level', '/var/lib/lxcfs/cgroup/cpu,cpuacct/system.slice/systemd-tmpfiles-setup-dev.service/notify_on_release', '/var/lib/lxcfs/cgroup/memory/system.slice/systemd-tmpfiles-setup.service/notify_on_release', '/var/lib/lxcfs/cgroup/memory/system.slice/systemd-udev-trigger.service/memory.oom_control', '/var/lib/lxcfs/cgroup/memory/system.slice/setvtrgb.service/memory.kmem.tcp.limit_in_bytes', '/var/lib/lxcfs/cgroup/memory/system.slice/systemd-journal-flush.service/memory.kmem.usage_in_bytes', '/var/lib/lxcfs/cgroup/memory/system.slice/systemd-modules-load.service/memory.kmem.slabinfo', '/var/lib/lxcfs/cgroup/blkio/system.slice/setvtrgb.service/blkio.weight', '/var/lib/lxcfs/cgroup/memory/system.slice/apport.service/memory.force_empty', '/var/lib/lxcfs/cgroup/blkio/system.slice/blk-availability.service/cgroup.procs', '/var/lib/lxcfs/cgroup/devices/system.slice/lxd-containers.service', '/var/lib/lxcfs/cgroup/pids/system.slice/lxd-containers.service/pids.current', '/var/lib/lxcfs/cgroup/blkio/system.slice/console-setup.service/blkio.io_queued_recursive', '/var/lib/lxcfs/cgroup/blkio/system.slice/blk-availability.service/blkio.io_merged_recursive', '/var/lib/lxcfs/cgroup/name=systemd/system.slice/apparmor.service/cgroup.clone_children', '/var/lib/lxcfs/cgroup/blkio/system.slice/systemd-random-seed.service/blkio.io_service_time_recursive', '/var/lib/lxcfs/cgroup/memory/system.slice/systemd-tmpfiles-setup.service/memory.stat', '/var/lib/lxcfs/cgroup/cpu,cpuacct/system.slice/systemd-user-sessions.service/tasks', '/var/lib/lxcfs/cgroup/cpu,cpuacct/system.slice/systemd-modules-load.service/cpu.cfs_quota_us', '/var/lib/lxcfs/cgroup/blkio/system.slice/lvm2-monitor.service/blkio.io_wait_time_recursive', '/var/lib/lxcfs/cgroup/memory/system.slice/snapd.seeded.service/memory.kmem.tcp.usage_in_bytes', '/var/lib/lxcfs/cgroup/memory/system.slice/kmod-static-nodes.service/memory.move_charge_at_immigrate', '/var/lib/lxcfs/cgroup/memory/system.slice/systemd-journal-flush.service/memory.usage_in_bytes', '/var/lib/lxcfs/cgroup/memory/system.slice/apparmor.service/memory.pressure_level', '/var/lib/lxcfs/cgroup/pids/system.slice/systemd-user-sessions.service', '/var/lib/lxcfs/cgroup/memory/system.slice/systemd-tmpfiles-setup.service/memory.limit_in_bytes', '/var/lib/lxcfs/cgroup/blkio/system.slice/systemd-tmpfiles-setup-dev.service/blkio.io_service_bytes', '/var/lib/lxcfs/cgroup/cpu,cpuacct/system.slice/kmod-static-nodes.service/notify_on_release', '/var/lib/lxcfs/cgroup/name=systemd/system.slice/console-setup.service/notify_on_release', '/var/lib/lxcfs/cgroup/cpu,cpuacct/system.slice/ebtables.service/cpu.cfs_period_us', '/var/lib/lxcfs/cgroup/pids/system.slice/apparmor.service/pids.current', '/var/lib/lxcfs/cgroup/blkio/system.slice/systemd-modules-load.service/blkio.sectors', '/var/lib/lxcfs/cgroup/memory/system.slice/systemd-remount-fs.service/memory.kmem.failcnt', '/var/lib/lxcfs/cgroup/cpu,cpuacct/system.slice/lvm2-monitor.service/cpu.shares', '/var/lib/lxcfs/cgroup/blkio/system.slice/systemd-machine-id-commit.service/blkio.sectors_recursive', '/var/lib/lxcfs/cgroup/blkio/system.slice/ebtables.service/blkio.time', '/var/lib/lxcfs/cgroup/blkio/system.slice/systemd-update-utmp.service/blkio.io_merged_recursive', '/var/lib/lxcfs/cgroup/blkio/system.slice/kmod-static-nodes.service/blkio.throttle.read_bps_device', '/var/lib/lxcfs/cgroup/name=systemd/user.slice/user-1000.slice/session-22.scope/cgroup.procs', '/var/lib/lxcfs/cgroup/blkio/system.slice/systemd-random-seed.service/blkio.io_service_bytes', '/var/lib/lxcfs/cgroup/devices/system.slice/systemd-fsck-root.service/devices.allow', '/var/lib/lxcfs/cgroup/cpu,cpuacct/system.slice/systemd-udev-trigger.service/cpuacct.usage', '/var/lib/apt/lists/security.ubuntu.com_ubuntu_dists_bionic-security_universe_binary-amd64_Packages', '/var/lib/lxcfs/cgroup/cpu,cpuacct/system.slice/systemd-udev-trigger.service/cpu.cfs_period_us', '/var/lib/lxcfs/cgroup/blkio/system.slice/systemd-tmpfiles-setup.service/tasks', '/var/lib/lxcfs/cgroup/blkio/system.slice/systemd-machine-id-commit.service/blkio.weight_device', '/var/lib/lxcfs/cgroup/memory/system.slice/apparmor.service/tasks', '/var/lib/lxcfs/cgroup/memory/system.slice/systemd-random-seed.service/memory.kmem.tcp.failcnt', '/var/lib/lxcfs/cgroup/blkio/system.slice/lxd-containers.service/blkio.weight', '/var/lib/lxcfs/cgroup/cpu,cpuacct/system.slice/systemd-fsck-root.service/cpuacct.usage', '/var/lib/lxcfs/cgroup/memory/system.slice/systemd-modules-load.service/cgroup.clone_children', '/var/lib/lxcfs/cgroup/memory/system.slice/systemd-tmpfiles-setup-dev.service', '/var/lib/lxcfs/cgroup/memory/system.slice/systemd-journal-flush.service/memory.pressure_level', '/var/lib/lxcfs/cgroup/pids/user.slice/user-1000.slice/session-13.scope/pids.events', '/var/lib/lxcfs/cgroup/devices/system.slice/systemd-udev-trigger.service/notify_on_release', '/var/lib/lxcfs/cgroup/memory/system.slice/systemd-fsck-root.service/memory.use_hierarchy', '/var/lib/lxcfs/cgroup/blkio/system.slice/snapd.apparmor.service/blkio.time', '/var/lib/lxcfs/cgroup/memory/system.slice/systemd-modules-load.service/memory.numa_stat', '/var/lib/lxcfs/cgroup/memory/system.slice/systemd-udev-trigger.service/memory.pressure_level', '/var/lib/lxcfs/cgroup/memory/system.slice/snapd.apparmor.service/memory.failcnt', '/var/lib/lxcfs/cgroup/memory/system.slice/snapd.apparmor.service/memory.stat', '/var/lib/lxcfs/cgroup/blkio/system.slice/lxd-containers.service/blkio.io_service_bytes', '/var/lib/lxcfs/cgroup/memory/system.slice/systemd-remount-fs.service/cgroup.procs', '/var/lib/lxcfs/cgroup/memory/system.slice/apparmor.service/memory.kmem.max_usage_in_bytes', '/var/lib/lxcfs/cgroup/blkio/system.slice/systemd-sysctl.service/blkio.io_serviced', '/var/lib/lxcfs/cgroup/memory/system.slice/blk-availability.service/cgroup.event_control', '/var/lib/lxcfs/cgroup/cpu,cpuacct/system.slice/console-setup.service/cpu.shares', '/var/lib/lxcfs/cgroup/memory/system.slice/systemd-update-utmp.service/memory.soft_limit_in_bytes', '/var/lib/lxcfs/cgroup/cpu,cpuacct/system.slice/grub-common.service/cgroup.clone_children', '/var/lib/lxcfs/cgroup/blkio/system.slice/console-setup.service/blkio.io_service_bytes', '/var/lib/ubuntu-advantage/apt-esm/var/cache/apt', '/var/lib/lxcfs/cgroup/cpu,cpuacct/system.slice/systemd-udev-trigger.service', '/var/lib/lxcfs/cgroup/blkio/system.slice/systemd-update-utmp.service/blkio.throttle.io_serviced', '/var/lib/lxcfs/cgroup/blkio/system.slice/apparmor.service/blkio.weight_device', '/var/lib/lxcfs/cgroup/blkio/system.slice/systemd-machine-id-commit.service/blkio.io_queued_recursive', '/var/lib/lxcfs/cgroup/blkio/system.slice/systemd-journal-flush.service/blkio.io_queued_recursive', '/var/lib/lxcfs/cgroup/cpu,cpuacct/system.slice/systemd-modules-load.service', '/var/lib/lxcfs/cgroup/memory/system.slice/keyboard-setup.service/memory.max_usage_in_bytes', '/var/lib/lxcfs/cgroup/memory/system.slice/systemd-udev-trigger.service/memory.kmem.usage_in_bytes', '/var/lib/lxcfs/cgroup/cpu,cpuacct/system.slice/lvm2-monitor.service/notify_on_release', '/var/lib/lxcfs/cgroup/name=systemd/system.slice/systemd-update-utmp.service/notify_on_release', '/var/lib/lxcfs/cgroup/blkio/system.slice/systemd-tmpfiles-setup-dev.service', '/var/lib/lxcfs/cgroup/blkio/system.slice/systemd-user-sessions.service/blkio.io_service_bytes', '/var/lib/lxcfs/cgroup/memory/system.slice/systemd-fsck-root.service/cgroup.event_control', '/var/lib/lxcfs/cgroup/memory/system.slice/console-setup.service/memory.oom_control', '/var/lib/lxcfs/cgroup/memory/system.slice/systemd-remount-fs.service/memory.kmem.max_usage_in_bytes', '/var/lib/lxcfs/cgroup/name=systemd/system.slice/kmod-static-nodes.service/tasks', '/var/lib/lxcfs/cgroup/memory/system.slice/systemd-fsck-root.service/cgroup.clone_children', '/var/lib/lxcfs/cgroup/blkio/system.slice/kmod-static-nodes.service/blkio.throttle.io_service_bytes', '/var/lib/lxcfs/cgroup/pids/system.slice/keyboard-setup.service/pids.events', '/var/lib/lxcfs/cgroup/cpu,cpuacct/system.slice/systemd-user-sessions.service/cpu.cfs_period_us', '/var/lib/lxcfs/cgroup/cpu,cpuacct/system.slice/keyboard-setup.service/cpuacct.usage_percpu_user', '/var/lib/lxcfs/cgroup/memory/system.slice/apparmor.service/notify_on_release', '/var/lib/lxcfs/cgroup/blkio/system.slice/systemd-modules-load.service/blkio.io_serviced_recursive', '/var/lib/lxcfs/cgroup/devices/system.slice/systemd-tmpfiles-setup.service/devices.list', '/var/lib/lxcfs/cgroup/cpu,cpuacct/system.slice/systemd-tmpfiles-setup-dev.service/cpu.cfs_quota_us', '/var/lib/lxcfs/cgroup/devices/system.slice/console-setup.service/devices.list', '/var/lib/lxcfs/cgroup/devices/system.slice/ebtables.service', '/var/lib/lxcfs/cgroup/memory/system.slice/ufw.service/memory.kmem.tcp.max_usage_in_bytes', '/var/lib/lxcfs/cgroup/blkio/system.slice/console-setup.service/blkio.throttle.write_iops_device', '/var/lib/lxcfs/cgroup/memory/system.slice/lxd-containers.service', '/var/lib/lxcfs/cgroup/memory/system.slice/keyboard-setup.service/memory.kmem.tcp.limit_in_bytes', '/var/lib/lxcfs/cgroup/name=systemd/system.slice/lvm2-monitor.service/notify_on_release', '/var/lib/lxcfs/cgroup/blkio/system.slice/systemd-udev-trigger.service', '/var/lib/lxcfs/cgroup/pids/system.slice/systemd-sysctl.service/pids.current', '/var/lib/lxcfs/cgroup/memory/system.slice/setvtrgb.service/memory.usage_in_bytes', '/var/lib/lxcfs/cgroup/cpu,cpuacct/system.slice/systemd-remount-fs.service/cpuacct.usage_all', '/var/lib/lxcfs/cgroup/cpu,cpuacct/system.slice/kmod-static-nodes.service/cpuacct.usage_all', '/var/lib/lxcfs/cgroup/blkio/system.slice/apparmor.service/blkio.throttle.write_iops_device', '/var/lib/lxcfs/cgroup/memory/system.slice/systemd-fsck-root.service/memory.kmem.tcp.failcnt', '/var/lib/lxcfs/cgroup/blkio/system.slice/systemd-update-utmp.service/blkio.io_wait_time_recursive', '/var/lib/lxcfs/cgroup/memory/system.slice/snapd.seeded.service/memory.move_charge_at_immigrate', '/var/lib/lxcfs/cgroup/cpu,cpuacct/system.slice/systemd-update-utmp.service/cpu.cfs_quota_us', '/var/lib/lxcfs/cgroup/cpu,cpuacct/system.slice/console-setup.service/cpuacct.usage_percpu', '/var/lib/lxcfs/cgroup/memory/system.slice/systemd-machine-id-commit.service/memory.kmem.slabinfo', '/var/lib/lxcfs/cgroup/name=systemd/system.slice/systemd-remount-fs.service/tasks', '/var/lib/lxcfs/cgroup/name=systemd/user.slice/user-1000.slice/session-22.scope/cgroup.clone_children', '/var/lib/lxcfs/cgroup/cpu,cpuacct/system.slice/systemd-tmpfiles-setup.service/cpu.stat', '/var/lib/lxcfs/cgroup/cpu,cpuacct/system.slice/systemd-random-seed.service/cpuacct.usage_percpu', '/var/lib/lxcfs/cgroup/cpu,cpuacct/system.slice/snapd.apparmor.service/cpuacct.usage_percpu', '/var/lib/lxcfs/cgroup/memory/system.slice/systemd-modules-load.service/memory.move_charge_at_immigrate', '/var/lib/lxcfs/cgroup/memory/system.slice/snapd.seeded.service/tasks', '/var/lib/lxcfs/cgroup/memory/system.slice/systemd-fsck-root.service/memory.max_usage_in_bytes', '/var/lib/lxcfs/cgroup/cpu,cpuacct/system.slice/systemd-user-sessions.service/cpu.stat', '/var/lib/lxcfs/cgroup/blkio/system.slice/grub-common.service/cgroup.clone_children', '/var/lib/lxcfs/cgroup/name=systemd/user.slice/user-1000.slice/session-13.scope/cgroup.procs', '/var/lib/lxcfs/cgroup/memory/system.slice/keyboard-setup.service/cgroup.procs', '/var/lib/lxcfs/cgroup/blkio/system.slice/apport.service/blkio.leaf_weight', '/var/lib/lxcfs/cgroup/memory/system.slice/snapd.seeded.service/memory.soft_limit_in_bytes', '/var/lib/lxcfs/cgroup/memory/system.slice/apport.service/cgroup.event_control', '/var/lib/lxcfs/cgroup/cpu,cpuacct/system.slice/ebtables.service/cpuacct.usage_percpu', '/var/lib/lxcfs/cgroup/memory/system.slice/snapd.apparmor.service/memory.pressure_level', '/var/lib/lxcfs/cgroup/devices/system.slice/systemd-journal-flush.service/tasks', '/var/lib/lxcfs/cgroup/blkio/system.slice/systemd-user-sessions.service/cgroup.procs', '/var/lib/lxcfs/cgroup/blkio/system.slice/systemd-tmpfiles-setup.service', '/var/lib/lxcfs/cgroup/memory/system.slice/systemd-machine-id-commit.service/cgroup.event_control', '/var/lib/lxcfs/cgroup/blkio/system.slice/kmod-static-nodes.service/blkio.throttle.write_iops_device', '/var/lib/lxcfs/cgroup/pids/system.slice/lxd-containers.service/pids.max', '/var/lib/lxcfs/cgroup/blkio/system.slice/systemd-tmpfiles-setup.service/blkio.throttle.io_serviced', '/var/lib/lxcfs/cgroup/name=systemd/system.slice/systemd-sysctl.service/cgroup.procs', '/var/lib/lxcfs/cgroup/name=systemd/system.slice/apparmor.service/cgroup.procs', '/var/lib/lxcfs/cgroup/devices/system.slice/snapd.apparmor.service/devices.allow', '/var/lib/lxcfs/cgroup/memory/system.slice/kmod-static-nodes.service/memory.kmem.tcp.usage_in_bytes', '/var/lib/lxcfs/cgroup/cpu,cpuacct/system.slice/systemd-sysctl.service/cpuacct.usage_user', '/var/lib/lxcfs/cgroup/memory/system.slice/blk-availability.service/memory.usage_in_bytes', '/var/lib/lxcfs/cgroup/blkio/system.slice/snapd.seeded.service/blkio.io_wait_time', '/var/lib/lxcfs/cgroup/devices/system.slice/systemd-update-utmp.service/cgroup.procs', '/var/lib/lxcfs/cgroup/blkio/system.slice/console-setup.service/blkio.io_service_bytes_recursive', '/var/lib/lxcfs/cgroup/blkio/system.slice/ebtables.service/blkio.sectors_recursive', '/var/lib/lxcfs/cgroup/memory/system.slice/systemd-remount-fs.service/memory.force_empty', '/var/lib/lxcfs/cgroup/devices/system.slice/keyboard-setup.service/tasks', '/var/lib/lxcfs/cgroup/blkio/system.slice/blk-availability.service/blkio.time_recursive', '/var/lib/lxcfs/cgroup/pids/system.slice/lvm2-monitor.service/pids.max', '/var/lib/lxcfs/cgroup/cpu,cpuacct/system.slice/kmod-static-nodes.service/cpu.stat', '/var/lib/lxcfs/cgroup/blkio/system.slice/systemd-update-utmp.service/blkio.throttle.read_bps_device', '/var/lib/lxcfs/cgroup/blkio/system.slice/blk-availability.service/blkio.io_service_time', '/var/lib/lxcfs/cgroup/blkio/system.slice/systemd-tmpfiles-setup.service/blkio.throttle.read_bps_device', '/var/lib/lxcfs/cgroup/cpu,cpuacct/system.slice/systemd-remount-fs.service/cpuacct.usage_sys', '/var/lib/lxcfs/cgroup/cpu,cpuacct/system.slice/systemd-udev-trigger.service/cgroup.clone_children', '/var/lib/lxcfs/cgroup/name=systemd/system.slice/apport.service/cgroup.procs', '/var/lib/ubuntu-advantage/apt-esm/var/lib/apt/lists/esm.ubuntu.com_infra_ubuntu_dists_bionic-infra-security_main_binary-amd64_Packages', '/var/lib/lxcfs/cgroup/devices/system.slice/grub-common.service/devices.allow', '/var/lib/lxcfs/cgroup/cpu,cpuacct/system.slice/lxd-containers.service/cpu.stat', '/var/lib/lxcfs/cgroup/blkio/system.slice/apport.service', '/var/lib/lxcfs/cgroup/blkio/system.slice/blk-availability.service/blkio.io_wait_time', '/var/lib/lxcfs/cgroup/blkio/system.slice/snapd.seeded.service/blkio.io_service_time_recursive', '/var/lib/lxcfs/cgroup/cpu,cpuacct/system.slice/ufw.service/cpu.cfs_quota_us', '/var/lib/lxcfs/cgroup/memory/system.slice/lvm2-monitor.service/memory.swappiness', '/var/lib/lxcfs/cgroup/devices/system.slice/systemd-user-sessions.service/cgroup.procs', '/var/lib/lxcfs/cgroup/blkio/system.slice/systemd-random-seed.service/blkio.reset_stats', '/var/lib/lxcfs/cgroup/blkio/system.slice/systemd-modules-load.service/blkio.io_service_time_recursive', '/var/lib/lxcfs/cgroup/pids/system.slice/systemd-update-utmp.service/pids.events', '/var/lib/lxcfs/cgroup/memory/system.slice/systemd-journal-flush.service/memory.numa_stat', '/var/lib/lxcfs/cgroup/memory/system.slice/console-setup.service/memory.kmem.tcp.max_usage_in_bytes', '/var/lib/lxcfs/cgroup/blkio/system.slice/systemd-udev-trigger.service/blkio.io_serviced_recursive', '/var/lib/lxcfs/cgroup/blkio/system.slice/systemd-update-utmp.service/tasks', '/var/lib/lxcfs/cgroup/devices/system.slice/kmod-static-nodes.service/cgroup.procs', '/var/lib/lxcfs/cgroup/memory/system.slice/blk-availability.service/memory.use_hierarchy', '/var/lib/lxcfs/cgroup/memory/system.slice/snapd.seeded.service/memory.kmem.failcnt', '/var/lib/lxcfs/cgroup/cpu,cpuacct/system.slice/grub-common.service/cgroup.procs', '/var/lib/lxcfs/cgroup/cpu,cpuacct/system.slice/grub-common.service/cpuacct.usage', '/var/lib/lxcfs/cgroup/memory/system.slice/setvtrgb.service/tasks', '/var/lib/lxcfs/cgroup/blkio/system.slice/apparmor.service', '/var/lib/lxcfs/cgroup/blkio/system.slice/systemd-fsck-root.service/blkio.sectors_recursive', '/var/lib/lxcfs/cgroup/cpu,cpuacct/system.slice/snapd.seeded.service/cpu.stat', '/var/lib/lxcfs/cgroup/devices/system.slice/systemd-random-seed.service/cgroup.clone_children', '/var/lib/lxcfs/cgroup/blkio/system.slice/snapd.seeded.service/cgroup.procs', '/var/lib/lxcfs/cgroup/memory/system.slice/lxd-containers.service/cgroup.procs', '/var/lib/lxcfs/cgroup/memory/system.slice/systemd-udev-trigger.service/memory.kmem.max_usage_in_bytes', '/var/lib/lxcfs/cgroup/cpu,cpuacct/system.slice/systemd-tmpfiles-setup-dev.service/cpu.shares', '/var/lib/lxcfs/cgroup/blkio/system.slice/systemd-fsck-root.service/blkio.throttle.io_service_bytes', '/var/lib/lxcfs/cgroup/pids/system.slice/lxd-containers.service', '/var/lib/lxcfs/cgroup/blkio/system.slice/systemd-journal-flush.service/blkio.io_serviced_recursive', '/var/lib/lxcfs/cgroup/pids/system.slice/systemd-update-utmp.service/notify_on_release', '/var/lib/lxcfs/cgroup/blkio/system.slice/systemd-tmpfiles-setup-dev.service/blkio.leaf_weight', '/var/lib/lxcfs/cgroup/blkio/system.slice/systemd-machine-id-commit.service/notify_on_release', '/var/lib/lxcfs/cgroup/blkio/system.slice/snapd.seeded.service/notify_on_release', '/var/lib/lxcfs/cgroup/memory/system.slice/snapd.apparmor.service/memory.kmem.tcp.failcnt', '/var/lib/lxcfs/cgroup/memory/system.slice/systemd-random-seed.service/cgroup.procs', '/var/lib/lxcfs/cgroup/blkio/system.slice/grub-common.service/blkio.reset_stats', '/var/lib/lxcfs/cgroup/memory/system.slice/apparmor.service/memory.limit_in_bytes', '/var/lib/lxcfs/cgroup/devices/system.slice/snapd.apparmor.service/devices.list', '/var/lib/lxcfs/cgroup/blkio/system.slice/apport.service/blkio.io_wait_time', '/var/lib/lxcfs/cgroup/blkio/system.slice/apparmor.service/blkio.io_serviced_recursive', '/var/lib/lxcfs/cgroup/memory/system.slice/systemd-random-seed.service/memory.stat', '/var/lib/lxcfs/cgroup/cpu,cpuacct/system.slice/systemd-tmpfiles-setup.service/cpu.shares', '/var/lib/lxcfs/cgroup/cpu,cpuacct/system.slice/ebtables.service/cgroup.clone_children', '/var/lib/lxcfs/cgroup/pids/system.slice/lxd-containers.service/cgroup.procs', '/var/lib/lxcfs/cgroup/blkio/system.slice/keyboard-setup.service/blkio.io_queued', '/var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_bionic-updates_universe_i18n_Translation-en', '/var/lib/lxcfs/cgroup/cpu,cpuacct/system.slice/lxd-containers.service/tasks', '/var/lib/lxcfs/cgroup/memory/system.slice/blk-availability.service/memory.kmem.usage_in_bytes', '/var/lib/lxcfs/cgroup/blkio/system.slice/snapd.seeded.service/blkio.io_serviced', '/var/lib/lxcfs/cgroup/cpu,cpuacct/system.slice/systemd-modules-load.service/cpuacct.usage_user', '/var/lib/lxcfs/cgroup/blkio/system.slice/ufw.service/notify_on_release', '/var/lib/lxcfs/cgroup/blkio/system.slice/systemd-remount-fs.service/blkio.io_wait_time', '/var/lib/lxcfs/cgroup/cpu,cpuacct/system.slice/console-setup.service/cpuacct.usage_user', '/var/lib/lxcfs/cgroup/blkio/system.slice/ufw.service', '/var/lib/lxcfs/cgroup/cpu,cpuacct/system.slice/systemd-journal-flush.service/cpuacct.usage_all', '/var/lib/lxcfs/cgroup/devices/system.slice/systemd-tmpfiles-setup.service/notify_on_release', '/var/lib/lxcfs/cgroup/cpu,cpuacct/system.slice/ebtables.service/cpuacct.usage_percpu_user', '/var/lib/lxcfs/cgroup/blkio/system.slice/blk-availability.service/blkio.sectors', '/var/lib/lxcfs/cgroup/blkio/system.slice/systemd-tmpfiles-setup.service/blkio.leaf_weight_device', '/var/lib/lxcfs/cgroup/blkio/system.slice/apport.service/blkio.time_recursive', '/var/lib/lxcfs/cgroup/pids/system.slice/systemd-modules-load.service', '/var/lib/lxcfs/cgroup/blkio/system.slice/systemd-user-sessions.service/blkio.io_merged_recursive', '/var/lib/lxcfs/cgroup/blkio/system.slice/console-setup.service/blkio.sectors', '/var/lib/lxcfs/cgroup/cpu,cpuacct/system.slice/systemd-user-sessions.service/cgroup.procs', '/var/lib/lxcfs/cgroup/blkio/system.slice/snapd.seeded.service/blkio.throttle.read_bps_device', '/var/lib/lxcfs/cgroup/memory/system.slice/setvtrgb.service/memory.numa_stat', '/var/lib/lxcfs/cgroup/cpu,cpuacct/system.slice/lvm2-monitor.service/cpuacct.usage_user', '/var/lib/lxcfs/cgroup/memory/system.slice/systemd-fsck-root.service/memory.kmem.tcp.limit_in_bytes', '/var/lib/lxcfs/cgroup/blkio/system.slice/snapd.seeded.service/blkio.io_merged_recursive', '/var/lib/lxcfs/cgroup/name=systemd/system.slice/systemd-user-sessions.service/notify_on_release', '/var/lib/lxcfs/cgroup/cpu,cpuacct/system.slice/systemd-udev-trigger.service/cpuacct.usage_user', '/var/lib/lxcfs/cgroup/blkio/system.slice/grub-common.service/blkio.weight_device', '/var/lib/lxcfs/cgroup/blkio/system.slice/systemd-random-seed.service/tasks', '/var/lib/lxcfs/cgroup/devices/system.slice/apport.service/devices.allow', '/var/lib/lxcfs/cgroup/blkio/system.slice/keyboard-setup.service/blkio.time_recursive', '/var/lib/lxcfs/cgroup/name=systemd/system.slice/systemd-tmpfiles-setup-dev.service/cgroup.clone_children', '/var/lib/lxcfs/cgroup/blkio/system.slice/systemd-random-seed.service/blkio.io_serviced', '/var/lib/lxcfs/cgroup/blkio/system.slice/systemd-tmpfiles-setup-dev.service/blkio.io_merged', '/var/lib/lxcfs/cgroup/cpu,cpuacct/system.slice/console-setup.service/cpu.cfs_quota_us', '/var/lib/lxcfs/cgroup/memory/system.slice/systemd-random-seed.service/tasks', '/var/lib/lxcfs/cgroup/blkio/system.slice/systemd-sysctl.service', '/var/lib/lxcfs/cgroup/cpu,cpuacct/system.slice/console-setup.service', '/var/lib/lxcfs/cgroup/blkio/system.slice/snapd.seeded.service/blkio.io_queued_recursive', '/var/lib/lxcfs/cgroup/cpu,cpuacct/system.slice/apport.service/cpuacct.usage_percpu_user', '/var/lib/lxcfs/cgroup/pids/system.slice/systemd-sysctl.service', '/var/lib/lxcfs/cgroup/memory/system.slice/console-setup.service/memory.stat', '/var/lib/lxcfs/cgroup/blkio/system.slice/systemd-user-sessions.service/notify_on_release', '/var/lib/lxcfs/cgroup/cpu,cpuacct/system.slice/ufw.service/cpu.cfs_period_us', '/var/lib/lxcfs/cgroup/blkio/system.slice/lxd-containers.service/blkio.io_service_bytes_recursive', '/var/lib/lxcfs/cgroup/devices/system.slice/systemd-sysctl.service/devices.list', '/var/lib/lxcfs/cgroup/memory/system.slice/systemd-update-utmp.service/memory.use_hierarchy', '/var/lib/lxcfs/cgroup/pids/system.slice/apport.service/pids.max', '/var/lib/lxcfs/cgroup/blkio/system.slice/grub-common.service/blkio.time_recursive', '/var/lib/lxcfs/cgroup/cpu,cpuacct/system.slice/snapd.seeded.service/cpu.shares', '/var/lib/lxcfs/cgroup/memory/system.slice/ebtables.service/memory.swappiness', '/var/lib/lxcfs/cgroup/cpu,cpuacct/system.slice/lvm2-monitor.service/cpu.stat', '/var/lib/lxcfs/cgroup/cpu,cpuacct/system.slice/lxd-containers.service/cgroup.clone_children', '/var/lib/lxcfs/cgroup/blkio/system.slice/apport.service/blkio.io_wait_time_recursive', '/var/lib/lxcfs/cgroup/pids/system.slice/lvm2-monitor.service/pids.events', '/var/lib/lxcfs/cgroup/name=systemd/system.slice/grub-common.service/cgroup.clone_children', '/var/lib/lxcfs/cgroup/memory/system.slice/ebtables.service/memory.kmem.slabinfo', '/var/lib/lxcfs/cgroup/devices/system.slice/apport.service/cgroup.clone_children', '/var/lib/lxcfs/cgroup/devices/system.slice/lxd-containers.service/devices.allow', '/var/lib/lxcfs/cgroup/memory/system.slice/systemd-modules-load.service/memory.max_usage_in_bytes', '/var/lib/lxcfs/cgroup/blkio/system.slice/apparmor.service/blkio.leaf_weight', '/var/lib/lxcfs/cgroup/name=systemd/system.slice/lvm2-monitor.service', '/var/lib/lxcfs/cgroup/blkio/system.slice/setvtrgb.service/blkio.io_wait_time_recursive', '/var/lib/lxcfs/cgroup/blkio/system.slice/systemd-machine-id-commit.service/blkio.throttle.read_bps_device', '/var/lib/ubuntu-advantage/apt-esm/var/cache/apt/pkgcache.bin', '/var/lib/lxcfs/cgroup/blkio/system.slice/systemd-user-sessions.service/blkio.time_recursive', '/var/lib/lxcfs/cgroup/blkio/system.slice/lxd-containers.service/blkio.io_merged_recursive', '/var/lib/lxcfs/cgroup/memory/system.slice/systemd-fsck-root.service/memory.kmem.tcp.max_usage_in_bytes', '/var/lib/lxcfs/cgroup/memory/system.slice/apparmor.service/memory.kmem.tcp.failcnt', '/var/lib/lxcfs/cgroup/memory/system.slice/systemd-fsck-root.service/memory.failcnt', '/var/lib/lxcfs/cgroup/memory/system.slice/lvm2-monitor.service/memory.kmem.tcp.failcnt', '/var/lib/lxcfs/cgroup/pids/system.slice/apport.service/notify_on_release', '/var/lib/ubuntu-advantage/apt-esm/etc/apt/sources.list.d', '/var/lib/lxcfs/cgroup/name=systemd/system.slice/systemd-udev-trigger.service/tasks', '/var/lib/lxcfs/cgroup/memory/system.slice/ebtables.service/memory.move_charge_at_immigrate', '/var/lib/lxcfs/cgroup/cpu,cpuacct/system.slice/systemd-tmpfiles-setup.service/cpuacct.usage_percpu', '/var/lib/lxcfs/cgroup/memory/system.slice/systemd-machine-id-commit.service/memory.kmem.tcp.failcnt', '/var/lib/lxcfs/cgroup/cpu,cpuacct/system.slice/systemd-machine-id-commit.service/cpuacct.usage_percpu_user', '/var/lib/lxcfs/cgroup/blkio/system.slice/systemd-udev-trigger.service/blkio.throttle.io_serviced', '/var/lib/lxcfs/cgroup/blkio/system.slice/systemd-machine-id-commit.service/blkio.io_queued', '/var/lib/lxcfs/cgroup/memory/system.slice/snapd.seeded.service/memory.kmem.tcp.max_usage_in_bytes', '/var/lib/lxcfs/cgroup/memory/system.slice/systemd-journal-flush.service', '/var/lib/lxcfs/cgroup/blkio/system.slice/systemd-user-sessions.service/blkio.io_service_bytes_recursive', '/var/lib/lxcfs/cgroup/blkio/system.slice/systemd-user-sessions.service/blkio.io_service_time', '/var/lib/lxcfs/cgroup/blkio/system.slice/systemd-random-seed.service/blkio.throttle.io_service_bytes', '/var/lib/lxcfs/cgroup/devices/system.slice/apparmor.service/devices.list', '/var/lib/lxcfs/cgroup/memory/system.slice/systemd-sysctl.service/memory.move_charge_at_immigrate', '/var/lib/lxcfs/cgroup/cpu,cpuacct/system.slice/systemd-random-seed.service/cpuacct.usage_percpu_user', '/var/lib/lxcfs/cgroup/cpu,cpuacct/system.slice/systemd-tmpfiles-setup-dev.service/cpuacct.usage_percpu', '/var/lib/lxcfs/cgroup/pids/system.slice/kmod-static-nodes.service/pids.max', '/var/lib/lxcfs/cgroup/memory/system.slice/console-setup.service/memory.move_charge_at_immigrate', '/var/lib/lxcfs/cgroup/memory/system.slice/apparmor.service/memory.stat', '/var/lib/lxcfs/cgroup/blkio/system.slice/ufw.service/blkio.sectors', '/var/lib/lxcfs/cgroup/blkio/system.slice/setvtrgb.service/blkio.io_merged', '/var/lib/lxcfs/cgroup/pids/system.slice/systemd-modules-load.service/pids.events', '/var/lib/lxcfs/cgroup/name=systemd/system.slice/kmod-static-nodes.service/cgroup.procs', '/var/lib/lxcfs/cgroup/memory/system.slice/snapd.apparmor.service/cgroup.event_control', '/var/lib/lxcfs/cgroup/memory/system.slice/systemd-sysctl.service/tasks', '/var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_bionic-updates_multiverse_i18n_Translation-en', '/var/lib/lxcfs/cgroup/name=systemd/system.slice/systemd-tmpfiles-setup.service/cgroup.clone_children', '/var/lib/lxcfs/cgroup/memory/system.slice/systemd-tmpfiles-setup.service/memory.usage_in_bytes', '/var/lib/lxcfs/cgroup/devices/system.slice/grub-common.service/tasks', '/var/lib/lxcfs/cgroup/memory/system.slice/grub-common.service/cgroup.clone_children', '/var/lib/lxcfs/cgroup/blkio/system.slice/ufw.service/blkio.throttle.io_service_bytes', '/var/lib/lxcfs/cgroup/memory/system.slice/apport.service/memory.max_usage_in_bytes', '/var/lib/lxcfs/cgroup/devices/system.slice/ufw.service/devices.allow', '/var/lib/lxcfs/cgroup/pids/system.slice/grub-common.service/notify_on_release', '/var/lib/lxcfs/cgroup/memory/system.slice/snapd.seeded.service/memory.pressure_level', '/var/lib/lxcfs/cgroup/cpu,cpuacct/system.slice/snapd.seeded.service/cpuacct.usage_all', '/var/lib/lxcfs/cgroup/pids/system.slice/lvm2-monitor.service/cgroup.clone_children', '/var/lib/lxcfs/cgroup/blkio/system.slice/systemd-modules-load.service/blkio.throttle.read_bps_device', '/var/lib/lxcfs/cgroup/memory/system.slice/apparmor.service/memory.force_empty', '/var/lib/lxcfs/cgroup/blkio/system.slice/grub-common.service/blkio.throttle.write_iops_device', '/var/lib/lxcfs/cgroup/devices/system.slice/blk-availability.service/devices.list', '/var/lib/lxcfs/cgroup/cpu,cpuacct/system.slice/ufw.service/cpu.shares', '/var/lib/lxcfs/cgroup/memory/system.slice/keyboard-setup.service', '/var/lib/lxcfs/cgroup/memory/system.slice/systemd-fsck-root.service/memory.kmem.max_usage_in_bytes', '/var/lib/lxcfs/cgroup/devices/system.slice/systemd-udev-trigger.service/cgroup.procs', '/var/lib/lxcfs/cgroup/blkio/system.slice/keyboard-setup.service/blkio.sectors_recursive', '/var/lib/lxcfs/cgroup/memory/system.slice/systemd-tmpfiles-setup.service/memory.kmem.max_usage_in_bytes', '/var/lib/lxcfs/cgroup/blkio/system.slice/apport.service/blkio.io_service_time_recursive', '/var/lib/lxcfs/cgroup/devices/system.slice/systemd-machine-id-commit.service/cgroup.procs', '/var/lib/lxcfs/cgroup/blkio/system.slice/systemd-journal-flush.service/notify_on_release', '/var/lib/lxcfs/cgroup/cpu,cpuacct/system.slice/systemd-tmpfiles-setup-dev.service/cgroup.clone_children', '/var/lib/lxcfs/cgroup/blkio/system.slice/console-setup.service/blkio.sectors_recursive', '/var/lib/lxcfs/cgroup/blkio/system.slice/grub-common.service/blkio.throttle.read_iops_device', '/var/lib/lxcfs/cgroup/blkio/system.slice/systemd-sysctl.service/blkio.time_recursive', '/var/lib/lxcfs/cgroup/memory/system.slice/lxd-containers.service/memory.kmem.usage_in_bytes', '/var/lib/lxcfs/cgroup/memory/system.slice/ufw.service/memory.kmem.usage_in_bytes', '/var/lib/lxcfs/cgroup/cpu,cpuacct/system.slice/blk-availability.service/cpu.stat', '/var/lib/lxcfs/cgroup/memory/system.slice/keyboard-setup.service/memory.usage_in_bytes', '/var/lib/lxcfs/cgroup/memory/system.slice/lxd-containers.service/memory.move_charge_at_immigrate', '/var/lib/lxcfs/cgroup/blkio/system.slice/snapd.apparmor.service/blkio.io_wait_time', '/var/lib/lxcfs/cgroup/blkio/system.slice/systemd-tmpfiles-setup-dev.service/blkio.weight', '/var/lib/lxcfs/cgroup/devices/system.slice/snapd.apparmor.service/notify_on_release', '/var/lib/lxcfs/cgroup/blkio/system.slice/systemd-update-utmp.service/notify_on_release', '/var/lib/lxcfs/cgroup/pids/user.slice/user-1000.slice/session-22.scope/cgroup.clone_children', '/var/lib/lxcfs/cgroup/blkio/system.slice/snapd.seeded.service/blkio.leaf_weight', '/var/lib/ubuntu-advantage/status.json', '/var/lib/lxcfs/cgroup/pids/system.slice/ebtables.service/cgroup.procs', '/var/lib/lxcfs/cgroup/blkio/system.slice/systemd-fsck-root.service/blkio.throttle.write_bps_device', '/var/lib/lxcfs/cgroup/memory/system.slice/systemd-machine-id-commit.service/memory.kmem.tcp.limit_in_bytes', '/var/lib/lxcfs/cgroup/blkio/system.slice/apparmor.service/blkio.throttle.io_service_bytes', '/var/lib/lxcfs/cgroup/blkio/system.slice/systemd-tmpfiles-setup.service/blkio.io_queued_recursive', '/var/lib/lxcfs/cgroup/name=systemd/system.slice/systemd-journal-flush.service/cgroup.clone_children', '/var/lib/lxcfs/cgroup/memory/system.slice/keyboard-setup.service/memory.numa_stat', '/var/lib/lxcfs/cgroup/memory/system.slice/systemd-tmpfiles-setup-dev.service/memory.soft_limit_in_bytes', '/var/lib/lxcfs/cgroup/blkio/system.slice/keyboard-setup.service/blkio.io_wait_time_recursive', '/var/lib/lxcfs/cgroup/memory/system.slice/systemd-update-utmp.service/memory.kmem.tcp.usage_in_bytes', '/var/lib/lxcfs/cgroup/name=systemd/system.slice/ebtables.service', '/var/lib/lxcfs/cgroup/devices/system.slice/snapd.apparmor.service/cgroup.procs', '/var/lib/lxcfs/cgroup/blkio/system.slice/ebtables.service/blkio.weight', '/var/lib/lxcfs/cgroup/cpu,cpuacct/system.slice/console-setup.service/cpuacct.stat', '/var/lib/lxcfs/cgroup/memory/system.slice/snapd.apparmor.service/tasks', '/var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_bionic_universe_binary-amd64_Packages', '/var/lib/lxcfs/cgroup/memory/system.slice/lxd-containers.service/memory.kmem.failcnt', '/var/lib/lxcfs/cgroup/blkio/system.slice/blk-availability.service/blkio.io_wait_time_recursive', '/var/lib/lxcfs/cgroup/cpu,cpuacct/system.slice/systemd-udev-trigger.service/cpuacct.usage_percpu_sys', '/var/lib/lxcfs/cgroup/blkio/system.slice/lxd-containers.service', '/var/lib/lxcfs/cgroup/blkio/system.slice/systemd-random-seed.service/blkio.io_merged_recursive', '/var/lib/lxcfs/cgroup/memory/system.slice/snapd.seeded.service/memory.swappiness', '/var/lib/lxcfs/cgroup/blkio/system.slice/systemd-machine-id-commit.service/blkio.leaf_weight', '/var/lib/lxcfs/cgroup/memory/system.slice/ebtables.service/memory.oom_control', '/var/lib/lxcfs/cgroup/devices/system.slice/systemd-tmpfiles-setup-dev.service/devices.list', '/var/lib/lxcfs/cgroup/cpu,cpuacct/system.slice/blk-availability.service/cpuacct.usage', '/var/lib/lxcfs/cgroup/devices/system.slice/systemd-fsck-root.service/cgroup.clone_children', '/var/lib/lxcfs/cgroup/blkio/system.slice/grub-common.service/blkio.io_queued_recursive', '/var/lib/lxcfs/cgroup/cpu,cpuacct/system.slice/systemd-tmpfiles-setup-dev.service', '/var/lib/lxcfs/cgroup/memory/system.slice/snapd.apparmor.service/memory.swappiness', '/var/lib/lxcfs/cgroup/cpu,cpuacct/system.slice/blk-availability.service/notify_on_release', '/var/lib/lxcfs/cgroup/memory/system.slice/setvtrgb.service/cgroup.procs', '/var/lib/lxcfs/cgroup/pids/system.slice/systemd-fsck-root.service/pids.max', '/var/lib/lxcfs/cgroup/memory/system.slice/systemd-fsck-root.service/memory.numa_stat', '/var/lib/lxcfs/cgroup/pids/system.slice/lvm2-monitor.service/cgroup.procs', '/var/lib/lxcfs/cgroup/memory/system.slice/apport.service/memory.swappiness', '/var/lib/lxcfs/cgroup/memory/system.slice/systemd-update-utmp.service/memory.oom_control', '/var/lib/lxcfs/cgroup/name=systemd/system.slice/systemd-fsck-root.service/cgroup.procs', '/var/lib/lxcfs/cgroup/blkio/system.slice/systemd-journal-flush.service/blkio.io_service_bytes_recursive', '/var/lib/lxcfs/cgroup/cpu,cpuacct/system.slice/systemd-journal-flush.service/cpuacct.stat', '/var/lib/lxcfs/cgroup/memory/system.slice/blk-availability.service/memory.kmem.slabinfo', '/var/lib/lxcfs/cgroup/pids/system.slice/setvtrgb.service/tasks', '/var/lib/lxcfs/cgroup/blkio/system.slice/systemd-modules-load.service/cgroup.clone_children', '/var/lib/lxcfs/cgroup/blkio/system.slice/systemd-modules-load.service/blkio.weight_device', '/var/lib/lxcfs/cgroup/blkio/system.slice/systemd-fsck-root.service/blkio.io_service_bytes', '/var/lib/lxcfs/cgroup/pids/system.slice/blk-availability.service/cgroup.procs', '/var/lib/lxcfs/cgroup/blkio/system.slice/systemd-fsck-root.service/notify_on_release', '/var/lib/lxcfs/cgroup/memory/system.slice/lvm2-monitor.service/memory.usage_in_bytes', '/var/lib/lxcfs/cgroup/blkio/system.slice/systemd-tmpfiles-setup.service/notify_on_release', '/var/lib/lxcfs/cgroup/devices/system.slice/systemd-journal-flush.service/cgroup.clone_children', '/var/lib/lxcfs/cgroup/blkio/system.slice/snapd.apparmor.service/blkio.io_service_bytes', '/var/lib/lxcfs/cgroup/name=systemd/system.slice/systemd-sysctl.service/cgroup.clone_children', '/var/lib/lxcfs/cgroup/cpu,cpuacct/system.slice/systemd-random-seed.service/cpuacct.usage_all', '/var/lib/lxcfs/cgroup/cpu,cpuacct/system.slice/console-setup.service/cpu.stat', '/var/lib/lxcfs/cgroup/cpu,cpuacct/system.slice/systemd-user-sessions.service/notify_on_release', '/var/lib/lxcfs/cgroup/memory/system.slice/kmod-static-nodes.service/memory.failcnt', '/var/lib/lxcfs/cgroup/memory/system.slice/systemd-fsck-root.service/memory.oom_control', '/var/lib/lxcfs/cgroup/blkio/system.slice/systemd-update-utmp.service/blkio.io_queued_recursive', '/var/lib/lxcfs/cgroup/blkio/system.slice/setvtrgb.service/blkio.io_serviced_recursive', '/var/lib/lxcfs/cgroup/devices/system.slice/blk-availability.service/cgroup.clone_children', '/var/lib/lxcfs/cgroup/cpu,cpuacct/system.slice/blk-availability.service/cpuacct.usage_percpu_user', '/var/lib/lxcfs/cgroup/blkio/system.slice/kmod-static-nodes.service/blkio.sectors_recursive', '/var/lib/lxcfs/cgroup/pids/system.slice/systemd-random-seed.service/pids.current', '/var/lib/lxcfs/cgroup/pids/system.slice/systemd-tmpfiles-setup.service/pids.events', '/var/lib/lxcfs/cgroup/blkio/system.slice/keyboard-setup.service/blkio.sectors', '/var/lib/lxcfs/cgroup/cpu,cpuacct/system.slice/systemd-udev-trigger.service/cpu.stat', '/var/lib/lxcfs/cgroup/cpu,cpuacct/system.slice/kmod-static-nodes.service/cpu.shares', '/var/lib/lxcfs/cgroup/memory/system.slice/systemd-udev-trigger.service/memory.kmem.tcp.failcnt', '/var/lib/lxcfs/cgroup/blkio/system.slice/kmod-static-nodes.service/blkio.io_merged_recursive', '/var/lib/lxcfs/cgroup/devices/system.slice/systemd-remount-fs.service/cgroup.procs', '/var/lib/lxcfs/cgroup/memory/system.slice/systemd-update-utmp.service/cgroup.clone_children', '/var/lib/lxcfs/cgroup/blkio/system.slice/systemd-modules-load.service/blkio.io_service_time', '/var/lib/lxcfs/cgroup/memory/system.slice/blk-availability.service/memory.soft_limit_in_bytes', '/var/lib/lxcfs/cgroup/cpu,cpuacct/system.slice/lxd-containers.service/cpuacct.usage_percpu_sys', '/var/lib/lxcfs/cgroup/blkio/system.slice/systemd-fsck-root.service/blkio.throttle.io_serviced', '/var/lib/lxcfs/cgroup/blkio/system.slice/systemd-udev-trigger.service/blkio.io_merged', '/var/lib/lxcfs/cgroup/pids/system.slice/setvtrgb.service/pids.events', '/var/lib/lxcfs/cgroup/memory/system.slice/systemd-remount-fs.service/memory.kmem.limit_in_bytes', '/var/lib/lxcfs/cgroup/cpu,cpuacct/system.slice/systemd-update-utmp.service/cpu.cfs_period_us', '/var/lib/lxcfs/cgroup/devices/system.slice/systemd-modules-load.service/devices.list', '/var/lib/lxcfs/cgroup/cpu,cpuacct/system.slice/apport.service/notify_on_release', '/var/lib/lxcfs/cgroup/pids/system.slice/keyboard-setup.service', '/var/lib/lxcfs/cgroup/devices/system.slice/kmod-static-nodes.service', '/var/lib/lxcfs/cgroup/cpu,cpuacct/system.slice/systemd-random-seed.service/cpuacct.usage', '/var/lib/lxcfs/cgroup/cpu,cpuacct/system.slice/apparmor.service/cpuacct.stat', '/var/lib/lxcfs/cgroup/devices/system.slice/systemd-machine-id-commit.service/cgroup.clone_children', '/var/lib/lxcfs/cgroup/pids/system.slice/systemd-random-seed.service/cgroup.procs', '/var/lib/lxcfs/cgroup/blkio/system.slice/systemd-sysctl.service/blkio.weight_device', '/var/lib/lxcfs/cgroup/memory/system.slice/systemd-user-sessions.service/cgroup.clone_children', '/var/lib/lxcfs/cgroup/cpu,cpuacct/system.slice/apport.service/cpu.cfs_period_us', '/var/lib/lxcfs/cgroup/pids/system.slice/snapd.seeded.service', '/var/lib/lxcfs/cgroup/blkio/system.slice/systemd-fsck-root.service/blkio.leaf_weight', '/var/lib/lxcfs/cgroup/blkio/system.slice/systemd-update-utmp.service/blkio.leaf_weight_device', '/var/lib/lxcfs/cgroup/memory/system.slice/snapd.seeded.service/memory.numa_stat', '/var/lib/lxcfs/cgroup/memory/system.slice/snapd.apparmor.service/memory.usage_in_bytes', '/var/lib/lxcfs/cgroup/memory/system.slice/systemd-random-seed.service/memory.numa_stat', '/var/lib/lxcfs/cgroup/devices/system.slice/systemd-modules-load.service/devices.deny', '/var/lib/lxcfs/cgroup/pids/system.slice/systemd-fsck-root.service/pids.events', '/var/lib/lxcfs/cgroup/memory/system.slice/grub-common.service/memory.kmem.max_usage_in_bytes', '/var/lib/lxcfs/cgroup/memory/system.slice/systemd-update-utmp.service/memory.kmem.failcnt', '/var/lib/lxcfs/cgroup/cpu,cpuacct/system.slice/systemd-remount-fs.service/tasks', '/var/lib/lxcfs/cgroup/cpu,cpuacct/system.slice/apport.service/cgroup.clone_children', '/var/lib/lxcfs/cgroup/blkio/system.slice/snapd.apparmor.service/blkio.time_recursive', '/var/lib/lxcfs/cgroup/memory/system.slice/systemd-remount-fs.service/memory.stat', '/var/lib/lxcfs/cgroup/blkio/system.slice/systemd-udev-trigger.service/cgroup.procs', '/var/lib/lxcfs/cgroup/name=systemd/system.slice/systemd-tmpfiles-setup-dev.service/cgroup.procs', '/var/lib/lxcfs/cgroup/devices/system.slice/systemd-random-seed.service', '/var/lib/lxcfs/cgroup/blkio/system.slice/console-setup.service/blkio.throttle.io_service_bytes', '/var/lib/lxcfs/cgroup/blkio/system.slice/setvtrgb.service', '/var/lib/lxcfs/cgroup/cpu,cpuacct/system.slice/apparmor.service/cgroup.clone_children', '/var/lib/lxcfs/cgroup/cpu,cpuacct/system.slice/systemd-user-sessions.service/cpuacct.stat', '/var/lib/lxcfs/cgroup/cpu,cpuacct/system.slice/apport.service', '/var/lib/lxcfs/cgroup/blkio/system.slice/snapd.apparmor.service/tasks', '/var/lib/lxcfs/cgroup/pids/system.slice/grub-common.service/cgroup.clone_children', '/var/lib/lxcfs/cgroup/memory/system.slice/systemd-tmpfiles-setup-dev.service/memory.kmem.tcp.limit_in_bytes', '/var/lib/lxcfs/cgroup/blkio/system.slice/apport.service/notify_on_release', '/var/lib/lxcfs/cgroup/devices/system.slice/systemd-random-seed.service/devices.list', '/var/lib/lxcfs/cgroup/cpu,cpuacct/system.slice/systemd-journal-flush.service/cpu.shares', '/var/lib/lxcfs/cgroup/blkio/system.slice/systemd-update-utmp.service/blkio.time_recursive', '/var/lib/lxcfs/cgroup/memory/system.slice/snapd.seeded.service/memory.oom_control', '/var/lib/lxcfs/cgroup/blkio/system.slice/lvm2-monitor.service/blkio.io_service_time', '/var/lib/lxcfs/cgroup/memory/system.slice/systemd-udev-trigger.service/memory.kmem.tcp.max_usage_in_bytes', '/var/lib/lxcfs/cgroup/memory/system.slice/systemd-sysctl.service/memory.kmem.limit_in_bytes', '/var/lib/lxcfs/cgroup/blkio/system.slice/lvm2-monitor.service/blkio.throttle.read_iops_device', '/var/lib/lxcfs/cgroup/blkio/system.slice/systemd-machine-id-commit.service/blkio.throttle.io_service_bytes', '/var/lib/lxcfs/cgroup/cpu,cpuacct/system.slice/setvtrgb.service/cpuacct.usage_percpu_sys', '/var/lib/lxcfs/cgroup/memory/system.slice/systemd-random-seed.service/memory.kmem.usage_in_bytes', '/var/lib/lxcfs/cgroup/blkio/system.slice/systemd-sysctl.service/blkio.io_service_bytes_recursive', '/var/lib/lxcfs/cgroup/name=systemd/system.slice/systemd-random-seed.service/notify_on_release', '/var/lib/lxcfs/cgroup/cpu,cpuacct/system.slice/systemd-sysctl.service', '/var/lib/lxcfs/cgroup/blkio/system.slice/kmod-static-nodes.service/tasks', '/var/lib/lxcfs/cgroup/blkio/system.slice/systemd-tmpfiles-setup-dev.service/blkio.io_serviced', '/var/lib/lxcfs/cgroup/blkio/system.slice/systemd-random-seed.service/blkio.sectors', '/var/lib/lxcfs/cgroup/cpu,cpuacct/system.slice/snapd.apparmor.service/cpu.shares', '/var/lib/lxcfs/cgroup/pids/user.slice/user-1000.slice/session-13.scope/tasks', '/var/lib/lxcfs/cgroup/name=systemd/system.slice/snapd.apparmor.service/tasks', '/var/lib/lxcfs/cgroup/blkio/system.slice/snapd.seeded.service', '/var/lib/lxcfs/cgroup/memory/system.slice/systemd-tmpfiles-setup-dev.service/memory.usage_in_bytes', '/var/lib/lxcfs/cgroup/memory/system.slice/setvtrgb.service/memory.swappiness', '/var/lib/lxcfs/cgroup/blkio/system.slice/snapd.apparmor.service/blkio.io_queued', '/var/lib/lxcfs/cgroup/blkio/system.slice/systemd-random-seed.service/blkio.leaf_weight', '/var/lib/lxcfs/cgroup/cpu,cpuacct/system.slice/systemd-udev-trigger.service/cpuacct.stat', '/var/lib/lxcfs/cgroup/blkio/system.slice/keyboard-setup.service/blkio.io_service_time_recursive', '/var/lib/lxcfs/cgroup/cpu,cpuacct/system.slice/lvm2-monitor.service/cpuacct.usage_percpu', '/var/lib/lxcfs/cgroup/blkio/system.slice/systemd-modules-load.service/blkio.throttle.io_service_bytes', '/var/lib/lxcfs/cgroup/cpu,cpuacct/system.slice/systemd-tmpfiles-setup.service/cgroup.procs', '/var/lib/lxcfs/cgroup/cpu,cpuacct/system.slice/lxd-containers.service/cpuacct.usage_percpu_user', '/var/lib/lxcfs/cgroup/cpu,cpuacct/system.slice/systemd-tmpfiles-setup.service/cpuacct.usage_percpu_sys', '/var/lib/lxcfs/cgroup/cpu,cpuacct/system.slice/systemd-user-sessions.service/cpuacct.usage_percpu_sys', '/var/lib/lxcfs/cgroup/memory/system.slice/console-setup.service/memory.swappiness', '/var/lib/lxcfs/cgroup/memory/system.slice/lxd-containers.service/notify_on_release', '/var/lib/lxcfs/cgroup/blkio/system.slice/systemd-sysctl.service/blkio.io_service_time', '/var/lib/lxcfs/cgroup/cpu,cpuacct/system.slice/systemd-tmpfiles-setup.service/cpuacct.usage_sys', '/var/lib/lxcfs/cgroup/blkio/system.slice/ufw.service/blkio.io_serviced_recursive', '/var/lib/lxcfs/cgroup/blkio/system.slice/setvtrgb.service/blkio.weight_device', '/var/lib/lxcfs/cgroup/blkio/system.slice/systemd-machine-id-commit.service/blkio.io_serviced_recursive', '/var/lib/lxcfs/cgroup/cpu,cpuacct/system.slice/console-setup.service/notify_on_release', '/var/lib/lxcfs/cgroup/blkio/system.slice/systemd-journal-flush.service/blkio.io_merged', '/var/lib/lxcfs/cgroup/cpu,cpuacct/system.slice/systemd-tmpfiles-setup.service/cpuacct.usage', '/var/lib/lxcfs/cgroup/pids/system.slice/keyboard-setup.service/pids.current', '/var/lib/lxcfs/cgroup/blkio/system.slice/ufw.service/blkio.throttle.write_bps_device', '/var/lib/lxcfs/cgroup/name=systemd/system.slice/console-setup.service/cgroup.clone_children', '/var/lib/lxcfs/cgroup/pids/system.slice/apport.service/pids.events', '/var/lib/lxcfs/cgroup/blkio/system.slice/ufw.service/blkio.io_service_time', '/var/lib/lxcfs/cgroup/memory/system.slice/systemd-modules-load.service/memory.kmem.max_usage_in_bytes', '/var/lib/lxcfs/cgroup/blkio/system.slice/systemd-tmpfiles-setup-dev.service/cgroup.procs', '/var/lib/lxcfs/cgroup/blkio/system.slice/apparmor.service/blkio.io_serviced', '/var/lib/lxcfs/cgroup/memory/system.slice/grub-common.service/memory.pressure_level', '/var/lib/lxcfs/cgroup/pids/system.slice/systemd-machine-id-commit.service', '/var/lib/lxcfs/cgroup/memory/system.slice/systemd-tmpfiles-setup.service/memory.kmem.slabinfo', '/var/lib/lxcfs/cgroup/cpu,cpuacct/system.slice/setvtrgb.service/cpuacct.usage_user', '/var/lib/lxcfs/cgroup/pids/system.slice/grub-common.service/pids.current', '/var/lib/lxcfs/cgroup/memory/system.slice/systemd-sysctl.service/memory.failcnt', '/var/lib/lxcfs/cgroup/devices/system.slice/keyboard-setup.service/devices.list', '/var/lib/lxcfs/cgroup/blkio/system.slice/systemd-update-utmp.service/cgroup.clone_children', '/var/lib/lxcfs/cgroup/pids/system.slice/systemd-modules-load.service/cgroup.procs', '/var/lib/lxcfs/cgroup/blkio/system.slice/systemd-random-seed.service/blkio.throttle.io_serviced', '/var/lib/lxcfs/cgroup/cpu,cpuacct/system.slice/lxd-containers.service/cpu.cfs_period_us', '/var/lib/lxcfs/cgroup/memory/system.slice/apparmor.service/memory.failcnt', '/var/lib/lxcfs/cgroup/pids/system.slice/ufw.service/cgroup.procs', '/var/lib/lxcfs/cgroup/cpu,cpuacct/system.slice/keyboard-setup.service/cgroup.procs', '/var/lib/lxcfs/cgroup/cpu,cpuacct/system.slice/blk-availability.service/cpuacct.usage_percpu_sys', '/var/lib/lxcfs/cgroup/cpu,cpuacct/system.slice/ufw.service/cpu.stat', '/var/lib/lxcfs/cgroup/cpu,cpuacct/system.slice/lxd-containers.service/cpuacct.stat', '/var/lib/lxcfs/cgroup/pids/system.slice/systemd-tmpfiles-setup.service/cgroup.clone_children', '/var/lib/lxcfs/cgroup/memory/system.slice/systemd-sysctl.service/memory.use_hierarchy', '/var/lib/lxcfs/cgroup/blkio/system.slice/apport.service/blkio.leaf_weight_device', '/var/lib/lxcfs/cgroup/memory/system.slice/console-setup.service/memory.pressure_level', '/var/lib/lxcfs/cgroup/memory/system.slice/systemd-udev-trigger.service/cgroup.event_control', '/var/lib/lxcfs/cgroup/blkio/system.slice/snapd.apparmor.service/blkio.weight_device', '/var/lib/lxcfs/cgroup/blkio/system.slice/systemd-user-sessions.service/blkio.time', '/var/lib/lxcfs/cgroup/blkio/system.slice/blk-availability.service/notify_on_release', '/var/lib/lxcfs/cgroup/memory/system.slice/systemd-machine-id-commit.service/memory.kmem.failcnt', '/var/lib/lxcfs/cgroup/memory/system.slice/snapd.seeded.service/memory.kmem.max_usage_in_bytes', '/var/lib/lxcfs/cgroup/blkio/system.slice/ebtables.service/blkio.io_service_bytes_recursive', '/var/lib/lxcfs/cgroup/pids/system.slice/systemd-tmpfiles-setup.service/tasks', '/var/lib/lxcfs/cgroup/cpu,cpuacct/system.slice/systemd-random-seed.service/cpu.cfs_quota_us', '/var/lib/lxcfs/cgroup/memory/system.slice/ufw.service/memory.kmem.tcp.usage_in_bytes', '/var/lib/lxcfs/cgroup/pids/system.slice/console-setup.service/cgroup.clone_children', '/var/lib/lxcfs/cgroup/cpu,cpuacct/system.slice/snapd.seeded.service/tasks', '/var/lib/lxcfs/cgroup/memory/system.slice/lvm2-monitor.service/cgroup.event_control', '/var/lib/lxcfs/cgroup/cpu,cpuacct/system.slice/systemd-random-seed.service/cpu.stat', '/var/lib/lxcfs/cgroup/memory/system.slice/systemd-fsck-root.service/memory.move_charge_at_immigrate', '/var/lib/lxcfs/cgroup/cpu,cpuacct/system.slice/lvm2-monitor.service/cgroup.procs', '/var/lib/lxcfs/cgroup/cpu,cpuacct/system.slice/systemd-machine-id-commit.service', '/var/lib/lxcfs/cgroup/blkio/system.slice/systemd-journal-flush.service/blkio.time_recursive', '/var/lib/lxcfs/cgroup/cpu,cpuacct/system.slice/lvm2-monitor.service/cpuacct.usage_percpu_user', '/var/lib/lxcfs/cgroup/memory/system.slice/systemd-tmpfiles-setup-dev.service/memory.move_charge_at_immigrate', '/var/lib/lxcfs/cgroup/cpu,cpuacct/system.slice/systemd-update-utmp.service/cpuacct.usage_percpu', '/var/lib/lxcfs/cgroup/blkio/system.slice/blk-availability.service/blkio.time', '/var/lib/lxcfs/cgroup/memory/system.slice/snapd.seeded.service/notify_on_release', '/var/lib/lxcfs/cgroup/blkio/system.slice/lvm2-monitor.service/blkio.io_service_bytes_recursive', '/var/lib/lxcfs/cgroup/blkio/system.slice/systemd-user-sessions.service/blkio.throttle.write_bps_device', '/var/lib/lxcfs/cgroup/memory/system.slice/systemd-tmpfiles-setup.service/cgroup.event_control', '/var/lib/lxcfs/cgroup/blkio/system.slice/keyboard-setup.service/blkio.throttle.read_bps_device', '/var/lib/lxcfs/cgroup/devices/system.slice/grub-common.service/notify_on_release', '/var/lib/lxcfs/cgroup/pids/system.slice/systemd-journal-flush.service', '/var/lib/ubuntu-advantage/apt-esm/var/cache', '/var/lib/lxcfs/cgroup/cpu,cpuacct/system.slice/systemd-tmpfiles-setup-dev.service/cpuacct.usage_all', '/var/lib/lxcfs/cgroup/memory/syst em.slice/systemd-machine-id-commit.service/memory.kmem.max_usage_in_bytes', '/var/lib/lxcfs/cgroup/blkio/system.slice/systemd-random-seed.service/blkio.weight', '/var/lib/lxcfs/cgroup/pids/system.slice/snapd.seeded.service/pids.max', '/var/lib/lxcfs/cgroup/name=systemd/system.slice/kmod-static-nodes.service/cgroup.clone_children', '/var/lib/lxcfs/cgroup/pids/system.slice/kmod-static-nodes.service/pids.current', '/var/lib/lxcfs/cgroup/pids/system.slice/systemd-update-utmp.service/cgroup.clone_children', '/var/lib/lxcfs/cgroup/blkio/system.slice/ufw.service/blkio.io_service_bytes', '/var/lib/lxcfs/cgroup/blkio/system.slice/snapd.apparm ``` Removing lxcfs ``` ['/var/lib/ubuntu-advantage/apt-esm/etc/apt/trusted.gpg.d', '/var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_bionic-backports_InRelease', '/var/lib/apt/lists/security.ubuntu.com_ubuntu_dists_bionic-security_universe_i18n_Translation-en', '/var/lib/ubuntu-advantage/apt-esm/etc/apt/trusted.gpg.d/ubuntu-advantage-esm-infra-trusty.gpg', '/var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_bionic-backports_universe_i18n_Translation-en', '/var/lib/ubuntu-advantage/apt-esm/var/lib/dpkg/status', '/var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_bionic-backports_universe_binary-amd64_Packages', '/var/lib/ubuntu-advantage/apt-esm/etc', '/var/lib/ubuntu-advantage/apt-esm/var/cache/apt/srcpkgcache.bin', '/var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_bionic_multiverse_binary-amd64_Packages', '/var/lib/ubuntu-advantage/apt-esm/var/lib/apt/lists/esm.ubuntu.com_apps_ubuntu_dists_bionic-apps-updates_InRelease', '/var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_bionic-updates_universe_binary-amd64_Packages', '/var/lib/ubuntu-advantage/apt-esm/var/cache/apt/archives/partial', '/var/log/ubuntu-advantage.log', '/var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_bionic-updates_multiverse_binary-amd64_Packages', '/var/lib/ubuntu-advantage/apt-esm/var/lib/apt/lists/partial', '/var/lib/apt/lists/security.ubuntu.com_ubuntu_dists_bionic-security_universe_binary-amd64_Packages', '/var/lib/ubuntu-advantage/apt-esm/var/cache/apt', '/var/lib/ubuntu-advantage/apt-esm/var/lib/apt/lists/esm.ubuntu.com_infra_ubuntu_dists_bionic-infra-security_main_binary-amd64_Packages', '/var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_bionic-updates_universe_i18n_Translation-en', '/var/lib/ubuntu-advantage/apt-esm/var/cache/apt/pkgcache.bin', '/var/lib/ubuntu-advantage/apt-esm/etc/apt/sources.list.d', '/var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_bionic-updates_multiverse_i18n_Translation-en', '/var/lib/ubuntu-advantage/status.json', '/var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_bionic_universe_binary-amd64_Packages', '/var/lib/ubuntu-advantage/apt-esm/var/cache', '/var/lib/ubuntu-advantage/apt-esm/var/lib/apt/lists/esm.ubuntu.com_infra_ubuntu_dists_bionic-infra-security_InRelease', '/var/lib/ubuntu-advantage/apt-esm/var/lib/apt', '/var/lib/ubuntu-advantage/apt-esm/etc/apt/sources.list', '/var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_bionic_universe_i18n_Translation-en', '/var/lib/ubuntu-advantage/apt-esm/var/lib/apt/lists/auxfiles', '/var/lib/ubuntu-advantage/apt-esm/var/lib/apt/lists/esm.ubuntu.com_infra_ubuntu_dists_bionic-infra-updates_InRelease', '/var/lib/apt/lists/security.ubuntu.com_ubuntu_dists_bionic-security_multiverse_binary-amd64_Packages', '/var/lib/ubuntu-advantage/apt-esm/var/lib/dpkg', '/var/lib/ubuntu-advantage/apt-esm/var/lib/apt/lists', '/var/lib/ubuntu-advantage/apt-esm/etc/apt', '/var/lib/ubuntu-advantage/apt-esm/var/lib/apt/lists/esm.ubuntu.com_infra_ubuntu_dists_bionic-infra-updates_main_binary-amd64_Packages', '/var/lib/ubuntu-advantage/apt-esm/etc/apt/sources.list.d/ubuntu-esm-apps.list', '/var/lib/ubuntu-advantage/apt-esm/var/cache/apt/archives', '/var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_bionic-backports_main_binary-amd64_Packages', '/var/lib/ubuntu-advantage/apt-esm/var/lib/apt/lists/esm.ubuntu.com_apps_ubuntu_dists_bionic-apps-security_main_binary-amd64_Packages', '/var/lib/ubuntu-advantage/apt-esm/etc/apt/sources.list.d/ubuntu-esm-infra.list', '/var/lib/ubuntu-advantage/apt-esm', '/var/lib/ubuntu-advantage/apt-esm/var', '/var/lib/ubuntu-advantage/apt-esm/var/lib', '/var/lib/apt/lists/security.ubuntu.com_ubuntu_dists_bionic-security_multiverse_i18n_Translation-en', '/var/lib/ubuntu-advantage/apt-esm/etc/apt/trusted.gpg.d/ubuntu-advantage-esm-apps.gpg', '/var/lib/ubuntu-advantage/apt-esm/var/lib/apt/lists/esm.ubuntu.com_apps_ubuntu_dists_bionic-apps-updates_main_binary-amd64_Packages', '/var/lib/ubuntu-advantage/apt-esm/var/lib/apt/lists/esm.ubuntu.com_apps_ubuntu_dists_bionic-apps-security_InRelease', '/var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_bionic_multiverse_i18n_Translation-en', '/var/lib/ubuntu-advantage/apt-esm/var/lib/apt/lists/lock', '/var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_bionic-backports_main_i18n_Translation-en'] ```
Debian12 ``` ['/var/lib/apt/lists/deb.debian.org_debian_dists_bookworm-updates_main_source_Sources', '/var/lib/apt/lists/deb.debian.org_debian_dists_bookworm_main_binary-amd64_Packages', '/var/lib/apt/lists/deb.debian.org_debian_dists_bookworm_main_i18n_Translation-en', '/var/lib/apt/lists/deb.debian.org_debian_dists_bookworm-backports_main_source_Sources', '/var/lib/apt/lists/security.debian.org_debian-security_dists_bookworm-security_main_source_Sources', '/var/lib/apt/lists/deb.debian.org_debian_dists_bookworm-updates_main_binary-amd64_Packages', '/var/lib/apt/lists/security.debian.org_debian-security_dists_bookworm-security_main_i18n_Translation-en', '/var/lib/apt/lists/partial', '/var/lib/apt/lists/deb.debian.org_debian_dists_bookworm-backports_main_binary-amd64_Packages', '/var/lib/apt/lists/deb.debian.org_debian_dists_bookworm-updates_InRelease', '/var/lib/apt/lists/lock', '/var/lib/apt/lists/deb.debian.org_debian_dists_bookworm_InRelease', '/var/lib/apt/lists/security.debian.org_debian-security_dists_bookworm-security_InRelease', '/var/lib/apt/lists/deb.debian.org_debian_dists_bookworm-backports_main_i18n_Translation-en', '/var/lib/apt/lists/security.debian.org_debian-security_dists_bookworm-security_main_binary-amd64_Packages', '/var/lib/apt/lists/deb.debian.org_debian_dists_bookworm-backports_InRelease', '/var/lib/apt/lists/deb.debian.org_debian_dists_bookworm_main_source_Sources', '/var/lib/apt/lists/deb.debian.org_debian_dists_bookworm-updates_main_i18n_Translation-en'] ```
Oracle9 ``` ['/var/cache/dnf/ol9_UEKR7-de4c9e404c09e83b/repodata/14603fe3d076bb4b492f98d11a869307423d9a15-primary.xml.gz', '/var/cache/dnf/ol9_appstream-46874f0a9b913672/repodata/01f48d0ac7d65533959989134a7a85da5434c2ab-filelists.xml.gz', '/var/cache/dnf/ol9_UEKR7-de4c9e404c09e83b/repodata/b4a2259e868d7562dbf5e3ff206fe4391580ddff-updateinfo.xml.gz', '/var/cache/dnf/ol9_appstream-updateinfo.solvx', '/var/cache/dnf/ol9_appstream-46874f0a9b913672/repodata/f646833459a8a1e2422808b35b69cc024333cdb2f1cf3971d02e528e4907bb24-modules.yaml.gz', '/var/cache/dnf/ol9_appstream-filenames.solvx', '/var/cache/dnf/ol9_UEKR7-de4c9e404c09e83b/repodata/d3f7d769fbdf8368dd586affc1f074f11e11f871-filelists.xml.gz', '/var/cache/dnf/ol9_appstream-46874f0a9b913672/repodata/b923cf98ca39ca4ee597dd7627da8580d5631c3a-primary.xml.gz', '/var/cache/dnf/metadata_lock.pid', '/var/cache/dnf/ol9_UEKR7-filenames.solvx', '/var/cache/dnf/ol9_appstream-46874f0a9b913672/repodata/50f01405c11bd6df2a74a5ab7dc75d3acfe21f73-updateinfo.xml.gz', '/var/cache/dnf/ol9_UEKR7.solv', '/var/cache/dnf/ol9_UEKR7-de4c9e404c09e83b/repodata/repomd.xml', '/var/cache/dnf/ol9_UEKR7-updateinfo.solvx'] ```
Amazonlinux2 ``` ['/var/lib/yum/rpmdb-indexes/conflicts', '/var/lib/yum/rpmdb-indexes/version', '/var/cache/yum/x86_64/2/amzn2-core/gen/comps.xml', '/var/lib/yum/rpmdb-indexes/file-requires', '/var/lib/yum/history/2023-05-26/5', '/var/lib/yum/history/2023-05-26/5/saved_tx', '/var/lib/yum/rpmdb-indexes/obsoletes', '/var/lib/yum/history/2023-05-26/5/config-repos', '/var/lib/yum/rpmdb-indexes/pkgtups-checksums', '/var/lib/yum/yumdb/w', '/var/lib/yum/history/2023-05-26/5/config-main'] ```
Fedora38 ``` ['/var/cache/dnf/updates-b3cb4614b6495970/repodata/0bdcc40df206aafc3bd6ba332c325bf9a52273fe0d63bf3a999b40cd1693c588-primary.xml.zck', '/var/cache/dnf/updates-b3cb4614b6495970/repodata/repomd.xml', '/var/cache/dnf/updates-modular-updateinfo.solvx', '/var/cache/dnf/updates.solv', '/var/cache/dnf/fedora-558931b5e76b51a7', '/var/cache/dnf/fedora-558931b5e76b51a7/metalink.xml', '/var/cache/dnf/updates-modular-filenames.solvx', '/var/cache/dnf/fedora-modular-4ee294236c160934/repodata/d1ce02f94cd9d44ab84db92ff3ba91464cc62811471a1893407ff52ef7628f5a-modules.yaml.gz', '/var/cache/dnf/updates-b3cb4614b6495970', '/var/cache/dnf/updates-b3cb4614b6495970/repodata/0f8bc6f6a4a4fb80e5d5cbf6a31e5dfe09b79abe060078adef98afe3b461e37d-filelists.xml.zck', '/var/cache/dnf/updates-modular.solv', '/var/cache/dnf/fedora-cisco-openh264-de50b9297f75bd24/repodata/6f16cc8c75e43b9bd9bcc68555d162cfdcb67f199bf2cdf6e0d86a9a164ca56f-primary.xml.gz', '/var/cache/dnf/fedora-modular-4ee294236c160934/repodata/a34fe7870e33c5b6c285bce59a835e20375f9c083a4cf15e38443e2892e967f9-filelists.xml.zck', '/var/cache/dnf/fedora-modular.solv', '/var/cache/dnf/fedora-cisco-openh264-de50b9297f75bd24/repodata/repomd.xml', '/var/lib/rpm/__db.001', '/var/cache/dnf/fedora-filenames.solvx', '/var/cache/dnf/updates-modular-166d687a0d3b6b0c/repodata/repomd.xml', '/var/cache/dnf/updates-b3cb4614b6495970/repodata/7fdef24326ead46ff6f6a8bef9800ec65516dad067eb7990612000f888f007de-prestodelta.xml.zck', '/var/cache/dnf/fedora-modular-4ee294236c160934/metalink.xml', '/var/cache/dnf/fedora-modular-4ee294236c160934/repodata/a17a9ff2433e138912a21394865947b16df5c4dc49958c01b99c3e84e171520c-comps-Modular.x86_64.xml', '/var/cache/dnf/fedora-cisco-openh264-de50b9297f75bd24/repodata', '/var/cache/dnf/expired_repos.json', '/var/cache/dnf/updates-b3cb4614b6495970/repodata/b6b895b089a469434a3f6a189e08f38e67ecf5292adb00ce1285895fde4def43-updateinfo.xml.zck', '/var/cache/dnf/fedora.solv', '/var/cache/dnf/fedora-cisco-openh264-filenames.solvx', '/var/cache/dnf/fedora-558931b5e76b51a7/repodata/744a705d0d0b053ce10432fb3b324c70008b4c1153f72d23daf0b18e2bfedc62-primary.xml.zck', '/var/cache/dnf/updates-modular-166d687a0d3b6b0c/repodata/18b2ab267c2bacb90c76e4eba896ee93ae975190bf192739ab5ead01afe30dbb-filelists.xml.zck', '/var/lib/rpm/__db.003', '/var/lib/rpm/__db.002', '/var/cache/dnf/updates-modular-166d687a0d3b6b0c/repodata/4dd3a5b32492291062864a7cdb9e4629bd6f765c2318dfe5a90186d3f1819e91-primary.xml.zck', '/var/cache/dnf/fedora-modular-filenames.solvx', '/var/cache/dnf/updates-modular-166d687a0d3b6b0c/metalink.xml', '/var/cache/dnf/updates-modular-166d687a0d3b6b0c/repodata', '/var/cache/dnf/fedora-modular-4ee294236c160934/repodata/repomd.xml', '/var/cache/dnf/fedora-558931b5e76b51a7/repodata', '/var/cache/dnf/updates-b3cb4614b6495970/metalink.xml', '/var/cache/dnf/fedora-modular-4ee294236c160934/repodata', '/var/lib/selinux/targeted/active/modules/400', '/var/cache/dnf/fedora-558931b5e76b51a7/repodata/repomd.xml', '/var/cache/dnf/tempfiles.json', '/var/cache/dnf/updates-b3cb4614b6495970/repodata/1c743ea1ef401d7e4c5ef60ebbe9bbff24c53594a957273aba93747953b59446-comps-Everything.x86_64.xml.gz', '/var/cache/dnf/updates-b3cb4614b6495970/repodata', '/var/cache/dnf/updates-filenames.solvx', '/var/cache/dnf/fedora-558931b5e76b51a7/repodata/961f955de96f1489e49012cfba125d771d2b4dce6cb31678aea644dffcfb3935-comps-Everything.x86_64.xml', '/var/cache/dnf/fedora-cisco-openh264.solv', '/var/cache/dnf/packages.db', '/var/cache/dnf/updates-updateinfo.solvx', '/var/cache/dnf/updates-modular-166d687a0d3b6b0c/repodata/e1562de5651add1e04b48595e8f31f4b26c161b5390c7645276143de6f36cafa-updateinfo.xml.zck', '/var/cache/dnf/updates-modular-166d687a0d3b6b0c', '/var/cache/dnf/updates-modular-166d687a0d3b6b0c/repodata/cceeaa6a665db895921ded13d867279157ef7f262de13d27f8da8cbe23bba2ed-modules.yaml.gz', '/var/cache/dnf/fedora-modular-4ee294236c160934', '/var/cache/dnf/fedora-558931b5e76b51a7/repodata/26477913ba3649764be912df1d1f3ef91a876bf78390b76a13e52dbbe6fb152a-filelists.xml.zck', '/var/cache/dnf/fedora-cisco-openh264-de50b9297f75bd24/repodata/3d50825fb25440abc9579f078205d6ba3590b1d146187af8179eb43214c8b40e-comps-Temporary.x86_64.xml.gz', '/var/cache/dnf/fedora-cisco-openh264-de50b9297f75bd24', '/var/cache/dnf/fedora-modular-4ee294236c160934/repodata/c27329ea01afc34a7a647bdf38ada6777bc3ca633bb88d9316b709f6f8d69666-primary.xml.zck', '/var/cache/dnf/fedora-cisco-openh264-de50b9297f75bd24/metalink.xml', '/var/cache/dnf/fedora-cisco-openh264-de50b9297f75bd24/repodata/beb2373081447167e25565e39c4c9c63306f9657acbf28680bba0300bc4e5a97-filelists.xml.gz'] ```
Centos7 ``` ['/var/lib/yum/history/2020-04-30/3/config-main', '/var/cache/yum/x86_64/7/.gpgkeyschecked.yum', '/var/lib/yum/history/2020-04-30/3/saved_tx', '/var/lib/yum/history/2020-04-30/3', '/var/lib/yum/history/2020-04-30/3/config-repos'] ```
Rocky9 ``` ['/var/cache/dnf/appstream-25485261a76941d3/repodata/4364a978-147c-432c-b5b8-987e290db4f7-FILELISTS.xml.gz', '/var/lib/selinux/targeted/active/modules/disabled', '/var/cache/dnf/appstream-25485261a76941d3/repodata/e826dd2f-4a0b-4f96-bad4-3b6efb897adf-PRIMARY.xml.gz', '/var/cache/dnf/appstream-25485261a76941d3/repodata/04bbb4a0-6f6c-49d2-bf99-8fc7bbcdc587-UPDATEINFO.xml.gz', '/var/cache/dnf/appstream-25485261a76941d3/repodata/4364a978-147c-432c-b5b8-987e290db4f7-MODULES.yaml.gz', '/var/cache/dnf/appstream-25485261a76941d3/repodata/4364a978-147c-432c-b5b8-987e290db4f7-GROUPS.xml.gz', '/var/cache/dnf/baseos-522ed8e2b2f761ff/repodata/5693742b-22f3-4b96-9e92-be4bc66846d4-PRIMARY.xml.gz', '/var/cache/dnf/extras-90dfbd6ba528f77b/repodata/584e173d-4a3e-4320-b529-4ccfc89d2a6c-PRIMARY.xml.gz', '/var/cache/dnf/extras-90dfbd6ba528f77b/repodata/8b13ce0d-2d8c-48c5-9799-9a87099cb197-FILELISTS.xml.gz', '/var/cache/dnf/baseos-522ed8e2b2f761ff/repodata/b53cc2e2-e255-4eb1-9a20-bff97c7b3c09-GROUPS.xml.gz', '/var/cache/dnf/baseos-522ed8e2b2f761ff/repodata/b53cc2e2-e255-4eb1-9a20-bff97c7b3c09-FILELISTS.xml.gz', '/var/lib/selinux/targeted/active/modules/400', '/var/cache/dnf/baseos-522ed8e2b2f761ff/repodata/d9675e6d-d2b8-46d4-977f-de7f2e7fe6f1-UPDATEINFO.xml.gz'] ```

Additional filters have been added depending the Os (each Os generates files in Var while Wazuh is being installed and they are not related to the Wazuh installation process itself)

centos = ['yum', 'rpm'] rhel = ['yum', 'rpm'] amazonlinux= ['yum']

ubuntu = ['ubuntu', 'lxcfs', 'dpkg'] debian = ['dpkg', 'lists']

oracle = ['dnf', 'selinux'] fedoraX = ['dnf', 'selinux', 'rpm'] rocky_linux=['dnf', 'selinux']

pro-akim commented 2 months ago

Update

Installation is almost done (including certs creation and cluster configuration). Changing to assisted installation, filebeat is included and some changes in the checkfile should be reviewed.

pro-akim commented 2 months ago

Update

Some fixes were done after changing to assisted installation.

On the other hand, all the required Os by the requirements were tested and many issues were found

OS Status Details
redhat7 ok
redhat8 image fails
redhat9 image fails
centos7 ok
centos8 image fails

For the entire Debian family, additional filters were required, and downloads were done via wget (as curl is not available).

OS Status Details
debian10 image fails
debian11 login issue with Vagrant, does not receive files with scp, installation fails 11/03/2024 09:51:07 ERROR: Wazuh installation failed. 11/03/2024 09:51:07 INFO: --- Removing existing Wazuh installation ---
debian12 login issue with Vagrant, does not receive files with scp, manager installed
ubuntu-18.4 ok
ubuntu-20.4 as a master, does not like when sshd is disabled
ubuntu-22.4 problems with port opening (does not receive scp or commands)
oracle9 ok
amazon-2 prompts for password, but manual entry works
amazon-2003 no image available
suse fails to create the image
opensuse image not available
pro-akim commented 2 months ago

Update

After a meeting with @fcaffieri and @QU3B1M some conclusions were reached:

  1. SCP will be done from localhost using inventory certificates, this will avoid problems using scp from the host and it will be possible to remove sshd configuration

  2. Checkfiles will be changed to: bin sbin root boot (only changes will be checked)

  3. 'Inventory' will be changed by 'targets' All targets will be tested and dependencies will remain only for data source inventory information.


pro-akim commented 2 months ago

Update

Result of some tests (comparison between pre and post install snapshot)

os boot install uninstall bin install uninstall root install uninstall sbin install uninstall
redhat7 boot {'added': [], 'removed': [], 'modified': ['/boot/grub2/grubenv']} - bin {'added': ['/usr/bin/filebeat'], 'removed': [], 'modified': []} - sbin - -
redhat8 boot - - bin {'added': ['/usr/bin/filebeat'], 'removed': [], 'modified': []} - root {'added': ['/root/.gnupg/trustdb.gpg'], 'removed': [], 'modified': []} - sbin - -
redhat9 boot {'added': [], 'removed': [], 'modified': ['/boot/grub2/grubenv']} - bin {'added': ['/usr/bin/filebeat'], 'removed': [], 'modified': []} - root - - sbin - -
centos7 boot {'added': ['/usr/bin/filebeat'], 'removed': [], 'modified': []} - bin - - root - - sbin - -
centos8 boot {'added': ['/usr/bin/filebeat'], 'removed': [], 'modified': []} - bin {'added': ['/usr/bin/filebeat'], 'removed': [], 'modified': []} - root - - sbin - -
debian10 boot {'added': [], 'removed': [], 'modified': ['/boot/grub2/grubenv']} - bin {'added': ['/usr/bin/gapplication', '/usr/bin/pkcheck', '/usr/bin/pkexec', '/usr/bin/gdbus', '/usr/bin/pkcon', '/usr/bin/gresource', '/usr/bin/gsettings', '/usr/bin/unattended-upgrade', '/usr/bin/pkttyagent', '/usr/bin/pkaction', '/usr/bin/add-apt-repository', '/usr/bin/gio', '/usr/bin/pkmon', '/usr/bin/filebeat'], 'removed': [], 'modified': []} - root - - sbin - -
debian11 boot - - bin {'added': ['/usr/bin/gapplication', '/usr/bin/add-apt-repository', '/usr/bin/gpg-wks-server', '/usr/bin/pkexec', '/usr/bin/gpgsplit', '/usr/bin/watchgnupg', '/usr/bin/pinentry-curses', '/usr/bin/gpg-zip', '/usr/bin/gsettings', '/usr/bin/gpg-agent', '/usr/bin/gresource', '/usr/bin/gdbus', '/usr/bin/gpg-connect-agent', '/usr/bin/gpgconf', '/usr/bin/gpgparsemail', '/usr/bin/lspgpot', '/usr/bin/pkaction', '/usr/bin/pkttyagent', '/usr/bin/pkmon', '/usr/bin/dirmngr', '/usr/bin/kbxutil', '/usr/bin/migrate-pubring-from-classic-gpg', '/usr/bin/gpgcompose', '/usr/bin/pkcheck', '/usr/bin/gpgsm', '/usr/bin/gio', '/usr/bin/pkcon', '/usr/bin/gpgtar', '/usr/bin/dirmngr-client', '/usr/bin/gpg', '/usr/bin/filebeat', '/usr/bin/gawk', '/usr/bin/curl'], 'removed': [], 'modified': []} - root - sbin - -
debian12 boot - - bin {'added': ['/usr/bin/gsettings', '/usr/bin/gpgconf', '/usr/bin/gpg-wks-server', '/usr/bin/gpgtar', '/usr/bin/gpgsm', '/usr/bin/add-apt-repository', '/usr/bin/pinentry-curses', '/usr/bin/kbxutil', '/usr/bin/gpg', '/usr/bin/pkaction', '/usr/bin/filebeat', '/usr/bin/watchgnupg', '/usr/bin/gapplication', '/usr/bin/update-mime-database', '/usr/bin/migrate-pubring-from-classic-gpg', '/usr/bin/gpgsplit', '/usr/bin/dirmngr', '/usr/bin/pkmon', '/usr/bin/gpgparsemail', '/usr/bin/dh_installxmlcatalogs', '/usr/bin/gpgcompose', '/usr/bin/gio', '/usr/bin/dirmngr-client', '/usr/bin/appstreamcli', '/usr/bin/pkcon', '/usr/bin/lspgpot', '/usr/bin/gpg-zip', '/usr/bin/pkcheck', '/usr/bin/pkttyagent', '/usr/bin/gdbus', '/usr/bin/gresource', '/usr/bin/gpg-connect-agent', '/usr/bin/gpg-agent'], 'removed': [], 'modified': []} - root {'added': ['/root/.gnupg/trustdb.gpg'], 'removed': [], 'modified': []} - sbin {'added': ['/usr/sbin/update-catalog', '/usr/sbin/applygnupgdefaults', '/usr/sbin/addgnupghome', '/usr/sbin/install-sgmlcatalog', '/usr/sbin/update-xmlcatalog'], 'removed': [], 'modified': []} -
ubuntu20.04 boot - - bin {'added': ['/usr/bin/filebeat'], 'removed': [], 'modified': []} - root - - sbin - -
ubuntu22.04 boot {'added': [], 'removed': [], 'modified': ['/boot/grub2/grubenv']} - bin {'added': ['/usr/bin/filebeat'], 'removed': [], 'modified': []} - root {'added': ['/root/.gnupg/trustdb.gpg'], 'removed': [], 'modified': []} - sbin - -
oracle9 boot {'added': [], 'removed': [], 'modified': ['/boot/grub2/grubenv']} - bin {'added': ['/usr/bin/filebeat'], 'removed': [], 'modified': []} - root {'added': ['/root/.gnupg/trustdb.gpg'], 'removed': [], 'modified': []} - sbin - -
amazon2 boot - - bin {'added': ['/usr/bin/filebeat'], 'removed': [], 'modified': []} - root - - sbin - -
amazon2023 no image
opensuse15 Manager installation failure 12/03/2024 10:51:22 ERROR: Couldn't find type of system
suse15 (only in aws)

Filters developed using the information:

redhat7, redhat8, redhat9, ubuntu20 ubuntu22 oracle9 amazon2 centos7 centos8 filter = {'/boot': {'added': [], 'removed': [], 'modified': ['grubenv']}, '/usr/bin': {'added': ['filebeat'], 'removed': [], 'modified': []}, '/root': {'added': ['trustdb.gpg'], 'removed': [], 'modified': []}, '/usr/sbin': {'added': [], 'removed': [], 'modified': []}}

debian10, debian11 debian12 filter= {'/boot': {'added': [], 'removed': [], 'modified': ['grubenv']}, '/usr/bin': {'added': ['unattended-upgrade', 'gapplication', 'add-apt-repository', 'gpg-wks-server', 'pkexec', 'gpgsplit', 'watchgnupg', 'pinentry-curses', 'gpg-zip', 'gsettings', 'gpg-agent', 'gresource', 'gdbus', 'gpg-connect-agent', 'gpgconf', 'gpgparsemail', 'lspgpot', 'pkaction', 'pkttyagent', 'pkmon', 'dirmngr', 'kbxutil', 'migrate-pubring-from-classic-gpg', 'gpgcompose', 'pkcheck', 'gpgsm', 'gio', 'pkcon', 'gpgtar', 'dirmngr-client', 'gpg', 'filebeat', 'gawk', 'curl', 'update-mime-database', 'dh_installxmlcatalogs', 'appstreamcli','lspgpot'], 'removed': [], 'modified': []}, '/root': {'added': ['trustdb.gpg'], 'removed': [], 'modified': []}, '/usr/sbin': {'added': ['update-catalog', 'applygnupgdefaults', 'addgnupghome', 'install-sgmlcatalog', 'update-xmlcatalog'], 'removed': [], 'modified': []}}

The following list has failures amazon2023 (only in aws) opensuse15 (Couldn't find type of system) image

suse15 (only in aws)


Example

Differences between pre and post-install snapshots in debian12:

{'/boot': {'added': [], 'removed': [], 'modified': []}, '/usr/bin': {'added': ['/usr/bin/appstreamcli', '/usr/bin/gio', '/usr/bin/migrate-pubring-from-classic-gpg', '/usr/bin/gpgconf', '/usr/bin/add-apt-repository', '/usr/bin/pinentry-curses', '/usr/bin/pkttyagent', '/usr/bin/gpg', '/usr/bin/dirmngr', '/usr/bin/gpg-agent', '/usr/bin/pkcon', '/usr/bin/gpgtar', '/usr/bin/gpg-zip', '/usr/bin/gpgsplit', '/usr/bin/dh_installxmlcatalogs', '/usr/bin/kbxutil', '/usr/bin/gdbus', '/usr/bin/pkaction', '/usr/bin/pkmon', '/usr/bin/update-mime-database', '/usr/bin/gpgcompose', '/usr/bin/watchgnupg', '/usr/bin/gapplication', '/usr/bin/dirmngr-client', '/usr/bin/gpgparsemail', '/usr/bin/gpgsm', '/usr/bin/gpg-connect-agent', '/usr/bin/pkcheck', '/usr/bin/gresource', '/usr/bin/filebeat', '/usr/bin/gsettings', '/usr/bin/lspgpot', '/usr/bin/gpg-wks-server'], 'removed': [], 'modified': []}, '/root': {'added': ['/root/.gnupg/trustdb.gpg'], 'removed': [], 'modified': []}, '/usr/sbin': {'added': ['/usr/sbin/update-xmlcatalog', '/usr/sbin/addgnupghome', '/usr/sbin/applygnupgdefaults', '/usr/sbin/update-catalog', '/usr/sbin/install-sgmlcatalog'], 'removed': [], 'modified': []}} /tmp/dtt1-poc/manager-linux-debian-12-amd64/inventory.yaml

After filters:

{'/boot': {'added': [], 'removed': [], 'modified': []}, '/usr/bin': {'added': [], 'removed': [], 'modified': []}, '/root': {'added': [], 'removed': [], 'modified': []}, '/usr/sbin': {'added': [], 'removed': [], 'modified': []}}

pro-akim commented 2 months ago

Update

After a team discussion with @fcaffieri and @QU3B1M more tasks were added


Python reads the yaml file and does 2 things:

  1. Sort objects alphabetically according to hierarchy
  2. Remove existing indentations
  3. Delete previous comments.

Entering the data correctly in the yaml and executing the certificate creation, everything is generated correctly, but when running the installer referring to the values entered in the config, it fails since the existing indentations do not please the wizard.

For future reference, this was the function created:

```python @staticmethod def certs_create(wazuh_version, master_path, dashboard_path, indexer_paths=[], worker_paths=[]) -> None: # Create variables wazuh_version = '.'.join(wazuh_version.split('.')[:2]) with open(master_path, 'r') as yaml_file: inventory_data = yaml.safe_load(yaml_file) master = inventory_data.get('ansible_host') master_key = inventory_data.get('ansible_ssh_private_key_file') master_user = inventory_data.get('ansible_user') current_master_directory = HostInformation.get_current_dir(master_path).replace("\n","") with open(dashboard_path, 'r') as yaml_file: inventory_data = yaml.safe_load(yaml_file) dashboard = inventory_data.get('ansible_host') indexers = [] for indexer_path in indexer_paths: with open(indexer_path, 'r') as yaml_file: inventory_data = yaml.safe_load(yaml_file) indexers.append(inventory_data.get('ansible_host')) workers = [] for worker_path in worker_paths: with open(worker_path, 'r') as yaml_file: inventory_data = yaml.safe_load(yaml_file) workers.append(inventory_data.get('ansible_host')) # Create config in localhost subprocess.run(f'curl -sO https://packages.wazuh.com/{wazuh_version}/config.yml' , shell=True, cwd=Path(__file__).parent) # Open local config file with open(f'{Path(__file__).parent}/config.yml', 'r') as file: config = yaml.safe_load(file) # Edit config file # Workers for index, worker in enumerate(workers): new_entry = {'name': f'wazuh-{index+2}', 'ip': f'{worker}', 'node_type': 'worker'} config['nodes']['server'].append(new_entry) # Indexers config['nodes']['indexer'][0]['ip'] =f'{indexers[0]}' # Dashboard config['nodes']['dashboard'][0]['ip'] =f'{dashboard}' # Master config['nodes']['server'][0]['ip'] =f'{master}' config['nodes']['server'][0]['node_type'] ='master' # More than 1 indexer if len(indexers) > 1: for index, indexer in enumerate(indexers[1:], start=1): new_entry = {'name': f'wazuh-{index+1}', 'ip': f'{indexer}'} config['nodes']['indexer'].append(new_entry) print(config) new_data = {} for key, value in config['nodes'].items(): new_data[key] = value[0] # Save the changes with open(f'{Path(__file__).parent}/config.yml', 'w') as file: yaml.dump(config, file) # Add "" to IPS sed_command = [ "sed", "-i", "-E", 's/\\b([0-9]+(\\.[0-9]+)+)\\b/"\\1"/g', f"{Path(__file__).parent}/config.yml" ] subprocess.run(sed_command, check=True) # Add intentation to config file sed_command = fr"sed -i '/\b\(nodes\|dashboard\|indexer\|server\)\b/! s/^/ /' {Path(__file__).parent }/config.yml" subprocess.run(sed_command, shell=True, check=True) # Send the config file to the master subprocess.run(f'scp -i {master_key} -o StrictHostKeyChecking=no {Path(__file__).parent}/config.yml {master_user}@{master}:{current_master_directory}', shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE, text=True) # Delete file from local path file_path = f'{Path(__file__).parent}/config.yml' if os.path.exists(file_path): os.remove(file_path) print(f"The file '{file_path}' has been deleted.") else: print(f"The file '{file_path}' does not exist.") # Basic commands to setup the config file, add the ip for the master & dashboard os_name = HostInformation.get_os_name_from_inventory(master_path) if os_name == 'debian': commands = [ f'wget https://packages.wazuh.com/{wazuh_version}/wazuh-install.sh' ] else: commands = [ f'curl -sO https://packages.wazuh.com/{wazuh_version}/wazuh-install.sh' ] Executor.execute_commands(master_path, commands) # Cert creation certs_creation = [ 'bash wazuh-install.sh --generate-config-files --ignore-check' ] Executor.execute_commands(master_path, certs_creation) ``` Results ```yaml nodes: dashboard: - ip: "192.168.57.3" name: dashboard indexer: - ip: "192.168.57.3" name: node-1 server: - ip: "192.168.57.3" name: wazuh-1 node_type: master - ip: "192.168.57.4" name: wazuh-2 node_type: worker ``` ```bash root@ubuntu-jammy:/home/vagrant# bash wazuh-install.sh --wazuh-server wazuh-1 15/03/2024 11:07:57 INFO: Starting Wazuh installation assistant. Wazuh version: 4.7.3 15/03/2024 11:07:57 INFO: Verbose logging redirected to /var/log/wazuh-install.log 15/03/2024 11:08:04 ERROR: There is no certificate for the wazuh server node wazuh-1 in /home/vagrant/wazuh-install-files.tar. ```
pro-akim commented 1 month ago

Update

Testing in AWS

Some adjustments were required around public and private IP in certs creation, cluster configuration, ssh port and scp

PART I

Ubuntu22.04:Centos-7 :green_circle: ``` (deplo_test) akim@akim-PC:~/Desktop/wazuh-qa/deployability$ python3 modules/testing/main.py --wazuh-revision '40714' --wazuh-version '4.7.3' --component 'manager' --tests 'install' --targets '{"wazuh-1":"/tmp/dtt1-poc/manager-linux-ubuntu-22.04-amd64/inventory.yml"}' --targets '{"wazuh-2":"/tmp/dtt1-poc/manager-linux-centos-7-amd64/inventory.yml"}' --dependencies '{"wazuh-1":"/tmp/dtt1-poc/manager-linux-centos-7-amd64/inventory.yml"}' [2024-03-21 18:24:12] [INFO] TESTER: Running tests for ec2-54-158-16-247.compute-1.amazonaws.com [2024-03-21 18:24:12] [INFO] TESTER: Running tests for ec2-35-153-80-0.compute-1.amazonaws.com [2024-03-21 18:24:12] [INFO] TESTER: Dependencies ec2-35-153-80-0.compute-1.amazonaws.com [2024-03-21 18:24:12] [DEBUG] TESTER: Using extra vars: {'component': 'manager', 'wazuh_version': '4.7.3', 'wazuh_revision': '40714', 'wazuh_branch': None, 'working_dir': '/tmp/tests', 'hosts_ip': ['ec2-54-158-16-247.compute-1.amazonaws.com', 'ec2-35-153-80-0.compute-1.amazonaws.com'], 'targets': '{wazuh-1: /tmp/dtt1-poc/manager-linux-ubuntu-22.04-amd64/inventory.yml, wazuh-2: /tmp/dtt1-poc/manager-linux-centos-7-amd64/inventory.yml}', 'dependencies': '{wazuh-1: /tmp/dtt1-poc/manager-linux-centos-7-amd64/inventory.yml}', 'local_host_path': '/home/akim/Desktop/wazuh-qa/deployability', 'current_user': 'akim'} [2024-03-21 18:24:12] [DEBUG] ANSIBLE: Rendering template /home/akim/Desktop/wazuh-qa/deployability/modules/testing/playbooks/setup.yml [2024-03-21 18:24:12] [DEBUG] ANSIBLE: Using inventory: {'all': {'hosts': {'ec2-54-158-16-247.compute-1.amazonaws.com': {'ansible_port': 2200, 'ansible_user': 'ubuntu', 'ansible_ssh_private_key_file': '/home/akim/Desktop/personal/Ephemeral'}}}} [2024-03-21 18:24:12] [DEBUG] ANSIBLE: Running playbook: [{'hosts': 'localhost', 'become': True, 'become_user': 'akim', 'tasks': [{'name': 'Cleaning old key ssh-keygen registries', 'ansible.builtin.command': {'cmd': "ssh-keygen -f /home/akim/.ssh/known_hosts -R ''"}, 'loop': ['ec2-54-158-16-247.compute-1.amazonaws.com', 'ec2-35-153-80-0.compute-1.amazonaws.com']}]}] No config file found; using defaults PLAY [localhost] *************************************************************** TASK [Gathering Facts] ********************************************************* ok: [localhost] TASK [Cleaning old key ssh-keygen registries] ********************************** changed: [localhost] => (item=ec2-54-158-16-247.compute-1.amazonaws.com) => changed=true ansible_loop_var: item cmd: - ssh-keygen - -f - /home/akim/.ssh/known_hosts - -R - '' delta: '0:00:00.009535' end: '2024-03-21 18:24:18.988771' item: ec2-54-158-16-247.compute-1.amazonaws.com msg: '' rc: 0 start: '2024-03-21 18:24:18.979236' stderr: Host not found in /home/akim/.ssh/known_hosts stderr_lines: stdout: '' stdout_lines: changed: [localhost] => (item=ec2-35-153-80-0.compute-1.amazonaws.com) => changed=true ansible_loop_var: item cmd: - ssh-keygen - -f - /home/akim/.ssh/known_hosts - -R - '' delta: '0:00:00.009523' end: '2024-03-21 18:24:19.174106' item: ec2-35-153-80-0.compute-1.amazonaws.com msg: '' rc: 0 start: '2024-03-21 18:24:19.164583' stderr: Host not found in /home/akim/.ssh/known_hosts stderr_lines: stdout: '' stdout_lines: PLAY RECAP ********************************************************************* localhost : ok=2 changed=1 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 [2024-03-21 18:24:19] [DEBUG] ANSIBLE: Playbook [{'hosts': 'localhost', 'become': True, 'become_user': 'akim', 'tasks': [{'name': 'Cleaning old key ssh-keygen registries', 'ansible.builtin.command': {'cmd': "ssh-keygen -f /home/akim/.ssh/known_hosts -R ''"}, 'loop': ['ec2-54-158-16-247.compute-1.amazonaws.com', 'ec2-35-153-80-0.compute-1.amazonaws.com']}]}] finished with status {'skipped': {}, 'ok': {'localhost': 2}, 'dark': {}, 'failures': {}, 'ignored': {}, 'rescued': {}, 'processed': {'localhost': 1}, 'changed': {'localhost': 1}} [2024-03-21 18:24:19] [DEBUG] ANSIBLE: Rendering template /home/akim/Desktop/wazuh-qa/deployability/modules/testing/playbooks/test.yml [2024-03-21 18:24:19] [DEBUG] ANSIBLE: Using inventory: {'all': {'hosts': {'ec2-54-158-16-247.compute-1.amazonaws.com': {'ansible_port': 2200, 'ansible_user': 'ubuntu', 'ansible_ssh_private_key_file': '/home/akim/Desktop/personal/Ephemeral'}}}} [2024-03-21 18:24:19] [DEBUG] ANSIBLE: Running playbook: [{'hosts': 'localhost', 'become': True, 'become_user': 'akim', 'tasks': [{'name': 'Test install for manager', 'command': "python3 -m pytest modules/testing/tests/test_manager/test_install.py -v --wazuh_version=4.7.3 --wazuh_revision=40714 --component=manager --dependencies='{wazuh-1: /tmp/dtt1-poc/manager-linux-centos-7-amd64/inventory.yml}' --targets='{wazuh-1: /tmp/dtt1-poc/manager-linux-ubuntu-22.04-amd64/inventory.yml, wazuh-2: /tmp/dtt1-poc/manager-linux-centos-7-amd64/inventory.yml}' -s", 'args': {'chdir': '/home/akim/Desktop/wazuh-qa/deployability'}}]}] No config file found; using defaults PLAY [localhost] *************************************************************** TASK [Gathering Facts] ********************************************************* ok: [localhost] TASK [Test install for manager] ************************************************ changed: [localhost] => changed=true cmd: - python3 - -m - pytest - modules/testing/tests/test_manager/test_install.py - -v - --wazuh_version=4.7.3 - --wazuh_revision=40714 - --component=manager - '--dependencies={wazuh-1: /tmp/dtt1-poc/manager-linux-centos-7-amd64/inventory.yml}' - '--targets={wazuh-1: /tmp/dtt1-poc/manager-linux-ubuntu-22.04-amd64/inventory.yml, wazuh-2: /tmp/dtt1-poc/manager-linux-centos-7-amd64/inventory.yml}' - -s delta: '0:05:55.451993' end: '2024-03-21 18:30:17.922098' msg: '' rc: 0 start: '2024-03-21 18:24:22.470105' stderr: |- /home/akim/Desktop/venvs/deplo_test/lib/python3.10/site-packages/_testinfra_renamed.py:5: DeprecationWarning: testinfra package has been renamed to pytest-testinfra. Please `pip install pytest-testinfra` and `pip uninstall testinfra` and update your package requirements to avoid this message warnings.warn(( Warning: Permanently added '[ec2-54-158-16-247.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Failed to stop firewalld.service: Unit firewalld.service not loaded. Warning: Permanently added '[ec2-54-158-16-247.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Failed to disable unit: Unit file firewalld.service does not exist. Warning: Permanently added '[ec2-35-153-80-0.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Failed to stop firewalld.service: Unit firewalld.service not loaded. Warning: Permanently added '[ec2-35-153-80-0.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Failed to execute operation: No such file or directory Warning: Permanently added '[ec2-54-158-16-247.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-54-158-16-247.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-54-158-16-247.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-54-158-16-247.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-54-158-16-247.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-54-158-16-247.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-54-158-16-247.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-54-158-16-247.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-54-158-16-247.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-54-158-16-247.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-54-158-16-247.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-54-158-16-247.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-54-158-16-247.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-54-158-16-247.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-35-153-80-0.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-54-158-16-247.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-54-158-16-247.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-35-153-80-0.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-54-158-16-247.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-54-158-16-247.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-54-158-16-247.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-54-158-16-247.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-54-158-16-247.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-54-158-16-247.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-54-158-16-247.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-54-158-16-247.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-54-158-16-247.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-54-158-16-247.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-54-158-16-247.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-35-153-80-0.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-35-153-80-0.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-35-153-80-0.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-35-153-80-0.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-35-153-80-0.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-35-153-80-0.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-35-153-80-0.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-35-153-80-0.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-35-153-80-0.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-35-153-80-0.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-35-153-80-0.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-54-158-16-247.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-54-158-16-247.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-54-158-16-247.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-54-158-16-247.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-54-158-16-247.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-54-158-16-247.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-35-153-80-0.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-35-153-80-0.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-35-153-80-0.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-35-153-80-0.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-35-153-80-0.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-35-153-80-0.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-54-158-16-247.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-54-158-16-247.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-35-153-80-0.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-54-158-16-247.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-54-158-16-247.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-54-158-16-247.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-54-158-16-247.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-54-158-16-247.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-35-153-80-0.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-35-153-80-0.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-35-153-80-0.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-35-153-80-0.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-35-153-80-0.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-54-158-16-247.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-54-158-16-247.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-54-158-16-247.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-54-158-16-247.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-35-153-80-0.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-35-153-80-0.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-35-153-80-0.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-35-153-80-0.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-54-158-16-247.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-35-153-80-0.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. stderr_lines: stdout: |- ============================= test session starts ============================== platform linux -- Python 3.10.12, pytest-8.1.0, pluggy-1.4.0 -- /home/akim/Desktop/venvs/deplo_test/bin/python3 cachedir: .pytest_cache rootdir: /home/akim/Desktop/wazuh-qa/deployability/modules plugins: testinfra-6.0.0, testinfra-10.1.0 collecting ... collected 5 items modules/testing/tests/test_manager/test_install.py::test_installation PASSED modules/testing/tests/test_manager/test_install.py::test_manager_status PASSED modules/testing/tests/test_manager/test_install.py::test_manager_version PASSED modules/testing/tests/test_manager/test_install.py::test_manager_revision PASSED modules/testing/tests/test_manager/test_install.py::test_manager_installed_directory PASSED =============================== warnings summary =============================== modules/provision/models.py:65 /home/akim/Desktop/wazuh-qa/deployability/modules/provision/models.py:65: 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', pre=True) modules/provision/models.py:73 /home/akim/Desktop/wazuh-qa/deployability/modules/provision/models.py:73: 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('uninstall', pre=True) -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html ================== 5 passed, 2 warnings in 354.76s (0:05:54) =================== stdout_lines: TASK [Test restart for manager] ************************************************ changed: [localhost] => changed=true cmd: - python3 - -m - pytest - modules/testing/tests/test_manager/test_restart.py - -v - --wazuh_version=4.7.3 - --wazuh_revision=40714 - --component=manager - '--dependencies={wazuh-1: /tmp/dtt1-poc/manager-linux-centos-7-amd64/inventory.yml}' - '--targets={wazuh-1: /tmp/dtt1-poc/manager-linux-ubuntu-22.04-amd64/inventory.yml, wazuh-2: /tmp/dtt1-poc/manager-linux-centos-7-amd64/inventory.yml}' - -s delta: '0:00:20.986558' end: '2024-03-21 18:31:35.420952' msg: '' rc: 0 start: '2024-03-21 18:31:14.434394' stderr: |- /home/akim/Desktop/venvs/deplo_test/lib/python3.10/site-packages/_testinfra_renamed.py:5: DeprecationWarning: testinfra package has been renamed to pytest-testinfra. Please `pip install pytest-testinfra` and `pip uninstall testinfra` and update your package requirements to avoid this message warnings.warn(( Warning: Permanently added '[ec2-35-153-80-0.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-54-158-16-247.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-35-153-80-0.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. stderr_lines: stdout: |- ============================= test session starts ============================== platform linux -- Python 3.10.12, pytest-8.1.0, pluggy-1.4.0 -- /home/akim/Desktop/venvs/deplo_test/bin/python3 cachedir: .pytest_cache rootdir: /home/akim/Desktop/wazuh-qa/deployability/modules plugins: testinfra-6.0.0, testinfra-10.1.0 collecting ... collected 1 item modules/testing/tests/test_manager/test_restart.py::test_restart systemctl restart wazuh-manager systemctl status wazuh-manager systemctl status wazuh-manager PASSED =============================== warnings summary =============================== modules/provision/models.py:65 /home/akim/Desktop/wazuh-qa/deployability/modules/provision/models.py:65: 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', pre=True) modules/provision/models.py:73 /home/akim/Desktop/wazuh-qa/deployability/modules/provision/models.py:73: 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('uninstall', pre=True) -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html ======================== 1 passed, 2 warnings in 20.39s ======================== stdout_lines: PLAY RECAP ********************************************************************* localhost : ok=2 changed=1 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 [2024-03-21 18:31:35] [DEBUG] ANSIBLE: Playbook [{'hosts': 'localhost', 'become': True, 'become_user': 'akim', 'tasks': [{'name': 'Test restart for manager', 'command': "python3 -m pytest modules/testing/tests/test_manager/test_restart.py -v --wazuh_version=4.7.3 --wazuh_revision=40714 --component=manager --dependencies='{wazuh-1: /tmp/dtt1-poc/manager-linux-centos-7-amd64/inventory.yml}' --targets='{wazuh-1: /tmp/dtt1-poc/manager-linux-ubuntu-22.04-amd64/inventory.yml, wazuh-2: /tmp/dtt1-poc/manager-linux-centos-7-amd64/inventory.yml}' -s", 'args': {'chdir': '/home/akim/Desktop/wazuh-qa/deployability'}}]}] finished with status {'skipped': {}, 'ok': {'localhost': 2}, 'dark': {}, 'failures': {}, 'ignored': {}, 'rescued': {}, 'processed': {'localhost': 1}, 'changed': {'localhost': 1}} [2024-03-21 18:31:35] [DEBUG] ANSIBLE: Rendering template /home/akim/Desktop/wazuh-qa/deployability/modules/testing/playbooks/test.yml [2024-03-21 18:31:35] [DEBUG] ANSIBLE: Using inventory: {'all': {'hosts': {'ec2-54-158-16-247.compute-1.amazonaws.com': {'ansible_port': 2200, 'ansible_user': 'ubuntu', 'ansible_ssh_private_key_file': '/home/akim/Desktop/personal/Ephemeral'}}}} [2024-03-21 18:31:35] [DEBUG] ANSIBLE: Running playbook: [{'hosts': 'localhost', 'become': True, 'become_user': 'akim', 'tasks': [{'name': 'Test stop for manager', 'command': "python3 -m pytest modules/testing/tests/test_manager/test_stop.py -v --wazuh_version=4.7.3 --wazuh_revision=40714 --component=manager --dependencies='{wazuh-1: /tmp/dtt1-poc/manager-linux-centos-7-amd64/inventory.yml}' --targets='{wazuh-1: /tmp/dtt1-poc/manager-linux-ubuntu-22.04-amd64/inventory.yml, wazuh-2: /tmp/dtt1-poc/manager-linux-centos-7-amd64/inventory.yml}' -s", 'args': {'chdir': '/home/akim/Desktop/wazuh-qa/deployability'}}]}] No config file found; using defaults PLAY [localhost] *************************************************************** TASK [Gathering Facts] ********************************************************* ok: [localhost] TASK [Test stop for manager] *************************************************** changed: [localhost] => changed=true cmd: - python3 - -m - pytest - modules/testing/tests/test_manager/test_stop.py - -v - --wazuh_version=4.7.3 - --wazuh_revision=40714 - --component=manager - '--dependencies={wazuh-1: /tmp/dtt1-poc/manager-linux-centos-7-amd64/inventory.yml}' - '--targets={wazuh-1: /tmp/dtt1-poc/manager-linux-ubuntu-22.04-amd64/inventory.yml, wazuh-2: /tmp/dtt1-poc/manager-linux-centos-7-amd64/inventory.yml}' - -s delta: '0:00:25.239643' end: '2024-03-21 18:32:06.759213' msg: '' rc: 0 start: '2024-03-21 18:31:41.519570' stderr: |- /home/akim/Desktop/venvs/deplo_test/lib/python3.10/site-packages/_testinfra_renamed.py:5: DeprecationWarning: testinfra package has been renamed to pytest-testinfra. Please `pip install pytest-testinfra` and `pip uninstall testinfra` and update your package requirements to avoid this message warnings.warn(( Warning: Permanently added '[ec2-35-153-80-0.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-54-158-16-247.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-35-153-80-0.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-35-153-80-0.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. stderr_lines: stdout: |- ============================= test session starts ============================== platform linux -- Python 3.10.12, pytest-8.1.0, pluggy-1.4.0 -- /home/akim/Desktop/venvs/deplo_test/bin/python3 cachedir: .pytest_cache rootdir: /home/akim/Desktop/wazuh-qa/deployability/modules plugins: testinfra-6.0.0, testinfra-10.1.0 collecting ... collected 1 item modules/testing/tests/test_manager/test_stop.py::test_stop systemctl stop wazuh-manager systemctl status wazuh-manager systemctl status wazuh-manager PASSEDsystemctl restart wazuh-manager =============================== warnings summary =============================== modules/provision/models.py:65 /home/akim/Desktop/wazuh-qa/deployability/modules/provision/models.py:65: 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', pre=True) modules/provision/models.py:73 /home/akim/Desktop/wazuh-qa/deployability/modules/provision/models.py:73: 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('uninstall', pre=True) -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html ======================== 1 passed, 2 warnings in 24.62s ======================== stdout_lines: PLAY RECAP ********************************************************************* localhost : ok=2 changed=1 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 [2024-03-21 18:32:07] [DEBUG] ANSIBLE: Playbook [{'hosts': 'localhost', 'become': True, 'become_user': 'akim', 'tasks': [{'name': 'Test stop for manager', 'command': "python3 -m pytest modules/testing/tests/test_manager/test_stop.py -v --wazuh_version=4.7.3 --wazuh_revision=40714 --component=manager --dependencies='{wazuh-1: /tmp/dtt1-poc/manager-linux-centos-7-amd64/inventory.yml}' --targets='{wazuh-1: /tmp/dtt1-poc/manager-linux-ubuntu-22.04-amd64/inventory.yml, wazuh-2: /tmp/dtt1-poc/manager-linux-centos-7-amd64/inventory.yml}' -s", 'args': {'chdir': '/home/akim/Desktop/wazuh-qa/deployability'}}]}] finished with status {'skipped': {}, 'ok': {'localhost': 2}, 'dark': {}, 'failures': {}, 'ignored': {}, 'rescued': {}, 'processed': {'localhost': 1}, 'changed': {'localhost': 1}} [2024-03-21 18:32:07] [DEBUG] ANSIBLE: Rendering template /home/akim/Desktop/wazuh-qa/deployability/modules/testing/playbooks/test.yml [2024-03-21 18:32:07] [DEBUG] ANSIBLE: Using inventory: {'all': {'hosts': {'ec2-54-158-16-247.compute-1.amazonaws.com': {'ansible_port': 2200, 'ansible_user': 'ubuntu', 'ansible_ssh_private_key_file': '/home/akim/Desktop/personal/Ephemeral'}}}} [2024-03-21 18:32:07] [DEBUG] ANSIBLE: Running playbook: [{'hosts': 'localhost', 'become': True, 'become_user': 'akim', 'tasks': [{'name': 'Test uninstall for manager', 'command': "python3 -m pytest modules/testing/tests/test_manager/test_uninstall.py -v --wazuh_version=4.7.3 --wazuh_revision=40714 --component=manager --dependencies='{wazuh-1: /tmp/dtt1-poc/manager-linux-centos-7-amd64/inventory.yml}' --targets='{wazuh-1: /tmp/dtt1-poc/manager-linux-ubuntu-22.04-amd64/inventory.yml, wazuh-2: /tmp/dtt1-poc/manager-linux-centos-7-amd64/inventory.yml}' -s", 'args': {'chdir': '/home/akim/Desktop/wazuh-qa/deployability'}}]}] No config file found; using defaults PLAY [localhost] *************************************************************** TASK [Gathering Facts] ********************************************************* ok: [localhost] TASK [Test uninstall for manager] ********************************************** changed: [localhost] => changed=true cmd: - python3 - -m - pytest - modules/testing/tests/test_manager/test_uninstall.py - -v - --wazuh_version=4.7.3 - --wazuh_revision=40714 - --component=manager - '--dependencies={wazuh-1: /tmp/dtt1-poc/manager-linux-centos-7-amd64/inventory.yml}' - '--targets={wazuh-1: /tmp/dtt1-poc/manager-linux-ubuntu-22.04-amd64/inventory.yml, wazuh-2: /tmp/dtt1-poc/manager-linux-centos-7-amd64/inventory.yml}' - -s delta: '0:01:29.808605' end: '2024-03-21 18:33:39.973497' msg: '' rc: 0 start: '2024-03-21 18:32:10.164892' stderr: |- /home/akim/Desktop/venvs/deplo_test/lib/python3.10/site-packages/_testinfra_renamed.py:5: DeprecationWarning: testinfra package has been renamed to pytest-testinfra. Please `pip install pytest-testinfra` and `pip uninstall testinfra` and update your package requirements to avoid this message warnings.warn(( Warning: Permanently added '[ec2-54-158-16-247.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-35-153-80-0.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-54-158-16-247.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-54-158-16-247.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-54-158-16-247.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-54-158-16-247.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-54-158-16-247.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-54-158-16-247.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. perl: warning: Setting locale failed. perl: warning: Please check that your locale settings: LANGUAGE = (unset), LC_ALL = (unset), LC_TIME = "es_ES.UTF-8", LC_MONETARY = "es_ES.UTF-8", LC_ADDRESS = "es_ES.UTF-8", LC_TELEPHONE = "es_ES.UTF-8", LC_NAME = "es_ES.UTF-8", LC_MEASUREMENT = "es_ES.UTF-8", LC_IDENTIFICATION = "es_ES.UTF-8", LC_NUMERIC = "es_ES.UTF-8", LC_PAPER = "es_ES.UTF-8", LANG = "C.UTF-8" are supported and installed on your system. perl: warning: Falling back to a fallback locale ("C.UTF-8"). locale: Cannot set LC_ALL to default locale: No such file or directory Warning: Permanently added '[ec2-54-158-16-247.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Removed /etc/systemd/system/multi-user.target.wants/wazuh-manager.service. Warning: Permanently added '[ec2-54-158-16-247.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-54-158-16-247.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-54-158-16-247.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-54-158-16-247.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-54-158-16-247.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-35-153-80-0.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-35-153-80-0.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-35-153-80-0.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-35-153-80-0.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-35-153-80-0.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-35-153-80-0.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-35-153-80-0.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-35-153-80-0.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Failed to execute operation: Access denied Warning: Permanently added '[ec2-35-153-80-0.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-35-153-80-0.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-35-153-80-0.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-35-153-80-0.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-35-153-80-0.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-54-158-16-247.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-35-153-80-0.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. stderr_lines: stdout: |- ============================= test session starts ============================== platform linux -- Python 3.10.12, pytest-8.1.0, pluggy-1.4.0 -- /home/akim/Desktop/venvs/deplo_test/bin/python3 cachedir: .pytest_cache rootdir: /home/akim/Desktop/wazuh-qa/deployability/modules plugins: testinfra-6.0.0, testinfra-10.1.0 collecting ... collected 2 items modules/testing/tests/test_manager/test_uninstall.py::test_uninstall systemctl status wazuh-manager systemctl status wazuh-manager uname sudo find /boot -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg sudo find /usr/bin -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg sudo find /root -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg sudo find /usr/sbin -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg sudo find /boot -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg sudo find /usr/bin -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg sudo find /root -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg sudo find /usr/sbin -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg uname sudo find /boot -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg sudo find /usr/bin -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg sudo find /root -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg sudo find /usr/sbin -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg sudo find /boot -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg sudo find /usr/bin -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg sudo find /root -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg sudo find /usr/sbin -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg PASSED modules/testing/tests/test_manager/test_uninstall.py::test_manager_uninstalled_directory test -d /var/ossec && echo "true" || echo "false" test -d /var/ossec && echo "true" || echo "false" PASSED =============================== warnings summary =============================== modules/provision/models.py:65 /home/akim/Desktop/wazuh-qa/deployability/modules/provision/models.py:65: 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', pre=True) modules/provision/models.py:73 /home/akim/Desktop/wazuh-qa/deployability/modules/provision/models.py:73: 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('uninstall', pre=True) -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html =================== 2 passed, 2 warnings in 89.18s (0:01:29) =================== stdout_lines: PLAY RECAP ********************************************************************* localhost : ok=2 changed=1 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 [2024-03-21 18:33:40] [DEBUG] ANSIBLE: Playbook [{'hosts': 'localhost', 'become': True, 'become_user': 'akim', 'tasks': [{'name': 'Test uninstall for manager', 'command': "python3 -m pytest modules/testing/tests/test_manager/test_uninstall.py -v --wazuh_version=4.7.3 --wazuh_revision=40714 --component=manager --dependencies='{wazuh-1: /tmp/dtt1-poc/manager-linux-centos-7-amd64/inventory.yml}' --targets='{wazuh-1: /tmp/dtt1-poc/manager-linux-ubuntu-22.04-amd64/inventory.yml, wazuh-2: /tmp/dtt1-poc/manager-linux-centos-7-amd64/inventory.yml}' -s", 'args': {'chdir': '/home/akim/Desktop/wazuh-qa/deployability'}}]}] finished with status {'skipped': {}, 'ok': {'localhost': 2}, 'dark': {}, 'failures': {}, 'ignored': {}, 'rescued': {}, 'processed': {'localhost': 1}, 'changed': {'localhost': 1}} [2024-03-21 18:33:40] [DEBUG] ANSIBLE: Using inventory: {'all': {'hosts': {'ec2-54-158-16-247.compute-1.amazonaws.com': {'ansible_port': 2200, 'ansible_user': 'ubuntu', 'ansible_ssh_private_key_file': '/home/akim/Desktop/personal/Ephemeral'}}}} [2024-03-21 18:33:40] [DEBUG] ANSIBLE: Running playbook: /home/akim/Desktop/wazuh-qa/deployability/modules/testing/playbooks/cleanup.yml No config file found; using defaults PLAY [all] ********************************************************************* TASK [Gathering Facts] ********************************************************* ok: [ec2-54-158-16-247.compute-1.amazonaws.com] TASK [Clean test directory] **************************************************** ok: [ec2-54-158-16-247.compute-1.amazonaws.com] => changed=false path: /tmp/tests state: absent PLAY RECAP ********************************************************************* ec2-54-158-16-247.compute-1.amazonaws.com : ok=2 changed=0 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 [2024-03-21 18:33:52] [DEBUG] ANSIBLE: Playbook /home/akim/Desktop/wazuh-qa/deployability/modules/testing/playbooks/cleanup.yml finished with status {'skipped': {}, 'ok': {'ec2-54-158-16-247.compute-1.amazonaws.com': 2}, 'dark': {}, 'failures': {}, 'ignored': {}, 'rescued': {}, 'processed': {'ec2-54-158-16-247.compute-1.amazonaws.com': 1}, 'changed': {}} [2024-03-21 18:33:52] [DEBUG] ANSIBLE: Using inventory: {'all': {'hosts': {'ec2-54-158-16-247.compute-1.amazonaws.com': {'ansible_port': 2200, 'ansible_user': 'ubuntu', 'ansible_ssh_private_key_file': '/home/akim/Desktop/personal/Ephemeral'}}}} [2024-03-21 18:33:52] [DEBUG] ANSIBLE: Running playbook: /home/akim/Desktop/wazuh-qa/deployability/modules/testing/playbooks/cleanup.yml No config file found; using defaults PLAY [all] ********************************************************************* TASK [Gathering Facts] ********************************************************* ok: [ec2-54-158-16-247.compute-1.amazonaws.com] TASK [Clean test directory] **************************************************** ok: [ec2-54-158-16-247.compute-1.amazonaws.com] => changed=false path: /tmp/tests state: absent PLAY RECAP ********************************************************************* ec2-54-158-16-247.compute-1.amazonaws.com : ok=2 changed=0 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 [2024-03-21 18:34:04] [DEBUG] ANSIBLE: Playbook /home/akim/Desktop/wazuh-qa/deployability/modules/testing/playbooks/cleanup.yml finished with status {'skipped': {}, 'ok': {'ec2-54-158-16-247.compute-1.amazonaws.com': 2}, 'dark': {}, 'failures': {}, 'ignored': {}, 'rescued': {}, 'processed': {'ec2-54-158-16-247.compute-1.amazonaws.com': 1}, 'changed': {}} ```
Redhat-9:Redhat-8 :green_circle: ``` (deplo_test) akim@akim-PC:~/Desktop/wazuh-qa/deployability$ python3 modules/testing/main.py --wazuh-revision '40714' --wazuh-version '4.7.3' --component 'manager' --tests 'install,restart,stop,uninstall' --targets '{"wazuh-1":"/tmp/dtt1-poc/manager-linux-redhat-8-amd64/inventory.yml" }' --targets '{"wazuh-2":"/tmp/dtt1-poc/manager-linux-redhat-9-amd64/inventory.yml"}' --dependencies '{"wazuh-1":"/tmp/dtt1-poc/manager-linux-centos-7-amd64/inventory.yml"}' [2024-03-22 08:58:23] [INFO] TESTER: Running tests for ec2-54-81-186-221.compute-1.amazonaws.com [2024-03-22 08:58:23] [INFO] TESTER: Running tests for ec2-3-86-4-213.compute-1.amazonaws.com [2024-03-22 08:58:23] [INFO] TESTER: Dependencies ec2-35-153-80-0.compute-1.amazonaws.com [2024-03-22 08:58:23] [DEBUG] TESTER: Using extra vars: {'component': 'manager', 'wazuh_version': '4.7.3', 'wazuh_revision': '40714', 'wazuh_branch': None, 'working_dir': '/tmp/tests', 'hosts_ip': ['ec2-54-81-186-221.compute-1.amazonaws.com', 'ec2-3-86-4-213.compute-1.amazonaws.com'], 'targets': '{wazuh-1: /tmp/dtt1-poc/manager-linux-redhat-8-amd64/inventory.yml, wazuh-2: /tmp/dtt1-poc/manager-linux-redhat-9-amd64/inventory.yml}', 'dependencies': '{wazuh-1: /tmp/dtt1-poc/manager-linux-centos-7-amd64/inventory.yml}', 'local_host_path': '/home/akim/Desktop/wazuh-qa/deployability', 'current_user': 'akim'} [2024-03-22 08:58:23] [DEBUG] ANSIBLE: Rendering template /home/akim/Desktop/wazuh-qa/deployability/modules/testing/playbooks/setup.yml [2024-03-22 08:58:23] [DEBUG] ANSIBLE: Using inventory: {'all': {'hosts': {'ec2-54-81-186-221.compute-1.amazonaws.com': {'ansible_port': 2200, 'ansible_user': 'ec2-user', 'ansible_ssh_private_key_file': '/home/akim/Desktop/personal/Ephemeral'}}}} [2024-03-22 08:58:23] [DEBUG] ANSIBLE: Running playbook: [{'hosts': 'localhost', 'become': True, 'become_user': 'akim', 'tasks': [{'name': 'Cleaning old key ssh-keygen registries', 'ansible.builtin.command': {'cmd': "ssh-keygen -f /home/akim/.ssh/known_hosts -R ''"}, 'loop': ['ec2-54-81-186-221.compute-1.amazonaws.com', 'ec2-3-86-4-213.compute-1.amazonaws.com']}]}] No config file found; using defaults PLAY [localhost] *************************************************************** TASK [Gathering Facts] ********************************************************* ok: [localhost] TASK [Cleaning old key ssh-keygen registries] ********************************** changed: [localhost] => (item=ec2-54-81-186-221.compute-1.amazonaws.com) => changed=true ansible_loop_var: item cmd: - ssh-keygen - -f - /home/akim/.ssh/known_hosts - -R - '' delta: '0:00:00.009211' end: '2024-03-22 08:58:29.521681' item: ec2-54-81-186-221.compute-1.amazonaws.com msg: '' rc: 0 start: '2024-03-22 08:58:29.512470' stderr: Host not found in /home/akim/.ssh/known_hosts stderr_lines: stdout: '' stdout_lines: changed: [localhost] => (item=ec2-3-86-4-213.compute-1.amazonaws.com) => changed=true ansible_loop_var: item cmd: - ssh-keygen - -f - /home/akim/.ssh/known_hosts - -R - '' delta: '0:00:00.009086' end: '2024-03-22 08:58:29.688131' item: ec2-3-86-4-213.compute-1.amazonaws.com msg: '' rc: 0 start: '2024-03-22 08:58:29.679045' stderr: Host not found in /home/akim/.ssh/known_hosts stderr_lines: stdout: '' stdout_lines: PLAY RECAP ********************************************************************* localhost : ok=2 changed=1 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 [2024-03-22 08:58:30] [DEBUG] ANSIBLE: Playbook [{'hosts': 'localhost', 'become': True, 'become_user': 'akim', 'tasks': [{'name': 'Cleaning old key ssh-keygen registries', 'ansible.builtin.command': {'cmd': "ssh-keygen -f /home/akim/.ssh/known_hosts -R ''"}, 'loop': ['ec2-54-81-186-221.compute-1.amazonaws.com', 'ec2-3-86-4-213.compute-1.amazonaws.com']}]}] finished with status {'skipped': {}, 'ok': {'localhost': 2}, 'dark': {}, 'failures': {}, 'ignored': {}, 'rescued': {}, 'processed': {'localhost': 1}, 'changed': {'localhost': 1}} [2024-03-22 08:58:30] [DEBUG] ANSIBLE: Rendering template /home/akim/Desktop/wazuh-qa/deployability/modules/testing/playbooks/test.yml [2024-03-22 08:58:30] [DEBUG] ANSIBLE: Using inventory: {'all': {'hosts': {'ec2-54-81-186-221.compute-1.amazonaws.com': {'ansible_port': 2200, 'ansible_user': 'ec2-user', 'ansible_ssh_private_key_file': '/home/akim/Desktop/personal/Ephemeral'}}}} [2024-03-22 08:58:30] [DEBUG] ANSIBLE: Running playbook: [{'hosts': 'localhost', 'become': True, 'become_user': 'akim', 'tasks': [{'name': 'Test install for manager', 'command': "python3 -m pytest modules/testing/tests/test_manager/test_install.py -v --wazuh_version=4.7.3 --wazuh_revision=40714 --component=manager --dependencies='{wazuh-1: /tmp/dtt1-poc/manager-linux-centos-7-amd64/inventory.yml}' --targets='{wazuh-1: /tmp/dtt1-poc/manager-linux-redhat-8-amd64/inventory.yml, wazuh-2: /tmp/dtt1-poc/manager-linux-redhat-9-amd64/inventory.yml}' -s", 'args': {'chdir': '/home/akim/Desktop/wazuh-qa/deployability'}}]}] No config file found; using defaults PLAY [localhost] *************************************************************** TASK [Gathering Facts] ********************************************************* ok: [localhost] TASK [Test install for manager] ************************************************ changed: [localhost] => changed=true cmd: - python3 - -m - pytest - modules/testing/tests/test_manager/test_install.py - -v - --wazuh_version=4.7.3 - --wazuh_revision=40714 - --component=manager - '--dependencies={wazuh-1: /tmp/dtt1-poc/manager-linux-centos-7-amd64/inventory.yml}' - '--targets={wazuh-1: /tmp/dtt1-poc/manager-linux-redhat-8-amd64/inventory.yml, wazuh-2: /tmp/dtt1-poc/manager-linux-redhat-9-amd64/inventory.yml}' - -s delta: '0:11:36.556422' end: '2024-03-22 09:10:09.400216' msg: '' rc: 0 start: '2024-03-22 08:58:32.843794' stderr: |- /home/akim/Desktop/venvs/deplo_test/lib/python3.10/site-packages/_testinfra_renamed.py:5: DeprecationWarning: testinfra package has been renamed to pytest-testinfra. Please `pip install pytest-testinfra` and `pip uninstall testinfra` and update your package requirements to avoid this message warnings.warn(( ssh: connect to host ec2-54-81-186-221.compute-1.amazonaws.com port 2200: Connection refused ssh: connect to host ec2-54-81-186-221.compute-1.amazonaws.com port 2200: Connection refused ssh: connect to host ec2-3-86-4-213.compute-1.amazonaws.com port 2200: Connection timed out Warning: Permanently added '[ec2-3-86-4-213.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Failed to disable unit: Unit file firewalld.service does not exist. Warning: Permanently added '[ec2-54-81-186-221.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-54-81-186-221.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-54-81-186-221.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-54-81-186-221.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-54-81-186-221.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-54-81-186-221.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-54-81-186-221.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-54-81-186-221.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-54-81-186-221.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-54-81-186-221.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-54-81-186-221.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-54-81-186-221.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-54-81-186-221.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-54-81-186-221.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-3-86-4-213.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-54-81-186-221.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-54-81-186-221.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-3-86-4-213.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-54-81-186-221.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-54-81-186-221.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-54-81-186-221.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-54-81-186-221.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-54-81-186-221.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-54-81-186-221.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-54-81-186-221.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-54-81-186-221.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-54-81-186-221.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-54-81-186-221.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-54-81-186-221.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-3-86-4-213.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-3-86-4-213.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-3-86-4-213.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-3-86-4-213.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-3-86-4-213.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-3-86-4-213.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-3-86-4-213.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-3-86-4-213.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-3-86-4-213.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-3-86-4-213.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-3-86-4-213.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-54-81-186-221.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-54-81-186-221.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-54-81-186-221.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-54-81-186-221.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-54-81-186-221.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-54-81-186-221.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-3-86-4-213.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-3-86-4-213.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-3-86-4-213.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-3-86-4-213.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-3-86-4-213.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-3-86-4-213.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-54-81-186-221.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-54-81-186-221.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-3-86-4-213.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-54-81-186-221.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-54-81-186-221.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-54-81-186-221.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-54-81-186-221.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-54-81-186-221.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-3-86-4-213.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-3-86-4-213.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-3-86-4-213.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-3-86-4-213.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-3-86-4-213.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-54-81-186-221.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-54-81-186-221.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-54-81-186-221.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-54-81-186-221.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-3-86-4-213.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-3-86-4-213.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-3-86-4-213.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-3-86-4-213.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-54-81-186-221.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-3-86-4-213.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. stderr_lines: stdout: |- ============================= test session starts ============================== platform linux -- Python 3.10.12, pytest-8.1.0, pluggy-1.4.0 -- /home/akim/Desktop/venvs/deplo_test/bin/python3 cachedir: .pytest_cache rootdir: /home/akim/Desktop/wazuh-qa/deployability/modules plugins: testinfra-6.0.0, testinfra-10.1.0 collecting ... collected 5 items modules/testing/tests/test_manager/test_install.py::test_installation pwd pwd pwd chmod +rw wazuh-install-files.tar chmod 600 wazuh-install-files.tar chmod 600 wazuh-install-files.tar uname sudo find /boot -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg sudo find /usr/bin -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg sudo find /root -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg sudo find /usr/sbin -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg sudo find /boot -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg sudo find /usr/bin -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg sudo find /root -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg sudo find /usr/sbin -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg uname sudo find /boot -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg sudo find /usr/bin -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg sudo find /root -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg sudo find /usr/sbin -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg sudo find /boot -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg sudo find /usr/bin -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg sudo find /root -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg sudo find /usr/sbin -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg /var/ossec/bin/cluster_control -l PASSED modules/testing/tests/test_manager/test_install.py::test_manager_status systemctl status wazuh-manager systemctl status wazuh-manager PASSED modules/testing/tests/test_manager/test_install.py::test_manager_version /var/ossec/bin/wazuh-control info -v pwd test -f /home/ec2-user/wazuh-install-files/wazuh-passwords.txt && echo "true" || echo "false" tar -xvf wazuh-install-files.tar grep api_password wazuh-install-files/wazuh-passwords.txt | head -n 1 | awk '{print $NF}' /var/ossec/bin/wazuh-control info -v pwd test -f /home/ec2-user/wazuh-install-files/wazuh-passwords.txt && echo "true" || echo "false" tar -xvf wazuh-install-files.tar grep api_password wazuh-install-files/wazuh-passwords.txt | head -n 1 | awk '{print $NF}' PASSED modules/testing/tests/test_manager/test_install.py::test_manager_revision /var/ossec/bin/wazuh-control info -r pwd test -f /home/ec2-user/wazuh-install-files/wazuh-passwords.txt && echo "true" || echo "false" grep api_password wazuh-install-files/wazuh-passwords.txt | head -n 1 | awk '{print $NF}' /var/ossec/bin/wazuh-control info -r pwd test -f /home/ec2-user/wazuh-install-files/wazuh-passwords.txt && echo "true" || echo "false" grep api_password wazuh-install-files/wazuh-passwords.txt | head -n 1 | awk '{print $NF}' PASSED modules/testing/tests/test_manager/test_install.py::test_manager_installed_directory test -d /var/ossec && echo "true" || echo "false" test -d /var/ossec && echo "true" || echo "false" PASSED =============================== warnings summary =============================== modules/provision/models.py:65 /home/akim/Desktop/wazuh-qa/deployability/modules/provision/models.py:65: 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', pre=True) modules/provision/models.py:73 /home/akim/Desktop/wazuh-qa/deployability/modules/provision/models.py:73: 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('uninstall', pre=True) -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html ================== 5 passed, 2 warnings in 695.88s (0:11:35) =================== stdout_lines: PLAY RECAP ********************************************************************* localhost : ok=2 changed=1 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 [2024-03-22 09:10:09] [DEBUG] ANSIBLE: Playbook [{'hosts': 'localhost', 'become': True, 'become_user': 'akim', 'tasks': [{'name': 'Test install for manager', 'command': "python3 -m pytest modules/testing/tests/test_manager/test_install.py -v --wazuh_version=4.7.3 --wazuh_revision=40714 --component=manager --dependencies='{wazuh-1: /tmp/dtt1-poc/manager-linux-centos-7-amd64/inventory.yml}' --targets='{wazuh-1: /tmp/dtt1-poc/manager-linux-redhat-8-amd64/inventory.yml, wazuh-2: /tmp/dtt1-poc/manager-linux-redhat-9-amd64/inventory.yml}' -s", 'args': {'chdir': '/home/akim/Desktop/wazuh-qa/deployability'}}]}] finished with status {'skipped': {}, 'ok': {'localhost': 2}, 'dark': {}, 'failures': {}, 'ignored': {}, 'rescued': {}, 'processed': {'localhost': 1}, 'changed': {'localhost': 1}} [2024-03-22 09:10:09] [DEBUG] ANSIBLE: Rendering template /home/akim/Desktop/wazuh-qa/deployability/modules/testing/playbooks/test.yml [2024-03-22 09:10:09] [DEBUG] ANSIBLE: Using inventory: {'all': {'hosts': {'ec2-54-81-186-221.compute-1.amazonaws.com': {'ansible_port': 2200, 'ansible_user': 'ec2-user', 'ansible_ssh_private_key_file': '/home/akim/Desktop/personal/Ephemeral'}}}} [2024-03-22 09:10:09] [DEBUG] ANSIBLE: Running playbook: [{'hosts': 'localhost', 'become': True, 'become_user': 'akim', 'tasks': [{'name': 'Test restart for manager', 'command': "python3 -m pytest modules/testing/tests/test_manager/test_restart.py -v --wazuh_version=4.7.3 --wazuh_revision=40714 --component=manager --dependencies='{wazuh-1: /tmp/dtt1-poc/manager-linux-centos-7-amd64/inventory.yml}' --targets='{wazuh-1: /tmp/dtt1-poc/manager-linux-redhat-8-amd64/inventory.yml, wazuh-2: /tmp/dtt1-poc/manager-linux-redhat-9-amd64/inventory.yml}' -s", 'args': {'chdir': '/home/akim/Desktop/wazuh-qa/deployability'}}]}] No config file found; using defaults PLAY [localhost] *************************************************************** TASK [Gathering Facts] ********************************************************* ok: [localhost] TASK [Test restart for manager] ************************************************ changed: [localhost] => changed=true cmd: - python3 - -m - pytest - modules/testing/tests/test_manager/test_restart.py - -v - --wazuh_version=4.7.3 - --wazuh_revision=40714 - --component=manager - '--dependencies={wazuh-1: /tmp/dtt1-poc/manager-linux-centos-7-amd64/inventory.yml}' - '--targets={wazuh-1: /tmp/dtt1-poc/manager-linux-redhat-8-amd64/inventory.yml, wazuh-2: /tmp/dtt1-poc/manager-linux-redhat-9-amd64/inventory.yml}' - -s delta: '0:00:21.327084' end: '2024-03-22 09:10:36.676966' msg: '' rc: 0 start: '2024-03-22 09:10:15.349882' stderr: |- /home/akim/Desktop/venvs/deplo_test/lib/python3.10/site-packages/_testinfra_renamed.py:5: DeprecationWarning: testinfra package has been renamed to pytest-testinfra. Please `pip install pytest-testinfra` and `pip uninstall testinfra` and update your package requirements to avoid this message warnings.warn(( Warning: Permanently added '[ec2-3-86-4-213.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-54-81-186-221.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-3-86-4-213.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. stderr_lines: stdout: |- ============================= test session starts ============================== platform linux -- Python 3.10.12, pytest-8.1.0, pluggy-1.4.0 -- /home/akim/Desktop/venvs/deplo_test/bin/python3 cachedir: .pytest_cache rootdir: /home/akim/Desktop/wazuh-qa/deployability/modules plugins: testinfra-6.0.0, testinfra-10.1.0 collecting ... collected 1 item modules/testing/tests/test_manager/test_restart.py::test_restart systemctl restart wazuh-manager systemctl status wazuh-manager systemctl status wazuh-manager PASSED =============================== warnings summary =============================== modules/provision/models.py:65 /home/akim/Desktop/wazuh-qa/deployability/modules/provision/models.py:65: 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', pre=True) modules/provision/models.py:73 /home/akim/Desktop/wazuh-qa/deployability/modules/provision/models.py:73: 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('uninstall', pre=True) -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html ======================== 1 passed, 2 warnings in 20.74s ======================== stdout_lines: PLAY RECAP ********************************************************************* localhost : ok=2 changed=1 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 [2024-03-22 09:10:36] [DEBUG] ANSIBLE: Playbook [{'hosts': 'localhost', 'become': True, 'become_user': 'akim', 'tasks': [{'name': 'Test restart for manager', 'command': "python3 -m pytest modules/testing/tests/test_manager/test_restart.py -v --wazuh_version=4.7.3 --wazuh_revision=40714 --component=manager --dependencies='{wazuh-1: /tmp/dtt1-poc/manager-linux-centos-7-amd64/inventory.yml}' --targets='{wazuh-1: /tmp/dtt1-poc/manager-linux-redhat-8-amd64/inventory.yml, wazuh-2: /tmp/dtt1-poc/manager-linux-redhat-9-amd64/inventory.yml}' -s", 'args': {'chdir': '/home/akim/Desktop/wazuh-qa/deployability'}}]}] finished with status {'skipped': {}, 'ok': {'localhost': 2}, 'dark': {}, 'failures': {}, 'ignored': {}, 'rescued': {}, 'processed': {'localhost': 1}, 'changed': {'localhost': 1}} [2024-03-22 09:10:36] [DEBUG] ANSIBLE: Rendering template /home/akim/Desktop/wazuh-qa/deployability/modules/testing/playbooks/test.yml [2024-03-22 09:10:36] [DEBUG] ANSIBLE: Using inventory: {'all': {'hosts': {'ec2-54-81-186-221.compute-1.amazonaws.com': {'ansible_port': 2200, 'ansible_user': 'ec2-user', 'ansible_ssh_private_key_file': '/home/akim/Desktop/personal/Ephemeral'}}}} [2024-03-22 09:10:36] [DEBUG] ANSIBLE: Running playbook: [{'hosts': 'localhost', 'become': True, 'become_user': 'akim', 'tasks': [{'name': 'Test stop for manager', 'command': "python3 -m pytest modules/testing/tests/test_manager/test_stop.py -v --wazuh_version=4.7.3 --wazuh_revision=40714 --component=manager --dependencies='{wazuh-1: /tmp/dtt1-poc/manager-linux-centos-7-amd64/inventory.yml}' --targets='{wazuh-1: /tmp/dtt1-poc/manager-linux-redhat-8-amd64/inventory.yml, wazuh-2: /tmp/dtt1-poc/manager-linux-redhat-9-amd64/inventory.yml}' -s", 'args': {'chdir': '/home/akim/Desktop/wazuh-qa/deployability'}}]}] No config file found; using defaults PLAY [localhost] *************************************************************** TASK [Gathering Facts] ********************************************************* ok: [localhost] TASK [Test stop for manager] *************************************************** changed: [localhost] => changed=true cmd: - python3 - -m - pytest - modules/testing/tests/test_manager/test_stop.py - -v - --wazuh_version=4.7.3 - --wazuh_revision=40714 - --component=manager - '--dependencies={wazuh-1: /tmp/dtt1-poc/manager-linux-centos-7-amd64/inventory.yml}' - '--targets={wazuh-1: /tmp/dtt1-poc/manager-linux-redhat-8-amd64/inventory.yml, wazuh-2: /tmp/dtt1-poc/manager-linux-redhat-9-amd64/inventory.yml}' - -s delta: '0:00:26.581715' end: '2024-03-22 09:11:09.423287' msg: '' rc: 0 start: '2024-03-22 09:10:42.841572' stderr: |- /home/akim/Desktop/venvs/deplo_test/lib/python3.10/site-packages/_testinfra_renamed.py:5: DeprecationWarning: testinfra package has been renamed to pytest-testinfra. Please `pip install pytest-testinfra` and `pip uninstall testinfra` and update your package requirements to avoid this message warnings.warn(( Warning: Permanently added '[ec2-3-86-4-213.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-54-81-186-221.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-3-86-4-213.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-3-86-4-213.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. stderr_lines: stdout: |- ============================= test session starts ============================== platform linux -- Python 3.10.12, pytest-8.1.0, pluggy-1.4.0 -- /home/akim/Desktop/venvs/deplo_test/bin/python3 cachedir: .pytest_cache rootdir: /home/akim/Desktop/wazuh-qa/deployability/modules plugins: testinfra-6.0.0, testinfra-10.1.0 collecting ... collected 1 item modules/testing/tests/test_manager/test_stop.py::test_stop systemctl stop wazuh-manager systemctl status wazuh-manager systemctl status wazuh-manager PASSEDsystemctl restart wazuh-manager =============================== warnings summary =============================== modules/provision/models.py:65 /home/akim/Desktop/wazuh-qa/deployability/modules/provision/models.py:65: 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', pre=True) modules/provision/models.py:73 /home/akim/Desktop/wazuh-qa/deployability/modules/provision/models.py:73: 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('uninstall', pre=True) -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html ======================== 1 passed, 2 warnings in 25.99s ======================== stdout_lines: PLAY RECAP ********************************************************************* localhost : ok=2 changed=1 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 [2024-03-22 09:11:09] [DEBUG] ANSIBLE: Playbook [{'hosts': 'localhost', 'become': True, 'become_user': 'akim', 'tasks': [{'name': 'Test stop for manager', 'command': "python3 -m pytest modules/testing/tests/test_manager/test_stop.py -v --wazuh_version=4.7.3 --wazuh_revision=40714 --component=manager --dependencies='{wazuh-1: /tmp/dtt1-poc/manager-linux-centos-7-amd64/inventory.yml}' --targets='{wazuh-1: /tmp/dtt1-poc/manager-linux-redhat-8-amd64/inventory.yml, wazuh-2: /tmp/dtt1-poc/manager-linux-redhat-9-amd64/inventory.yml}' -s", 'args': {'chdir': '/home/akim/Desktop/wazuh-qa/deployability'}}]}] finished with status {'skipped': {}, 'ok': {'localhost': 2}, 'dark': {}, 'failures': {}, 'ignored': {}, 'rescued': {}, 'processed': {'localhost': 1}, 'changed': {'localhost': 1}} [2024-03-22 09:11:09] [DEBUG] ANSIBLE: Rendering template /home/akim/Desktop/wazuh-qa/deployability/modules/testing/playbooks/test.yml [2024-03-22 09:11:09] [DEBUG] ANSIBLE: Using inventory: {'all': {'hosts': {'ec2-54-81-186-221.compute-1.amazonaws.com': {'ansible_port': 2200, 'ansible_user': 'ec2-user', 'ansible_ssh_private_key_file': '/home/akim/Desktop/personal/Ephemeral'}}}} [2024-03-22 09:11:09] [DEBUG] ANSIBLE: Running playbook: [{'hosts': 'localhost', 'become': True, 'become_user': 'akim', 'tasks': [{'name': 'Test uninstall for manager', 'command': "python3 -m pytest modules/testing/tests/test_manager/test_uninstall.py -v --wazuh_version=4.7.3 --wazuh_revision=40714 --component=manager --dependencies='{wazuh-1: /tmp/dtt1-poc/manager-linux-centos-7-amd64/inventory.yml}' --targets='{wazuh-1: /tmp/dtt1-poc/manager-linux-redhat-8-amd64/inventory.yml, wazuh-2: /tmp/dtt1-poc/manager-linux-redhat-9-amd64/inventory.yml}' -s", 'args': {'chdir': '/home/akim/Desktop/wazuh-qa/deployability'}}]}] No config file found; using defaults PLAY [localhost] *************************************************************** TASK [Gathering Facts] ********************************************************* ok: [localhost] TASK [Test uninstall for manager] ********************************************** changed: [localhost] => changed=true cmd: - python3 - -m - pytest - modules/testing/tests/test_manager/test_uninstall.py - -v - --wazuh_version=4.7.3 - --wazuh_revision=40714 - --component=manager - '--dependencies={wazuh-1: /tmp/dtt1-poc/manager-linux-centos-7-amd64/inventory.yml}' - '--targets={wazuh-1: /tmp/dtt1-poc/manager-linux-redhat-8-amd64/inventory.yml, wazuh-2: /tmp/dtt1-poc/manager-linux-redhat-9-amd64/inventory.yml}' - -s delta: '0:01:48.984439' end: '2024-03-22 09:13:04.356093' msg: '' rc: 0 start: '2024-03-22 09:11:15.371654' stderr: |- /home/akim/Desktop/venvs/deplo_test/lib/python3.10/site-packages/_testinfra_renamed.py:5: DeprecationWarning: testinfra package has been renamed to pytest-testinfra. Please `pip install pytest-testinfra` and `pip uninstall testinfra` and update your package requirements to avoid this message warnings.warn(( Warning: Permanently added '[ec2-54-81-186-221.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-3-86-4-213.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-54-81-186-221.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-54-81-186-221.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-54-81-186-221.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-54-81-186-221.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-54-81-186-221.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-54-81-186-221.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Failed to set locale, defaulting to C.UTF-8 Warning: Permanently added '[ec2-54-81-186-221.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-54-81-186-221.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Removed /etc/systemd/system/multi-user.target.wants/wazuh-manager.service. Warning: Permanently added '[ec2-54-81-186-221.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-54-81-186-221.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-54-81-186-221.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-54-81-186-221.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-54-81-186-221.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-3-86-4-213.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-3-86-4-213.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-3-86-4-213.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-3-86-4-213.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-3-86-4-213.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-3-86-4-213.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-3-86-4-213.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-3-86-4-213.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Failed to disable unit: Unit file wazuh-manager.service does not exist. Warning: Permanently added '[ec2-3-86-4-213.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-3-86-4-213.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-3-86-4-213.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-3-86-4-213.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-3-86-4-213.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-54-81-186-221.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-3-86-4-213.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. stderr_lines: stdout: |- ============================= test session starts ============================== platform linux -- Python 3.10.12, pytest-8.1.0, pluggy-1.4.0 -- /home/akim/Desktop/venvs/deplo_test/bin/python3 cachedir: .pytest_cache rootdir: /home/akim/Desktop/wazuh-qa/deployability/modules plugins: testinfra-6.0.0, testinfra-10.1.0 collecting ... collected 2 items modules/testing/tests/test_manager/test_uninstall.py::test_uninstall systemctl status wazuh-manager systemctl status wazuh-manager uname sudo find /boot -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg sudo find /usr/bin -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg sudo find /root -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg sudo find /usr/sbin -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg sudo find /boot -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg sudo find /usr/bin -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg sudo find /root -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg sudo find /usr/sbin -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg uname sudo find /boot -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg sudo find /usr/bin -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg sudo find /root -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg sudo find /usr/sbin -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg sudo find /boot -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg sudo find /usr/bin -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg sudo find /root -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg sudo find /usr/sbin -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg PASSED modules/testing/tests/test_manager/test_uninstall.py::test_manager_uninstalled_directory test -d /var/ossec && echo "true" || echo "false" test -d /var/ossec && echo "true" || echo "false" PASSED =============================== warnings summary =============================== modules/provision/models.py:65 /home/akim/Desktop/wazuh-qa/deployability/modules/provision/models.py:65: 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', pre=True) modules/provision/models.py:73 /home/akim/Desktop/wazuh-qa/deployability/modules/provision/models.py:73: 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('uninstall', pre=True) -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html ================== 2 passed, 2 warnings in 108.40s (0:01:48) =================== stdout_lines: PLAY RECAP ********************************************************************* localhost : ok=2 changed=1 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 [2024-03-22 09:13:04] [DEBUG] ANSIBLE: Playbook [{'hosts': 'localhost', 'become': True, 'become_user': 'akim', 'tasks': [{'name': 'Test uninstall for manager', 'command': "python3 -m pytest modules/testing/tests/test_manager/test_uninstall.py -v --wazuh_version=4.7.3 --wazuh_revision=40714 --component=manager --dependencies='{wazuh-1: /tmp/dtt1-poc/manager-linux-centos-7-amd64/inventory.yml}' --targets='{wazuh-1: /tmp/dtt1-poc/manager-linux-redhat-8-amd64/inventory.yml, wazuh-2: /tmp/dtt1-poc/manager-linux-redhat-9-amd64/inventory.yml}' -s", 'args': {'chdir': '/home/akim/Desktop/wazuh-qa/deployability'}}]}] finished with status {'skipped': {}, 'ok': {'localhost': 2}, 'dark': {}, 'failures': {}, 'ignored': {}, 'rescued': {}, 'processed': {'localhost': 1}, 'changed': {'localhost': 1}} [2024-03-22 09:13:04] [DEBUG] ANSIBLE: Using inventory: {'all': {'hosts': {'ec2-54-81-186-221.compute-1.amazonaws.com': {'ansible_port': 2200, 'ansible_user': 'ec2-user', 'ansible_ssh_private_key_file': '/home/akim/Desktop/personal/Ephemeral'}}}} [2024-03-22 09:13:04] [DEBUG] ANSIBLE: Running playbook: /home/akim/Desktop/wazuh-qa/deployability/modules/testing/playbooks/cleanup.yml No config file found; using defaults PLAY [all] ********************************************************************* TASK [Gathering Facts] ********************************************************* ok: [ec2-54-81-186-221.compute-1.amazonaws.com] TASK [Clean test directory] **************************************************** ok: [ec2-54-81-186-221.compute-1.amazonaws.com] => changed=false path: /tmp/tests state: absent PLAY RECAP ********************************************************************* ec2-54-81-186-221.compute-1.amazonaws.com : ok=2 changed=0 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 [2024-03-22 09:13:18] [DEBUG] ANSIBLE: Playbook /home/akim/Desktop/wazuh-qa/deployability/modules/testing/playbooks/cleanup.yml finished with status {'skipped': {}, 'ok': {'ec2-54-81-186-221.compute-1.amazonaws.com': 2}, 'dark': {}, 'failures': {}, 'ignored': {}, 'rescued': {}, 'processed': {'ec2-54-81-186-221.compute-1.amazonaws.com': 1}, 'changed': {}} [2024-03-22 09:13:18] [DEBUG] ANSIBLE: Using inventory: {'all': {'hosts': {'ec2-54-81-186-221.compute-1.amazonaws.com': {'ansible_port': 2200, 'ansible_user': 'ec2-user', 'ansible_ssh_private_key_file': '/home/akim/Desktop/personal/Ephemeral'}}}} [2024-03-22 09:13:18] [DEBUG] ANSIBLE: Running playbook: /home/akim/Desktop/wazuh-qa/deployability/modules/testing/playbooks/cleanup.yml No config file found; using defaults PLAY [all] ********************************************************************* TASK [Gathering Facts] ********************************************************* ok: [ec2-54-81-186-221.compute-1.amazonaws.com] TASK [Clean test directory] **************************************************** ok: [ec2-54-81-186-221.compute-1.amazonaws.com] => changed=false path: /tmp/tests state: absent PLAY RECAP ********************************************************************* ec2-54-81-186-221.compute-1.amazonaws.com : ok=2 changed=0 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 [2024-03-22 09:13:29] [DEBUG] ANSIBLE: Playbook /home/akim/Desktop/wazuh-qa/deployability/modules/testing/playbooks/cleanup.yml finished with status {'skipped': {}, 'ok': {'ec2-54-81-186-221.compute-1.amazonaws.com': 2}, 'dark': {}, 'failures': {}, 'ignored': {}, 'rescued': {}, 'processed': {'ec2-54-81-186-221.compute-1.amazonaws.com': 1}, 'changed': {}} ```
Debian-10:Debian-11 :green_circle: ``` deplo_test) akim@akim-PC:~/Desktop/wazuh-qa/deployability$ python3 modules/testing/main.py --wazuh-revision '40714' --wazuh-version '4.7.3' --component 'manager' --tests 'install' --targets '{"wazuh-1":"/tmp/dtt1-poc/manager-linux-debian-10-amd64/inventory.yml"}' --targets '{"wazuh-2":"/tmp/dtt1-poc/manager-linux-debian-11-amd64/inventory.yml"}' --dependencies '{"wazuh-1":"/tmp/dtt1-poc/manager-linux-centos-7-amd64/inventory.yml"}' [2024-03-22 10:34:44] [INFO] TESTER: Running tests for ec2-54-161-92-147.compute-1.amazonaws.com [2024-03-22 10:34:44] [INFO] TESTER: Running tests for ec2-54-145-184-30.compute-1.amazonaws.com [2024-03-22 10:34:44] [INFO] TESTER: Dependencies ec2-35-153-80-0.compute-1.amazonaws.com [2024-03-22 10:34:44] [DEBUG] TESTER: Using extra vars: {'component': 'manager', 'wazuh_version': '4.7.3', 'wazuh_revision': '40714', 'wazuh_branch': None, 'working_dir': '/tmp/tests', 'hosts_ip': ['ec2-54-161-92-147.compute-1.amazonaws.com', 'ec2-54-145-184-30.compute-1.amazonaws.com'], 'targets': '{wazuh-1: /tmp/dtt1-poc/manager-linux-debian-10-amd64/inventory.yml, wazuh-2: /tmp/dtt1-poc/manager-linux-debian-11-amd64/inventory.yml}', 'dependencies': '{wazuh-1: /tmp/dtt1-poc/manager-linux-centos-7-amd64/inventory.yml}', 'local_host_path': '/home/akim/Desktop/wazuh-qa/deployability', 'current_user': 'akim'} [2024-03-22 10:34:44] [DEBUG] ANSIBLE: Rendering template /home/akim/Desktop/wazuh-qa/deployability/modules/testing/playbooks/setup.yml [2024-03-22 10:34:44] [DEBUG] ANSIBLE: Using inventory: {'all': {'hosts': {'ec2-54-161-92-147.compute-1.amazonaws.com': {'ansible_port': 2200, 'ansible_user': 'admin', 'ansible_ssh_private_key_file': '/home/akim/Desktop/personal/Ephemeral'}}}} [2024-03-22 10:34:44] [DEBUG] ANSIBLE: Running playbook: [{'hosts': 'localhost', 'become': True, 'become_user': 'akim', 'tasks': [{'name': 'Cleaning old key ssh-keygen registries', 'ansible.builtin.command': {'cmd': "ssh-keygen -f /home/akim/.ssh/known_hosts -R ''"}, 'loop': ['ec2-54-161-92-147.compute-1.amazonaws.com', 'ec2-54-145-184-30.compute-1.amazonaws.com']}]}] No config file found; using defaults PLAY [localhost] *************************************************************** TASK [Gathering Facts] ********************************************************* ok: [localhost] TASK [Cleaning old key ssh-keygen registries] ********************************** changed: [localhost] => (item=ec2-54-161-92-147.compute-1.amazonaws.com) => changed=true ansible_loop_var: item cmd: - ssh-keygen - -f - /home/akim/.ssh/known_hosts - -R - '' delta: '0:00:00.009888' end: '2024-03-22 10:34:50.737216' item: ec2-54-161-92-147.compute-1.amazonaws.com msg: '' rc: 0 start: '2024-03-22 10:34:50.727328' stderr: Host not found in /home/akim/.ssh/known_hosts stderr_lines: stdout: '' stdout_lines: changed: [localhost] => (item=ec2-54-145-184-30.compute-1.amazonaws.com) => changed=true ansible_loop_var: item cmd: - ssh-keygen - -f - /home/akim/.ssh/known_hosts - -R - '' delta: '0:00:00.011629' end: '2024-03-22 10:34:50.919030' item: ec2-54-145-184-30.compute-1.amazonaws.com msg: '' rc: 0 start: '2024-03-22 10:34:50.907401' stderr: Host not found in /home/akim/.ssh/known_hosts stderr_lines: stdout: '' stdout_lines: PLAY RECAP ********************************************************************* localhost : ok=2 changed=1 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 [2024-03-22 10:34:51] [DEBUG] ANSIBLE: Playbook [{'hosts': 'localhost', 'become': True, 'become_user': 'akim', 'tasks': [{'name': 'Cleaning old key ssh-keygen registries', 'ansible.builtin.command': {'cmd': "ssh-keygen -f /home/akim/.ssh/known_hosts -R ''"}, 'loop': ['ec2-54-161-92-147.compute-1.amazonaws.com', 'ec2-54-145-184-30.compute-1.amazonaws.com']}]}] finished with status {'skipped': {}, 'ok': {'localhost': 2}, 'dark': {}, 'failures': {}, 'ignored': {}, 'rescued': {}, 'processed': {'localhost': 1}, 'changed': {'localhost': 1}} [2024-03-22 10:34:51] [DEBUG] ANSIBLE: Rendering template /home/akim/Desktop/wazuh-qa/deployability/modules/testing/playbooks/test.yml [2024-03-22 10:34:51] [DEBUG] ANSIBLE: Using inventory: {'all': {'hosts': {'ec2-54-161-92-147.compute-1.amazonaws.com': {'ansible_port': 2200, 'ansible_user': 'admin', 'ansible_ssh_private_key_file': '/home/akim/Desktop/personal/Ephemeral'}}}} [2024-03-22 10:34:51] [DEBUG] ANSIBLE: Running playbook: [{'hosts': 'localhost', 'become': True, 'become_user': 'akim', 'tasks': [{'name': 'Test install for manager', 'command': "python3 -m pytest modules/testing/tests/test_manager/test_install.py -v --wazuh_version=4.7.3 --wazuh_revision=40714 --component=manager --dependencies='{wazuh-1: /tmp/dtt1-poc/manager-linux-centos-7-amd64/inventory.yml}' --targets='{wazuh-1: /tmp/dtt1-poc/manager-linux-debian-10-amd64/inventory.yml, wazuh-2: /tmp/dtt1-poc/manager-linux-debian-11-amd64/inventory.yml}' -s", 'args': {'chdir': '/home/akim/Desktop/wazuh-qa/deployability'}}]}] No config file found; using defaults PLAY [localhost] *************************************************************** TASK [Gathering Facts] ********************************************************* ok: [localhost] TASK [Test install for manager] ************************************************ changed: [localhost] => changed=true cmd: - python3 - -m - pytest - modules/testing/tests/test_manager/test_install.py - -v - --wazuh_version=4.7.3 - --wazuh_revision=40714 - --component=manager - '--dependencies={wazuh-1: /tmp/dtt1-poc/manager-linux-centos-7-amd64/inventory.yml}' - '--targets={wazuh-1: /tmp/dtt1-poc/manager-linux-debian-10-amd64/inventory.yml, wazuh-2: /tmp/dtt1-poc/manager-linux-debian-11-amd64/inventory.yml}' - -s delta: '0:06:19.090662' end: '2024-03-22 10:41:13.605035' msg: '' rc: 0 start: '2024-03-22 10:34:54.514373' stderr: |- /home/akim/Desktop/venvs/deplo_test/lib/python3.10/site-packages/_testinfra_renamed.py:5: DeprecationWarning: testinfra package has been renamed to pytest-testinfra. Please `pip install pytest-testinfra` and `pip uninstall testinfra` and update your package requirements to avoid this message warnings.warn(( Warning: Permanently added '[ec2-54-161-92-147.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Failed to stop firewalld.service: Unit firewalld.service not loaded. Warning: Permanently added '[ec2-54-161-92-147.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Failed to disable unit: Unit file firewalld.service does not exist. Warning: Permanently added '[ec2-54-145-184-30.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Failed to stop firewalld.service: Unit firewalld.service not loaded. Warning: Permanently added '[ec2-54-145-184-30.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Failed to disable unit: Unit file firewalld.service does not exist. Warning: Permanently added '[ec2-54-161-92-147.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-54-161-92-147.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. --2024-03-22 09:35:11-- https://packages.wazuh.com/4.7/wazuh-install.sh Resolving packages.wazuh.com (packages.wazuh.com)... 99.86.229.50, 99.86.229.57, 99.86.229.76, ... Connecting to packages.wazuh.com (packages.wazuh.com)|99.86.229.50|:443... connected. HTTP request sent, awaiting response... 200 OK Length: 165734 (162K) [application/x-sh] Saving to: 'wazuh-install.sh' 0K .......... .......... .......... .......... .......... 30% 37.5M 0s 50K .......... .......... .......... .......... .......... 61% 44.7M 0s 100K .......... .......... .......... .......... .......... 92% 46.4M 0s 150K .......... . 100% 208M=0.003s 2024-03-22 09:35:11 (45.2 MB/s) - 'wazuh-install.sh' saved [165734/165734] Warning: Permanently added '[ec2-54-161-92-147.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. --2024-03-22 09:35:13-- https://packages.wazuh.com/4.7/config.yml Resolving packages.wazuh.com (packages.wazuh.com)... 99.86.229.65, 99.86.229.76, 99.86.229.57, ... Connecting to packages.wazuh.com (packages.wazuh.com)|99.86.229.65|:443... connected. HTTP request sent, awaiting response... 200 OK Length: 636 [binary/octet-stream] Saving to: 'config.yml' 0K 100% 49.4M=0s 2024-03-22 09:35:13 (49.4 MB/s) - 'config.yml' saved [636/636] Warning: Permanently added '[ec2-54-161-92-147.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-54-161-92-147.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-54-161-92-147.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-54-161-92-147.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-54-161-92-147.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-54-161-92-147.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-54-161-92-147.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-54-161-92-147.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-54-161-92-147.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-54-161-92-147.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-54-161-92-147.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-54-145-184-30.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-54-161-92-147.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-54-161-92-147.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-54-145-184-30.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-54-161-92-147.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-54-161-92-147.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-54-161-92-147.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-54-161-92-147.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-54-161-92-147.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-54-161-92-147.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. --2024-03-22 09:36:09-- https://packages.wazuh.com/4.7/wazuh-install.sh Resolving packages.wazuh.com (packages.wazuh.com)... 99.86.229.50, 99.86.229.65, 99.86.229.76, ... Connecting to packages.wazuh.com (packages.wazuh.com)|99.86.229.50|:443... connected. HTTP request sent, awaiting response... 200 OK Length: 165734 (162K) [application/x-sh] Saving to: 'wazuh-install.sh.1' 0K .......... .......... .......... .......... .......... 30% 45.8M 0s 50K .......... .......... .......... .......... .......... 61% 42.7M 0s 100K .......... .......... .......... .......... .......... 92% 42.4M 0s 150K .......... . 100% 300M=0.003s 2024-03-22 09:36:09 (46.5 MB/s) - 'wazuh-install.sh.1' saved [165734/165734] Warning: Permanently added '[ec2-54-161-92-147.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-54-161-92-147.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-54-161-92-147.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-54-161-92-147.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-54-161-92-147.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-54-145-184-30.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-54-145-184-30.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-54-145-184-30.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-54-145-184-30.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-54-145-184-30.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-54-145-184-30.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. --2024-03-22 09:37:43-- https://packages.wazuh.com/4.7/wazuh-install.sh Resolving packages.wazuh.com (packages.wazuh.com)... 99.86.229.57, 99.86.229.65, 99.86.229.50, ... Connecting to packages.wazuh.com (packages.wazuh.com)|99.86.229.57|:443... connected. HTTP request sent, awaiting response... 200 OK Length: 165734 (162K) [application/x-sh] Saving to: 'wazuh-install.sh' 0K .......... .......... .......... .......... .......... 30% 49.7M 0s 50K .......... .......... .......... .......... .......... 61% 27.2M 0s 100K .......... .......... .......... .......... .......... 92% 174M 0s 150K .......... . 100% 137M=0.003s 2024-03-22 09:37:43 (50.4 MB/s) - 'wazuh-install.sh' saved [165734/165734] Warning: Permanently added '[ec2-54-145-184-30.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-54-145-184-30.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-54-145-184-30.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-54-145-184-30.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-54-145-184-30.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-54-161-92-147.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-54-161-92-147.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-54-161-92-147.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-54-161-92-147.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-54-161-92-147.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-54-161-92-147.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-54-145-184-30.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-54-145-184-30.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-54-145-184-30.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-54-145-184-30.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-54-145-184-30.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-54-145-184-30.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-54-161-92-147.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-54-161-92-147.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-54-145-184-30.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-54-161-92-147.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-54-161-92-147.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-54-161-92-147.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-54-161-92-147.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-54-161-92-147.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-54-145-184-30.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-54-145-184-30.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-54-145-184-30.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-54-145-184-30.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-54-145-184-30.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-54-161-92-147.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-54-161-92-147.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-54-161-92-147.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-54-161-92-147.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-54-145-184-30.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-54-145-184-30.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-54-145-184-30.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-54-145-184-30.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-54-161-92-147.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-54-145-184-30.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. stderr_lines: stdout: |- ============================= test session starts ============================== platform linux -- Python 3.10.12, pytest-8.1.0, pluggy-1.4.0 -- /home/akim/Desktop/venvs/deplo_test/bin/python3 cachedir: .pytest_cache rootdir: /home/akim/Desktop/wazuh-qa/deployability/modules plugins: testinfra-6.0.0, testinfra-10.1.0 collecting ... collected 5 items modules/testing/tests/test_manager/test_install.py::test_installation pwd pwd pwd chmod +rw wazuh-install-files.tar chmod 600 wazuh-install-files.tar chmod 600 wazuh-install-files.tar uname sudo find /boot -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg sudo find /usr/bin -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg sudo find /root -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg sudo find /usr/sbin -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg sudo find /boot -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg sudo find /usr/bin -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg sudo find /root -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg sudo find /usr/sbin -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg /root added [] modified [] removed [] /usr/bin added [] modified [] removed [] /usr/sbin added [] modified [] removed [] /boot added [] modified [] removed [] uname sudo find /boot -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg sudo find /usr/bin -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg sudo find /root -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg sudo find /usr/sbin -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg sudo find /boot -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg sudo find /usr/bin -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg sudo find /root -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg sudo find /usr/sbin -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg /root added [] modified [] removed [] /usr/bin added [] modified [] removed [] /usr/sbin added [] modified [] removed [] /boot added [] modified [] removed [] /var/ossec/bin/cluster_control -l PASSED modules/testing/tests/test_manager/test_install.py::test_manager_status systemctl status wazuh-manager systemctl status wazuh-manager PASSED modules/testing/tests/test_manager/test_install.py::test_manager_version /var/ossec/bin/wazuh-control info -v pwd test -f /home/admin/wazuh-install-files/wazuh-passwords.txt && echo "true" || echo "false" tar -xvf wazuh-install-files.tar grep api_password wazuh-install-files/wazuh-passwords.txt | head -n 1 | awk '{print $NF}' /var/ossec/bin/wazuh-control info -v pwd test -f /home/admin/wazuh-install-files/wazuh-passwords.txt && echo "true" || echo "false" tar -xvf wazuh-install-files.tar grep api_password wazuh-install-files/wazuh-passwords.txt | head -n 1 | awk '{print $NF}' PASSED modules/testing/tests/test_manager/test_install.py::test_manager_revision /var/ossec/bin/wazuh-control info -r pwd test -f /home/admin/wazuh-install-files/wazuh-passwords.txt && echo "true" || echo "false" grep api_password wazuh-install-files/wazuh-passwords.txt | head -n 1 | awk '{print $NF}' /var/ossec/bin/wazuh-control info -r pwd test -f /home/admin/wazuh-install-files/wazuh-passwords.txt && echo "true" || echo "false" grep api_password wazuh-install-files/wazuh-passwords.txt | head -n 1 | awk '{print $NF}' PASSED modules/testing/tests/test_manager/test_install.py::test_manager_installed_directory test -d /var/ossec && echo "true" || echo "false" test -d /var/ossec && echo "true" || echo "false" PASSED =============================== warnings summary =============================== modules/provision/models.py:65 /home/akim/Desktop/wazuh-qa/deployability/modules/provision/models.py:65: 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', pre=True) modules/provision/models.py:73 /home/akim/Desktop/wazuh-qa/deployability/modules/provision/models.py:73: 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('uninstall', pre=True) modules/testing/tests/helpers/agent.py:55 /home/akim/Desktop/wazuh-qa/deployability/modules/testing/tests/helpers/agent.py:55: DeprecationWarning: invalid escape sequence '\w' "-OutFile ${env.tmp}\wazuh-agent;" modules/testing/tests/helpers/agent.py:56 /home/akim/Desktop/wazuh-qa/deployability/modules/testing/tests/helpers/agent.py:56: DeprecationWarning: invalid escape sequence '\w' "msiexec.exe /i ${env.tmp}\wazuh-agent /q" modules/testing/tests/helpers/agent.py:97 modules/testing/tests/helpers/agent.py:97 /home/akim/Desktop/wazuh-qa/deployability/modules/testing/tests/helpers/agent.py:97: DeprecationWarning: invalid escape sequence '\/' f"sed -i 's/
MANAGER_IP<\/address>/
{internal_ip}<\/address>/g' {WAZUH_CONF}", modules/testing/tests/helpers/manager.py:265 modules/testing/tests/helpers/manager.py:265 /home/akim/Desktop/wazuh-qa/deployability/modules/testing/tests/helpers/manager.py:265: DeprecationWarning: invalid escape sequence '\/' f"sed -i 's/node01<\/node_name>/{node_name}<\/node_name>/' {WAZUH_CONF}", modules/testing/tests/helpers/manager.py:266 modules/testing/tests/helpers/manager.py:266 /home/akim/Desktop/wazuh-qa/deployability/modules/testing/tests/helpers/manager.py:266: DeprecationWarning: invalid escape sequence '\/' f"sed -i 's/master<\/node_type>/{node_type}<\/node_type>/' {WAZUH_CONF}", modules/testing/tests/helpers/manager.py:267 modules/testing/tests/helpers/manager.py:267 /home/akim/Desktop/wazuh-qa/deployability/modules/testing/tests/helpers/manager.py:267: DeprecationWarning: invalid escape sequence '\/' f"sed -i 's/<\/key>/{key}<\/key>/' {WAZUH_CONF}", modules/testing/tests/helpers/manager.py:268 modules/testing/tests/helpers/manager.py:268 /home/akim/Desktop/wazuh-qa/deployability/modules/testing/tests/helpers/manager.py:268: DeprecationWarning: invalid escape sequence '\/' f"sed -i 's/NODE_IP<\/node>/{HostInformation.get_internal_ip_from_aws_dns(master_dns)}<\/node>/' {WAZUH_CONF}", modules/testing/tests/helpers/manager.py:269 modules/testing/tests/helpers/manager.py:269 /home/akim/Desktop/wazuh-qa/deployability/modules/testing/tests/helpers/manager.py:269: DeprecationWarning: invalid escape sequence '\/' f"sed -i 's/yes<\/disabled>/{disabled}<\/disabled>/' {WAZUH_CONF}", -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html ================== 5 passed, 16 warnings in 378.39s (0:06:18) ================== stdout_lines: PLAY RECAP ********************************************************************* localhost : ok=2 changed=1 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 [2024-03-22 10:41:13] [DEBUG] ANSIBLE: Playbook [{'hosts': 'localhost', 'become': True, 'become_user': 'akim', 'tasks': [{'name': 'Test install for manager', 'command': "python3 -m pytest modules/testing/tests/test_manager/test_install.py -v --wazuh_version=4.7.3 --wazuh_revision=40714 --component=manager --dependencies='{wazuh-1: /tmp/dtt1-poc/manager-linux-centos-7-amd64/inventory.yml}' --targets='{wazuh-1: /tmp/dtt1-poc/manager-linux-debian-10-amd64/inventory.yml, wazuh-2: /tmp/dtt1-poc/manager-linux-debian-11-amd64/inventory.yml}' -s", 'args': {'chdir': '/home/akim/Desktop/wazuh-qa/deployability'}}]}] finished with status {'skipped': {}, 'ok': {'localhost': 2}, 'dark': {}, 'failures': {}, 'ignored': {}, 'rescued': {}, 'processed': {'localhost': 1}, 'changed': {'localhost': 1}} [2024-03-22 10:41:13] [DEBUG] ANSIBLE: Using inventory: {'all': {'hosts': {'ec2-54-161-92-147.compute-1.amazonaws.com': {'ansible_port': 2200, 'ansible_user': 'admin', 'ansible_ssh_private_key_file': '/home/akim/Desktop/personal/Ephemeral'}}}} [2024-03-22 10:41:13] [DEBUG] ANSIBLE: Running playbook: /home/akim/Desktop/wazuh-qa/deployability/modules/testing/playbooks/cleanup.yml No config file found; using defaults PLAY [all] ********************************************************************* TASK [Gathering Facts] ********************************************************* ok: [ec2-54-161-92-147.compute-1.amazonaws.com] TASK [Clean test directory] **************************************************** ok: [ec2-54-161-92-147.compute-1.amazonaws.com] => changed=false path: /tmp/tests state: absent PLAY RECAP ********************************************************************* ec2-54-161-92-147.compute-1.amazonaws.com : ok=2 changed=0 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 [2024-03-22 10:41:26] [DEBUG] ANSIBLE: Playbook /home/akim/Desktop/wazuh-qa/deployability/modules/testing/playbooks/cleanup.yml finished with status {'skipped': {}, 'ok': {'ec2-54-161-92-147.compute-1.amazonaws.com': 2}, 'dark': {}, 'failures': {}, 'ignored': {}, 'rescued': {}, 'processed': {'ec2-54-161-92-147.compute-1.amazonaws.com': 1}, 'changed': {}} [2024-03-22 10:41:26] [DEBUG] ANSIBLE: Using inventory: {'all': {'hosts': {'ec2-54-161-92-147.compute-1.amazonaws.com': {'ansible_port': 2200, 'ansible_user': 'admin', 'ansible_ssh_private_key_file': '/home/akim/Desktop/personal/Ephemeral'}}}} [2024-03-22 10:41:26] [DEBUG] ANSIBLE: Running playbook: /home/akim/Desktop/wazuh-qa/deployability/modules/testing/playbooks/cleanup.yml No config file found; using defaults PLAY [all] ********************************************************************* TASK [Gathering Facts] ********************************************************* ok: [ec2-54-161-92-147.compute-1.amazonaws.com] TASK [Clean test directory] **************************************************** ok: [ec2-54-161-92-147.compute-1.amazonaws.com] => changed=false path: /tmp/tests state: absent PLAY RECAP ********************************************************************* ec2-54-161-92-147.compute-1.amazonaws.com : ok=2 changed=0 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 [2024-03-22 10:41:35] [DEBUG] ANSIBLE: Playbook /home/akim/Desktop/wazuh-qa/deployability/modules/testing/playbooks/cleanup.yml finished with status {'skipped': {}, 'ok': {'ec2-54-161-92-147.compute-1.amazonaws.com': 2}, 'dark': {}, 'failures': {}, 'ignored': {}, 'rescued': {}, 'processed': {'ec2-54-161-92-147.compute-1.amazonaws.com': 1}, 'changed': {}} (deplo_test) akim@akim-PC:~/Desktop/wazuh-qa/deployability$ python3 modules/testing/main.py --wazuh-revision '40714' --wazuh-version '4.7.3' --component 'manager' --tests 'stop,restart,uninstall' --targets '{"wazuh-1":"/tmp/dtt1-poc/manager-linux-debian-10-amd64/inventory.yml"}' --ta rgets '{"wazuh-2":"/tmp/dtt1-poc/manager-linux-debian-11-amd64/inventory.yml"}' --dependencies '{"wazuh-1":"/tmp/dtt1-poc/manager-linux-centos-7-amd64/inventory.yml"}' [2024-03-22 10:43:15] [INFO] TESTER: Running tests for ec2-54-161-92-147.compute-1.amazonaws.com [2024-03-22 10:43:15] [INFO] TESTER: Running tests for ec2-54-145-184-30.compute-1.amazonaws.com [2024-03-22 10:43:15] [INFO] TESTER: Dependencies ec2-35-153-80-0.compute-1.amazonaws.com [2024-03-22 10:43:15] [DEBUG] TESTER: Using extra vars: {'component': 'manager', 'wazuh_version': '4.7.3', 'wazuh_revision': '40714', 'wazuh_branch': None, 'working_dir': '/tmp/tests', 'hosts_ip': ['ec2-54-161-92-147.compute-1.amazonaws.com', 'ec2-54-145-184-30.compute-1.amazonaws.com'], 'targets': '{wazuh-1: /tmp/dtt1-poc/manager-linux-debian-10-amd64/inventory.yml, wazuh-2: /tmp/dtt1-poc/manager-linux-debian-11-amd64/inventory.yml}', 'dependencies': '{wazuh-1: /tmp/dtt1-poc/manager-linux-centos-7-amd64/inventory.yml}', 'local_host_path': '/home/akim/Desktop/wazuh-qa/deployability', 'current_user': 'akim'} [2024-03-22 10:43:15] [DEBUG] ANSIBLE: Rendering template /home/akim/Desktop/wazuh-qa/deployability/modules/testing/playbooks/setup.yml [2024-03-22 10:43:15] [DEBUG] ANSIBLE: Using inventory: {'all': {'hosts': {'ec2-54-161-92-147.compute-1.amazonaws.com': {'ansible_port': 2200, 'ansible_user': 'admin', 'ansible_ssh_private_key_file': '/home/akim/Desktop/personal/Ephemeral'}}}} [2024-03-22 10:43:15] [DEBUG] ANSIBLE: Running playbook: [{'hosts': 'localhost', 'become': True, 'become_user': 'akim', 'tasks': [{'name': 'Cleaning old key ssh-keygen registries', 'ansible.builtin.command': {'cmd': "ssh-keygen -f /home/akim/.ssh/known_hosts -R ''"}, 'loop': ['ec2-54-161-92-147.compute-1.amazonaws.com', 'ec2-54-145-184-30.compute-1.amazonaws.com']}]}] No config file found; using defaults PLAY [localhost] *************************************************************** TASK [Gathering Facts] ********************************************************* ok: [localhost] TASK [Cleaning old key ssh-keygen registries] ********************************** changed: [localhost] => (item=ec2-54-161-92-147.compute-1.amazonaws.com) => changed=true ansible_loop_var: item cmd: - ssh-keygen - -f - /home/akim/.ssh/known_hosts - -R - '' delta: '0:00:00.011449' end: '2024-03-22 10:43:21.739797' item: ec2-54-161-92-147.compute-1.amazonaws.com msg: '' rc: 0 start: '2024-03-22 10:43:21.728348' stderr: Host not found in /home/akim/.ssh/known_hosts stderr_lines: stdout: '' stdout_lines: changed: [localhost] => (item=ec2-54-145-184-30.compute-1.amazonaws.com) => changed=true ansible_loop_var: item cmd: - ssh-keygen - -f - /home/akim/.ssh/known_hosts - -R - '' delta: '0:00:00.009464' end: '2024-03-22 10:43:21.956865' item: ec2-54-145-184-30.compute-1.amazonaws.com msg: '' rc: 0 start: '2024-03-22 10:43:21.947401' stderr: Host not found in /home/akim/.ssh/known_hosts stderr_lines: stdout: '' stdout_lines: PLAY RECAP ********************************************************************* localhost : ok=2 changed=1 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 [2024-03-22 10:43:22] [DEBUG] ANSIBLE: Playbook [{'hosts': 'localhost', 'become': True, 'become_user': 'akim', 'tasks': [{'name': 'Cleaning old key ssh-keygen registries', 'ansible.builtin.command': {'cmd': "ssh-keygen -f /home/akim/.ssh/known_hosts -R ''"}, 'loop': ['ec2-54-161-92-147.compute-1.amazonaws.com', 'ec2-54-145-184-30.compute-1.amazonaws.com']}]}] finished with status {'skipped': {}, 'ok': {'localhost': 2}, 'dark': {}, 'failures': {}, 'ignored': {}, 'rescued': {}, 'processed': {'localhost': 1}, 'changed': {'localhost': 1}} [2024-03-22 10:43:22] [DEBUG] ANSIBLE: Rendering template /home/akim/Desktop/wazuh-qa/deployability/modules/testing/playbooks/test.yml [2024-03-22 10:43:22] [DEBUG] ANSIBLE: Using inventory: {'all': {'hosts': {'ec2-54-161-92-147.compute-1.amazonaws.com': {'ansible_port': 2200, 'ansible_user': 'admin', 'ansible_ssh_private_key_file': '/home/akim/Desktop/personal/Ephemeral'}}}} [2024-03-22 10:43:22] [DEBUG] ANSIBLE: Running playbook: [{'hosts': 'localhost', 'become': True, 'become_user': 'akim', 'tasks': [{'name': 'Test stop for manager', 'command': "python3 -m pytest modules/testing/tests/test_manager/test_stop.py -v --wazuh_version=4.7.3 --wazuh_revision=40714 --component=manager --dependencies='{wazuh-1: /tmp/dtt1-poc/manager-linux-centos-7-amd64/inventory.yml}' --targets='{wazuh-1: /tmp/dtt1-poc/manager-linux-debian-10-amd64/inventory.yml, wazuh-2: /tmp/dtt1-poc/manager-linux-debian-11-amd64/inventory.yml}' -s", 'args': {'chdir': '/home/akim/Desktop/wazuh-qa/deployability'}}]}] No config file found; using defaults PLAY [localhost] *************************************************************** TASK [Gathering Facts] ********************************************************* ok: [localhost] TASK [Test stop for manager] *************************************************** changed: [localhost] => changed=true cmd: - python3 - -m - pytest - modules/testing/tests/test_manager/test_stop.py - -v - --wazuh_version=4.7.3 - --wazuh_revision=40714 - --component=manager - '--dependencies={wazuh-1: /tmp/dtt1-poc/manager-linux-centos-7-amd64/inventory.yml}' - '--targets={wazuh-1: /tmp/dtt1-poc/manager-linux-debian-10-amd64/inventory.yml, wazuh-2: /tmp/dtt1-poc/manager-linux-debian-11-amd64/inventory.yml}' - -s delta: '0:00:24.683332' end: '2024-03-22 10:43:51.037523' msg: '' rc: 0 start: '2024-03-22 10:43:26.354191' stderr: |- /home/akim/Desktop/venvs/deplo_test/lib/python3.10/site-packages/_testinfra_renamed.py:5: DeprecationWarning: testinfra package has been renamed to pytest-testinfra. Please `pip install pytest-testinfra` and `pip uninstall testinfra` and update your package requirements to avoid this message warnings.warn(( Warning: Permanently added '[ec2-54-145-184-30.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-54-161-92-147.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-54-145-184-30.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-54-145-184-30.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. stderr_lines: stdout: |- ============================= test session starts ============================== platform linux -- Python 3.10.12, pytest-8.1.0, pluggy-1.4.0 -- /home/akim/Desktop/venvs/deplo_test/bin/python3 cachedir: .pytest_cache rootdir: /home/akim/Desktop/wazuh-qa/deployability/modules plugins: testinfra-6.0.0, testinfra-10.1.0 collecting ... collected 1 item modules/testing/tests/test_manager/test_stop.py::test_stop systemctl stop wazuh-manager systemctl status wazuh-manager systemctl status wazuh-manager PASSEDsystemctl restart wazuh-manager =============================== warnings summary =============================== modules/provision/models.py:65 /home/akim/Desktop/wazuh-qa/deployability/modules/provision/models.py:65: 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', pre=True) modules/provision/models.py:73 /home/akim/Desktop/wazuh-qa/deployability/modules/provision/models.py:73: 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('uninstall', pre=True) -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html ======================== 1 passed, 2 warnings in 24.04s ======================== stdout_lines: PLAY RECAP ********************************************************************* localhost : ok=2 changed=1 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 [2024-03-22 10:43:51] [DEBUG] ANSIBLE: Playbook [{'hosts': 'localhost', 'become': True, 'become_user': 'akim', 'tasks': [{'name': 'Test stop for manager', 'command': "python3 -m pytest modules/testing/tests/test_manager/test_stop.py -v --wazuh_version=4.7.3 --wazuh_revision=40714 --component=manager --dependencies='{wazuh-1: /tmp/dtt1-poc/manager-linux-centos-7-amd64/inventory.yml}' --targets='{wazuh-1: /tmp/dtt1-poc/manager-linux-debian-10-amd64/inventory.yml, wazuh-2: /tmp/dtt1-poc/manager-linux-debian-11-amd64/inventory.yml}' -s", 'args': {'chdir': '/home/akim/Desktop/wazuh-qa/deployability'}}]}] finished with status {'skipped': {}, 'ok': {'localhost': 2}, 'dark': {}, 'failures': {}, 'ignored': {}, 'rescued': {}, 'processed': {'localhost': 1}, 'changed': {'localhost': 1}} [2024-03-22 10:43:51] [DEBUG] ANSIBLE: Rendering template /home/akim/Desktop/wazuh-qa/deployability/modules/testing/playbooks/test.yml [2024-03-22 10:43:51] [DEBUG] ANSIBLE: Using inventory: {'all': {'hosts': {'ec2-54-161-92-147.compute-1.amazonaws.com': {'ansible_port': 2200, 'ansible_user': 'admin', 'ansible_ssh_private_key_file': '/home/akim/Desktop/personal/Ephemeral'}}}} [2024-03-22 10:43:51] [DEBUG] ANSIBLE: Running playbook: [{'hosts': 'localhost', 'become': True, 'become_user': 'akim', 'tasks': [{'name': 'Test restart for manager', 'command': "python3 -m pytest modules/testing/tests/test_manager/test_restart.py -v --wazuh_version=4.7.3 --wazuh_revision=40714 --component=manager --dependencies='{wazuh-1: /tmp/dtt1-poc/manager-linux-centos-7-amd64/inventory.yml}' --targets='{wazuh-1: /tmp/dtt1-poc/manager-linux-debian-10-amd64/inventory.yml, wazuh-2: /tmp/dtt1-poc/manager-linux-debian-11-amd64/inventory.yml}' -s", 'args': {'chdir': '/home/akim/Desktop/wazuh-qa/deployability'}}]}] No config file found; using defaults PLAY [localhost] *************************************************************** TASK [Gathering Facts] ********************************************************* ok: [localhost] TASK [Test restart for manager] ************************************************ changed: [localhost] => changed=true cmd: - python3 - -m - pytest - modules/testing/tests/test_manager/test_restart.py - -v - --wazuh_version=4.7.3 - --wazuh_revision=40714 - --component=manager - '--dependencies={wazuh-1: /tmp/dtt1-poc/manager-linux-centos-7-amd64/inventory.yml}' - '--targets={wazuh-1: /tmp/dtt1-poc/manager-linux-debian-10-amd64/inventory.yml, wazuh-2: /tmp/dtt1-poc/manager-linux-debian-11-amd64/inventory.yml}' - -s delta: '0:00:23.206209' end: '2024-03-22 10:44:20.252260' msg: '' rc: 0 start: '2024-03-22 10:43:57.046051' stderr: |- /home/akim/Desktop/venvs/deplo_test/lib/python3.10/site-packages/_testinfra_renamed.py:5: DeprecationWarning: testinfra package has been renamed to pytest-testinfra. Please `pip install pytest-testinfra` and `pip uninstall testinfra` and update your package requirements to avoid this message warnings.warn(( Warning: Permanently added '[ec2-54-145-184-30.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-54-161-92-147.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-54-145-184-30.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. stderr_lines: stdout: |- ============================= test session starts ============================== platform linux -- Python 3.10.12, pytest-8.1.0, pluggy-1.4.0 -- /home/akim/Desktop/venvs/deplo_test/bin/python3 cachedir: .pytest_cache rootdir: /home/akim/Desktop/wazuh-qa/deployability/modules plugins: testinfra-6.0.0, testinfra-10.1.0 collecting ... collected 1 item modules/testing/tests/test_manager/test_restart.py::test_restart systemctl restart wazuh-manager systemctl status wazuh-manager systemctl status wazuh-manager PASSED =============================== warnings summary =============================== modules/provision/models.py:65 /home/akim/Desktop/wazuh-qa/deployability/modules/provision/models.py:65: 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', pre=True) modules/provision/models.py:73 /home/akim/Desktop/wazuh-qa/deployability/modules/provision/models.py:73: 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('uninstall', pre=True) -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html ======================== 1 passed, 2 warnings in 22.57s ======================== stdout_lines: PLAY RECAP ********************************************************************* localhost : ok=2 changed=1 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 [2024-03-22 10:44:20] [DEBUG] ANSIBLE: Playbook [{'hosts': 'localhost', 'become': True, 'become_user': 'akim', 'tasks': [{'name': 'Test restart for manager', 'command': "python3 -m pytest modules/testing/tests/test_manager/test_restart.py -v --wazuh_version=4.7.3 --wazuh_revision=40714 --component=manager --dependencies='{wazuh-1: /tmp/dtt1-poc/manager-linux-centos-7-amd64/inventory.yml}' --targets='{wazuh-1: /tmp/dtt1-poc/manager-linux-debian-10-amd64/inventory.yml, wazuh-2: /tmp/dtt1-poc/manager-linux-debian-11-amd64/inventory.yml}' -s", 'args': {'chdir': '/home/akim/Desktop/wazuh-qa/deployability'}}]}] finished with status {'skipped': {}, 'ok': {'localhost': 2}, 'dark': {}, 'failures': {}, 'ignored': {}, 'rescued': {}, 'processed': {'localhost': 1}, 'changed': {'localhost': 1}} [2024-03-22 10:44:20] [DEBUG] ANSIBLE: Rendering template /home/akim/Desktop/wazuh-qa/deployability/modules/testing/playbooks/test.yml [2024-03-22 10:44:20] [DEBUG] ANSIBLE: Using inventory: {'all': {'hosts': {'ec2-54-161-92-147.compute-1.amazonaws.com': {'ansible_port': 2200, 'ansible_user': 'admin', 'ansible_ssh_private_key_file': '/home/akim/Desktop/personal/Ephemeral'}}}} [2024-03-22 10:44:20] [DEBUG] ANSIBLE: Running playbook: [{'hosts': 'localhost', 'become': True, 'become_user': 'akim', 'tasks': [{'name': 'Test uninstall for manager', 'command': "python3 -m pytest modules/testing/tests/test_manager/test_uninstall.py -v --wazuh_version=4.7.3 --wazuh_revision=40714 --component=manager --dependencies='{wazuh-1: /tmp/dtt1-poc/manager-linux-centos-7-amd64/inventory.yml}' --targets='{wazuh-1: /tmp/dtt1-poc/manager-linux-debian-10-amd64/inventory.yml, wazuh-2: /tmp/dtt1-poc/manager-linux-debian-11-amd64/inventory.yml}' -s", 'args': {'chdir': '/home/akim/Desktop/wazuh-qa/deployability'}}]}] No config file found; using defaults PLAY [localhost] *************************************************************** TASK [Gathering Facts] ********************************************************* ok: [localhost] TASK [Test uninstall for manager] ********************************************** changed: [localhost] => changed=true cmd: - python3 - -m - pytest - modules/testing/tests/test_manager/test_uninstall.py - -v - --wazuh_version=4.7.3 - --wazuh_revision=40714 - --component=manager - '--dependencies={wazuh-1: /tmp/dtt1-poc/manager-linux-centos-7-amd64/inventory.yml}' - '--targets={wazuh-1: /tmp/dtt1-poc/manager-linux-debian-10-amd64/inventory.yml, wazuh-2: /tmp/dtt1-poc/manager-linux-debian-11-amd64/inventory.yml}' - -s delta: '0:01:10.338931' end: '2024-03-22 10:45:36.601330' msg: '' rc: 0 start: '2024-03-22 10:44:26.262399' stderr: |- /home/akim/Desktop/venvs/deplo_test/lib/python3.10/site-packages/_testinfra_renamed.py:5: DeprecationWarning: testinfra package has been renamed to pytest-testinfra. Please `pip install pytest-testinfra` and `pip uninstall testinfra` and update your package requirements to avoid this message warnings.warn(( Warning: Permanently added '[ec2-54-161-92-147.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-54-145-184-30.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-54-161-92-147.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-54-161-92-147.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-54-161-92-147.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-54-161-92-147.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-54-161-92-147.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-54-161-92-147.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. apt-listchanges: Can't set locale; make sure $LC_* and $LANG are correct! perl: warning: Setting locale failed. perl: warning: Please check that your locale settings: LANGUAGE = (unset), LC_ALL = (unset), LC_TIME = "es_ES.UTF-8", LC_MONETARY = "es_ES.UTF-8", LC_ADDRESS = "es_ES.UTF-8", LC_TELEPHONE = "es_ES.UTF-8", LC_NAME = "es_ES.UTF-8", LC_MEASUREMENT = "es_ES.UTF-8", LC_IDENTIFICATION = "es_ES.UTF-8", LC_NUMERIC = "es_ES.UTF-8", LC_PAPER = "es_ES.UTF-8", LANG = "C.UTF-8" are supported and installed on your system. perl: warning: Falling back to a fallback locale ("C.UTF-8"). Warning: Permanently added '[ec2-54-161-92-147.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Removed /etc/systemd/system/multi-user.target.wants/wazuh-manager.service. Warning: Permanently added '[ec2-54-161-92-147.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-54-161-92-147.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-54-161-92-147.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-54-161-92-147.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-54-161-92-147.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-54-145-184-30.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-54-145-184-30.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-54-145-184-30.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-54-145-184-30.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-54-145-184-30.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-54-145-184-30.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. apt-listchanges: Can't set locale; make sure $LC_* and $LANG are correct! perl: warning: Setting locale failed. perl: warning: Please check that your locale settings: LANGUAGE = (unset), LC_ALL = (unset), LC_TIME = "es_ES.UTF-8", LC_MONETARY = "es_ES.UTF-8", LC_ADDRESS = "es_ES.UTF-8", LC_TELEPHONE = "es_ES.UTF-8", LC_NAME = "es_ES.UTF-8", LC_MEASUREMENT = "es_ES.UTF-8", LC_IDENTIFICATION = "es_ES.UTF-8", LC_NUMERIC = "es_ES.UTF-8", LC_PAPER = "es_ES.UTF-8", LANG = "C.UTF-8" are supported and installed on your system. perl: warning: Falling back to a fallback locale ("C.UTF-8"). Warning: Permanently added '[ec2-54-145-184-30.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Removed /etc/systemd/system/multi-user.target.wants/wazuh-manager.service. Warning: Permanently added '[ec2-54-145-184-30.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-54-145-184-30.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-54-145-184-30.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-54-145-184-30.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-54-145-184-30.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-54-161-92-147.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-54-145-184-30.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. stderr_lines: stdout: |- ============================= test session starts ============================== platform linux -- Python 3.10.12, pytest-8.1.0, pluggy-1.4.0 -- /home/akim/Desktop/venvs/deplo_test/bin/python3 cachedir: .pytest_cache rootdir: /home/akim/Desktop/wazuh-qa/deployability/modules plugins: testinfra-6.0.0, testinfra-10.1.0 collecting ... collected 2 items modules/testing/tests/test_manager/test_uninstall.py::test_uninstall systemctl status wazuh-manager systemctl status wazuh-manager uname sudo find /boot -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg sudo find /usr/bin -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg sudo find /root -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg sudo find /usr/sbin -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg sudo find /boot -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg sudo find /usr/bin -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg sudo find /root -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg sudo find /usr/sbin -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg /root added [] modified [] removed [] /usr/bin added [] modified [] removed [] /usr/sbin added [] modified [] removed [] /boot added [] modified [] removed [] uname sudo find /boot -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg sudo find /usr/bin -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg sudo find /root -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg sudo find /usr/sbin -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg sudo find /boot -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg sudo find /usr/bin -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg sudo find /root -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg sudo find /usr/sbin -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg /root added [] modified [] removed [] /usr/bin added [] modified [] removed [] /usr/sbin added [] modified [] removed [] /boot added [] modified [] removed [] PASSED modules/testing/tests/test_manager/test_uninstall.py::test_manager_uninstalled_directory test -d /var/ossec && echo "true" || echo "false" test -d /var/ossec && echo "true" || echo "false" PASSED =============================== warnings summary =============================== modules/provision/models.py:65 /home/akim/Desktop/wazuh-qa/deployability/modules/provision/models.py:65: 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', pre=True) modules/provision/models.py:73 /home/akim/Desktop/wazuh-qa/deployability/modules/provision/models.py:73: 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('uninstall', pre=True) -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html =================== 2 passed, 2 warnings in 69.73s (0:01:09) =================== stdout_lines: PLAY RECAP ********************************************************************* localhost : ok=2 changed=1 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 [2024-03-22 10:45:36] [DEBUG] ANSIBLE: Playbook [{'hosts': 'localhost', 'become': True, 'become_user': 'akim', 'tasks': [{'name': 'Test uninstall for manager', 'command': "python3 -m pytest modules/testing/tests/test_manager/test_uninstall.py -v --wazuh_version=4.7.3 --wazuh_revision=40714 --component=manager --dependencies='{wazuh-1: /tmp/dtt1-poc/manager-linux-centos-7-amd64/inventory.yml}' --targets='{wazuh-1: /tmp/dtt1-poc/manager-linux-debian-10-amd64/inventory.yml, wazuh-2: /tmp/dtt1-poc/manager-linux-debian-11-amd64/inventory.yml}' -s", 'args': {'chdir': '/home/akim/Desktop/wazuh-qa/deployability'}}]}] finished with status {'skipped': {}, 'ok': {'localhost': 2}, 'dark': {}, 'failures': {}, 'ignored': {}, 'rescued': {}, 'processed': {'localhost': 1}, 'changed': {'localhost': 1}} [2024-03-22 10:45:36] [DEBUG] ANSIBLE: Using inventory: {'all': {'hosts': {'ec2-54-161-92-147.compute-1.amazonaws.com': {'ansible_port': 2200, 'ansible_user': 'admin', 'ansible_ssh_private_key_file': '/home/akim/Desktop/personal/Ephemeral'}}}} [2024-03-22 10:45:36] [DEBUG] ANSIBLE: Running playbook: /home/akim/Desktop/wazuh-qa/deployability/modules/testing/playbooks/cleanup.yml No config file found; using defaults PLAY [all] ********************************************************************* TASK [Gathering Facts] ********************************************************* ok: [ec2-54-161-92-147.compute-1.amazonaws.com] TASK [Clean test directory] **************************************************** ok: [ec2-54-161-92-147.compute-1.amazonaws.com] => changed=false path: /tmp/tests state: absent PLAY RECAP ********************************************************************* ec2-54-161-92-147.compute-1.amazonaws.com : ok=2 changed=0 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 [2024-03-22 10:45:50] [DEBUG] ANSIBLE: Playbook /home/akim/Desktop/wazuh-qa/deployability/modules/testing/playbooks/cleanup.yml finished with status {'skipped': {}, 'ok': {'ec2-54-161-92-147.compute-1.amazonaws.com': 2}, 'dark': {}, 'failures': {}, 'ignored': {}, 'rescued': {}, 'processed': {'ec2-54-161-92-147.compute-1.amazonaws.com': 1}, 'changed': {}} [2024-03-22 10:45:50] [DEBUG] ANSIBLE: Using inventory: {'all': {'hosts': {'ec2-54-161-92-147.compute-1.amazonaws.com': {'ansible_port': 2200, 'ansible_user': 'admin', 'ansible_ssh_private_key_file': '/home/akim/Desktop/personal/Ephemeral'}}}} [2024-03-22 10:45:50] [DEBUG] ANSIBLE: Running playbook: /home/akim/Desktop/wazuh-qa/deployability/modules/testing/playbooks/cleanup.yml No config file found; using defaults PLAY [all] ********************************************************************* TASK [Gathering Facts] ********************************************************* ok: [ec2-54-161-92-147.compute-1.amazonaws.com] TASK [Clean test directory] **************************************************** ok: [ec2-54-161-92-147.compute-1.amazonaws.com] => changed=false path: /tmp/tests state: absent PLAY RECAP ********************************************************************* ec2-54-161-92-147.compute-1.amazonaws.com : ok=2 changed=0 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 [2024-03-22 10:46:00] [DEBUG] ANSIBLE: Playbook /home/akim/Desktop/wazuh-qa/deployability/modules/testing/playbooks/cleanup.yml finished with status {'skipped': {}, 'ok': {'ec2-54-161-92-147.compute-1.amazonaws.com': 2}, 'dark': {}, 'failures': {}, 'ignored': {}, 'rescued': {}, 'processed': {'ec2-54-161-92-147.compute-1.amazonaws.com': 1}, 'changed': {}} ```
Debian-12:Ubuntu20.04 :green_circle: ``` (deplo_test) akim@akim-PC:~/Desktop/wazuh-qa/deployability$ python3 modules/testing/main.py --wazuh-revision '40714' --wazuh-version '4.7.3' --component 'manager' --tests 'stop,restart,uninstall' --targets '{"wazuh-1":"/tmp/dtt1-poc/manager-linux-debian-12-amd64/inventory.yml"}' --ta rgets '{"wazuh-2":"/tmp/dtt1-poc/manager-linux-ubuntu-20.04-amd64/inventory.yml"}' --dependencies '{"wazuh-1":"/tmp/dtt1-poc/manager-linux-ubuntu-20.04-amd64/inventory.yml"}' [2024-03-22 11:00:00] [INFO] TESTER: Running tests for ec2-18-232-135-232.compute-1.amazonaws.com [2024-03-22 11:00:00] [INFO] TESTER: Running tests for ec2-52-70-68-32.compute-1.amazonaws.com [2024-03-22 11:00:00] [INFO] TESTER: Dependencies ec2-52-70-68-32.compute-1.amazonaws.com [2024-03-22 11:00:00] [DEBUG] TESTER: Using extra vars: {'component': 'manager', 'wazuh_version': '4.7.3', 'wazuh_revision': '40714', 'wazuh_branch': None, 'working_dir': '/tmp/tests', 'hosts_ip': ['ec2-18-232-135-232.compute-1.amazonaws.com', 'ec2-52-70-68-32.compute-1.amazonaws.com'], 'targets': '{wazuh-1: /tmp/dtt1-poc/manager-linux-debian-12-amd64/inventory.yml, wazuh-2: /tmp/dtt1-poc/manager-linux-ubuntu-20.04-amd64/inventory.yml}', 'dependencies': '{wazuh-1: /tmp/dtt1-poc/manager-linux-ubuntu-20.04-amd64/inventory.yml}', 'local_host_path': '/home/akim/Desktop/wazuh-qa/deployability', 'current_user': 'akim'} [2024-03-22 11:00:00] [DEBUG] ANSIBLE: Rendering template /home/akim/Desktop/wazuh-qa/deployability/modules/testing/playbooks/setup.yml [2024-03-22 11:00:00] [DEBUG] ANSIBLE: Using inventory: {'all': {'hosts': {'ec2-18-232-135-232.compute-1.amazonaws.com': {'ansible_port': 2200, 'ansible_user': 'admin', 'ansible_ssh_private_key_file': '/home/akim/Desktop/personal/Ephemeral'}}}} [2024-03-22 11:00:00] [DEBUG] ANSIBLE: Running playbook: [{'hosts': 'localhost', 'become': True, 'become_user': 'akim', 'tasks': [{'name': 'Cleaning old key ssh-keygen registries', 'ansible.builtin.command': {'cmd': "ssh-keygen -f /home/akim/.ssh/known_hosts -R ''"}, 'loop': ['ec2-18-232-135-232.compute-1.amazonaws.com', 'ec2-52-70-68-32.compute-1.amazonaws.com']}]}] No config file found; using defaults PLAY [localhost] *************************************************************** TASK [Gathering Facts] ********************************************************* ^Z [25]+ Stopped python3 modules/testing/main.py --wazuh-revision '40714' --wazuh-version '4.7.3' --component 'manager' --tests 'stop,restart,uninstall' --targets '{"wazuh-1":"/tmp/dtt1-poc/manager-linux-debian-12-amd64/inventory.yml"}' --targets '{"wazuh-2":"/tmp/dtt1-poc/manager-linux-ubuntu-20.04-amd64/inventory.yml"}' --dependencies '{"wazuh-1":"/tmp/dtt1-poc/manager-linux-ubuntu-20.04-amd64/inventory.yml"}' (deplo_test) akim@akim-PC:~/Desktop/wazuh-qa/deployability$ python3 modules/testing/main.py --wazuh-revision '40714' --wazuh-version '4.7.3' --component 'manager' --tests 'install,stop,restart,uninstall' --targets '{"wazuh-1":"/tmp/dtt1-poc/manager-linux-debian-12-amd64/inventory.yml "}' --targets '{"wazuh-2":"/tmp/dtt1-poc/manager-linux-ubuntu-20.04-amd64/inventory.yml"}' --dependencies '{"wazuh-1":"/tmp/dtt1-poc/manager-linux-ubuntu-20.04-amd64/inventory.yml"}' [2024-03-22 11:00:11] [INFO] TESTER: Running tests for ec2-18-232-135-232.compute-1.amazonaws.com [2024-03-22 11:00:11] [INFO] TESTER: Running tests for ec2-52-70-68-32.compute-1.amazonaws.com [2024-03-22 11:00:11] [INFO] TESTER: Dependencies ec2-52-70-68-32.compute-1.amazonaws.com [2024-03-22 11:00:11] [DEBUG] TESTER: Using extra vars: {'component': 'manager', 'wazuh_version': '4.7.3', 'wazuh_revision': '40714', 'wazuh_branch': None, 'working_dir': '/tmp/tests', 'hosts_ip': ['ec2-18-232-135-232.compute-1.amazonaws.com', 'ec2-52-70-68-32.compute-1.amazonaws.com'], 'targets': '{wazuh-1: /tmp/dtt1-poc/manager-linux-debian-12-amd64/inventory.yml, wazuh-2: /tmp/dtt1-poc/manager-linux-ubuntu-20.04-amd64/inventory.yml}', 'dependencies': '{wazuh-1: /tmp/dtt1-poc/manager-linux-ubuntu-20.04-amd64/inventory.yml}', 'local_host_path': '/home/akim/Desktop/wazuh-qa/deployability', 'current_user': 'akim'} [2024-03-22 11:00:11] [DEBUG] ANSIBLE: Rendering template /home/akim/Desktop/wazuh-qa/deployability/modules/testing/playbooks/setup.yml [2024-03-22 11:00:11] [DEBUG] ANSIBLE: Using inventory: {'all': {'hosts': {'ec2-18-232-135-232.compute-1.amazonaws.com': {'ansible_port': 2200, 'ansible_user': 'admin', 'ansible_ssh_private_key_file': '/home/akim/Desktop/personal/Ephemeral'}}}} [2024-03-22 11:00:11] [DEBUG] ANSIBLE: Running playbook: [{'hosts': 'localhost', 'become': True, 'become_user': 'akim', 'tasks': [{'name': 'Cleaning old key ssh-keygen registries', 'ansible.builtin.command': {'cmd': "ssh-keygen -f /home/akim/.ssh/known_hosts -R ''"}, 'loop': ['ec2-18-232-135-232.compute-1.amazonaws.com', 'ec2-52-70-68-32.compute-1.amazonaws.com']}]}] No config file found; using defaults PLAY [localhost] *************************************************************** TASK [Gathering Facts] ********************************************************* ok: [localhost] TASK [Cleaning old key ssh-keygen registries] ********************************** changed: [localhost] => (item=ec2-18-232-135-232.compute-1.amazonaws.com) => changed=true ansible_loop_var: item cmd: - ssh-keygen - -f - /home/akim/.ssh/known_hosts - -R - '' delta: '0:00:00.010299' end: '2024-03-22 11:00:15.312224' item: ec2-18-232-135-232.compute-1.amazonaws.com msg: '' rc: 0 start: '2024-03-22 11:00:15.301925' stderr: Host not found in /home/akim/.ssh/known_hosts stderr_lines: stdout: '' stdout_lines: changed: [localhost] => (item=ec2-52-70-68-32.compute-1.amazonaws.com) => changed=true ansible_loop_var: item cmd: - ssh-keygen - -f - /home/akim/.ssh/known_hosts - -R - '' delta: '0:00:00.010276' end: '2024-03-22 11:00:15.507586' item: ec2-52-70-68-32.compute-1.amazonaws.com msg: '' rc: 0 start: '2024-03-22 11:00:15.497310' stderr: Host not found in /home/akim/.ssh/known_hosts stderr_lines: stdout: '' stdout_lines: PLAY RECAP ********************************************************************* localhost : ok=2 changed=1 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 [2024-03-22 11:00:15] [DEBUG] ANSIBLE: Playbook [{'hosts': 'localhost', 'become': True, 'become_user': 'akim', 'tasks': [{'name': 'Cleaning old key ssh-keygen registries', 'ansible.builtin.command': {'cmd': "ssh-keygen -f /home/akim/.ssh/known_hosts -R ''"}, 'loop': ['ec2-18-232-135-232.compute-1.amazonaws.com', 'ec2-52-70-68-32.compute-1.amazonaws.com']}]}] finished with status {'skipped': {}, 'ok': {'localhost': 2}, 'dark': {}, 'failures': {}, 'ignored': {}, 'rescued': {}, 'processed': {'localhost': 1}, 'changed': {'localhost': 1}} [2024-03-22 11:00:15] [DEBUG] ANSIBLE: Rendering template /home/akim/Desktop/wazuh-qa/deployability/modules/testing/playbooks/test.yml [2024-03-22 11:00:15] [DEBUG] ANSIBLE: Using inventory: {'all': {'hosts': {'ec2-18-232-135-232.compute-1.amazonaws.com': {'ansible_port': 2200, 'ansible_user': 'admin', 'ansible_ssh_private_key_file': '/home/akim/Desktop/personal/Ephemeral'}}}} [2024-03-22 11:00:15] [DEBUG] ANSIBLE: Running playbook: [{'hosts': 'localhost', 'become': True, 'become_user': 'akim', 'tasks': [{'name': 'Test install for manager', 'command': "python3 -m pytest modules/testing/tests/test_manager/test_install.py -v --wazuh_version=4.7.3 --wazuh_revision=40714 --component=manager --dependencies='{wazuh-1: /tmp/dtt1-poc/manager-linux-ubuntu-20.04-amd64/inventory.yml}' --targets='{wazuh-1: /tmp/dtt1-poc/manager-linux-debian-12-amd64/inventory.yml, wazuh-2: /tmp/dtt1-poc/manager-linux-ubuntu-20.04-amd64/inventory.yml}' -s", 'args': {'chdir': '/home/akim/Desktop/wazuh-qa/deployability'}}]}] No config file found; using defaults PLAY [localhost] *************************************************************** TASK [Gathering Facts] ********************************************************* ok: [localhost] TASK [Test install for manager] ************************************************ changed: [localhost] => changed=true cmd: - python3 - -m - pytest - modules/testing/tests/test_manager/test_install.py - -v - --wazuh_version=4.7.3 - --wazuh_revision=40714 - --component=manager - '--dependencies={wazuh-1: /tmp/dtt1-poc/manager-linux-ubuntu-20.04-amd64/inventory.yml}' - '--targets={wazuh-1: /tmp/dtt1-poc/manager-linux-debian-12-amd64/inventory.yml, wazuh-2: /tmp/dtt1-poc/manager-linux-ubuntu-20.04-amd64/inventory.yml}' - -s delta: '0:06:51.398652' end: '2024-03-22 11:07:10.465051' msg: '' rc: 0 start: '2024-03-22 11:00:19.066399' stderr: |- /home/akim/Desktop/venvs/deplo_test/lib/python3.10/site-packages/_testinfra_renamed.py:5: DeprecationWarning: testinfra package has been renamed to pytest-testinfra. Please `pip install pytest-testinfra` and `pip uninstall testinfra` and update your package requirements to avoid this message warnings.warn(( Warning: Permanently added '[ec2-18-232-135-232.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Failed to stop firewalld.service: Unit firewalld.service not loaded. Warning: Permanently added '[ec2-18-232-135-232.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Failed to disable unit: Unit file firewalld.service does not exist. Warning: Permanently added '[ec2-52-70-68-32.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Failed to stop firewalld.service: Unit firewalld.service not loaded. Warning: Permanently added '[ec2-52-70-68-32.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Failed to disable unit: Unit file firewalld.service does not exist. Warning: Permanently added '[ec2-18-232-135-232.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-18-232-135-232.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. --2024-03-22 10:00:36-- https://packages.wazuh.com/4.7/wazuh-install.sh Resolving packages.wazuh.com (packages.wazuh.com)... 99.86.229.76, 99.86.229.65, 99.86.229.50, ... Connecting to packages.wazuh.com (packages.wazuh.com)|99.86.229.76|:443... connected. HTTP request sent, awaiting response... 200 OK Length: 165734 (162K) [application/x-sh] Saving to: 'wazuh-install.sh' 0K .......... .......... .......... .......... .......... 30% 53.0M 0s 50K .......... .......... .......... .......... .......... 61% 44.4M 0s 100K .......... .......... .......... .......... .......... 92% 49.6M 0s 150K .......... . 100% 190M=0.003s 2024-03-22 10:00:36 (51.6 MB/s) - 'wazuh-install.sh' saved [165734/165734] Warning: Permanently added '[ec2-18-232-135-232.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. --2024-03-22 10:00:38-- https://packages.wazuh.com/4.7/config.yml Resolving packages.wazuh.com (packages.wazuh.com)... 99.86.229.50, 99.86.229.76, 99.86.229.65, ... Connecting to packages.wazuh.com (packages.wazuh.com)|99.86.229.50|:443... connected. HTTP request sent, awaiting response... 200 OK Length: 636 [binary/octet-stream] Saving to: 'config.yml' 0K 100% 26.2M=0s 2024-03-22 10:00:38 (26.2 MB/s) - 'config.yml' saved [636/636] Warning: Permanently added '[ec2-18-232-135-232.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-18-232-135-232.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-18-232-135-232.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-18-232-135-232.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-18-232-135-232.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-18-232-135-232.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-18-232-135-232.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-18-232-135-232.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-18-232-135-232.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-18-232-135-232.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-18-232-135-232.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-52-70-68-32.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-18-232-135-232.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-18-232-135-232.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-52-70-68-32.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-18-232-135-232.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-18-232-135-232.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-18-232-135-232.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-18-232-135-232.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-18-232-135-232.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-18-232-135-232.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. --2024-03-22 10:01:41-- https://packages.wazuh.com/4.7/wazuh-install.sh Resolving packages.wazuh.com (packages.wazuh.com)... 99.86.229.57, 99.86.229.76, 99.86.229.50, ... Connecting to packages.wazuh.com (packages.wazuh.com)|99.86.229.57|:443... connected. HTTP request sent, awaiting response... 200 OK Length: 165734 (162K) [application/x-sh] Saving to: 'wazuh-install.sh.1' 0K .......... .......... .......... .......... .......... 30% 47.5M 0s 50K .......... .......... .......... .......... .......... 61% 47.1M 0s 100K .......... .......... .......... .......... .......... 92% 48.1M 0s 150K .......... . 100% 232M=0.003s 2024-03-22 10:01:41 (50.5 MB/s) - 'wazuh-install.sh.1' saved [165734/165734] Warning: Permanently added '[ec2-18-232-135-232.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-18-232-135-232.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-18-232-135-232.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-18-232-135-232.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-18-232-135-232.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-52-70-68-32.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-52-70-68-32.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-52-70-68-32.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-52-70-68-32.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-52-70-68-32.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-52-70-68-32.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-52-70-68-32.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-52-70-68-32.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-52-70-68-32.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-52-70-68-32.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-52-70-68-32.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-18-232-135-232.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-18-232-135-232.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-18-232-135-232.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-18-232-135-232.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-18-232-135-232.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-18-232-135-232.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-52-70-68-32.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-52-70-68-32.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-52-70-68-32.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-52-70-68-32.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-52-70-68-32.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-52-70-68-32.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-18-232-135-232.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-18-232-135-232.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-52-70-68-32.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-18-232-135-232.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-18-232-135-232.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-18-232-135-232.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-18-232-135-232.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-18-232-135-232.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-52-70-68-32.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-52-70-68-32.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-52-70-68-32.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-52-70-68-32.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-52-70-68-32.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-18-232-135-232.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-18-232-135-232.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-18-232-135-232.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-18-232-135-232.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-52-70-68-32.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-52-70-68-32.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-52-70-68-32.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-52-70-68-32.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-18-232-135-232.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-52-70-68-32.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. stderr_lines: stdout: |- ============================= test session starts ============================== platform linux -- Python 3.10.12, pytest-8.1.0, pluggy-1.4.0 -- /home/akim/Desktop/venvs/deplo_test/bin/python3 cachedir: .pytest_cache rootdir: /home/akim/Desktop/wazuh-qa/deployability/modules plugins: testinfra-6.0.0, testinfra-10.1.0 collecting ... collected 5 items modules/testing/tests/test_manager/test_install.py::test_installation pwd pwd pwd chmod +rw wazuh-install-files.tar chmod 600 wazuh-install-files.tar chmod 600 wazuh-install-files.tar uname sudo find /boot -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg sudo find /usr/bin -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg sudo find /root -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg sudo find /usr/sbin -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg sudo find /boot -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg sudo find /usr/bin -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg sudo find /root -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg sudo find /usr/sbin -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg /root added [] modified [] removed [] /usr/bin added [] modified [] removed [] /usr/sbin added [] modified [] removed [] /boot added [] modified [] removed [] uname sudo find /boot -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg sudo find /usr/bin -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg sudo find /root -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg sudo find /usr/sbin -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg sudo find /boot -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg sudo find /usr/bin -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg sudo find /root -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg sudo find /usr/sbin -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg /root added [] modified [] removed [] /usr/bin added [] modified [] removed [] /usr/sbin added [] modified [] removed [] /boot added [] modified [] removed [] /var/ossec/bin/cluster_control -l PASSED modules/testing/tests/test_manager/test_install.py::test_manager_status systemctl status wazuh-manager systemctl status wazuh-manager PASSED modules/testing/tests/test_manager/test_install.py::test_manager_version /var/ossec/bin/wazuh-control info -v pwd test -f /home/admin/wazuh-install-files/wazuh-passwords.txt && echo "true" || echo "false" tar -xvf wazuh-install-files.tar grep api_password wazuh-install-files/wazuh-passwords.txt | head -n 1 | awk '{print $NF}' /var/ossec/bin/wazuh-control info -v pwd test -f /home/ubuntu/wazuh-install-files/wazuh-passwords.txt && echo "true" || echo "false" tar -xvf wazuh-install-files.tar grep api_password wazuh-install-files/wazuh-passwords.txt | head -n 1 | awk '{print $NF}' PASSED modules/testing/tests/test_manager/test_install.py::test_manager_revision /var/ossec/bin/wazuh-control info -r pwd test -f /home/admin/wazuh-install-files/wazuh-passwords.txt && echo "true" || echo "false" grep api_password wazuh-install-files/wazuh-passwords.txt | head -n 1 | awk '{print $NF}' /var/ossec/bin/wazuh-control info -r pwd test -f /home/ubuntu/wazuh-install-files/wazuh-passwords.txt && echo "true" || echo "false" grep api_password wazuh-install-files/wazuh-passwords.txt | head -n 1 | awk '{print $NF}' PASSED modules/testing/tests/test_manager/test_install.py::test_manager_installed_directory test -d /var/ossec && echo "true" || echo "false" test -d /var/ossec && echo "true" || echo "false" PASSED =============================== warnings summary =============================== modules/provision/models.py:65 /home/akim/Desktop/wazuh-qa/deployability/modules/provision/models.py:65: 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', pre=True) modules/provision/models.py:73 /home/akim/Desktop/wazuh-qa/deployability/modules/provision/models.py:73: 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('uninstall', pre=True) -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html ================== 5 passed, 2 warnings in 410.65s (0:06:50) =================== stdout_lines: PLAY RECAP ********************************************************************* localhost : ok=2 changed=1 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 [2024-03-22 11:07:10] [DEBUG] ANSIBLE: Playbook [{'hosts': 'localhost', 'become': True, 'become_user': 'akim', 'tasks': [{'name': 'Test install for manager', 'command': "python3 -m pytest modules/testing/tests/test_manager/test_install.py -v --wazuh_version=4.7.3 --wazuh_revision=40714 --component=manager --dependencies='{wazuh-1: /tmp/dtt1-poc/manager-linux-ubuntu-20.04-amd64/inventory.yml}' --targets='{wazuh-1: /tmp/dtt1-poc/manager-linux-debian-12-amd64/inventory.yml, wazuh-2: /tmp/dtt1-poc/manager-linux-ubuntu-20.04-amd64/inventory.yml}' -s", 'args': {'chdir': '/home/akim/Desktop/wazuh-qa/deployability'}}]}] finished with status {'skipped': {}, 'ok': {'localhost': 2}, 'dark': {}, 'failures': {}, 'ignored': {}, 'rescued': {}, 'processed': {'localhost': 1}, 'changed': {'localhost': 1}} [2024-03-22 11:07:10] [DEBUG] ANSIBLE: Rendering template /home/akim/Desktop/wazuh-qa/deployability/modules/testing/playbooks/test.yml [2024-03-22 11:07:10] [DEBUG] ANSIBLE: Using inventory: {'all': {'hosts': {'ec2-18-232-135-232.compute-1.amazonaws.com': {'ansible_port': 2200, 'ansible_user': 'admin', 'ansible_ssh_private_key_file': '/home/akim/Desktop/personal/Ephemeral'}}}} [2024-03-22 11:07:10] [DEBUG] ANSIBLE: Running playbook: [{'hosts': 'localhost', 'become': True, 'become_user': 'akim', 'tasks': [{'name': 'Test stop for manager', 'command': "python3 -m pytest modules/testing/tests/test_manager/test_stop.py -v --wazuh_version=4.7.3 --wazuh_revision=40714 --component=manager --dependencies='{wazuh-1: /tmp/dtt1-poc/manager-linux-ubuntu-20.04-amd64/inventory.yml}' --targets='{wazuh-1: /tmp/dtt1-poc/manager-linux-debian-12-amd64/inventory.yml, wazuh-2: /tmp/dtt1-poc/manager-linux-ubuntu-20.04-amd64/inventory.yml}' -s", 'args': {'chdir': '/home/akim/Desktop/wazuh-qa/deployability'}}]}] No config file found; using defaults PLAY [localhost] *************************************************************** TASK [Gathering Facts] ********************************************************* ok: [localhost] TASK [Test stop for manager] *************************************************** changed: [localhost] => changed=true cmd: - python3 - -m - pytest - modules/testing/tests/test_manager/test_stop.py - -v - --wazuh_version=4.7.3 - --wazuh_revision=40714 - --component=manager - '--dependencies={wazuh-1: /tmp/dtt1-poc/manager-linux-ubuntu-20.04-amd64/inventory.yml}' - '--targets={wazuh-1: /tmp/dtt1-poc/manager-linux-debian-12-amd64/inventory.yml, wazuh-2: /tmp/dtt1-poc/manager-linux-ubuntu-20.04-amd64/inventory.yml}' - -s delta: '0:00:26.293359' end: '2024-03-22 11:07:42.845576' msg: '' rc: 0 start: '2024-03-22 11:07:16.552217' stderr: |- /home/akim/Desktop/venvs/deplo_test/lib/python3.10/site-packages/_testinfra_renamed.py:5: DeprecationWarning: testinfra package has been renamed to pytest-testinfra. Please `pip install pytest-testinfra` and `pip uninstall testinfra` and update your package requirements to avoid this message warnings.warn(( Warning: Permanently added '[ec2-52-70-68-32.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-18-232-135-232.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-52-70-68-32.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-52-70-68-32.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. stderr_lines: stdout: |- ============================= test session starts ============================== platform linux -- Python 3.10.12, pytest-8.1.0, pluggy-1.4.0 -- /home/akim/Desktop/venvs/deplo_test/bin/python3 cachedir: .pytest_cache rootdir: /home/akim/Desktop/wazuh-qa/deployability/modules plugins: testinfra-6.0.0, testinfra-10.1.0 collecting ... collected 1 item modules/testing/tests/test_manager/test_stop.py::test_stop systemctl stop wazuh-manager systemctl status wazuh-manager systemctl status wazuh-manager PASSEDsystemctl restart wazuh-manager =============================== warnings summary =============================== modules/provision/models.py:65 /home/akim/Desktop/wazuh-qa/deployability/modules/provision/models.py:65: 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', pre=True) modules/provision/models.py:73 /home/akim/Desktop/wazuh-qa/deployability/modules/provision/models.py:73: 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('uninstall', pre=True) -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html ======================== 1 passed, 2 warnings in 25.69s ======================== stdout_lines: PLAY RECAP ********************************************************************* localhost : ok=2 changed=1 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 [2024-03-22 11:07:43] [DEBUG] ANSIBLE: Playbook [{'hosts': 'localhost', 'become': True, 'become_user': 'akim', 'tasks': [{'name': 'Test stop for manager', 'command': "python3 -m pytest modules/testing/tests/test_manager/test_stop.py -v --wazuh_version=4.7.3 --wazuh_revision=40714 --component=manager --dependencies='{wazuh-1: /tmp/dtt1-poc/manager-linux-ubuntu-20.04-amd64/inventory.yml}' --targets='{wazuh-1: /tmp/dtt1-poc/manager-linux-debian-12-amd64/inventory.yml, wazuh-2: /tmp/dtt1-poc/manager-linux-ubuntu-20.04-amd64/inventory.yml}' -s", 'args': {'chdir': '/home/akim/Desktop/wazuh-qa/deployability'}}]}] finished with status {'skipped': {}, 'ok': {'localhost': 2}, 'dark': {}, 'failures': {}, 'ignored': {}, 'rescued': {}, 'processed': {'localhost': 1}, 'changed': {'localhost': 1}} [2024-03-22 11:07:43] [DEBUG] ANSIBLE: Rendering template /home/akim/Desktop/wazuh-qa/deployability/modules/testing/playbooks/test.yml [2024-03-22 11:07:43] [DEBUG] ANSIBLE: Using inventory: {'all': {'hosts': {'ec2-18-232-135-232.compute-1.amazonaws.com': {'ansible_port': 2200, 'ansible_user': 'admin', 'ansible_ssh_private_key_file': '/home/akim/Desktop/personal/Ephemeral'}}}} [2024-03-22 11:07:43] [DEBUG] ANSIBLE: Running playbook: [{'hosts': 'localhost', 'become': True, 'become_user': 'akim', 'tasks': [{'name': 'Test restart for manager', 'command': "python3 -m pytest modules/testing/tests/test_manager/test_restart.py -v --wazuh_version=4.7.3 --wazuh_revision=40714 --component=manager --dependencies='{wazuh-1: /tmp/dtt1-poc/manager-linux-ubuntu-20.04-amd64/inventory.yml}' --targets='{wazuh-1: /tmp/dtt1-poc/manager-linux-debian-12-amd64/inventory.yml, wazuh-2: /tmp/dtt1-poc/manager-linux-ubuntu-20.04-amd64/inventory.yml}' -s", 'args': {'chdir': '/home/akim/Desktop/wazuh-qa/deployability'}}]}] No config file found; using defaults PLAY [localhost] *************************************************************** TASK [Gathering Facts] ********************************************************* ok: [localhost] TASK [Test restart for manager] ************************************************ changed: [localhost] => changed=true cmd: - python3 - -m - pytest - modules/testing/tests/test_manager/test_restart.py - -v - --wazuh_version=4.7.3 - --wazuh_revision=40714 - --component=manager - '--dependencies={wazuh-1: /tmp/dtt1-poc/manager-linux-ubuntu-20.04-amd64/inventory.yml}' - '--targets={wazuh-1: /tmp/dtt1-poc/manager-linux-debian-12-amd64/inventory.yml, wazuh-2: /tmp/dtt1-poc/manager-linux-ubuntu-20.04-amd64/inventory.yml}' - -s delta: '0:00:23.281450' end: '2024-03-22 11:08:12.287179' msg: '' rc: 0 start: '2024-03-22 11:07:49.005729' stderr: |- /home/akim/Desktop/venvs/deplo_test/lib/python3.10/site-packages/_testinfra_renamed.py:5: DeprecationWarning: testinfra package has been renamed to pytest-testinfra. Please `pip install pytest-testinfra` and `pip uninstall testinfra` and update your package requirements to avoid this message warnings.warn(( Warning: Permanently added '[ec2-52-70-68-32.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-18-232-135-232.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-52-70-68-32.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. stderr_lines: stdout: |- ============================= test session starts ============================== platform linux -- Python 3.10.12, pytest-8.1.0, pluggy-1.4.0 -- /home/akim/Desktop/venvs/deplo_test/bin/python3 cachedir: .pytest_cache rootdir: /home/akim/Desktop/wazuh-qa/deployability/modules plugins: testinfra-6.0.0, testinfra-10.1.0 collecting ... collected 1 item modules/testing/tests/test_manager/test_restart.py::test_restart systemctl restart wazuh-manager systemctl status wazuh-manager systemctl status wazuh-manager PASSED =============================== warnings summary =============================== modules/provision/models.py:65 /home/akim/Desktop/wazuh-qa/deployability/modules/provision/models.py:65: 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', pre=True) modules/provision/models.py:73 /home/akim/Desktop/wazuh-qa/deployability/modules/provision/models.py:73: 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('uninstall', pre=True) -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html ======================== 1 passed, 2 warnings in 22.64s ======================== stdout_lines: PLAY RECAP ********************************************************************* localhost : ok=2 changed=1 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 [2024-03-22 11:08:12] [DEBUG] ANSIBLE: Playbook [{'hosts': 'localhost', 'become': True, 'become_user': 'akim', 'tasks': [{'name': 'Test restart for manager', 'command': "python3 -m pytest modules/testing/tests/test_manager/test_restart.py -v --wazuh_version=4.7.3 --wazuh_revision=40714 --component=manager --dependencies='{wazuh-1: /tmp/dtt1-poc/manager-linux-ubuntu-20.04-amd64/inventory.yml}' --targets='{wazuh-1: /tmp/dtt1-poc/manager-linux-debian-12-amd64/inventory.yml, wazuh-2: /tmp/dtt1-poc/manager-linux-ubuntu-20.04-amd64/inventory.yml}' -s", 'args': {'chdir': '/home/akim/Desktop/wazuh-qa/deployability'}}]}] finished with status {'skipped': {}, 'ok': {'localhost': 2}, 'dark': {}, 'failures': {}, 'ignored': {}, 'rescued': {}, 'processed': {'localhost': 1}, 'changed': {'localhost': 1}} [2024-03-22 11:08:12] [DEBUG] ANSIBLE: Rendering template /home/akim/Desktop/wazuh-qa/deployability/modules/testing/playbooks/test.yml [2024-03-22 11:08:12] [DEBUG] ANSIBLE: Using inventory: {'all': {'hosts': {'ec2-18-232-135-232.compute-1.amazonaws.com': {'ansible_port': 2200, 'ansible_user': 'admin', 'ansible_ssh_private_key_file': '/home/akim/Desktop/personal/Ephemeral'}}}} [2024-03-22 11:08:12] [DEBUG] ANSIBLE: Running playbook: [{'hosts': 'localhost', 'become': True, 'become_user': 'akim', 'tasks': [{'name': 'Test uninstall for manager', 'command': "python3 -m pytest modules/testing/tests/test_manager/test_uninstall.py -v --wazuh_version=4.7.3 --wazuh_revision=40714 --component=manager --dependencies='{wazuh-1: /tmp/dtt1-poc/manager-linux-ubuntu-20.04-amd64/inventory.yml}' --targets='{wazuh-1: /tmp/dtt1-poc/manager-linux-debian-12-amd64/inventory.yml, wazuh-2: /tmp/dtt1-poc/manager-linux-ubuntu-20.04-amd64/inventory.yml}' -s", 'args': {'chdir': '/home/akim/Desktop/wazuh-qa/deployability'}}]}] No config file found; using defaults PLAY [localhost] *************************************************************** TASK [Gathering Facts] ********************************************************* ok: [localhost] TASK [Test uninstall for manager] ********************************************** changed: [localhost] => changed=true cmd: - python3 - -m - pytest - modules/testing/tests/test_manager/test_uninstall.py - -v - --wazuh_version=4.7.3 - --wazuh_revision=40714 - --component=manager - '--dependencies={wazuh-1: /tmp/dtt1-poc/manager-linux-ubuntu-20.04-amd64/inventory.yml}' - '--targets={wazuh-1: /tmp/dtt1-poc/manager-linux-debian-12-amd64/inventory.yml, wazuh-2: /tmp/dtt1-poc/manager-linux-ubuntu-20.04-amd64/inventory.yml}' - -s delta: '0:01:18.434409' end: '2024-03-22 11:09:36.730477' msg: '' rc: 0 start: '2024-03-22 11:08:18.296068' stderr: |- /home/akim/Desktop/venvs/deplo_test/lib/python3.10/site-packages/_testinfra_renamed.py:5: DeprecationWarning: testinfra package has been renamed to pytest-testinfra. Please `pip install pytest-testinfra` and `pip uninstall testinfra` and update your package requirements to avoid this message warnings.warn(( Warning: Permanently added '[ec2-18-232-135-232.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-52-70-68-32.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-18-232-135-232.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-18-232-135-232.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-18-232-135-232.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-18-232-135-232.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-18-232-135-232.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-18-232-135-232.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. apt-listchanges: Can't set locale; make sure $LC_* and $LANG are correct! perl: warning: Setting locale failed. perl: warning: Please check that your locale settings: LANGUAGE = (unset), LC_ALL = (unset), LC_TIME = "es_ES.UTF-8", LC_MONETARY = "es_ES.UTF-8", LC_ADDRESS = "es_ES.UTF-8", LC_TELEPHONE = "es_ES.UTF-8", LC_NAME = "es_ES.UTF-8", LC_MEASUREMENT = "es_ES.UTF-8", LC_IDENTIFICATION = "es_ES.UTF-8", LC_NUMERIC = "es_ES.UTF-8", LC_PAPER = "es_ES.UTF-8", LANG = "C.UTF-8" are supported and installed on your system. perl: warning: Falling back to a fallback locale ("C.UTF-8"). Warning: Permanently added '[ec2-18-232-135-232.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Failed to disable unit: Unit file wazuh-manager.service does not exist. Warning: Permanently added '[ec2-18-232-135-232.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-18-232-135-232.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-18-232-135-232.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-18-232-135-232.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-18-232-135-232.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-52-70-68-32.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-52-70-68-32.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-52-70-68-32.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-52-70-68-32.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-52-70-68-32.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-52-70-68-32.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. perl: warning: Setting locale failed. perl: warning: Please check that your locale settings: LANGUAGE = (unset), LC_ALL = (unset), LC_TIME = "es_ES.UTF-8", LC_MONETARY = "es_ES.UTF-8", LC_ADDRESS = "es_ES.UTF-8", LC_TELEPHONE = "es_ES.UTF-8", LC_NAME = "es_ES.UTF-8", LC_MEASUREMENT = "es_ES.UTF-8", LC_IDENTIFICATION = "es_ES.UTF-8", LC_NUMERIC = "es_ES.UTF-8", LC_PAPER = "es_ES.UTF-8", LANG = "C.UTF-8" are supported and installed on your system. perl: warning: Falling back to a fallback locale ("C.UTF-8"). locale: Cannot set LC_ALL to default locale: No such file or directory Warning: Permanently added '[ec2-52-70-68-32.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Removed /etc/systemd/system/multi-user.target.wants/wazuh-manager.service. Warning: Permanently added '[ec2-52-70-68-32.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-52-70-68-32.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-52-70-68-32.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-52-70-68-32.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-52-70-68-32.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-18-232-135-232.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-52-70-68-32.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. stderr_lines: stdout: |- ============================= test session starts ============================== platform linux -- Python 3.10.12, pytest-8.1.0, pluggy-1.4.0 -- /home/akim/Desktop/venvs/deplo_test/bin/python3 cachedir: .pytest_cache rootdir: /home/akim/Desktop/wazuh-qa/deployability/modules plugins: testinfra-6.0.0, testinfra-10.1.0 collecting ... collected 2 items modules/testing/tests/test_manager/test_uninstall.py::test_uninstall systemctl status wazuh-manager systemctl status wazuh-manager uname sudo find /boot -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg sudo find /usr/bin -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg sudo find /root -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg sudo find /usr/sbin -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg sudo find /boot -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg sudo find /usr/bin -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg sudo find /root -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg sudo find /usr/sbin -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg /root added [] modified [] removed [] /usr/bin added [] modified [] removed [] /usr/sbin added [] modified [] removed [] /boot added [] modified [] removed [] uname sudo find /boot -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg sudo find /usr/bin -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg sudo find /root -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg sudo find /usr/sbin -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg sudo find /boot -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg sudo find /usr/bin -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg sudo find /root -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg sudo find /usr/sbin -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg /root added [] modified [] removed [] /usr/bin added [] modified [] removed [] /usr/sbin added [] modified [] removed [] /boot added [] modified [] removed [] PASSED modules/testing/tests/test_manager/test_uninstall.py::test_manager_uninstalled_directory test -d /var/ossec && echo "true" || echo "false" test -d /var/ossec && echo "true" || echo "false" PASSED =============================== warnings summary =============================== modules/provision/models.py:65 /home/akim/Desktop/wazuh-qa/deployability/modules/provision/models.py:65: 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', pre=True) modules/provision/models.py:73 /home/akim/Desktop/wazuh-qa/deployability/modules/provision/models.py:73: 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('uninstall', pre=True) -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html =================== 2 passed, 2 warnings in 77.86s (0:01:17) =================== stdout_lines: PLAY RECAP ********************************************************************* localhost : ok=2 changed=1 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 [2024-03-22 11:09:37] [DEBUG] ANSIBLE: Playbook [{'hosts': 'localhost', 'become': True, 'become_user': 'akim', 'tasks': [{'name': 'Test uninstall for manager', 'command': "python3 -m pytest modules/testing/tests/test_manager/test_uninstall.py -v --wazuh_version=4.7.3 --wazuh_revision=40714 --component=manager --dependencies='{wazuh-1: /tmp/dtt1-poc/manager-linux-ubuntu-20.04-amd64/inventory.yml}' --targets='{wazuh-1: /tmp/dtt1-poc/manager-linux-debian-12-amd64/inventory.yml, wazuh-2: /tmp/dtt1-poc/manager-linux-ubuntu-20.04-amd64/inventory.yml}' -s", 'args': {'chdir': '/home/akim/Desktop/wazuh-qa/deployability'}}]}] finished with status {'skipped': {}, 'ok': {'localhost': 2}, 'dark': {}, 'failures': {}, 'ignored': {}, 'rescued': {}, 'processed': {'localhost': 1}, 'changed': {'localhost': 1}} [2024-03-22 11:09:37] [DEBUG] ANSIBLE: Using inventory: {'all': {'hosts': {'ec2-18-232-135-232.compute-1.amazonaws.com': {'ansible_port': 2200, 'ansible_user': 'admin', 'ansible_ssh_private_key_file': '/home/akim/Desktop/personal/Ephemeral'}}}} [2024-03-22 11:09:37] [DEBUG] ANSIBLE: Running playbook: /home/akim/Desktop/wazuh-qa/deployability/modules/testing/playbooks/cleanup.yml No config file found; using defaults PLAY [all] ********************************************************************* TASK [Gathering Facts] ********************************************************* ok: [ec2-18-232-135-232.compute-1.amazonaws.com] TASK [Clean test directory] **************************************************** ok: [ec2-18-232-135-232.compute-1.amazonaws.com] => changed=false path: /tmp/tests state: absent PLAY RECAP ********************************************************************* ec2-18-232-135-232.compute-1.amazonaws.com : ok=2 changed=0 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 [2024-03-22 11:09:48] [DEBUG] ANSIBLE: Playbook /home/akim/Desktop/wazuh-qa/deployability/modules/testing/playbooks/cleanup.yml finished with status {'skipped': {}, 'ok': {'ec2-18-232-135-232.compute-1.amazonaws.com': 2}, 'dark': {}, 'failures': {}, 'ignored': {}, 'rescued': {}, 'processed': {'ec2-18-232-135-232.compute-1.amazonaws.com': 1}, 'changed': {}} [2024-03-22 11:09:48] [DEBUG] ANSIBLE: Using inventory: {'all': {'hosts': {'ec2-18-232-135-232.compute-1.amazonaws.com': {'ansible_port': 2200, 'ansible_user': 'admin', 'ansible_ssh_private_key_file': '/home/akim/Desktop/personal/Ephemeral'}}}} [2024-03-22 11:09:48] [DEBUG] ANSIBLE: Running playbook: /home/akim/Desktop/wazuh-qa/deployability/modules/testing/playbooks/cleanup.yml No config file found; using defaults PLAY [all] ********************************************************************* TASK [Gathering Facts] ********************************************************* ok: [ec2-18-232-135-232.compute-1.amazonaws.com] TASK [Clean test directory] **************************************************** ok: [ec2-18-232-135-232.compute-1.amazonaws.com] => changed=false path: /tmp/tests state: absent PLAY RECAP ********************************************************************* ec2-18-232-135-232.compute-1.amazonaws.com : ok=2 changed=0 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 [2024-03-22 11:09:58] [DEBUG] ANSIBLE: Playbook /home/akim/Desktop/wazuh-qa/deployability/modules/testing/playbooks/cleanup.yml finished with status {'skipped': {}, 'ok': {'ec2-18-232-135-232.compute-1.amazonaws.com': 2}, 'dark': {}, 'failures': {}, 'ignored': {}, 'rescued': {}, 'processed': {'ec2-18-232-135-232.compute-1.amazonaws.com': 1}, 'changed': {}} ```
pro-akim commented 1 month ago

PART II

Centos-8:Amazon-2 :green_circle: ```bash (deplo_test) akim@akim-PC:~/Desktop/wazuh-qa/deployability$ python3 modules/testing/main.py --wazuh-revision '40714' --wazuh-version '4.7.3' --component 'manager' --tests 'install' --targets '{"wazuh-1":"/tmp/dtt1-poc/manager-linux-centos-8-amd64/inventory.yml"}' --targets '{"wazuh-2 ":"/tmp/dtt1-poc/manager-linux-amazon-2-amd64/inventory.yml"}' --dependencies '{"wazuh-1":"/tmp/dtt1-poc/manager-linux-oracle-9-amd64/inventory.yml"}' [2024-03-22 11:51:35] [INFO] TESTER: Running tests for ec2-52-23-246-132.compute-1.amazonaws.com [2024-03-22 11:51:35] [INFO] TESTER: Running tests for ec2-34-230-24-39.compute-1.amazonaws.com [2024-03-22 11:51:35] [INFO] TESTER: Dependencies ec2-3-91-224-190.compute-1.amazonaws.com [2024-03-22 11:51:35] [DEBUG] TESTER: Using extra vars: {'component': 'manager', 'wazuh_version': '4.7.3', 'wazuh_revision': '40714', 'wazuh_branch': None, 'working_dir': '/tmp/tests', 'hosts_ip': ['ec2-52-23-246-132.compute-1.amazonaws.com', 'ec2-34-230-24-39.compute-1.amazonaws.com'], 'targets': '{wazuh-1: /tmp/dtt1-poc/manager-linux-centos-8-amd64/inventory.yml, wazuh-2: /tmp/dtt1-poc/manager-linux-amazon-2-amd64/inventory.yml}', 'dependencies': '{wazuh-1: /tmp/dtt1-poc/manager-linux-oracle-9-amd64/inventory.yml}', 'local_host_path': '/home/akim/Desktop/wazuh-qa/deployability', 'current_user': 'akim'} [2024-03-22 11:51:35] [DEBUG] ANSIBLE: Rendering template /home/akim/Desktop/wazuh-qa/deployability/modules/testing/playbooks/setup.yml [2024-03-22 11:51:35] [DEBUG] ANSIBLE: Using inventory: {'all': {'hosts': {'ec2-52-23-246-132.compute-1.amazonaws.com': {'ansible_port': 2200, 'ansible_user': 'centos', 'ansible_ssh_private_key_file': '/home/akim/Desktop/personal/Ephemeral'}}}} [2024-03-22 11:51:35] [DEBUG] ANSIBLE: Running playbook: [{'hosts': 'localhost', 'become': True, 'become_user': 'akim', 'tasks': [{'name': 'Cleaning old key ssh-keygen registries', 'ansible.builtin.command': {'cmd': "ssh-keygen -f /home/akim/.ssh/known_hosts -R ''"}, 'loop': ['ec2-52-23-246-132.compute-1.amazonaws.com', 'ec2-34-230-24-39.compute-1.amazonaws.com']}]}] No config file found; using defaults PLAY [localhost] *************************************************************** TASK [Gathering Facts] ********************************************************* ok: [localhost] TASK [Cleaning old key ssh-keygen registries] ********************************** changed: [localhost] => (item=ec2-52-23-246-132.compute-1.amazonaws.com) => changed=true ansible_loop_var: item cmd: - ssh-keygen - -f - /home/akim/.ssh/known_hosts - -R - '' delta: '0:00:00.009477' end: '2024-03-22 11:51:40.845011' item: ec2-52-23-246-132.compute-1.amazonaws.com msg: '' rc: 0 start: '2024-03-22 11:51:40.835534' stderr: Host not found in /home/akim/.ssh/known_hosts stderr_lines: stdout: '' stdout_lines: changed: [localhost] => (item=ec2-34-230-24-39.compute-1.amazonaws.com) => changed=true ansible_loop_var: item cmd: - ssh-keygen - -f - /home/akim/.ssh/known_hosts - -R - '' delta: '0:00:00.010318' end: '2024-03-22 11:51:41.018842' item: ec2-34-230-24-39.compute-1.amazonaws.com msg: '' rc: 0 start: '2024-03-22 11:51:41.008524' stderr: Host not found in /home/akim/.ssh/known_hosts stderr_lines: stdout: '' stdout_lines: PLAY RECAP ********************************************************************* localhost : ok=2 changed=1 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 [2024-03-22 11:51:41] [DEBUG] ANSIBLE: Playbook [{'hosts': 'localhost', 'become': True, 'become_user': 'akim', 'tasks': [{'name': 'Cleaning old key ssh-keygen registries', 'ansible.builtin.command': {'cmd': "ssh-keygen -f /home/akim/.ssh/known_hosts -R ''"}, 'loop': ['ec2-52-23-246-132.compute-1.amazonaws.com', 'ec2-34-230-24-39.compute-1.amazonaws.com']}]}] finished with status {'skipped': {}, 'ok': {'localhost': 2}, 'dark': {}, 'failures': {}, 'ignored': {}, 'rescued': {}, 'processed': {'localhost': 1}, 'changed': {'localhost': 1}} [2024-03-22 11:51:41] [DEBUG] ANSIBLE: Rendering template /home/akim/Desktop/wazuh-qa/deployability/modules/testing/playbooks/test.yml [2024-03-22 11:51:41] [DEBUG] ANSIBLE: Using inventory: {'all': {'hosts': {'ec2-52-23-246-132.compute-1.amazonaws.com': {'ansible_port': 2200, 'ansible_user': 'centos', 'ansible_ssh_private_key_file': '/home/akim/Desktop/personal/Ephemeral'}}}} [2024-03-22 11:51:41] [DEBUG] ANSIBLE: Running playbook: [{'hosts': 'localhost', 'become': True, 'become_user': 'akim', 'tasks': [{'name': 'Test install for manager', 'command': "python3 -m pytest modules/testing/tests/test_manager/test_install.py -v --wazuh_version=4.7.3 --wazuh_revision=40714 --component=manager --dependencies='{wazuh-1: /tmp/dtt1-poc/manager-linux-oracle-9-amd64/inventory.yml}' --targets='{wazuh-1: /tmp/dtt1-poc/manager-linux-centos-8-amd64/inventory.yml, wazuh-2: /tmp/dtt1-poc/manager-linux-amazon-2-amd64/inventory.yml}' -s", 'args': {'chdir': '/home/akim/Desktop/wazuh-qa/deployability'}}]}] No config file found; using defaults PLAY [localhost] *************************************************************** TASK [Gathering Facts] ********************************************************* ok: [localhost] TASK [Test install for manager] ************************************************ changed: [localhost] => changed=true cmd: - python3 - -m - pytest - modules/testing/tests/test_manager/test_install.py - -v - --wazuh_version=4.7.3 - --wazuh_revision=40714 - --component=manager - '--dependencies={wazuh-1: /tmp/dtt1-poc/manager-linux-oracle-9-amd64/inventory.yml}' - '--targets={wazuh-1: /tmp/dtt1-poc/manager-linux-centos-8-amd64/inventory.yml, wazuh-2: /tmp/dtt1-poc/manager-linux-amazon-2-amd64/inventory.yml}' - -s delta: '0:06:25.507146' end: '2024-03-22 11:58:09.839955' msg: '' rc: 0 start: '2024-03-22 11:51:44.332809' stderr: |- /home/akim/Desktop/venvs/deplo_test/lib/python3.10/site-packages/_testinfra_renamed.py:5: DeprecationWarning: testinfra package has been renamed to pytest-testinfra. Please `pip install pytest-testinfra` and `pip uninstall testinfra` and update your package requirements to avoid this message warnings.warn(( ssh: connect to host ec2-52-23-246-132.compute-1.amazonaws.com port 2200: Connection refused ssh: connect to host ec2-52-23-246-132.compute-1.amazonaws.com port 2200: Connection refused Warning: Permanently added '[ec2-34-230-24-39.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Failed to stop firewalld.service: Unit firewalld.service not loaded. Warning: Permanently added '[ec2-34-230-24-39.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Failed to execute operation: No such file or directory Warning: Permanently added '[ec2-52-23-246-132.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-52-23-246-132.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-52-23-246-132.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-52-23-246-132.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-52-23-246-132.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-52-23-246-132.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-52-23-246-132.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-52-23-246-132.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-52-23-246-132.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-52-23-246-132.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-52-23-246-132.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-52-23-246-132.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-52-23-246-132.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-52-23-246-132.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-34-230-24-39.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-52-23-246-132.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-52-23-246-132.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-34-230-24-39.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-52-23-246-132.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-52-23-246-132.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-52-23-246-132.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-52-23-246-132.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-52-23-246-132.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-52-23-246-132.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-52-23-246-132.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-52-23-246-132.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-52-23-246-132.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-52-23-246-132.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-52-23-246-132.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-34-230-24-39.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-34-230-24-39.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-34-230-24-39.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-34-230-24-39.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-34-230-24-39.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-34-230-24-39.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-34-230-24-39.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-34-230-24-39.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-34-230-24-39.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-34-230-24-39.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-34-230-24-39.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-52-23-246-132.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-52-23-246-132.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-52-23-246-132.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-52-23-246-132.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-52-23-246-132.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-52-23-246-132.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-34-230-24-39.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-34-230-24-39.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-34-230-24-39.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-34-230-24-39.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-34-230-24-39.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-34-230-24-39.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-52-23-246-132.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-52-23-246-132.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-34-230-24-39.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-52-23-246-132.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-52-23-246-132.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-52-23-246-132.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-52-23-246-132.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-52-23-246-132.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-34-230-24-39.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-34-230-24-39.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-34-230-24-39.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-34-230-24-39.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-34-230-24-39.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-52-23-246-132.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-52-23-246-132.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-52-23-246-132.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-52-23-246-132.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-34-230-24-39.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-34-230-24-39.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-34-230-24-39.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-34-230-24-39.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-52-23-246-132.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-34-230-24-39.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. stderr_lines: stdout: |- ============================= test session starts ============================== platform linux -- Python 3.10.12, pytest-8.1.0, pluggy-1.4.0 -- /home/akim/Desktop/venvs/deplo_test/bin/python3 cachedir: .pytest_cache rootdir: /home/akim/Desktop/wazuh-qa/deployability/modules plugins: testinfra-6.0.0, testinfra-10.1.0 collecting ... collected 5 items modules/testing/tests/test_manager/test_install.py::test_installation pwd pwd pwd chmod +rw wazuh-install-files.tar chmod 600 wazuh-install-files.tar chmod 600 wazuh-install-files.tar uname sudo find /boot -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg sudo find /usr/bin -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg sudo find /root -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg sudo find /usr/sbin -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg sudo find /boot -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg sudo find /usr/bin -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg sudo find /root -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg sudo find /usr/sbin -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg /root added [] modified [] removed [] /usr/bin added [] modified [] removed [] /usr/sbin added [] modified [] removed [] /boot added [] modified [] removed [] uname sudo find /boot -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg sudo find /usr/bin -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg sudo find /root -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg sudo find /usr/sbin -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg sudo find /boot -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg sudo find /usr/bin -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg sudo find /root -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg sudo find /usr/sbin -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg /root added [] modified [] removed [] /usr/bin added [] modified [] removed [] /usr/sbin added [] modified [] removed [] /boot added [] modified [] removed [] /var/ossec/bin/cluster_control -l PASSED modules/testing/tests/test_manager/test_install.py::test_manager_status systemctl status wazuh-manager systemctl status wazuh-manager PASSED modules/testing/tests/test_manager/test_install.py::test_manager_version /var/ossec/bin/wazuh-control info -v pwd test -f /home/centos/wazuh-install-files/wazuh-passwords.txt && echo "true" || echo "false" tar -xvf wazuh-install-files.tar grep api_password wazuh-install-files/wazuh-passwords.txt | head -n 1 | awk '{print $NF}' /var/ossec/bin/wazuh-control info -v pwd test -f /home/ec2-user/wazuh-install-files/wazuh-passwords.txt && echo "true" || echo "false" tar -xvf wazuh-install-files.tar grep api_password wazuh-install-files/wazuh-passwords.txt | head -n 1 | awk '{print $NF}' PASSED modules/testing/tests/test_manager/test_install.py::test_manager_revision /var/ossec/bin/wazuh-control info -r pwd test -f /home/centos/wazuh-install-files/wazuh-passwords.txt && echo "true" || echo "false" grep api_password wazuh-install-files/wazuh-passwords.txt | head -n 1 | awk '{print $NF}' /var/ossec/bin/wazuh-control info -r pwd test -f /home/ec2-user/wazuh-install-files/wazuh-passwords.txt && echo "true" || echo "false" grep api_password wazuh-install-files/wazuh-passwords.txt | head -n 1 | awk '{print $NF}' PASSED modules/testing/tests/test_manager/test_install.py::test_manager_installed_directory test -d /var/ossec && echo "true" || echo "false" test -d /var/ossec && echo "true" || echo "false" PASSED =============================== warnings summary =============================== modules/provision/models.py:65 /home/akim/Desktop/wazuh-qa/deployability/modules/provision/models.py:65: 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', pre=True) modules/provision/models.py:73 /home/akim/Desktop/wazuh-qa/deployability/modules/provision/models.py:73: 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('uninstall', pre=True) -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html ================== 5 passed, 2 warnings in 384.82s (0:06:24) =================== stdout_lines: PLAY RECAP ********************************************************************* localhost : ok=2 changed=1 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 [2024-03-22 11:58:10] [DEBUG] ANSIBLE: Playbook [{'hosts': 'localhost', 'become': True, 'become_user': 'akim', 'tasks': [{'name': 'Test install for manager', 'command': "python3 -m pytest modules/testing/tests/test_manager/test_install.py -v --wazuh_version=4.7.3 --wazuh_revision=40714 --component=manager --dependencies='{wazuh-1: /tmp/dtt1-poc/manager-linux-oracle-9-amd64/inventory.yml}' --targets='{wazuh-1: /tmp/dtt1-poc/manager-linux-centos-8-amd64/inventory.yml, wazuh-2: /tmp/dtt1-poc/manager-linux-amazon-2-amd64/inventory.yml}' -s", 'args': {'chdir': '/home/akim/Desktop/wazuh-qa/deployability'}}]}] finished with status {'skipped': {}, 'ok': {'localhost': 2}, 'dark': {}, 'failures': {}, 'ignored': {}, 'rescued': {}, 'processed': {'localhost': 1}, 'changed': {'localhost': 1}} [2024-03-22 11:58:10] [DEBUG] ANSIBLE: Using inventory: {'all': {'hosts': {'ec2-52-23-246-132.compute-1.amazonaws.com': {'ansible_port': 2200, 'ansible_user': 'centos', 'ansible_ssh_private_key_file': '/home/akim/Desktop/personal/Ephemeral'}}}} [2024-03-22 11:58:10] [DEBUG] ANSIBLE: Running playbook: /home/akim/Desktop/wazuh-qa/deployability/modules/testing/playbooks/cleanup.yml No config file found; using defaults PLAY [all] ********************************************************************* TASK [Gathering Facts] ********************************************************* ok: [ec2-52-23-246-132.compute-1.amazonaws.com] TASK [Clean test directory] **************************************************** ok: [ec2-52-23-246-132.compute-1.amazonaws.com] => changed=false path: /tmp/tests state: absent PLAY RECAP ********************************************************************* ec2-52-23-246-132.compute-1.amazonaws.com : ok=2 changed=0 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 [2024-03-22 11:58:25] [DEBUG] ANSIBLE: Playbook /home/akim/Desktop/wazuh-qa/deployability/modules/testing/playbooks/cleanup.yml finished with status {'skipped': {}, 'ok': {'ec2-52-23-246-132.compute-1.amazonaws.com': 2}, 'dark': {}, 'failures': {}, 'ignored': {}, 'rescued': {}, 'processed': {'ec2-52-23-246-132.compute-1.amazonaws.com': 1}, 'changed': {}} [2024-03-22 11:58:25] [DEBUG] ANSIBLE: Using inventory: {'all': {'hosts': {'ec2-52-23-246-132.compute-1.amazonaws.com': {'ansible_port': 2200, 'ansible_user': 'centos', 'ansible_ssh_private_key_file': '/home/akim/Desktop/personal/Ephemeral'}}}} [2024-03-22 11:58:25] [DEBUG] ANSIBLE: Running playbook: /home/akim/Desktop/wazuh-qa/deployability/modules/testing/playbooks/cleanup.yml No config file found; using defaults PLAY [all] ********************************************************************* TASK [Gathering Facts] ********************************************************* ok: [ec2-52-23-246-132.compute-1.amazonaws.com] TASK [Clean test directory] **************************************************** ok: [ec2-52-23-246-132.compute-1.amazonaws.com] => changed=false path: /tmp/tests state: absent PLAY RECAP ********************************************************************* ec2-52-23-246-132.compute-1.amazonaws.com : ok=2 changed=0 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 [2024-03-22 11:58:43] [DEBUG] ANSIBLE: Playbook /home/akim/Desktop/wazuh-qa/deployability/modules/testing/playbooks/cleanup.yml finished with status {'skipped': {}, 'ok': {'ec2-52-23-246-132.compute-1.amazonaws.com': 2}, 'dark': {}, 'failures': {}, 'ignored': {}, 'rescued': {}, 'processed': {'ec2-52-23-246-132.compute-1.amazonaws.com': 1}, 'changed': {}} (deplo_test) akim@akim-PC:~/Desktop/wazuh-qa/deployability$ python3 modules/testing/main.py --wazuh-revision '40714' --wazuh-version '4.7.3' --component 'manager' --tests 'stop,restart,uninstall' --targets '{"wazuh-1":"/tmp/dtt1-poc/manager-linux-centos-8-amd64/inventory.yml"}' --tar gets '{"wazuh-2":"/tmp/dtt1-poc/manager-linux-amazon-2-amd64/inventory.yml"}' --dependencies '{"wazuh-1":"/tmp/dtt1-poc/manager-linux-oracle-9-amd64/inventory.yml"}' [2024-03-22 12:04:32] [INFO] TESTER: Running tests for ec2-52-23-246-132.compute-1.amazonaws.com [2024-03-22 12:04:32] [INFO] TESTER: Running tests for ec2-34-230-24-39.compute-1.amazonaws.com [2024-03-22 12:04:32] [INFO] TESTER: Dependencies ec2-3-91-224-190.compute-1.amazonaws.com [2024-03-22 12:04:32] [DEBUG] TESTER: Using extra vars: {'component': 'manager', 'wazuh_version': '4.7.3', 'wazuh_revision': '40714', 'wazuh_branch': None, 'working_dir': '/tmp/tests', 'hosts_ip': ['ec2-52-23-246-132.compute-1.amazonaws.com', 'ec2-34-230-24-39.compute-1.amazonaws.com'], 'targets': '{wazuh-1: /tmp/dtt1-poc/manager-linux-centos-8-amd64/inventory.yml, wazuh-2: /tmp/dtt1-poc/manager-linux-amazon-2-amd64/inventory.yml}', 'dependencies': '{wazuh-1: /tmp/dtt1-poc/manager-linux-oracle-9-amd64/inventory.yml}', 'local_host_path': '/home/akim/Desktop/wazuh-qa/deployability', 'current_user': 'akim'} [2024-03-22 12:04:32] [DEBUG] ANSIBLE: Rendering template /home/akim/Desktop/wazuh-qa/deployability/modules/testing/playbooks/setup.yml [2024-03-22 12:04:32] [DEBUG] ANSIBLE: Using inventory: {'all': {'hosts': {'ec2-52-23-246-132.compute-1.amazonaws.com': {'ansible_port': 2200, 'ansible_user': 'centos', 'ansible_ssh_private_key_file': '/home/akim/Desktop/personal/Ephemeral'}}}} [2024-03-22 12:04:32] [DEBUG] ANSIBLE: Running playbook: [{'hosts': 'localhost', 'become': True, 'become_user': 'akim', 'tasks': [{'name': 'Cleaning old key ssh-keygen registries', 'ansible.builtin.command': {'cmd': "ssh-keygen -f /home/akim/.ssh/known_hosts -R ''"}, 'loop': ['ec2-52-23-246-132.compute-1.amazonaws.com', 'ec2-34-230-24-39.compute-1.amazonaws.com']}]}] No config file found; using defaults PLAY [localhost] *************************************************************** TASK [Gathering Facts] ********************************************************* ok: [localhost] TASK [Cleaning old key ssh-keygen registries] ********************************** changed: [localhost] => (item=ec2-52-23-246-132.compute-1.amazonaws.com) => changed=true ansible_loop_var: item cmd: - ssh-keygen - -f - /home/akim/.ssh/known_hosts - -R - '' delta: '0:00:00.008840' end: '2024-03-22 12:04:38.974323' item: ec2-52-23-246-132.compute-1.amazonaws.com msg: '' rc: 0 start: '2024-03-22 12:04:38.965483' stderr: Host not found in /home/akim/.ssh/known_hosts stderr_lines: stdout: '' stdout_lines: changed: [localhost] => (item=ec2-34-230-24-39.compute-1.amazonaws.com) => changed=true ansible_loop_var: item cmd: - ssh-keygen - -f - /home/akim/.ssh/known_hosts - -R - '' delta: '0:00:00.008749' end: '2024-03-22 12:04:39.141046' item: ec2-34-230-24-39.compute-1.amazonaws.com msg: '' rc: 0 start: '2024-03-22 12:04:39.132297' stderr: Host not found in /home/akim/.ssh/known_hosts stderr_lines: stdout: '' stdout_lines: PLAY RECAP ********************************************************************* localhost : ok=2 changed=1 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 [2024-03-22 12:04:39] [DEBUG] ANSIBLE: Playbook [{'hosts': 'localhost', 'become': True, 'become_user': 'akim', 'tasks': [{'name': 'Cleaning old key ssh-keygen registries', 'ansible.builtin.command': {'cmd': "ssh-keygen -f /home/akim/.ssh/known_hosts -R ''"}, 'loop': ['ec2-52-23-246-132.compute-1.amazonaws.com', 'ec2-34-230-24-39.compute-1.amazonaws.com']}]}] finished with status {'skipped': {}, 'ok': {'localhost': 2}, 'dark': {}, 'failures': {}, 'ignored': {}, 'rescued': {}, 'processed': {'localhost': 1}, 'changed': {'localhost': 1}} [2024-03-22 12:04:39] [DEBUG] ANSIBLE: Rendering template /home/akim/Desktop/wazuh-qa/deployability/modules/testing/playbooks/test.yml [2024-03-22 12:04:39] [DEBUG] ANSIBLE: Using inventory: {'all': {'hosts': {'ec2-52-23-246-132.compute-1.amazonaws.com': {'ansible_port': 2200, 'ansible_user': 'centos', 'ansible_ssh_private_key_file': '/home/akim/Desktop/personal/Ephemeral'}}}} [2024-03-22 12:04:39] [DEBUG] ANSIBLE: Running playbook: [{'hosts': 'localhost', 'become': True, 'become_user': 'akim', 'tasks': [{'name': 'Test stop for manager', 'command': "python3 -m pytest modules/testing/tests/test_manager/test_stop.py -v --wazuh_version=4.7.3 --wazuh_revision=40714 --component=manager --dependencies='{wazuh-1: /tmp/dtt1-poc/manager-linux-oracle-9-amd64/inventory.yml}' --targets='{wazuh-1: /tmp/dtt1-poc/manager-linux-centos-8-amd64/inventory.yml, wazuh-2: /tmp/dtt1-poc/manager-linux-amazon-2-amd64/inventory.yml}' -s", 'args': {'chdir': '/home/akim/Desktop/wazuh-qa/deployability'}}]}] No config file found; using defaults PLAY [localhost] *************************************************************** TASK [Gathering Facts] ********************************************************* ok: [localhost] TASK [Test stop for manager] *************************************************** changed: [localhost] => changed=true cmd: - python3 - -m - pytest - modules/testing/tests/test_manager/test_stop.py - -v - --wazuh_version=4.7.3 - --wazuh_revision=40714 - --component=manager - '--dependencies={wazuh-1: /tmp/dtt1-poc/manager-linux-oracle-9-amd64/inventory.yml}' - '--targets={wazuh-1: /tmp/dtt1-poc/manager-linux-centos-8-amd64/inventory.yml, wazuh-2: /tmp/dtt1-poc/manager-linux-amazon-2-amd64/inventory.yml}' - -s delta: '0:00:22.228090' end: '2024-03-22 12:05:04.591103' msg: '' rc: 0 start: '2024-03-22 12:04:42.363013' stderr: |- /home/akim/Desktop/venvs/deplo_test/lib/python3.10/site-packages/_testinfra_renamed.py:5: DeprecationWarning: testinfra package has been renamed to pytest-testinfra. Please `pip install pytest-testinfra` and `pip uninstall testinfra` and update your package requirements to avoid this message warnings.warn(( Warning: Permanently added '[ec2-34-230-24-39.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-52-23-246-132.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-34-230-24-39.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-34-230-24-39.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. stderr_lines: stdout: |- ============================= test session starts ============================== platform linux -- Python 3.10.12, pytest-8.1.0, pluggy-1.4.0 -- /home/akim/Desktop/venvs/deplo_test/bin/python3 cachedir: .pytest_cache rootdir: /home/akim/Desktop/wazuh-qa/deployability/modules plugins: testinfra-6.0.0, testinfra-10.1.0 collecting ... collected 1 item modules/testing/tests/test_manager/test_stop.py::test_stop systemctl stop wazuh-manager systemctl status wazuh-manager systemctl status wazuh-manager PASSEDsystemctl restart wazuh-manager =============================== warnings summary =============================== modules/provision/models.py:65 /home/akim/Desktop/wazuh-qa/deployability/modules/provision/models.py:65: 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', pre=True) modules/provision/models.py:73 /home/akim/Desktop/wazuh-qa/deployability/modules/provision/models.py:73: 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('uninstall', pre=True) -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html ======================== 1 passed, 2 warnings in 21.61s ======================== stdout_lines: PLAY RECAP ********************************************************************* localhost : ok=2 changed=1 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 [2024-03-22 12:05:04] [DEBUG] ANSIBLE: Playbook [{'hosts': 'localhost', 'become': True, 'become_user': 'akim', 'tasks': [{'name': 'Test stop for manager', 'command': "python3 -m pytest modules/testing/tests/test_manager/test_stop.py -v --wazuh_version=4.7.3 --wazuh_revision=40714 --component=manager --dependencies='{wazuh-1: /tmp/dtt1-poc/manager-linux-oracle-9-amd64/inventory.yml}' --targets='{wazuh-1: /tmp/dtt1-poc/manager-linux-centos-8-amd64/inventory.yml, wazuh-2: /tmp/dtt1-poc/manager-linux-amazon-2-amd64/inventory.yml}' -s", 'args': {'chdir': '/home/akim/Desktop/wazuh-qa/deployability'}}]}] finished with status {'skipped': {}, 'ok': {'localhost': 2}, 'dark': {}, 'failures': {}, 'ignored': {}, 'rescued': {}, 'processed': {'localhost': 1}, 'changed': {'localhost': 1}} [2024-03-22 12:05:04] [DEBUG] ANSIBLE: Rendering template /home/akim/Desktop/wazuh-qa/deployability/modules/testing/playbooks/test.yml [2024-03-22 12:05:04] [DEBUG] ANSIBLE: Using inventory: {'all': {'hosts': {'ec2-52-23-246-132.compute-1.amazonaws.com': {'ansible_port': 2200, 'ansible_user': 'centos', 'ansible_ssh_private_key_file': '/home/akim/Desktop/personal/Ephemeral'}}}} [2024-03-22 12:05:04] [DEBUG] ANSIBLE: Running playbook: [{'hosts': 'localhost', 'become': True, 'become_user': 'akim', 'tasks': [{'name': 'Test restart for manager', 'command': "python3 -m pytest modules/testing/tests/test_manager/test_restart.py -v --wazuh_version=4.7.3 --wazuh_revision=40714 --component=manager --dependencies='{wazuh-1: /tmp/dtt1-poc/manager-linux-oracle-9-amd64/inventory.yml}' --targets='{wazuh-1: /tmp/dtt1-poc/manager-linux-centos-8-amd64/inventory.yml, wazuh-2: /tmp/dtt1-poc/manager-linux-amazon-2-amd64/inventory.yml}' -s", 'args': {'chdir': '/home/akim/Desktop/wazuh-qa/deployability'}}]}] No config file found; using defaults PLAY [localhost] *************************************************************** TASK [Gathering Facts] ********************************************************* ok: [localhost] TASK [Test restart for manager] ************************************************ changed: [localhost] => changed=true cmd: - python3 - -m - pytest - modules/testing/tests/test_manager/test_restart.py - -v - --wazuh_version=4.7.3 - --wazuh_revision=40714 - --component=manager - '--dependencies={wazuh-1: /tmp/dtt1-poc/manager-linux-oracle-9-amd64/inventory.yml}' - '--targets={wazuh-1: /tmp/dtt1-poc/manager-linux-centos-8-amd64/inventory.yml, wazuh-2: /tmp/dtt1-poc/manager-linux-amazon-2-amd64/inventory.yml}' - -s delta: '0:00:19.065009' end: '2024-03-22 12:05:29.768215' msg: '' rc: 0 start: '2024-03-22 12:05:10.703206' stderr: |- /home/akim/Desktop/venvs/deplo_test/lib/python3.10/site-packages/_testinfra_renamed.py:5: DeprecationWarning: testinfra package has been renamed to pytest-testinfra. Please `pip install pytest-testinfra` and `pip uninstall testinfra` and update your package requirements to avoid this message warnings.warn(( Warning: Permanently added '[ec2-34-230-24-39.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-52-23-246-132.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-34-230-24-39.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. stderr_lines: stdout: |- ============================= test session starts ============================== platform linux -- Python 3.10.12, pytest-8.1.0, pluggy-1.4.0 -- /home/akim/Desktop/venvs/deplo_test/bin/python3 cachedir: .pytest_cache rootdir: /home/akim/Desktop/wazuh-qa/deployability/modules plugins: testinfra-6.0.0, testinfra-10.1.0 collecting ... collected 1 item modules/testing/tests/test_manager/test_restart.py::test_restart systemctl restart wazuh-manager systemctl status wazuh-manager systemctl status wazuh-manager PASSED =============================== warnings summary =============================== modules/provision/models.py:65 /home/akim/Desktop/wazuh-qa/deployability/modules/provision/models.py:65: 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', pre=True) modules/provision/models.py:73 /home/akim/Desktop/wazuh-qa/deployability/modules/provision/models.py:73: 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('uninstall', pre=True) -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html ======================== 1 passed, 2 warnings in 18.45s ======================== stdout_lines: PLAY RECAP ********************************************************************* localhost : ok=2 changed=1 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 [2024-03-22 12:05:30] [DEBUG] ANSIBLE: Playbook [{'hosts': 'localhost', 'become': True, 'become_user': 'akim', 'tasks': [{'name': 'Test restart for manager', 'command': "python3 -m pytest modules/testing/tests/test_manager/test_restart.py -v --wazuh_version=4.7.3 --wazuh_revision=40714 --component=manager --dependencies='{wazuh-1: /tmp/dtt1-poc/manager-linux-oracle-9-amd64/inventory.yml}' --targets='{wazuh-1: /tmp/dtt1-poc/manager-linux-centos-8-amd64/inventory.yml, wazuh-2: /tmp/dtt1-poc/manager-linux-amazon-2-amd64/inventory.yml}' -s", 'args': {'chdir': '/home/akim/Desktop/wazuh-qa/deployability'}}]}] finished with status {'skipped': {}, 'ok': {'localhost': 2}, 'dark': {}, 'failures': {}, 'ignored': {}, 'rescued': {}, 'processed': {'localhost': 1}, 'changed': {'localhost': 1}} [2024-03-22 12:05:30] [DEBUG] ANSIBLE: Rendering template /home/akim/Desktop/wazuh-qa/deployability/modules/testing/playbooks/test.yml [2024-03-22 12:05:30] [DEBUG] ANSIBLE: Using inventory: {'all': {'hosts': {'ec2-52-23-246-132.compute-1.amazonaws.com': {'ansible_port': 2200, 'ansible_user': 'centos', 'ansible_ssh_private_key_file': '/home/akim/Desktop/personal/Ephemeral'}}}} [2024-03-22 12:05:30] [DEBUG] ANSIBLE: Running playbook: [{'hosts': 'localhost', 'become': True, 'become_user': 'akim', 'tasks': [{'name': 'Test uninstall for manager', 'command': "python3 -m pytest modules/testing/tests/test_manager/test_uninstall.py -v --wazuh_version=4.7.3 --wazuh_revision=40714 --component=manager --dependencies='{wazuh-1: /tmp/dtt1-poc/manager-linux-oracle-9-amd64/inventory.yml}' --targets='{wazuh-1: /tmp/dtt1-poc/manager-linux-centos-8-amd64/inventory.yml, wazuh-2: /tmp/dtt1-poc/manager-linux-amazon-2-amd64/inventory.yml}' -s", 'args': {'chdir': '/home/akim/Desktop/wazuh-qa/deployability'}}]}] No config file found; using defaults PLAY [localhost] *************************************************************** TASK [Gathering Facts] ********************************************************* ok: [localhost] TASK [Test uninstall for manager] ********************************************** changed: [localhost] => changed=true cmd: - python3 - -m - pytest - modules/testing/tests/test_manager/test_uninstall.py - -v - --wazuh_version=4.7.3 - --wazuh_revision=40714 - --component=manager - '--dependencies={wazuh-1: /tmp/dtt1-poc/manager-linux-oracle-9-amd64/inventory.yml}' - '--targets={wazuh-1: /tmp/dtt1-poc/manager-linux-centos-8-amd64/inventory.yml, wazuh-2: /tmp/dtt1-poc/manager-linux-amazon-2-amd64/inventory.yml}' - -s delta: '0:01:51.105087' end: '2024-03-22 12:07:27.527555' msg: '' rc: 0 start: '2024-03-22 12:05:36.422468' stderr: |- /home/akim/Desktop/venvs/deplo_test/lib/python3.10/site-packages/_testinfra_renamed.py:5: DeprecationWarning: testinfra package has been renamed to pytest-testinfra. Please `pip install pytest-testinfra` and `pip uninstall testinfra` and update your package requirements to avoid this message warnings.warn(( Warning: Permanently added '[ec2-52-23-246-132.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-34-230-24-39.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-52-23-246-132.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-52-23-246-132.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-52-23-246-132.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-52-23-246-132.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-52-23-246-132.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-52-23-246-132.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-52-23-246-132.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-52-23-246-132.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Removed /etc/systemd/system/multi-user.target.wants/wazuh-manager.service. Warning: Permanently added '[ec2-52-23-246-132.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-52-23-246-132.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-52-23-246-132.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-52-23-246-132.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-52-23-246-132.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-34-230-24-39.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-34-230-24-39.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-34-230-24-39.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-34-230-24-39.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-34-230-24-39.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-34-230-24-39.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-34-230-24-39.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-34-230-24-39.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Failed to execute operation: No such file or directory Warning: Permanently added '[ec2-34-230-24-39.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-34-230-24-39.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-34-230-24-39.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-34-230-24-39.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-34-230-24-39.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-52-23-246-132.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. Warning: Permanently added '[ec2-34-230-24-39.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts. stderr_lines: stdout: |- ============================= test session starts ============================== platform linux -- Python 3.10.12, pytest-8.1.0, pluggy-1.4.0 -- /home/akim/Desktop/venvs/deplo_test/bin/python3 cachedir: .pytest_cache rootdir: /home/akim/Desktop/wazuh-qa/deployability/modules plugins: testinfra-6.0.0, testinfra-10.1.0 collecting ... collected 2 items modules/testing/tests/test_manager/test_uninstall.py::test_uninstall systemctl status wazuh-manager systemctl status wazuh-manager uname sudo find /boot -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg sudo find /usr/bin -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg sudo find /root -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg sudo find /usr/sbin -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg sudo find /boot -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg sudo find /usr/bin -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg sudo find /root -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg sudo find /usr/sbin -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg /root added [] modified [] removed [] /usr/bin added [] modified [] removed [] /usr/sbin added [] modified [] removed [] /boot added [] modified [] removed [] uname sudo find /boot -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg sudo find /usr/bin -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg sudo find /root -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg sudo find /usr/sbin -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg sudo find /boot -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg sudo find /usr/bin -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg sudo find /root -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg sudo find /usr/sbin -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg /root added [] modified [] removed [] /usr/bin added [] modified [] removed [] /usr/sbin added [] modified [] removed [] /boot added [] modified [] removed [] PASSED modules/testing/tests/test_manager/test_uninstall.py::test_manager_uninstalled_directory test -d /var/ossec && echo "true" || echo "false" test -d /var/ossec && echo "true" || echo "false" PASSED =============================== warnings summary =============================== modules/provision/models.py:65 /home/akim/Desktop/wazuh-qa/deployability/modules/provision/models.py:65: 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', pre=True) modules/provision/models.py:73 /home/akim/Desktop/wazuh-qa/deployability/modules/provision/models.py:73: 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('uninstall', pre=True) -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html ================== 2 passed, 2 warnings in 110.47s (0:01:50) =================== stdout_lines: PLAY RECAP ********************************************************************* localhost : ok=2 changed=1 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 [2024-03-22 12:07:27] [DEBUG] ANSIBLE: Playbook [{'hosts': 'localhost', 'become': True, 'become_user': 'akim', 'tasks': [{'name': 'Test uninstall for manager', 'command': "python3 -m pytest modules/testing/tests/test_manager/test_uninstall.py -v --wazuh_version=4.7.3 --wazuh_revision=40714 --component=manager --dependencies='{wazuh-1: /tmp/dtt1-poc/manager-linux-oracle-9-amd64/inventory.yml}' --targets='{wazuh-1: /tmp/dtt1-poc/manager-linux-centos-8-amd64/inventory.yml, wazuh-2: /tmp/dtt1-poc/manager-linux-amazon-2-amd64/inventory.yml}' -s", 'args': {'chdir': '/home/akim/Desktop/wazuh-qa/deployability'}}]}] finished with status {'skipped': {}, 'ok': {'localhost': 2}, 'dark': {}, 'failures': {}, 'ignored': {}, 'rescued': {}, 'processed': {'localhost': 1}, 'changed': {'localhost': 1}} [2024-03-22 12:07:27] [DEBUG] ANSIBLE: Using inventory: {'all': {'hosts': {'ec2-52-23-246-132.compute-1.amazonaws.com': {'ansible_port': 2200, 'ansible_user': 'centos', 'ansible_ssh_private_key_file': '/home/akim/Desktop/personal/Ephemeral'}}}} [2024-03-22 12:07:27] [DEBUG] ANSIBLE: Running playbook: /home/akim/Desktop/wazuh-qa/deployability/modules/testing/playbooks/cleanup.yml No config file found; using defaults PLAY [all] ********************************************************************* TASK [Gathering Facts] ********************************************************* ok: [ec2-52-23-246-132.compute-1.amazonaws.com] TASK [Clean test directory] **************************************************** ok: [ec2-52-23-246-132.compute-1.amazonaws.com] => changed=false path: /tmp/tests state: absent PLAY RECAP ********************************************************************* ec2-52-23-246-132.compute-1.amazonaws.com : ok=2 changed=0 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 [2024-03-22 12:07:41] [DEBUG] ANSIBLE: Playbook /home/akim/Desktop/wazuh-qa/deployability/modules/testing/playbooks/cleanup.yml finished with status {'skipped': {}, 'ok': {'ec2-52-23-246-132.compute-1.amazonaws.com': 2}, 'dark': {}, 'failures': {}, 'ignored': {}, 'rescued': {}, 'processed': {'ec2-52-23-246-132.compute-1.amazonaws.com': 1}, 'changed': {}} [2024-03-22 12:07:41] [DEBUG] ANSIBLE: Using inventory: {'all': {'hosts': {'ec2-52-23-246-132.compute-1.amazonaws.com': {'ansible_port': 2200, 'ansible_user': 'centos', 'ansible_ssh_private_key_file': '/home/akim/Desktop/personal/Ephemeral'}}}} [2024-03-22 12:07:41] [DEBUG] ANSIBLE: Running playbook: /home/akim/Desktop/wazuh-qa/deployability/modules/testing/playbooks/cleanup.yml No config file found; using defaults PLAY [all] ********************************************************************* TASK [Gathering Facts] ********************************************************* ok: [ec2-52-23-246-132.compute-1.amazonaws.com] TASK [Clean test directory] **************************************************** ok: [ec2-52-23-246-132.compute-1.amazonaws.com] => changed=false path: /tmp/tests state: absent PLAY RECAP ********************************************************************* ec2-52-23-246-132.compute-1.amazonaws.com : ok=2 changed=0 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 [2024-03-22 12:07:53] [DEBUG] ANSIBLE: Playbook /home/akim/Desktop/wazuh-qa/deployability/modules/testing/playbooks/cleanup.yml finished with status {'skipped': {}, 'ok': {'ec2-52-23-246-132.compute-1.amazonaws.com': 2}, 'dark': {}, 'failures': {}, 'ignored': {}, 'rescued': {}, 'processed': {'ec2-52-23-246-132.compute-1.amazonaws.com': 1}, 'changed': {}} ```
RedHat-7 :red_circle: ```bash [2024-03-21 15:41:06] [ERROR] [282453] [ThreadPoolExecutor-0_0] [workflow_engine]: [allocate-manager-linux-redhat-7-amd64] Task failed with error: Error executing process task Traceback (most recent call last): File "/home/akim/Desktop/test/wazuh-qa/deployability/modules/allocation/main.py", line 34, in main() File "/home/akim/Desktop/test/wazuh-qa/deployability/modules/allocation/main.py", line 30, in main Allocator.run(InputPayload(**vars(parse_arguments()))) File "/home/akim/Desktop/test/wazuh-qa/deployability/modules/allocation/allocation.py", line 31, in run return cls.__create(payload) File "/home/akim/Desktop/test/wazuh-qa/deployability/modules/allocation/allocation.py", line 50, in __create instance = provider.create_instance( File "/home/akim/Desktop/test/wazuh-qa/deployability/modules/allocation/generic/provider.py", line 66, in create_instance return cls._create_instance(base_dir, params, config, ssh_key) File "/home/akim/Desktop/test/wazuh-qa/deployability/modules/allocation/aws/provider.py", line 115, in _create_instance instance_id = cls.__create_ec2_instance(config) File "/home/akim/Desktop/test/wazuh-qa/deployability/modules/allocation/aws/provider.py", line 215, in __create_ec2_instance instance = client.create_instances(**params)[0] File "/home/akim/Desktop/venvs/deplo_test/lib/python3.10/site-packages/boto3/resources/factory.py", line 580, in do_action response = action(self, *args, **kwargs) File "/home/akim/Desktop/venvs/deplo_test/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/deplo_test/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/deplo_test/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 (OptInRequired) when calling the RunInstances operation: In order to use this AWS Marketplace product you need to accept terms and subscribe. To do so please visit https://aws.amazon.com/marketplace/pp?sku=3jdidj7kpc10apzarpkkyoe3t ```
Opensuse-15 :red_circle: ```bash [2024-03-21 13:48:22] [INFO] [257840] [ThreadPoolExecutor-0_0] [workflow_engine]: [allocate-manager-linux-opensuse-15-amd64] Starting task. [2024-03-21 13:48:24] [ERROR] [257840] [ThreadPoolExecutor-0_0] [workflow_engine]: [allocate-manager-linux-opensuse-15-amd64] Task failed with error: Error executing process task Traceback (most recent call last): File "/home/akim/Desktop/test/wazuh-qa/deployability/modules/allocation/main.py", line 34, in main() File "/home/akim/Desktop/test/wazuh-qa/deployability/modules/allocation/main.py", line 30, in main Allocator.run(InputPayload(**vars(parse_arguments()))) File "/home/akim/Desktop/test/wazuh-qa/deployability/modules/allocation/allocation.py", line 31, in run return cls.__create(payload) File "/home/akim/Desktop/test/wazuh-qa/deployability/modules/allocation/allocation.py", line 50, in __create instance = provider.create_instance( File "/home/akim/Desktop/test/wazuh-qa/deployability/modules/allocation/generic/provider.py", line 66, in create_instance return cls._create_instance(base_dir, params, config, ssh_key) File "/home/akim/Desktop/test/wazuh-qa/deployability/modules/allocation/aws/provider.py", line 115, in _create_instance instance_id = cls.__create_ec2_instance(config) File "/home/akim/Desktop/test/wazuh-qa/deployability/modules/allocation/aws/provider.py", line 215, in __create_ec2_instance instance = client.create_instances(**params)[0] File "/home/akim/Desktop/venvs/deplo_test/lib/python3.10/site-packages/boto3/resources/factory.py", line 580, in do_action response = action(self, *args, **kwargs) File "/home/akim/Desktop/venvs/deplo_test/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/deplo_test/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/deplo_test/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 (OptInRequired) when calling the RunInstances operation: In order to use this AWS Marketplace product you need to accept terms and subscribe. To do so please visit https://aws.amazon.com/marketplace/pp?sku=147aomaaws9zx4er41jp3mozy ```
Amazon-2023 :red_circle: ```bash Failure installing manager [root@ip-172-31-40-175 ec2-user]# bash wazuh-install.sh --generate-config-files --ignore-check 21/03/2024 12:55:18 INFO: Starting Wazuh installation assistant. Wazuh version: 4.7.3 21/03/2024 12:55:18 INFO: Verbose logging redirected to /var/log/wazuh-install.log 21/03/2024 12:55:21 INFO: --- Dependencies --- 21/03/2024 12:55:21 INFO: Installing curl. 21/03/2024 12:55:22 ERROR: Cannot install dependency: curl. ```
Oracle-9 :red_circle: ```bash def test_manager_version(wazuh_params): for manager in wazuh_params['managers'].values(): manager_status = GeneralComponentActions.get_component_version(manager) assert wazuh_params['wazuh_version'] in manager_status > wazuh_api = WazuhAPI(manager) modules/testing/tests/test_manager/test_install.py:82: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ modules/testing/tests/helpers/executor.py:72: in __init__ self._authenticate() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _authenticate(self): with open(self.inventory_path, 'r') as yaml_file: inventory_data = yaml.safe_load(yaml_file) user = 'wazuh' #----Patch issue https://github.com/wazuh/wazuh-packages/issues/2883------------- file_path = Executor.execute_command(self.inventory_path, 'pwd').replace("\n","") + '/wazuh-install-files/wazuh-passwords.txt ' if not 'true' in Executor.execute_command(self.inventory_path, f'test -f {file_path} && echo "true" || echo "false"'): Executor.execute_command(self.inventory_path, 'tar -xvf wazuh-install-files.tar') password = Executor.execute_command(self.inventory_path, "grep api_password wazuh-install-files/wazuh-passwords.txt | head -n 1 | awk '{print $NF}'").replace("'","").replace("\n","") #-------------------------------------------------------------------------------- login_endpoint = 'security/user/authenticate' host = inventory_data.get('ansible_host') port = '55000' login_url = f"https://{host}:{port}/{login_endpoint}" basic_auth = f"{user}:{password}".encode() login_headers = {'Content-Type': 'application/json', 'Authorization': f'Basic {b64encode(basic_auth).decode()}'} > token = json.loads(requests.post(login_url, headers=login_headers, verify=False).content.decode())['data']['token'] E KeyError: 'data' modules/testing/tests/helpers/executor.py:95: KeyError ``` ```bash [root@ip-172-31-33-225 ec2-user]# tar -xvf wazuh-install-files.tar bash: tar: command not found ```
Suse-15 :red_circle: ```bash ip-172-31-36-66:/home/ec2-user # bash wazuh-install.sh --generate-config-files 22/03/2024 11:25:25 INFO: Starting Wazuh installation assistant. Wazuh version: 4.7.3 22/03/2024 11:25:25 INFO: Verbose logging redirected to /var/log/wazuh-install.log 22/03/2024 11:25:25 ERROR: Couldn't find type of system ```
pro-akim commented 1 month ago

Update

Testing in AWS

Results

OS Test result Additional data
redhat9 :green_circle:
redhat7 :red_circle: AMI failure
redhat8 :green_circle:
centos7 :green_circle:
centos8 :green_circle:
debian10 :green_circle: symcryptrun was added in bin filters
debian11 :green_circle:
debian12 :green_circle:
ubuntu20.04 :green_circle:
ubuntu22.04 :green_circle:
oracle9 :red_circle: No tar (It does not uncompress tar file to get API password)
amazon2 :green_circle:
amazon2023 :red_circle: No curl
opensuse :red_circle: AMI failure
suse15 :red_circle: Assitant does not work (Could not find the system)
pro-akim commented 1 month ago

Update

Retesting in Vagrant after changes

OS Test result Additional data
redhat7 :green_circle:
redhat9 :green_circle:
redhat8 :green_circle: Added in root lesshst filter
centos7 :green_circle:
centos8 :green_circle:
debian10 :green_circle:
debian11 :green_circle:
debian12 :green_circle:
ubuntu20.04 :green_circle:
ubuntu22.04 :green_circle:
oracle9 :green_circle: Added in root lesshst filter
amazon2 :green_circle:
amazon2023 :red_circle: No Vagrant Image
opensuse :red_circle: Assitant does not work (Could not find the system)
suse15 :red_circle: No Vagrant Image
pro-akim commented 1 month ago

Update

Testing in Vagrant

RedHat-7 : RedHat-8 : RedHat-9 :green_circle: ```bash (deplo_test) akim@akim-PC:~/Desktop/wazuh-qa/deployability$ python3 modules/testing/main.py --wazuh-revision '40714' --wazuh-version '4.7.3' --component 'manager' --tests 'install,stop,restart,uninstall' --targets '{"wazuh-1":"/tmp/dtt1-poc/manager-linux-redhat-7-amd64/inventory.yml"}' --targets '{"wazuh-2":"/tmp/dtt1-poc/manager-linux-redhat-8-amd64/inventory.yml"}' --targets '{"wazuh-3":"/tmp/dtt1-poc/manager-linux-redhat-9-amd64/inventory.yml" }' --dependencies '{"wazuh-1":"/tmp/dtt1-poc/manager-linux-redhat-8-amd64/inventory.yml"}' [2024-03-22 13:39:14] [INFO] TESTER: Running tests for 192.168.57.3 [2024-03-22 13:39:14] [INFO] TESTER: Running tests for 192.168.57.4 [2024-03-22 13:39:14] [INFO] TESTER: Running tests for 192.168.57.5 [2024-03-22 13:39:14] [INFO] TESTER: Dependencies 192.168.57.4 [2024-03-22 13:39:14] [DEBUG] TESTER: Using extra vars: {'component': 'manager', 'wazuh_version': '4.7.3', 'wazuh_revision': '40714', 'wazuh_branch': None, 'working_dir': '/tmp/tests', 'hosts_ip': ['192.168.57.3', '192.168.57.4', '192.168.57.5'], 'targets': '{wazuh-1: /tmp/dtt1-poc/manager-linux-redhat-7-amd64/inventory.yml, wazuh-2: /tmp/dtt1-poc/manager-linux-redhat-8-amd64/inventory.yml, wazuh-3: /tmp/dtt1-poc/manager-linux-redhat-9-amd64/inventory.yml}', 'dependencies': '{wazuh-1: /tmp/dtt1-poc/manager-linux-redhat-8-amd64/inventory.yml}', 'local_host_path': '/home/akim/Desktop/wazuh-qa/deployability', 'current_user': 'akim'} [2024-03-22 13:39:14] [DEBUG] ANSIBLE: Rendering template /home/akim/Desktop/wazuh-qa/deployability/modules/testing/playbooks/setup.yml [2024-03-22 13:39:14] [DEBUG] ANSIBLE: Using inventory: {'all': {'hosts': {'192.168.57.3': {'ansible_port': 22, 'ansible_user': 'vagrant', 'ansible_ssh_private_key_file': '/tmp/wazuh-qa/VAGRANT-4ADF6AB9-5CEB-4EC9-A1D1-42BC0AA29F21/instance_key'}}}} [2024-03-22 13:39:14] [DEBUG] ANSIBLE: Running playbook: [{'hosts': 'localhost', 'become': True, 'become_user': 'akim', 'tasks': [{'name': 'Cleaning old key ssh-keygen registries', 'ansible.builtin.command': {'cmd': "ssh-keygen -f /home/akim/.ssh/known_hosts -R ''"}, 'loop': ['192.168.57.3', '192.168.57.4', '192.168.57.5']}]}] No config file found; using defaults PLAY [localhost] *************************************************************** TASK [Gathering Facts] ********************************************************* ok: [localhost] TASK [Cleaning old key ssh-keygen registries] ********************************** changed: [localhost] => (item=192.168.57.3) => changed=true ansible_loop_var: item cmd: - ssh-keygen - -f - /home/akim/.ssh/known_hosts - -R - '' delta: '0:00:00.009755' end: '2024-03-22 13:39:19.533038' item: 192.168.57.3 msg: '' rc: 0 start: '2024-03-22 13:39:19.523283' stderr: Host not found in /home/akim/.ssh/known_hosts stderr_lines: stdout: '' stdout_lines: changed: [localhost] => (item=192.168.57.4) => changed=true ansible_loop_var: item cmd: - ssh-keygen - -f - /home/akim/.ssh/known_hosts - -R - '' delta: '0:00:00.009075' end: '2024-03-22 13:39:19.703998' item: 192.168.57.4 msg: '' rc: 0 start: '2024-03-22 13:39:19.694923' stderr: Host not found in /home/akim/.ssh/known_hosts stderr_lines: stdout: '' stdout_lines: changed: [localhost] => (item=192.168.57.5) => changed=true ansible_loop_var: item cmd: - ssh-keygen - -f - /home/akim/.ssh/known_hosts - -R - '' delta: '0:00:00.009142' end: '2024-03-22 13:39:19.877358' item: 192.168.57.5 msg: '' rc: 0 start: '2024-03-22 13:39:19.868216' stderr: Host not found in /home/akim/.ssh/known_hosts stderr_lines: stdout: '' stdout_lines: PLAY RECAP ********************************************************************* localhost : ok=2 changed=1 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 [2024-03-22 13:39:20] [DEBUG] ANSIBLE: Playbook [{'hosts': 'localhost', 'become': True, 'become_user': 'akim', 'tasks': [{'name': 'Cleaning old key ssh-keygen registries', 'ansible.builtin.command': {'cmd': "ssh-keygen -f /home/akim/.ssh/known_hosts -R ''"}, 'loop': ['192.168.57.3', '192.168.57.4', '192.168.57.5']}]}] finished with status {'skipped': {}, 'ok': {'localhost': 2}, 'dark': {}, 'failures': {}, 'ignored': {}, 'rescued': {}, 'processed': {'localhost': 1}, 'changed': {'localhost': 1}} [2024-03-22 13:39:20] [DEBUG] ANSIBLE: Rendering template /home/akim/Desktop/wazuh-qa/deployability/modules/testing/playbooks/test.yml [2024-03-22 13:39:20] [DEBUG] ANSIBLE: Using inventory: {'all': {'hosts': {'192.168.57.3': {'ansible_port': 22, 'ansible_user': 'vagrant', 'ansible_ssh_private_key_file': '/tmp/wazuh-qa/VAGRANT-4ADF6AB9-5CEB-4EC9-A1D1-42BC0AA29F21/instance_key'}}}} [2024-03-22 13:39:20] [DEBUG] ANSIBLE: Running playbook: [{'hosts': 'localhost', 'become': True, 'become_user': 'akim', 'tasks': [{'name': 'Test install for manager', 'command': "python3 -m pytest modules/testing/tests/test_manager/test_install.py -v --wazuh_version=4.7.3 --wazuh_revision=40714 --component=manager --dependencies='{wazuh-1: /tmp/dtt1-poc/manager-linux-redhat-8-amd64/inventory.yml}' --targets='{wazuh-1: /tmp/dtt1-poc/manager-linux-redhat-7-amd64/inventory.yml, wazuh-2: /tmp/dtt1-poc/manager-linux-redhat-8-amd64/inventory.yml, wazuh-3: /tmp/dtt1-poc/manager-linux-redhat-9-amd64/inventory.yml}' -s", 'args': {'chdir': '/home/akim/Desktop/wazuh-qa/deployability'}}]}] No config file found; using defaults PLAY [localhost] *************************************************************** TASK [Gathering Facts] ********************************************************* ok: [localhost] TASK [Test install for manager] ************************************************ changed: [localhost] => changed=true cmd: - python3 - -m - pytest - modules/testing/tests/test_manager/test_install.py - -v - --wazuh_version=4.7.3 - --wazuh_revision=40714 - --component=manager - '--dependencies={wazuh-1: /tmp/dtt1-poc/manager-linux-redhat-8-amd64/inventory.yml}' - '--targets={wazuh-1: /tmp/dtt1-poc/manager-linux-redhat-7-amd64/inventory.yml, wazuh-2: /tmp/dtt1-poc/manager-linux-redhat-8-amd64/inventory.yml, wazuh-3: /tmp/dtt1-poc/manager-linux-redhat-9-amd64/inventory.yml}' - -s delta: '0:10:26.579126' end: '2024-03-22 13:49:49.484851' msg: '' rc: 0 start: '2024-03-22 13:39:22.905725' stderr: |- /home/akim/Desktop/venvs/deplo_test/lib/python3.10/site-packages/_testinfra_renamed.py:5: DeprecationWarning: testinfra package has been renamed to pytest-testinfra. Please `pip install pytest-testinfra` and `pip uninstall testinfra` and update your package requirements to avoid this message warnings.warn(( Warning: Permanently added '192.168.57.3' (RSA) to the list of known hosts. Warning: Permanently added '192.168.57.3' (RSA) to the list of known hosts. Removed symlink /etc/systemd/system/multi-user.target.wants/firewalld.service. Removed symlink /etc/systemd/system/dbus-org.fedoraproject.FirewallD1.service. Warning: Permanently added '192.168.57.4' (RSA) to the list of known hosts. Warning: Permanently added '192.168.57.4' (RSA) to the list of known hosts. Removed /etc/systemd/system/multi-user.target.wants/firewalld.service. Removed /etc/systemd/system/dbus-org.fedoraproject.FirewallD1.service. Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts. Removed "/etc/systemd/system/multi-user.target.wants/firewalld.service". Removed "/etc/systemd/system/dbus-org.fedoraproject.FirewallD1.service". Warning: Permanently added '192.168.57.3' (RSA) to the list of known hosts. Warning: Permanently added '192.168.57.3' (RSA) to the list of known hosts. Warning: Permanently added '192.168.57.3' (RSA) to the list of known hosts. Warning: Permanently added '192.168.57.3' (RSA) to the list of known hosts. Warning: Permanently added '192.168.57.3' (RSA) to the list of known hosts. Warning: Permanently added '192.168.57.3' (RSA) to the list of known hosts. Warning: Permanently added '192.168.57.3' (RSA) to the list of known hosts. Warning: Permanently added '192.168.57.3' (RSA) to the list of known hosts. Warning: Permanently added '192.168.57.3' (RSA) to the list of known hosts. Warning: Permanently added '192.168.57.3' (RSA) to the list of known hosts. Warning: Permanently added '192.168.57.3' (RSA) to the list of known hosts. Warning: Permanently added '192.168.57.3' (RSA) to the list of known hosts. Warning: Permanently added '192.168.57.3' (RSA) to the list of known hosts. Warning: Permanently added '192.168.57.3' (RSA) to the list of known hosts. Warning: Permanently added '192.168.57.3' (RSA) to the list of known hosts. Warning: Permanently added '192.168.57.3' (RSA) to the list of known hosts. Warning: Permanently added '192.168.57.4' (RSA) to the list of known hosts. Warning: Permanently added '192.168.57.3' (RSA) to the list of known hosts. Warning: Permanently added '192.168.57.3' (RSA) to the list of known hosts. Warning: Permanently added '192.168.57.4' (RSA) to the list of known hosts. Warning: Permanently added '192.168.57.3' (RSA) to the list of known hosts. Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.3' (RSA) to the list of known hosts. Warning: Permanently added '192.168.57.3' (RSA) to the list of known hosts. Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.3' (RSA) to the list of known hosts. Warning: Permanently added '192.168.57.3' (RSA) to the list of known hosts. Warning: Permanently added '192.168.57.3' (RSA) to the list of known hosts. Warning: Permanently added '192.168.57.3' (RSA) to the list of known hosts. Warning: Permanently added '192.168.57.3' (RSA) to the list of known hosts. Warning: Permanently added '192.168.57.3' (RSA) to the list of known hosts. Warning: Permanently added '192.168.57.3' (RSA) to the list of known hosts. Warning: Permanently added '192.168.57.3' (RSA) to the list of known hosts. Warning: Permanently added '192.168.57.3' (RSA) to the list of known hosts. Warning: Permanently added '192.168.57.3' (RSA) to the list of known hosts. Warning: Permanently added '192.168.57.3' (RSA) to the list of known hosts. Warning: Permanently added '192.168.57.4' (RSA) to the list of known hosts. Warning: Permanently added '192.168.57.4' (RSA) to the list of known hosts. Warning: Permanently added '192.168.57.4' (RSA) to the list of known hosts. Warning: Permanently added '192.168.57.4' (RSA) to the list of known hosts. Warning: Permanently added '192.168.57.4' (RSA) to the list of known hosts. Warning: Permanently added '192.168.57.4' (RSA) to the list of known hosts. Warning: Permanently added '192.168.57.4' (RSA) to the list of known hosts. Warning: Permanently added '192.168.57.4' (RSA) to the list of known hosts. Warning: Permanently added '192.168.57.4' (RSA) to the list of known hosts. Warning: Permanently added '192.168.57.4' (RSA) to the list of known hosts. Warning: Permanently added '192.168.57.4' (RSA) to the list of known hosts. Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.3' (RSA) to the list of known hosts. Warning: Permanently added '192.168.57.3' (RSA) to the list of known hosts. Warning: Permanently added '192.168.57.3' (RSA) to the list of known hosts. Warning: Permanently added '192.168.57.3' (RSA) to the list of known hosts. Warning: Permanently added '192.168.57.3' (RSA) to the list of known hosts. Warning: Permanently added '192.168.57.3' (RSA) to the list of known hosts. Warning: Permanently added '192.168.57.4' (RSA) to the list of known hosts. Warning: Permanently added '192.168.57.4' (RSA) to the list of known hosts. Warning: Permanently added '192.168.57.4' (RSA) to the list of known hosts. Warning: Permanently added '192.168.57.4' (RSA) to the list of known hosts. Warning: Permanently added '192.168.57.4' (RSA) to the list of known hosts. Warning: Permanently added '192.168.57.4' (RSA) to the list of known hosts. Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.3' (RSA) to the list of known hosts. Warning: Permanently added '192.168.57.3' (RSA) to the list of known hosts. Warning: Permanently added '192.168.57.4' (RSA) to the list of known hosts. Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.3' (RSA) to the list of known hosts. Warning: Permanently added '192.168.57.3' (RSA) to the list of known hosts. Warning: Permanently added '192.168.57.3' (RSA) to the list of known hosts. Warning: Permanently added '192.168.57.3' (RSA) to the list of known hosts. Warning: Permanently added '192.168.57.3' (RSA) to the list of known hosts. Warning: Permanently added '192.168.57.4' (RSA) to the list of known hosts. Warning: Permanently added '192.168.57.4' (RSA) to the list of known hosts. Warning: Permanently added '192.168.57.4' (RSA) to the list of known hosts. Warning: Permanently added '192.168.57.4' (RSA) to the list of known hosts. Warning: Permanently added '192.168.57.4' (RSA) to the list of known hosts. Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.3' (RSA) to the list of known hosts. Warning: Permanently added '192.168.57.3' (RSA) to the list of known hosts. Warning: Permanently added '192.168.57.3' (RSA) to the list of known hosts. Warning: Permanently added '192.168.57.3' (RSA) to the list of known hosts. Warning: Permanently added '192.168.57.4' (RSA) to the list of known hosts. Warning: Permanently added '192.168.57.4' (RSA) to the list of known hosts. Warning: Permanently added '192.168.57.4' (RSA) to the list of known hosts. Warning: Permanently added '192.168.57.4' (RSA) to the list of known hosts. Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.3' (RSA) to the list of known hosts. Warning: Permanently added '192.168.57.4' (RSA) to the list of known hosts. Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts. stderr_lines: stdout: |- ============================= test session starts ============================== platform linux -- Python 3.10.12, pytest-8.1.0, pluggy-1.4.0 -- /home/akim/Desktop/venvs/deplo_test/bin/python3 cachedir: .pytest_cache rootdir: /home/akim/Desktop/wazuh-qa/deployability/modules plugins: testinfra-6.0.0, testinfra-10.1.0 collecting ... collected 5 items modules/testing/tests/test_manager/test_install.py::test_installation pwd pwd pwd chmod +rw wazuh-install-files.tar chmod 600 wazuh-install-files.tar chmod 600 wazuh-install-files.tar pwd pwd chmod +rw wazuh-install-files.tar chmod 600 wazuh-install-files.tar chmod 600 wazuh-install-files.tar uname sudo find /boot -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg sudo find /usr/bin -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg sudo find /root -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg sudo find /usr/sbin -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg sudo find /boot -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg sudo find /usr/bin -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg sudo find /root -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg sudo find /usr/sbin -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg /root added [] modified [] removed [] /usr/bin added [] modified [] removed [] /usr/sbin added [] modified [] removed [] /boot added [] modified [] removed [] uname sudo find /boot -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg sudo find /usr/bin -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg sudo find /root -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg sudo find /usr/sbin -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg sudo find /boot -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg sudo find /usr/bin -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg sudo find /root -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg sudo find /usr/sbin -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg /root added [] modified [] removed [] /usr/bin added [] modified [] removed [] /usr/sbin added [] modified [] removed [] /boot added [] modified [] removed [] uname sudo find /boot -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg sudo find /usr/bin -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg sudo find /root -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg sudo find /usr/sbin -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg sudo find /boot -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg sudo find /usr/bin -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg sudo find /root -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg sudo find /usr/sbin -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg /root added [] modified [] removed [] /usr/bin added [] modified [] removed [] /usr/sbin added [] modified [] removed [] /boot added [] modified [] removed [] /var/ossec/bin/cluster_control -l PASSED modules/testing/tests/test_manager/test_install.py::test_manager_status systemctl status wazuh-manager systemctl status wazuh-manager systemctl status wazuh-manager PASSED modules/testing/tests/test_manager/test_install.py::test_manager_version /var/ossec/bin/wazuh-control info -v pwd test -f /home/vagrant/wazuh-install-files/wazuh-passwords.txt && echo "true" || echo "false" tar -xvf wazuh-install-files.tar grep api_password wazuh-install-files/wazuh-passwords.txt | head -n 1 | awk '{print $NF}' /var/ossec/bin/wazuh-control info -v pwd test -f /home/vagrant/wazuh-install-files/wazuh-passwords.txt && echo "true" || echo "false" tar -xvf wazuh-install-files.tar grep api_password wazuh-install-files/wazuh-passwords.txt | head -n 1 | awk '{print $NF}' /var/ossec/bin/wazuh-control info -v pwd test -f /home/vagrant/wazuh-install-files/wazuh-passwords.txt && echo "true" || echo "false" tar -xvf wazuh-install-files.tar grep api_password wazuh-install-files/wazuh-passwords.txt | head -n 1 | awk '{print $NF}' PASSED modules/testing/tests/test_manager/test_install.py::test_manager_revision /var/ossec/bin/wazuh-control info -r pwd test -f /home/vagrant/wazuh-install-files/wazuh-passwords.txt && echo "true" || echo "false" grep api_password wazuh-install-files/wazuh-passwords.txt | head -n 1 | awk '{print $NF}' /var/ossec/bin/wazuh-control info -r pwd test -f /home/vagrant/wazuh-install-files/wazuh-passwords.txt && echo "true" || echo "false" grep api_password wazuh-install-files/wazuh-passwords.txt | head -n 1 | awk '{print $NF}' /var/ossec/bin/wazuh-control info -r pwd test -f /home/vagrant/wazuh-install-files/wazuh-passwords.txt && echo "true" || echo "false" grep api_password wazuh-install-files/wazuh-passwords.txt | head -n 1 | awk '{print $NF}' PASSED modules/testing/tests/test_manager/test_install.py::test_manager_installed_directory test -d /var/ossec && echo "true" || echo "false" test -d /var/ossec && echo "true" || echo "false" test -d /var/ossec && echo "true" || echo "false" PASSED =============================== warnings summary =============================== modules/provision/models.py:65 /home/akim/Desktop/wazuh-qa/deployability/modules/provision/models.py:65: 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', pre=True) modules/provision/models.py:73 /home/akim/Desktop/wazuh-qa/deployability/modules/provision/models.py:73: 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('uninstall', pre=True) modules/testing/tests/helpers/agent.py:55 /home/akim/Desktop/wazuh-qa/deployability/modules/testing/tests/helpers/agent.py:55: DeprecationWarning: invalid escape sequence '\w' "-OutFile ${env.tmp}\wazuh-agent;" modules/testing/tests/helpers/agent.py:56 /home/akim/Desktop/wazuh-qa/deployability/modules/testing/tests/helpers/agent.py:56: DeprecationWarning: invalid escape sequence '\w' "msiexec.exe /i ${env.tmp}\wazuh-agent /q" modules/testing/tests/helpers/agent.py:97 modules/testing/tests/helpers/agent.py:97 /home/akim/Desktop/wazuh-qa/deployability/modules/testing/tests/helpers/agent.py:97: DeprecationWarning: invalid escape sequence '\/' f"sed -i 's/
MANAGER_IP<\/address>/
{internal_ip}<\/address>/g' {WAZUH_CONF}", modules/testing/tests/helpers/manager.py:265 modules/testing/tests/helpers/manager.py:265 /home/akim/Desktop/wazuh-qa/deployability/modules/testing/tests/helpers/manager.py:265: DeprecationWarning: invalid escape sequence '\/' f"sed -i 's/node01<\/node_name>/{node_name}<\/node_name>/' {WAZUH_CONF}", modules/testing/tests/helpers/manager.py:266 modules/testing/tests/helpers/manager.py:266 /home/akim/Desktop/wazuh-qa/deployability/modules/testing/tests/helpers/manager.py:266: DeprecationWarning: invalid escape sequence '\/' f"sed -i 's/master<\/node_type>/{node_type}<\/node_type>/' {WAZUH_CONF}", modules/testing/tests/helpers/manager.py:267 modules/testing/tests/helpers/manager.py:267 /home/akim/Desktop/wazuh-qa/deployability/modules/testing/tests/helpers/manager.py:267: DeprecationWarning: invalid escape sequence '\/' f"sed -i 's/<\/key>/{key}<\/key>/' {WAZUH_CONF}", modules/testing/tests/helpers/manager.py:268 modules/testing/tests/helpers/manager.py:268 /home/akim/Desktop/wazuh-qa/deployability/modules/testing/tests/helpers/manager.py:268: DeprecationWarning: invalid escape sequence '\/' f"sed -i 's/NODE_IP<\/node>/{HostInformation.get_internal_ip_from_aws_dns(master_dns)}<\/node>/' {WAZUH_CONF}", modules/testing/tests/helpers/manager.py:269 modules/testing/tests/helpers/manager.py:269 /home/akim/Desktop/wazuh-qa/deployability/modules/testing/tests/helpers/manager.py:269: DeprecationWarning: invalid escape sequence '\/' f"sed -i 's/yes<\/disabled>/{disabled}<\/disabled>/' {WAZUH_CONF}", -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html ================== 5 passed, 16 warnings in 625.95s (0:10:25) ================== stdout_lines: PLAY RECAP ********************************************************************* localhost : ok=2 changed=1 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 [2024-03-22 13:49:49] [DEBUG] ANSIBLE: Playbook [{'hosts': 'localhost', 'become': True, 'become_user': 'akim', 'tasks': [{'name': 'Test install for manager', 'command': "python3 -m pytest modules/testing/tests/test_manager/test_install.py -v --wazuh_version=4.7.3 --wazuh_revision=40714 --component=manager --dependencies='{wazuh-1: /tmp/dtt1-poc/manager-linux-redhat-8-amd64/inventory.yml}' --targets='{wazuh-1: /tmp/dtt1-poc/manager-linux-redhat-7-amd64/inventory.yml, wazuh-2: /tmp/dtt1-poc/manager-linux-redhat-8-amd64/inventory.yml, wazuh-3: /tmp/dtt1-poc/manager-linux-redhat-9-amd64/inventory.yml}' -s", 'args': {'chdir': '/home/akim/Desktop/wazuh-qa/deployability'}}]}] finished with status {'skipped': {}, 'ok': {'localhost': 2}, 'dark': {}, 'failures': {}, 'ignored': {}, 'rescued': {}, 'processed': {'localhost': 1}, 'changed': {'localhost': 1}} [2024-03-22 13:49:49] [DEBUG] ANSIBLE: Rendering template /home/akim/Desktop/wazuh-qa/deployability/modules/testing/playbooks/test.yml [2024-03-22 13:49:49] [DEBUG] ANSIBLE: Using inventory: {'all': {'hosts': {'192.168.57.3': {'ansible_port': 22, 'ansible_user': 'vagrant', 'ansible_ssh_private_key_file': '/tmp/wazuh-qa/VAGRANT-4ADF6AB9-5CEB-4EC9-A1D1-42BC0AA29F21/instance_key'}}}} [2024-03-22 13:49:49] [DEBUG] ANSIBLE: Running playbook: [{'hosts': 'localhost', 'become': True, 'become_user': 'akim', 'tasks': [{'name': 'Test stop for manager', 'command': "python3 -m pytest modules/testing/tests/test_manager/test_stop.py -v --wazuh_version=4.7.3 --wazuh_revision=40714 --component=manager --dependencies='{wazuh-1: /tmp/dtt1-poc/manager-linux-redhat-8-amd64/inventory.yml}' --targets='{wazuh-1: /tmp/dtt1-poc/manager-linux-redhat-7-amd64/inventory.yml, wazuh-2: /tmp/dtt1-poc/manager-linux-redhat-8-amd64/inventory.yml, wazuh-3: /tmp/dtt1-poc/manager-linux-redhat-9-amd64/inventory.yml}' -s", 'args': {'chdir': '/home/akim/Desktop/wazuh-qa/deployability'}}]}] No config file found; using defaults PLAY [localhost] *************************************************************** TASK [Gathering Facts] ********************************************************* ok: [localhost] TASK [Test stop for manager] *************************************************** changed: [localhost] => changed=true cmd: - python3 - -m - pytest - modules/testing/tests/test_manager/test_stop.py - -v - --wazuh_version=4.7.3 - --wazuh_revision=40714 - --component=manager - '--dependencies={wazuh-1: /tmp/dtt1-poc/manager-linux-redhat-8-amd64/inventory.yml}' - '--targets={wazuh-1: /tmp/dtt1-poc/manager-linux-redhat-7-amd64/inventory.yml, wazuh-2: /tmp/dtt1-poc/manager-linux-redhat-8-amd64/inventory.yml, wazuh-3: /tmp/dtt1-poc/manager-linux-redhat-9-amd64/inventory.yml}' - -s delta: '0:00:42.219297' end: '2024-03-22 13:50:37.668856' msg: '' rc: 0 start: '2024-03-22 13:49:55.449559' stderr: |- /home/akim/Desktop/venvs/deplo_test/lib/python3.10/site-packages/_testinfra_renamed.py:5: DeprecationWarning: testinfra package has been renamed to pytest-testinfra. Please `pip install pytest-testinfra` and `pip uninstall testinfra` and update your package requirements to avoid this message warnings.warn(( Warning: Permanently added '192.168.57.4' (RSA) to the list of known hosts. Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.3' (RSA) to the list of known hosts. Warning: Permanently added '192.168.57.4' (RSA) to the list of known hosts. Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.4' (RSA) to the list of known hosts. Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts. stderr_lines: stdout: |- ============================= test session starts ============================== platform linux -- Python 3.10.12, pytest-8.1.0, pluggy-1.4.0 -- /home/akim/Desktop/venvs/deplo_test/bin/python3 cachedir: .pytest_cache rootdir: /home/akim/Desktop/wazuh-qa/deployability/modules plugins: testinfra-6.0.0, testinfra-10.1.0 collecting ... collected 1 item modules/testing/tests/test_manager/test_stop.py::test_stop systemctl stop wazuh-manager systemctl stop wazuh-manager systemctl status wazuh-manager systemctl status wazuh-manager systemctl status wazuh-manager PASSEDsystemctl restart wazuh-manager systemctl restart wazuh-manager =============================== warnings summary =============================== modules/provision/models.py:65 /home/akim/Desktop/wazuh-qa/deployability/modules/provision/models.py:65: 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', pre=True) modules/provision/models.py:73 /home/akim/Desktop/wazuh-qa/deployability/modules/provision/models.py:73: 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('uninstall', pre=True) -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html ======================== 1 passed, 2 warnings in 41.63s ======================== stdout_lines: PLAY RECAP ********************************************************************* localhost : ok=2 changed=1 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 [2024-03-22 13:50:37] [DEBUG] ANSIBLE: Playbook [{'hosts': 'localhost', 'become': True, 'become_user': 'akim', 'tasks': [{'name': 'Test stop for manager', 'command': "python3 -m pytest modules/testing/tests/test_manager/test_stop.py -v --wazuh_version=4.7.3 --wazuh_revision=40714 --component=manager --dependencies='{wazuh-1: /tmp/dtt1-poc/manager-linux-redhat-8-amd64/inventory.yml}' --targets='{wazuh-1: /tmp/dtt1-poc/manager-linux-redhat-7-amd64/inventory.yml, wazuh-2: /tmp/dtt1-poc/manager-linux-redhat-8-amd64/inventory.yml, wazuh-3: /tmp/dtt1-poc/manager-linux-redhat-9-amd64/inventory.yml}' -s", 'args': {'chdir': '/home/akim/Desktop/wazuh-qa/deployability'}}]}] finished with status {'skipped': {}, 'ok': {'localhost': 2}, 'dark': {}, 'failures': {}, 'ignored': {}, 'rescued': {}, 'processed': {'localhost': 1}, 'changed': {'localhost': 1}} [2024-03-22 13:50:37] [DEBUG] ANSIBLE: Rendering template /home/akim/Desktop/wazuh-qa/deployability/modules/testing/playbooks/test.yml [2024-03-22 13:50:37] [DEBUG] ANSIBLE: Using inventory: {'all': {'hosts': {'192.168.57.3': {'ansible_port': 22, 'ansible_user': 'vagrant', 'ansible_ssh_private_key_file': '/tmp/wazuh-qa/VAGRANT-4ADF6AB9-5CEB-4EC9-A1D1-42BC0AA29F21/instance_key'}}}} [2024-03-22 13:50:37] [DEBUG] ANSIBLE: Running playbook: [{'hosts': 'localhost', 'become': True, 'become_user': 'akim', 'tasks': [{'name': 'Test restart for manager', 'command': "python3 -m pytest modules/testing/tests/test_manager/test_restart.py -v --wazuh_version=4.7.3 --wazuh_revision=40714 --component=manager --dependencies='{wazuh-1: /tmp/dtt1-poc/manager-linux-redhat-8-amd64/inventory.yml}' --targets='{wazuh-1: /tmp/dtt1-poc/manager-linux-redhat-7-amd64/inventory.yml, wazuh-2: /tmp/dtt1-poc/manager-linux-redhat-8-amd64/inventory.yml, wazuh-3: /tmp/dtt1-poc/manager-linux-redhat-9-amd64/inventory.yml}' -s", 'args': {'chdir': '/home/akim/Desktop/wazuh-qa/deployability'}}]}] No config file found; using defaults PLAY [localhost] *************************************************************** TASK [Gathering Facts] ********************************************************* ok: [localhost] TASK [Test restart for manager] ************************************************ changed: [localhost] => changed=true cmd: - python3 - -m - pytest - modules/testing/tests/test_manager/test_restart.py - -v - --wazuh_version=4.7.3 - --wazuh_revision=40714 - --component=manager - '--dependencies={wazuh-1: /tmp/dtt1-poc/manager-linux-redhat-8-amd64/inventory.yml}' - '--targets={wazuh-1: /tmp/dtt1-poc/manager-linux-redhat-7-amd64/inventory.yml, wazuh-2: /tmp/dtt1-poc/manager-linux-redhat-8-amd64/inventory.yml, wazuh-3: /tmp/dtt1-poc/manager-linux-redhat-9-amd64/inventory.yml}' - -s delta: '0:00:40.980534' end: '2024-03-22 13:51:24.902886' msg: '' rc: 0 start: '2024-03-22 13:50:43.922352' stderr: |- /home/akim/Desktop/venvs/deplo_test/lib/python3.10/site-packages/_testinfra_renamed.py:5: DeprecationWarning: testinfra package has been renamed to pytest-testinfra. Please `pip install pytest-testinfra` and `pip uninstall testinfra` and update your package requirements to avoid this message warnings.warn(( Warning: Permanently added '192.168.57.4' (RSA) to the list of known hosts. Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.3' (RSA) to the list of known hosts. Warning: Permanently added '192.168.57.4' (RSA) to the list of known hosts. Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts. stderr_lines: stdout: |- ============================= test session starts ============================== platform linux -- Python 3.10.12, pytest-8.1.0, pluggy-1.4.0 -- /home/akim/Desktop/venvs/deplo_test/bin/python3 cachedir: .pytest_cache rootdir: /home/akim/Desktop/wazuh-qa/deployability/modules plugins: testinfra-6.0.0, testinfra-10.1.0 collecting ... collected 1 item modules/testing/tests/test_manager/test_restart.py::test_restart systemctl restart wazuh-manager systemctl restart wazuh-manager systemctl status wazuh-manager systemctl status wazuh-manager systemctl status wazuh-manager PASSED =============================== warnings summary =============================== modules/provision/models.py:65 /home/akim/Desktop/wazuh-qa/deployability/modules/provision/models.py:65: 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', pre=True) modules/provision/models.py:73 /home/akim/Desktop/wazuh-qa/deployability/modules/provision/models.py:73: 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('uninstall', pre=True) -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html ======================== 1 passed, 2 warnings in 40.38s ======================== stdout_lines: PLAY RECAP ********************************************************************* localhost : ok=2 changed=1 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 [2024-03-22 13:51:25] [DEBUG] ANSIBLE: Playbook [{'hosts': 'localhost', 'become': True, 'become_user': 'akim', 'tasks': [{'name': 'Test restart for manager', 'command': "python3 -m pytest modules/testing/tests/test_manager/test_restart.py -v --wazuh_version=4.7.3 --wazuh_revision=40714 --component=manager --dependencies='{wazuh-1: /tmp/dtt1-poc/manager-linux-redhat-8-amd64/inventory.yml}' --targets='{wazuh-1: /tmp/dtt1-poc/manager-linux-redhat-7-amd64/inventory.yml, wazuh-2: /tmp/dtt1-poc/manager-linux-redhat-8-amd64/inventory.yml, wazuh-3: /tmp/dtt1-poc/manager-linux-redhat-9-amd64/inventory.yml}' -s", 'args': {'chdir': '/home/akim/Desktop/wazuh-qa/deployability'}}]}] finished with status {'skipped': {}, 'ok': {'localhost': 2}, 'dark': {}, 'failures': {}, 'ignored': {}, 'rescued': {}, 'processed': {'localhost': 1}, 'changed': {'localhost': 1}} [2024-03-22 13:51:25] [DEBUG] ANSIBLE: Rendering template /home/akim/Desktop/wazuh-qa/deployability/modules/testing/playbooks/test.yml [2024-03-22 13:51:25] [DEBUG] ANSIBLE: Using inventory: {'all': {'hosts': {'192.168.57.3': {'ansible_port': 22, 'ansible_user': 'vagrant', 'ansible_ssh_private_key_file': '/tmp/wazuh-qa/VAGRANT-4ADF6AB9-5CEB-4EC9-A1D1-42BC0AA29F21/instance_key'}}}} [2024-03-22 13:51:25] [DEBUG] ANSIBLE: Running playbook: [{'hosts': 'localhost', 'become': True, 'become_user': 'akim', 'tasks': [{'name': 'Test uninstall for manager', 'command': "python3 -m pytest modules/testing/tests/test_manager/test_uninstall.py -v --wazuh_version=4.7.3 --wazuh_revision=40714 --component=manager --dependencies='{wazuh-1: /tmp/dtt1-poc/manager-linux-redhat-8-amd64/inventory.yml}' --targets='{wazuh-1: /tmp/dtt1-poc/manager-linux-redhat-7-amd64/inventory.yml, wazuh-2: /tmp/dtt1-poc/manager-linux-redhat-8-amd64/inventory.yml, wazuh-3: /tmp/dtt1-poc/manager-linux-redhat-9-amd64/inventory.yml}' -s", 'args': {'chdir': '/home/akim/Desktop/wazuh-qa/deployability'}}]}] No config file found; using defaults PLAY [localhost] *************************************************************** TASK [Gathering Facts] ********************************************************* ok: [localhost] TASK [Test uninstall for manager] ********************************************** changed: [localhost] => changed=true cmd: - python3 - -m - pytest - modules/testing/tests/test_manager/test_uninstall.py - -v - --wazuh_version=4.7.3 - --wazuh_revision=40714 - --component=manager - '--dependencies={wazuh-1: /tmp/dtt1-poc/manager-linux-redhat-8-amd64/inventory.yml}' - '--targets={wazuh-1: /tmp/dtt1-poc/manager-linux-redhat-7-amd64/inventory.yml, wazuh-2: /tmp/dtt1-poc/manager-linux-redhat-8-amd64/inventory.yml, wazuh-3: /tmp/dtt1-poc/manager-linux-redhat-9-amd64/inventory.yml}' - -s delta: '0:01:38.298585' end: '2024-03-22 13:53:09.282135' msg: '' rc: 0 start: '2024-03-22 13:51:30.983550' stderr: |- /home/akim/Desktop/venvs/deplo_test/lib/python3.10/site-packages/_testinfra_renamed.py:5: DeprecationWarning: testinfra package has been renamed to pytest-testinfra. Please `pip install pytest-testinfra` and `pip uninstall testinfra` and update your package requirements to avoid this message warnings.warn(( Warning: Permanently added '192.168.57.3' (RSA) to the list of known hosts. Warning: Permanently added '192.168.57.4' (RSA) to the list of known hosts. Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.3' (RSA) to the list of known hosts. Warning: Permanently added '192.168.57.3' (RSA) to the list of known hosts. Warning: Permanently added '192.168.57.3' (RSA) to the list of known hosts. Warning: Permanently added '192.168.57.3' (RSA) to the list of known hosts. Warning: Permanently added '192.168.57.3' (RSA) to the list of known hosts. Warning: Permanently added '192.168.57.3' (RSA) to the list of known hosts. Failed to set locale, defaulting to C Warning: Permanently added '192.168.57.3' (RSA) to the list of known hosts. Warning: Permanently added '192.168.57.3' (RSA) to the list of known hosts. Failed to execute operation: Access denied Warning: Permanently added '192.168.57.3' (RSA) to the list of known hosts. Warning: Permanently added '192.168.57.3' (RSA) to the list of known hosts. Warning: Permanently added '192.168.57.3' (RSA) to the list of known hosts. Warning: Permanently added '192.168.57.3' (RSA) to the list of known hosts. Warning: Permanently added '192.168.57.3' (RSA) to the list of known hosts. Warning: Permanently added '192.168.57.4' (RSA) to the list of known hosts. Warning: Permanently added '192.168.57.4' (RSA) to the list of known hosts. Warning: Permanently added '192.168.57.4' (RSA) to the list of known hosts. Warning: Permanently added '192.168.57.4' (RSA) to the list of known hosts. Warning: Permanently added '192.168.57.4' (RSA) to the list of known hosts. Warning: Permanently added '192.168.57.4' (RSA) to the list of known hosts. Failed to set locale, defaulting to C.UTF-8 Warning: Permanently added '192.168.57.4' (RSA) to the list of known hosts. Warning: Permanently added '192.168.57.4' (RSA) to the list of known hosts. Removed /etc/systemd/system/multi-user.target.wants/wazuh-manager.service. Warning: Permanently added '192.168.57.4' (RSA) to the list of known hosts. Warning: Permanently added '192.168.57.4' (RSA) to the list of known hosts. Warning: Permanently added '192.168.57.4' (RSA) to the list of known hosts. Warning: Permanently added '192.168.57.4' (RSA) to the list of known hosts. Warning: Permanently added '192.168.57.4' (RSA) to the list of known hosts. Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts. Failed to disable unit: Unit file wazuh-manager.service does not exist. Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.3' (RSA) to the list of known hosts. Warning: Permanently added '192.168.57.4' (RSA) to the list of known hosts. Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts. stderr_lines: stdout: |- ============================= test session starts ============================== platform linux -- Python 3.10.12, pytest-8.1.0, pluggy-1.4.0 -- /home/akim/Desktop/venvs/deplo_test/bin/python3 cachedir: .pytest_cache rootdir: /home/akim/Desktop/wazuh-qa/deployability/modules plugins: testinfra-6.0.0, testinfra-10.1.0 collecting ... collected 2 items modules/testing/tests/test_manager/test_uninstall.py::test_uninstall systemctl status wazuh-manager systemctl status wazuh-manager systemctl status wazuh-manager uname sudo find /boot -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg sudo find /usr/bin -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg sudo find /root -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg sudo find /usr/sbin -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg sudo find /boot -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg sudo find /usr/bin -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg sudo find /root -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg sudo find /usr/sbin -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg /root added [] modified [] removed [] /usr/bin added [] modified [] removed [] /usr/sbin added [] modified [] removed [] /boot added [] modified [] removed [] uname sudo find /boot -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg sudo find /usr/bin -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg sudo find /root -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg sudo find /usr/sbin -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg sudo find /boot -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg sudo find /usr/bin -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg sudo find /root -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg sudo find /usr/sbin -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg /root added [] modified [] removed [] /usr/bin added [] modified [] removed [] /usr/sbin added [] modified [] removed [] /boot added [] modified [] removed [] uname sudo find /boot -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg sudo find /usr/bin -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg sudo find /root -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg sudo find /usr/sbin -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg sudo find /boot -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg sudo find /usr/bin -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg sudo find /root -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg sudo find /usr/sbin -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg /root added [] modified [] removed [] /usr/bin added [] modified [] removed [] /usr/sbin added [] modified [] removed [] /boot added [] modified [] removed [] PASSED modules/testing/tests/test_manager/test_uninstall.py::test_manager_uninstalled_directory test -d /var/ossec && echo "true" || echo "false" test -d /var/ossec && echo "true" || echo "false" test -d /var/ossec && echo "true" || echo "false" PASSED =============================== warnings summary =============================== modules/provision/models.py:65 /home/akim/Desktop/wazuh-qa/deployability/modules/provision/models.py:65: 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', pre=True) modules/provision/models.py:73 /home/akim/Desktop/wazuh-qa/deployability/modules/provision/models.py:73: 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('uninstall', pre=True) -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html =================== 2 passed, 2 warnings in 97.73s (0:01:37) =================== stdout_lines: PLAY RECAP ********************************************************************* localhost : ok=2 changed=1 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 [2024-03-22 13:53:09] [DEBUG] ANSIBLE: Playbook [{'hosts': 'localhost', 'become': True, 'become_user': 'akim', 'tasks': [{'name': 'Test uninstall for manager', 'command': "python3 -m pytest modules/testing/tests/test_manager/test_uninstall.py -v --wazuh_version=4.7.3 --wazuh_revision=40714 --component=manager --dependencies='{wazuh-1: /tmp/dtt1-poc/manager-linux-redhat-8-amd64/inventory.yml}' --targets='{wazuh-1: /tmp/dtt1-poc/manager-linux-redhat-7-amd64/inventory.yml, wazuh-2: /tmp/dtt1-poc/manager-linux-redhat-8-amd64/inventory.yml, wazuh-3: /tmp/dtt1-poc/manager-linux-redhat-9-amd64/inventory.yml}' -s", 'args': {'chdir': '/home/akim/Desktop/wazuh-qa/deployability'}}]}] finished with status {'skipped': {}, 'ok': {'localhost': 2}, 'dark': {}, 'failures': {}, 'ignored': {}, 'rescued': {}, 'processed': {'localhost': 1}, 'changed': {'localhost': 1}} [2024-03-22 13:53:09] [DEBUG] ANSIBLE: Using inventory: {'all': {'hosts': {'192.168.57.3': {'ansible_port': 22, 'ansible_user': 'vagrant', 'ansible_ssh_private_key_file': '/tmp/wazuh-qa/VAGRANT-4ADF6AB9-5CEB-4EC9-A1D1-42BC0AA29F21/instance_key'}}}} [2024-03-22 13:53:09] [DEBUG] ANSIBLE: Running playbook: /home/akim/Desktop/wazuh-qa/deployability/modules/testing/playbooks/cleanup.yml No config file found; using defaults PLAY [all] ********************************************************************* TASK [Gathering Facts] ********************************************************* ok: [192.168.57.3] TASK [Clean test directory] **************************************************** ok: [192.168.57.3] => changed=false path: /tmp/tests state: absent PLAY RECAP ********************************************************************* 192.168.57.3 : ok=2 changed=0 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 [2024-03-22 13:53:12] [DEBUG] ANSIBLE: Playbook /home/akim/Desktop/wazuh-qa/deployability/modules/testing/playbooks/cleanup.yml finished with status {'skipped': {}, 'ok': {'192.168.57.3': 2}, 'dark': {}, 'failures': {}, 'ignored': {}, 'rescued': {}, 'processed': {'192.168.57.3': 1}, 'changed': {}} [2024-03-22 13:53:12] [DEBUG] ANSIBLE: Using inventory: {'all': {'hosts': {'192.168.57.3': {'ansible_port': 22, 'ansible_user': 'vagrant', 'ansible_ssh_private_key_file': '/tmp/wazuh-qa/VAGRANT-4ADF6AB9-5CEB-4EC9-A1D1-42BC0AA29F21/instance_key'}}}} [2024-03-22 13:53:12] [DEBUG] ANSIBLE: Running playbook: /home/akim/Desktop/wazuh-qa/deployability/modules/testing/playbooks/cleanup.yml No config file found; using defaults PLAY [all] ********************************************************************* TASK [Gathering Facts] ********************************************************* ok: [192.168.57.3] TASK [Clean test directory] **************************************************** ok: [192.168.57.3] => changed=false path: /tmp/tests state: absent PLAY RECAP ********************************************************************* 192.168.57.3 : ok=2 changed=0 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 [2024-03-22 13:53:14] [DEBUG] ANSIBLE: Playbook /home/akim/Desktop/wazuh-qa/deployability/modules/testing/playbooks/cleanup.yml finished with status {'skipped': {}, 'ok': {'192.168.57.3': 2}, 'dark': {}, 'failures': {}, 'ignored': {}, 'rescued': {}, 'processed': {'192.168.57.3': 1}, 'changed': {}} [2024-03-22 13:53:14] [DEBUG] ANSIBLE: Using inventory: {'all': {'hosts': {'192.168.57.3': {'ansible_port': 22, 'ansible_user': 'vagrant', 'ansible_ssh_private_key_file': '/tmp/wazuh-qa/VAGRANT-4ADF6AB9-5CEB-4EC9-A1D1-42BC0AA29F21/instance_key'}}}} [2024-03-22 13:53:14] [DEBUG] ANSIBLE: Running playbook: /home/akim/Desktop/wazuh-qa/deployability/modules/testing/playbooks/cleanup.yml No config file found; using defaults PLAY [all] ********************************************************************* TASK [Gathering Facts] ********************************************************* ok: [192.168.57.3] TASK [Clean test directory] **************************************************** ok: [192.168.57.3] => changed=false path: /tmp/tests state: absent PLAY RECAP ********************************************************************* 192.168.57.3 : ok=2 changed=0 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 [2024-03-22 13:53:17] [DEBUG] ANSIBLE: Playbook /home/akim/Desktop/wazuh-qa/deployability/modules/testing/playbooks/cleanup.yml finished with status {'skipped': {}, 'ok': {'192.168.57.3': 2}, 'dark': {}, 'failures': {}, 'ignored': {}, 'rescued': {}, 'processed': {'192.168.57.3': 1}, 'changed': {}} ```
Centos-7 : Centos-8 : Debian-10 :green_circle: ```bash (deplo_test) akim@akim-PC:~/Desktop/wazuh-qa/deployability$ python3 modules/testing/main.py --wazuh-revision '40714' --wazuh-version '4.7.3' --component 'manager' --tests 'install' --targets '{"wazuh-1":"/tmp/dtt1-poc/manager-linux-centos-7-amd64/inventory.yml"}' --targets '{"wazuh-2 ":"/tmp/dtt1-poc/manager-linux-centos-8-amd64/inventory.yml"}' --targets '{"wazuh-3":"/tmp/dtt1-poc/manager-linux-debian-10-amd64/inventory.yml" }' --dependencies '{"wazuh-1":"/tmp/dtt1-poc/manager-linux-centos-8-amd64/inventory.yml"}' [2024-03-22 14:23:35] [INFO] TESTER: Running tests for 192.168.57.3 [2024-03-22 14:23:35] [INFO] TESTER: Running tests for 192.168.57.4 [2024-03-22 14:23:35] [INFO] TESTER: Running tests for 192.168.57.5 [2024-03-22 14:23:35] [INFO] TESTER: Dependencies 192.168.57.4 [2024-03-22 14:23:35] [DEBUG] TESTER: Using extra vars: {'component': 'manager', 'wazuh_version': '4.7.3', 'wazuh_revision': '40714', 'wazuh_branch': None, 'working_dir': '/tmp/tests', 'hosts_ip': ['192.168.57.3', '192.168.57.4', '192.168.57.5'], 'targets': '{wazuh-1: /tmp/dtt1-poc/manager-linux-centos-7-amd64/inventory.yml, wazuh-2: /tmp/dtt1-poc/manager-linux-centos-8-amd64/inventory.yml, wazuh-3: /tmp/dtt1-poc/manager-linux-debian-10-amd64/inventory.yml}', 'dependencies': '{wazuh-1: /tmp/dtt1-poc/manager-linux-centos-8-amd64/inventory.yml}', 'local_host_path': '/home/akim/Desktop/wazuh-qa/deployability', 'current_user': 'akim'} [2024-03-22 14:23:35] [DEBUG] ANSIBLE: Rendering template /home/akim/Desktop/wazuh-qa/deployability/modules/testing/playbooks/setup.yml [2024-03-22 14:23:35] [DEBUG] ANSIBLE: Using inventory: {'all': {'hosts': {'192.168.57.3': {'ansible_port': 22, 'ansible_user': 'vagrant', 'ansible_ssh_private_key_file': '/tmp/wazuh-qa/VAGRANT-867C189F-2DD7-4DC3-A17E-D9D1612F7951/instance_key'}}}} [2024-03-22 14:23:35] [DEBUG] ANSIBLE: Running playbook: [{'hosts': 'localhost', 'become': True, 'become_user': 'akim', 'tasks': [{'name': 'Cleaning old key ssh-keygen registries', 'ansible.builtin.command': {'cmd': "ssh-keygen -f /home/akim/.ssh/known_hosts -R ''"}, 'loop': ['192.168.57.3', '192.168.57.4', '192.168.57.5']}]}] No config file found; using defaults PLAY [localhost] *************************************************************** TASK [Gathering Facts] ********************************************************* ok: [localhost] TASK [Cleaning old key ssh-keygen registries] ********************************** changed: [localhost] => (item=192.168.57.3) => changed=true ansible_loop_var: item cmd: - ssh-keygen - -f - /home/akim/.ssh/known_hosts - -R - '' delta: '0:00:00.021022' end: '2024-03-22 14:23:45.166906' item: 192.168.57.3 msg: '' rc: 0 start: '2024-03-22 14:23:45.145884' stderr: Host not found in /home/akim/.ssh/known_hosts stderr_lines: stdout: '' stdout_lines: changed: [localhost] => (item=192.168.57.4) => changed=true ansible_loop_var: item cmd: - ssh-keygen - -f - /home/akim/.ssh/known_hosts - -R - '' delta: '0:00:00.024504' end: '2024-03-22 14:23:45.604058' item: 192.168.57.4 msg: '' rc: 0 start: '2024-03-22 14:23:45.579554' stderr: Host not found in /home/akim/.ssh/known_hosts stderr_lines: stdout: '' stdout_lines: changed: [localhost] => (item=192.168.57.5) => changed=true ansible_loop_var: item cmd: - ssh-keygen - -f - /home/akim/.ssh/known_hosts - -R - '' delta: '0:00:00.021506' end: '2024-03-22 14:23:46.033775' item: 192.168.57.5 msg: '' rc: 0 start: '2024-03-22 14:23:46.012269' stderr: Host not found in /home/akim/.ssh/known_hosts stderr_lines: stdout: '' stdout_lines: PLAY RECAP ********************************************************************* localhost : ok=2 changed=1 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 [2024-03-22 14:23:46] [DEBUG] ANSIBLE: Playbook [{'hosts': 'localhost', 'become': True, 'become_user': 'akim', 'tasks': [{'name': 'Cleaning old key ssh-keygen registries', 'ansible.builtin.command': {'cmd': "ssh-keygen -f /home/akim/.ssh/known_hosts -R ''"}, 'loop': ['192.168.57.3', '192.168.57.4', '192.168.57.5']}]}] finished with status {'skipped': {}, 'ok': {'localhost': 2}, 'dark': {}, 'failures': {}, 'ignored': {}, 'rescued': {}, 'processed': {'localhost': 1}, 'changed': {'localhost': 1}} [2024-03-22 14:23:46] [DEBUG] ANSIBLE: Rendering template /home/akim/Desktop/wazuh-qa/deployability/modules/testing/playbooks/test.yml [2024-03-22 14:23:46] [DEBUG] ANSIBLE: Using inventory: {'all': {'hosts': {'192.168.57.3': {'ansible_port': 22, 'ansible_user': 'vagrant', 'ansible_ssh_private_key_file': '/tmp/wazuh-qa/VAGRANT-867C189F-2DD7-4DC3-A17E-D9D1612F7951/instance_key'}}}} [2024-03-22 14:23:46] [DEBUG] ANSIBLE: Running playbook: [{'hosts': 'localhost', 'become': True, 'become_user': 'akim', 'tasks': [{'name': 'Test install for manager', 'command': "python3 -m pytest modules/testing/tests/test_manager/test_install.py -v --wazuh_version=4.7.3 --wazuh_revision=40714 --component=manager --dependencies='{wazuh-1: /tmp/dtt1-poc/manager-linux-centos-8-amd64/inventory.yml}' --targets='{wazuh-1: /tmp/dtt1-poc/manager-linux-centos-7-amd64/inventory.yml, wazuh-2: /tmp/dtt1-poc/manager-linux-centos-8-amd64/inventory.yml, wazuh-3: /tmp/dtt1-poc/manager-linux-debian-10-amd64/inventory.yml}' -s", 'args': {'chdir': '/home/akim/Desktop/wazuh-qa/deployability'}}]}] No config file found; using defaults PLAY [localhost] *************************************************************** TASK [Gathering Facts] ********************************************************* ok: [localhost] TASK [Test install for manager] ************************************************ changed: [localhost] => changed=true cmd: - python3 - -m - pytest - modules/testing/tests/test_manager/test_install.py - -v - --wazuh_version=4.7.3 - --wazuh_revision=40714 - --component=manager - '--dependencies={wazuh-1: /tmp/dtt1-poc/manager-linux-centos-8-amd64/inventory.yml}' - '--targets={wazuh-1: /tmp/dtt1-poc/manager-linux-centos-7-amd64/inventory.yml, wazuh-2: /tmp/dtt1-poc/manager-linux-centos-8-amd64/inventory.yml, wazuh-3: /tmp/dtt1-poc/manager-linux-debian-10-amd64/inventory.yml}' - -s delta: '0:07:50.411012' end: '2024-03-22 14:31:44.689889' msg: '' rc: 0 start: '2024-03-22 14:23:54.278877' stderr: |- /home/akim/Desktop/venvs/deplo_test/lib/python3.10/site-packages/_testinfra_renamed.py:5: DeprecationWarning: testinfra package has been renamed to pytest-testinfra. Please `pip install pytest-testinfra` and `pip uninstall testinfra` and update your package requirements to avoid this message warnings.warn(( Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.4' (RSA) to the list of known hosts. Warning: Permanently added '192.168.57.4' (RSA) to the list of known hosts. Removed /etc/systemd/system/multi-user.target.wants/firewalld.service. Removed /etc/systemd/system/dbus-org.fedoraproject.FirewallD1.service. Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts. Failed to stop firewalld.service: Unit firewalld.service not loaded. Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts. Failed to disable unit: Unit file firewalld.service does not exist. Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.4' (RSA) to the list of known hosts. Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.4' (RSA) to the list of known hosts. Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.4' (RSA) to the list of known hosts. Warning: Permanently added '192.168.57.4' (RSA) to the list of known hosts. Warning: Permanently added '192.168.57.4' (RSA) to the list of known hosts. Warning: Permanently added '192.168.57.4' (RSA) to the list of known hosts. Warning: Permanently added '192.168.57.4' (RSA) to the list of known hosts. Warning: Permanently added '192.168.57.4' (RSA) to the list of known hosts. Warning: Permanently added '192.168.57.4' (RSA) to the list of known hosts. Warning: Permanently added '192.168.57.4' (RSA) to the list of known hosts. Warning: Permanently added '192.168.57.4' (RSA) to the list of known hosts. Warning: Permanently added '192.168.57.4' (RSA) to the list of known hosts. Warning: Permanently added '192.168.57.4' (RSA) to the list of known hosts. Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts. --2024-03-22 13:28:39-- https://packages.wazuh.com/4.7/wazuh-install.sh Resolving packages.wazuh.com (packages.wazuh.com)... 54.230.112.37, 54.230.112.24, 54.230.112.19, ... Connecting to packages.wazuh.com (packages.wazuh.com)|54.230.112.37|:443... connected. HTTP request sent, awaiting response... 200 OK Length: 165734 (162K) [application/x-sh] Saving to: 'wazuh-install.sh' 0K .......... .......... .......... .......... .......... 30% 2.02M 0s 50K .......... .......... .......... .......... .......... 61% 2.84M 0s 100K .......... .......... .......... .......... .......... 92% 3.05M 0s 150K .......... . 100% 97.0M=0.06s 2024-03-22 13:28:39 (2.75 MB/s) - 'wazuh-install.sh' saved [165734/165734] Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.4' (RSA) to the list of known hosts. Warning: Permanently added '192.168.57.4' (RSA) to the list of known hosts. Warning: Permanently added '192.168.57.4' (RSA) to the list of known hosts. Warning: Permanently added '192.168.57.4' (RSA) to the list of known hosts. Warning: Permanently added '192.168.57.4' (RSA) to the list of known hosts. Warning: Permanently added '192.168.57.4' (RSA) to the list of known hosts. Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.4' (RSA) to the list of known hosts. Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.4' (RSA) to the list of known hosts. Warning: Permanently added '192.168.57.4' (RSA) to the list of known hosts. Warning: Permanently added '192.168.57.4' (RSA) to the list of known hosts. Warning: Permanently added '192.168.57.4' (RSA) to the list of known hosts. Warning: Permanently added '192.168.57.4' (RSA) to the list of known hosts. Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.4' (RSA) to the list of known hosts. Warning: Permanently added '192.168.57.4' (RSA) to the list of known hosts. Warning: Permanently added '192.168.57.4' (RSA) to the list of known hosts. Warning: Permanently added '192.168.57.4' (RSA) to the list of known hosts. Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.4' (RSA) to the list of known hosts. Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts. stderr_lines: stdout: |- ============================= test session starts ============================== platform linux -- Python 3.10.12, pytest-8.1.0, pluggy-1.4.0 -- /home/akim/Desktop/venvs/deplo_test/bin/python3 cachedir: .pytest_cache rootdir: /home/akim/Desktop/wazuh-qa/deployability/modules plugins: testinfra-6.0.0, testinfra-10.1.0 collecting ... collected 5 items modules/testing/tests/test_manager/test_install.py::test_installation pwd pwd pwd chmod +rw wazuh-install-files.tar chmod 600 wazuh-install-files.tar chmod 600 wazuh-install-files.tar pwd pwd chmod +rw wazuh-install-files.tar chmod 600 wazuh-install-files.tar chmod 600 wazuh-install-files.tar uname sudo find /boot -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg sudo find /usr/bin -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg sudo find /root -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg sudo find /usr/sbin -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg sudo find /boot -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg sudo find /usr/bin -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg sudo find /root -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg sudo find /usr/sbin -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg /root added [] modified [] removed [] /usr/bin added [] modified [] removed [] /usr/sbin added [] modified [] removed [] /boot added [] modified [] removed [] uname sudo find /boot -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg sudo find /usr/bin -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg sudo find /root -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg sudo find /usr/sbin -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg sudo find /boot -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg sudo find /usr/bin -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg sudo find /root -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg sudo find /usr/sbin -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg /root added [] modified [] removed [] /usr/bin added [] modified [] removed [] /usr/sbin added [] modified [] removed [] /boot added [] modified [] removed [] uname sudo find /boot -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg sudo find /usr/bin -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg sudo find /root -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg sudo find /usr/sbin -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg sudo find /boot -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg sudo find /usr/bin -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg sudo find /root -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg sudo find /usr/sbin -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg /root added [] modified [] removed [] /usr/bin added [] modified [] removed [] /usr/sbin added [] modified [] removed [] /boot added [] modified [] removed [] /var/ossec/bin/cluster_control -l PASSED modules/testing/tests/test_manager/test_install.py::test_manager_status systemctl status wazuh-manager systemctl status wazuh-manager systemctl status wazuh-manager PASSED modules/testing/tests/test_manager/test_install.py::test_manager_version /var/ossec/bin/wazuh-control info -v pwd test -f /home/vagrant/wazuh-install-files/wazuh-passwords.txt && echo "true" || echo "false" tar -xvf wazuh-install-files.tar grep api_password wazuh-install-files/wazuh-passwords.txt | head -n 1 | awk '{print $NF}' /var/ossec/bin/wazuh-control info -v pwd test -f /home/vagrant/wazuh-install-files/wazuh-passwords.txt && echo "true" || echo "false" tar -xvf wazuh-install-files.tar grep api_password wazuh-install-files/wazuh-passwords.txt | head -n 1 | awk '{print $NF}' /var/ossec/bin/wazuh-control info -v pwd test -f /home/vagrant/wazuh-install-files/wazuh-passwords.txt && echo "true" || echo "false" tar -xvf wazuh-install-files.tar grep api_password wazuh-install-files/wazuh-passwords.txt | head -n 1 | awk '{print $NF}' PASSED modules/testing/tests/test_manager/test_install.py::test_manager_revision /var/ossec/bin/wazuh-control info -r pwd test -f /home/vagrant/wazuh-install-files/wazuh-passwords.txt && echo "true" || echo "false" grep api_password wazuh-install-files/wazuh-passwords.txt | head -n 1 | awk '{print $NF}' /var/ossec/bin/wazuh-control info -r pwd test -f /home/vagrant/wazuh-install-files/wazuh-passwords.txt && echo "true" || echo "false" grep api_password wazuh-install-files/wazuh-passwords.txt | head -n 1 | awk '{print $NF}' /var/ossec/bin/wazuh-control info -r pwd test -f /home/vagrant/wazuh-install-files/wazuh-passwords.txt && echo "true" || echo "false" grep api_password wazuh-install-files/wazuh-passwords.txt | head -n 1 | awk '{print $NF}' PASSED modules/testing/tests/test_manager/test_install.py::test_manager_installed_directory test -d /var/ossec && echo "true" || echo "false" test -d /var/ossec && echo "true" || echo "false" test -d /var/ossec && echo "true" || echo "false" PASSED =============================== warnings summary =============================== modules/provision/models.py:65 /home/akim/Desktop/wazuh-qa/deployability/modules/provision/models.py:65: 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', pre=True) modules/provision/models.py:73 /home/akim/Desktop/wazuh-qa/deployability/modules/provision/models.py:73: 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('uninstall', pre=True) -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html ================== 5 passed, 2 warnings in 469.25s (0:07:49) =================== stdout_lines: PLAY RECAP ********************************************************************* localhost : ok=2 changed=1 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 [2024-03-22 14:31:44] [DEBUG] ANSIBLE: Playbook [{'hosts': 'localhost', 'become': True, 'become_user': 'akim', 'tasks': [{'name': 'Test install for manager', 'command': "python3 -m pytest modules/testing/tests/test_manager/test_install.py -v --wazuh_version=4.7.3 --wazuh_revision=40714 --component=manager --dependencies='{wazuh-1: /tmp/dtt1-poc/manager-linux-centos-8-amd64/inventory.yml}' --targets='{wazuh-1: /tmp/dtt1-poc/manager-linux-centos-7-amd64/inventory.yml, wazuh-2: /tmp/dtt1-poc/manager-linux-centos-8-amd64/inventory.yml, wazuh-3: /tmp/dtt1-poc/manager-linux-debian-10-amd64/inventory.yml}' -s", 'args': {'chdir': '/home/akim/Desktop/wazuh-qa/deployability'}}]}] finished with status {'skipped': {}, 'ok': {'localhost': 2}, 'dark': {}, 'failures': {}, 'ignored': {}, 'rescued': {}, 'processed': {'localhost': 1}, 'changed': {'localhost': 1}} [2024-03-22 14:31:44] [DEBUG] ANSIBLE: Using inventory: {'all': {'hosts': {'192.168.57.3': {'ansible_port': 22, 'ansible_user': 'vagrant', 'ansible_ssh_private_key_file': '/tmp/wazuh-qa/VAGRANT-867C189F-2DD7-4DC3-A17E-D9D1612F7951/instance_key'}}}} [2024-03-22 14:31:44] [DEBUG] ANSIBLE: Running playbook: /home/akim/Desktop/wazuh-qa/deployability/modules/testing/playbooks/cleanup.yml No config file found; using defaults PLAY [all] ********************************************************************* TASK [Gathering Facts] ********************************************************* ok: [192.168.57.3] TASK [Clean test directory] **************************************************** ok: [192.168.57.3] => changed=false path: /tmp/tests state: absent PLAY RECAP ********************************************************************* 192.168.57.3 : ok=2 changed=0 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 [2024-03-22 14:31:47] [DEBUG] ANSIBLE: Playbook /home/akim/Desktop/wazuh-qa/deployability/modules/testing/playbooks/cleanup.yml finished with status {'skipped': {}, 'ok': {'192.168.57.3': 2}, 'dark': {}, 'failures': {}, 'ignored': {}, 'rescued': {}, 'processed': {'192.168.57.3': 1}, 'changed': {}} [2024-03-22 14:31:47] [DEBUG] ANSIBLE: Using inventory: {'all': {'hosts': {'192.168.57.3': {'ansible_port': 22, 'ansible_user': 'vagrant', 'ansible_ssh_private_key_file': '/tmp/wazuh-qa/VAGRANT-867C189F-2DD7-4DC3-A17E-D9D1612F7951/instance_key'}}}} [2024-03-22 14:31:47] [DEBUG] ANSIBLE: Running playbook: /home/akim/Desktop/wazuh-qa/deployability/modules/testing/playbooks/cleanup.yml No config file found; using defaults PLAY [all] ********************************************************************* TASK [Gathering Facts] ********************************************************* ok: [192.168.57.3] TASK [Clean test directory] **************************************************** ok: [192.168.57.3] => changed=false path: /tmp/tests state: absent PLAY RECAP ********************************************************************* 192.168.57.3 : ok=2 changed=0 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 [2024-03-22 14:31:49] [DEBUG] ANSIBLE: Playbook /home/akim/Desktop/wazuh-qa/deployability/modules/testing/playbooks/cleanup.yml finished with status {'skipped': {}, 'ok': {'192.168.57.3': 2}, 'dark': {}, 'failures': {}, 'ignored': {}, 'rescued': {}, 'processed': {'192.168.57.3': 1}, 'changed': {}} [2024-03-22 14:31:49] [DEBUG] ANSIBLE: Using inventory: {'all': {'hosts': {'192.168.57.3': {'ansible_port': 22, 'ansible_user': 'vagrant', 'ansible_ssh_private_key_file': '/tmp/wazuh-qa/VAGRANT-867C189F-2DD7-4DC3-A17E-D9D1612F7951/instance_key'}}}} [2024-03-22 14:31:49] [DEBUG] ANSIBLE: Running playbook: /home/akim/Desktop/wazuh-qa/deployability/modules/testing/playbooks/cleanup.yml No config file found; using defaults PLAY [all] ********************************************************************* TASK [Gathering Facts] ********************************************************* ok: [192.168.57.3] TASK [Clean test directory] **************************************************** ok: [192.168.57.3] => changed=false path: /tmp/tests state: absent PLAY RECAP ********************************************************************* 192.168.57.3 : ok=2 changed=0 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 [2024-03-22 14:31:52] [DEBUG] ANSIBLE: Playbook /home/akim/Desktop/wazuh-qa/deployability/modules/testing/playbooks/cleanup.yml finished with status {'skipped': {}, 'ok': {'192.168.57.3': 2}, 'dark': {}, 'failures': {}, 'ignored': {}, 'rescued': {}, 'processed': {'192.168.57.3': 1}, 'changed': {}} (deplo_test) akim@akim-PC:~/Desktop/wazuh-qa/deployability$ python3 modules/testing/main.py --wazuh-revision '40714' --wazuh-version '4.7.3' --component 'manager' --tests 'stop,restart,uninstall' --targets '{"wazuh-1":"/tmp/dtt1-poc/manager-linux-centos-7-amd64/inventory.yml" }' --targets '{"wazuh-2":"/tmp/dtt1-poc/manager-linux-centos-8-amd64/inventory.yml"}' --targets '{"wazuh-3":"/tmp/dtt1-poc/manager-linux-debian-10-amd64/inventory.yml" }' --dependencies '{"wazuh-1":"/tmp/dtt1-poc/manager-linux-centos-8-amd64/inventory.yml"}' [2024-03-22 14:06:41] [INFO] TESTER: Running tests for 192.168.57.3 [2024-03-22 14:06:41] [INFO] TESTER: Running tests for 192.168.57.4 [2024-03-22 14:06:41] [INFO] TESTER: Running tests for 192.168.57.5 [2024-03-22 14:06:41] [INFO] TESTER: Dependencies 192.168.57.4 [2024-03-22 14:06:41] [DEBUG] TESTER: Using extra vars: {'component': 'manager', 'wazuh_version': '4.7.3', 'wazuh_revision': '40714', 'wazuh_branch': None, 'working_dir': '/tmp/tests', 'hosts_ip': ['192.168.57.3', '192.168.57.4', '192.168.57.5'], 'targets': '{wazuh-1: /tmp/dtt1-poc/manager-linux-centos-7-amd64/inventory.yml, wazuh-2: /tmp/dtt1-poc/manager-linux-centos-8-amd64/inventory.yml, wazuh-3: /tmp/dtt1-poc/manager-linux-debian-10-amd64/inventory.yml}', 'dependencies': '{wazuh-1: /tmp/dtt1-poc/manager-linux-centos-8-amd64/inventory.yml}', 'local_host_path': '/home/akim/Desktop/wazuh-qa/deployability', 'current_user': 'akim'} TASK [Test stop for manager] *************************************************** changed: [localhost] => changed=true cmd: - python3 - -m - pytest - modules/testing/tests/test_manager/test_stop.py - -v - --wazuh_version=4.7.3 - --wazuh_revision=40714 - --component=manager - '--dependencies={wazuh-1: /tmp/dtt1-poc/manager-linux-centos-8-amd64/inventory.yml}' - '--targets={wazuh-1: /tmp/dtt1-poc/manager-linux-centos-7-amd64/inventory.yml, wazuh-2: /tmp/dtt1-poc/manager-linux-centos-8-amd64/inventory.yml, wazuh-3: /tmp/dtt1-poc/manager-linux-debian-10-amd64/inventory.yml}' - -s delta: '0:00:40.023805' end: '2024-03-22 14:15:59.769392' msg: '' rc: 0 start: '2024-03-22 14:15:19.745587' stderr: |- /home/akim/Desktop/venvs/deplo_test/lib/python3.10/site-packages/_testinfra_renamed.py:5: DeprecationWarning: testinfra package has been renamed to pytest-testinfra. Please `pip install pytest-testinfra` and `pip uninstall testinfra` and update your package requirements to avoid this message warnings.warn(( Warning: Permanently added '192.168.57.4' (RSA) to the list of known hosts. Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.4' (RSA) to the list of known hosts. Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.4' (RSA) to the list of known hosts. Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts. stderr_lines: stdout: |- ============================= test session starts ============================== platform linux -- Python 3.10.12, pytest-8.1.0, pluggy-1.4.0 -- /home/akim/Desktop/venvs/deplo_test/bin/python3 cachedir: .pytest_cache rootdir: /home/akim/Desktop/wazuh-qa/deployability/modules plugins: testinfra-6.0.0, testinfra-10.1.0 collecting ... collected 1 item modules/testing/tests/test_manager/test_stop.py::test_stop systemctl stop wazuh-manager systemctl stop wazuh-manager systemctl status wazuh-manager systemctl status wazuh-manager systemctl status wazuh-manager PASSEDsystemctl restart wazuh-manager systemctl restart wazuh-manager =============================== warnings summary =============================== modules/provision/models.py:65 /home/akim/Desktop/wazuh-qa/deployability/modules/provision/models.py:65: 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', pre=True) modules/provision/models.py:73 /home/akim/Desktop/wazuh-qa/deployability/modules/provision/models.py:73: 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('uninstall', pre=True) -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html ======================== 1 passed, 2 warnings in 39.19s ======================== stdout_lines: PLAY RECAP ********************************************************************* localhost : ok=2 changed=1 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 [2024-03-22 14:16:00] [DEBUG] ANSIBLE: Playbook [{'hosts': 'localhost', 'become': True, 'become_user': 'akim', 'tasks': [{'name': 'Test stop for manager', 'command': "python3 -m pytest modules/testing/tests/test_manager/test_stop.py -v --wazuh_version=4.7.3 --wazuh_revision=40714 --component=manager --dependencies='{wazuh-1: /tmp/dtt1-poc/manager-linux-centos-8-amd64/inventory.yml}' --targets='{wazuh-1: /tmp/dtt1-poc/manager-linux-centos-7-amd64/inventory.yml, wazuh-2: /tmp/dtt1-poc/manager-linux-centos-8-amd64/inventory.yml, wazuh-3: /tmp/dtt1-poc/manager-linux-debian-10-amd64/inventory.yml}' -s", 'args': {'chdir': '/home/akim/Desktop/wazuh-qa/deployability'}}]}] finished with status {'skipped': {}, 'ok': {'localhost': 2}, 'dark': {}, 'failures': {}, 'ignored': {}, 'rescued': {}, 'processed': {'localhost': 1}, 'changed': {'localhost': 1}} [2024-03-22 14:16:00] [DEBUG] ANSIBLE: Rendering template /home/akim/Desktop/wazuh-qa/deployability/modules/testing/playbooks/test.yml [2024-03-22 14:16:00] [DEBUG] ANSIBLE: Using inventory: {'all': {'hosts': {'192.168.57.3': {'ansible_port': 22, 'ansible_user': 'vagrant', 'ansible_ssh_private_key_file': '/tmp/wazuh-qa/VAGRANT-2324C62A-355C-4560-B667-A3517111B664/instance_key'}}}} [2024-03-22 14:16:00] [DEBUG] ANSIBLE: Running playbook: [{'hosts': 'localhost', 'become': True, 'become_user': 'akim', 'tasks': [{'name': 'Test restart for manager', 'command': "python3 -m pytest modules/testing/tests/test_manager/test_restart.py -v --wazuh_version=4.7.3 --wazuh_revision=40714 --component=manager --dependencies='{wazuh-1: /tmp/dtt1-poc/manager-linux-centos-8-amd64/inventory.yml}' --targets='{wazuh-1: /tmp/dtt1-poc/manager-linux-centos-7-amd64/inventory.yml, wazuh-2: /tmp/dtt1-poc/manager-linux-centos-8-amd64/inventory.yml, wazuh-3: /tmp/dtt1-poc/manager-linux-debian-10-amd64/inventory.yml}' -s", 'args': {'chdir': '/home/akim/Desktop/wazuh-qa/deployability'}}]}] No config file found; using defaults PLAY [localhost] *************************************************************** TASK [Gathering Facts] ********************************************************* ok: [localhost] TASK [Test restart for manager] ************************************************ changed: [localhost] => changed=true cmd: - python3 - -m - pytest - modules/testing/tests/test_manager/test_restart.py - -v - --wazuh_version=4.7.3 - --wazuh_revision=40714 - --component=manager - '--dependencies={wazuh-1: /tmp/dtt1-poc/manager-linux-centos-8-amd64/inventory.yml}' - '--targets={wazuh-1: /tmp/dtt1-poc/manager-linux-centos-7-amd64/inventory.yml, wazuh-2: /tmp/dtt1-poc/manager-linux-centos-8-amd64/inventory.yml, wazuh-3: /tmp/dtt1-poc/manager-linux-debian-10-amd64/inventory.yml}' - -s delta: '0:00:38.432027' end: '2024-03-22 14:16:44.673081' msg: '' rc: 0 start: '2024-03-22 14:16:06.241054' stderr: |- /home/akim/Desktop/venvs/deplo_test/lib/python3.10/site-packages/_testinfra_renamed.py:5: DeprecationWarning: testinfra package has been renamed to pytest-testinfra. Please `pip install pytest-testinfra` and `pip uninstall testinfra` and update your package requirements to avoid this message warnings.warn(( Warning: Permanently added '192.168.57.4' (RSA) to the list of known hosts. Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.4' (RSA) to the list of known hosts. Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts. stderr_lines: stdout: |- ============================= test session starts ============================== platform linux -- Python 3.10.12, pytest-8.1.0, pluggy-1.4.0 -- /home/akim/Desktop/venvs/deplo_test/bin/python3 cachedir: .pytest_cache rootdir: /home/akim/Desktop/wazuh-qa/deployability/modules plugins: testinfra-6.0.0, testinfra-10.1.0 collecting ... collected 1 item modules/testing/tests/test_manager/test_restart.py::test_restart systemctl restart wazuh-manager systemctl restart wazuh-manager systemctl status wazuh-manager systemctl status wazuh-manager systemctl status wazuh-manager PASSED =============================== warnings summary =============================== modules/provision/models.py:65 /home/akim/Desktop/wazuh-qa/deployability/modules/provision/models.py:65: 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', pre=True) modules/provision/models.py:73 /home/akim/Desktop/wazuh-qa/deployability/modules/provision/models.py:73: 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('uninstall', pre=True) -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html ======================== 1 passed, 2 warnings in 37.84s ======================== stdout_lines: PLAY RECAP ********************************************************************* localhost : ok=2 changed=1 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 [2024-03-22 14:16:44] [DEBUG] ANSIBLE: Playbook [{'hosts': 'localhost', 'become': True, 'become_user': 'akim', 'tasks': [{'name': 'Test restart for manager', 'command': "python3 -m pytest modules/testing/tests/test_manager/test_restart.py -v --wazuh_version=4.7.3 --wazuh_revision=40714 --component=manager --dependencies='{wazuh-1: /tmp/dtt1-poc/manager-linux-centos-8-amd64/inventory.yml}' --targets='{wazuh-1: /tmp/dtt1-poc/manager-linux-centos-7-amd64/inventory.yml, wazuh-2: /tmp/dtt1-poc/manager-linux-centos-8-amd64/inventory.yml, wazuh-3: /tmp/dtt1-poc/manager-linux-debian-10-amd64/inventory.yml}' -s", 'args': {'chdir': '/home/akim/Desktop/wazuh-qa/deployability'}}]}] finished with status {'skipped': {}, 'ok': {'localhost': 2}, 'dark': {}, 'failures': {}, 'ignored': {}, 'rescued': {}, 'processed': {'localhost': 1}, 'changed': {'localhost': 1}} [2024-03-22 14:16:44] [DEBUG] ANSIBLE: Rendering template /home/akim/Desktop/wazuh-qa/deployability/modules/testing/playbooks/test.yml [2024-03-22 14:16:44] [DEBUG] ANSIBLE: Using inventory: {'all': {'hosts': {'192.168.57.3': {'ansible_port': 22, 'ansible_user': 'vagrant', 'ansible_ssh_private_key_file': '/tmp/wazuh-qa/VAGRANT-2324C62A-355C-4560-B667-A3517111B664/instance_key'}}}} [2024-03-22 14:16:44] [DEBUG] ANSIBLE: Running playbook: [{'hosts': 'localhost', 'become': True, 'become_user': 'akim', 'tasks': [{'name': 'Test uninstall for manager', 'command': "python3 -m pytest modules/testing/tests/test_manager/test_uninstall.py -v --wazuh_version=4.7.3 --wazuh_revision=40714 --component=manager --dependencies='{wazuh-1: /tmp/dtt1-poc/manager-linux-centos-8-amd64/inventory.yml}' --targets='{wazuh-1: /tmp/dtt1-poc/manager-linux-centos-7-amd64/inventory.yml, wazuh-2: /tmp/dtt1-poc/manager-linux-centos-8-amd64/inventory.yml, wazuh-3: /tmp/dtt1-poc/manager-linux-debian-10-amd64/inventory.yml}' -s", 'args': {'chdir': '/home/akim/Desktop/wazuh-qa/deployability'}}]}] No config file found; using defaults PLAY [localhost] *************************************************************** TASK [Gathering Facts] ********************************************************* ok: [localhost] TASK [Test uninstall for manager] ********************************************** changed: [localhost] => changed=true cmd: - python3 - -m - pytest - modules/testing/tests/test_manager/test_uninstall.py - -v - --wazuh_version=4.7.3 - --wazuh_revision=40714 - --component=manager - '--dependencies={wazuh-1: /tmp/dtt1-poc/manager-linux-centos-8-amd64/inventory.yml}' - '--targets={wazuh-1: /tmp/dtt1-poc/manager-linux-centos-7-amd64/inventory.yml, wazuh-2: /tmp/dtt1-poc/manager-linux-centos-8-amd64/inventory.yml, wazuh-3: /tmp/dtt1-poc/manager-linux-debian-10-amd64/inventory.yml}' - -s delta: '0:01:22.634843' end: '2024-03-22 14:18:13.299859' msg: '' rc: 0 start: '2024-03-22 14:16:50.665016' stderr: |- /home/akim/Desktop/venvs/deplo_test/lib/python3.10/site-packages/_testinfra_renamed.py:5: DeprecationWarning: testinfra package has been renamed to pytest-testinfra. Please `pip install pytest-testinfra` and `pip uninstall testinfra` and update your package requirements to avoid this message warnings.warn(( Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.4' (RSA) to the list of known hosts. Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts. Failed to set locale, defaulting to C Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts. Failed to execute operation: Access denied Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.4' (RSA) to the list of known hosts. Warning: Permanently added '192.168.57.4' (RSA) to the list of known hosts. Warning: Permanently added '192.168.57.4' (RSA) to the list of known hosts. Warning: Permanently added '192.168.57.4' (RSA) to the list of known hosts. Warning: Permanently added '192.168.57.4' (RSA) to the list of known hosts. Warning: Permanently added '192.168.57.4' (RSA) to the list of known hosts. Failed to set locale, defaulting to C.UTF-8 Warning: Permanently added '192.168.57.4' (RSA) to the list of known hosts. Warning: Permanently added '192.168.57.4' (RSA) to the list of known hosts. Removed /etc/systemd/system/multi-user.target.wants/wazuh-manager.service. Warning: Permanently added '192.168.57.4' (RSA) to the list of known hosts. Warning: Permanently added '192.168.57.4' (RSA) to the list of known hosts. Warning: Permanently added '192.168.57.4' (RSA) to the list of known hosts. Warning: Permanently added '192.168.57.4' (RSA) to the list of known hosts. Warning: Permanently added '192.168.57.4' (RSA) to the list of known hosts. Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts. apt-listchanges: Can't set locale; make sure $LC_* and $LANG are correct! perl: warning: Setting locale failed. perl: warning: Please check that your locale settings: LANGUAGE = (unset), LC_ALL = (unset), LC_TIME = "es_ES.UTF-8", LC_MONETARY = "es_ES.UTF-8", LC_ADDRESS = "es_ES.UTF-8", LC_TELEPHONE = "es_ES.UTF-8", LC_NAME = "es_ES.UTF-8", LC_MEASUREMENT = "es_ES.UTF-8", LC_IDENTIFICATION = "es_ES.UTF-8", LC_NUMERIC = "es_ES.UTF-8", LC_PAPER = "es_ES.UTF-8", LANG = "en_US.UTF-8" are supported and installed on your system. perl: warning: Falling back to a fallback locale ("en_US.UTF-8"). locale: Cannot set LC_ALL to default locale: No such file or directory Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts. Removed /etc/systemd/system/multi-user.target.wants/wazuh-manager.service. Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.4' (RSA) to the list of known hosts. Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts. stderr_lines: stdout: |- ============================= test session starts ============================== platform linux -- Python 3.10.12, pytest-8.1.0, pluggy-1.4.0 -- /home/akim/Desktop/venvs/deplo_test/bin/python3 cachedir: .pytest_cache rootdir: /home/akim/Desktop/wazuh-qa/deployability/modules plugins: testinfra-6.0.0, testinfra-10.1.0 collecting ... collected 2 items modules/testing/tests/test_manager/test_uninstall.py::test_uninstall systemctl status wazuh-manager systemctl status wazuh-manager systemctl status wazuh-manager uname sudo find /boot -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg sudo find /usr/bin -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg sudo find /root -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg sudo find /usr/sbin -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg sudo find /boot -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg sudo find /usr/bin -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg sudo find /root -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg sudo find /usr/sbin -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg /root added [] modified [] removed [] /usr/bin added [] modified [] removed [] /usr/sbin added [] modified [] removed [] /boot added [] modified [] removed [] uname sudo find /boot -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg sudo find /usr/bin -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg sudo find /root -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg sudo find /usr/sbin -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg sudo find /boot -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg sudo find /usr/bin -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg sudo find /root -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg sudo find /usr/sbin -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg /root added [] modified [] removed [] /usr/bin added [] modified [] removed [] /usr/sbin added [] modified [] removed [] /boot added [] modified [] removed [] uname sudo find /boot -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg sudo find /usr/bin -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg sudo find /root -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg sudo find /usr/sbin -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg sudo find /boot -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg sudo find /usr/bin -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg sudo find /root -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg sudo find /usr/sbin -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg /root added [] modified [] removed [] /usr/bin added [] modified [] removed [] /usr/sbin added [] modified [] removed [] /boot added [] modified [] removed [] PASSED modules/testing/tests/test_manager/test_uninstall.py::test_manager_uninstalled_directory test -d /var/ossec && echo "true" || echo "false" test -d /var/ossec && echo "true" || echo "false" test -d /var/ossec && echo "true" || echo "false" PASSED =============================== warnings summary =============================== modules/provision/models.py:65 /home/akim/Desktop/wazuh-qa/deployability/modules/provision/models.py:65: 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', pre=True) modules/provision/models.py:73 /home/akim/Desktop/wazuh-qa/deployability/modules/provision/models.py:73: 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('uninstall', pre=True) -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html =================== 2 passed, 2 warnings in 82.04s (0:01:22) =================== stdout_lines: PLAY RECAP ********************************************************************* localhost : ok=2 changed=1 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 [2024-03-22 14:18:13] [DEBUG] ANSIBLE: Playbook [{'hosts': 'localhost', 'become': True, 'become_user': 'akim', 'tasks': [{'name': 'Test uninstall for manager', 'command': "python3 -m pytest modules/testing/tests/test_manager/test_uninstall.py -v --wazuh_version=4.7.3 --wazuh_revision=40714 --component=manager --dependencies='{wazuh-1: /tmp/dtt1-poc/manager-linux-centos-8-amd64/inventory.yml}' --targets='{wazuh-1: /tmp/dtt1-poc/manager-linux-centos-7-amd64/inventory.yml, wazuh-2: /tmp/dtt1-poc/manager-linux-centos-8-amd64/inventory.yml, wazuh-3: /tmp/dtt1-poc/manager-linux-debian-10-amd64/inventory.yml}' -s", 'args': {'chdir': '/home/akim/Desktop/wazuh-qa/deployability'}}]}] finished with status {'skipped': {}, 'ok': {'localhost': 2}, 'dark': {}, 'failures': {}, 'ignored': {}, 'rescued': {}, 'processed': {'localhost': 1}, 'changed': {'localhost': 1}} [2024-03-22 14:18:13] [DEBUG] ANSIBLE: Using inventory: {'all': {'hosts': {'192.168.57.3': {'ansible_port': 22, 'ansible_user': 'vagrant', 'ansible_ssh_private_key_file': '/tmp/wazuh-qa/VAGRANT-2324C62A-355C-4560-B667-A3517111B664/instance_key'}}}} [2024-03-22 14:18:13] [DEBUG] ANSIBLE: Running playbook: /home/akim/Desktop/wazuh-qa/deployability/modules/testing/playbooks/cleanup.yml No config file found; using defaults PLAY [all] ********************************************************************* TASK [Gathering Facts] ********************************************************* ok: [192.168.57.3] TASK [Clean test directory] **************************************************** ok: [192.168.57.3] => changed=false path: /tmp/tests state: absent PLAY RECAP ********************************************************************* 192.168.57.3 : ok=2 changed=0 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 [2024-03-22 14:18:16] [DEBUG] ANSIBLE: Playbook /home/akim/Desktop/wazuh-qa/deployability/modules/testing/playbooks/cleanup.yml finished with status {'skipped': {}, 'ok': {'192.168.57.3': 2}, 'dark': {}, 'failures': {}, 'ignored': {}, 'rescued': {}, 'processed': {'192.168.57.3': 1}, 'changed': {}} [2024-03-22 14:18:16] [DEBUG] ANSIBLE: Using inventory: {'all': {'hosts': {'192.168.57.3': {'ansible_port': 22, 'ansible_user': 'vagrant', 'ansible_ssh_private_key_file': '/tmp/wazuh-qa/VAGRANT-2324C62A-355C-4560-B667-A3517111B664/instance_key'}}}} [2024-03-22 14:18:16] [DEBUG] ANSIBLE: Running playbook: /home/akim/Desktop/wazuh-qa/deployability/modules/testing/playbooks/cleanup.yml No config file found; using defaults PLAY [all] ********************************************************************* TASK [Gathering Facts] ********************************************************* ok: [192.168.57.3] TASK [Clean test directory] **************************************************** ok: [192.168.57.3] => changed=false path: /tmp/tests state: absent PLAY RECAP ********************************************************************* 192.168.57.3 : ok=2 changed=0 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 [2024-03-22 14:18:18] [DEBUG] ANSIBLE: Playbook /home/akim/Desktop/wazuh-qa/deployability/modules/testing/playbooks/cleanup.yml finished with status {'skipped': {}, 'ok': {'192.168.57.3': 2}, 'dark': {}, 'failures': {}, 'ignored': {}, 'rescued': {}, 'processed': {'192.168.57.3': 1}, 'changed': {}} [2024-03-22 14:18:18] [DEBUG] ANSIBLE: Using inventory: {'all': {'hosts': {'192.168.57.3': {'ansible_port': 22, 'ansible_user': 'vagrant', 'ansible_ssh_private_key_file': '/tmp/wazuh-qa/VAGRANT-2324C62A-355C-4560-B667-A3517111B664/instance_key'}}}} [2024-03-22 14:18:18] [DEBUG] ANSIBLE: Running playbook: /home/akim/Desktop/wazuh-qa/deployability/modules/testing/playbooks/cleanup.yml No config file found; using defaults PLAY [all] ********************************************************************* TASK [Gathering Facts] ********************************************************* ok: [192.168.57.3] TASK [Clean test directory] **************************************************** ok: [192.168.57.3] => changed=false path: /tmp/tests state: absent PLAY RECAP ********************************************************************* 192.168.57.3 : ok=2 changed=0 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 [2024-03-22 14:18:21] [DEBUG] ANSIBLE: Playbook /home/akim/Desktop/wazuh-qa/deployability/modules/testing/playbooks/cleanup.yml finished with status {'skipped': {}, 'ok': {'192.168.57.3': 2}, 'dark': {}, 'failures': {}, 'ignored': {}, 'rescued': {}, 'processed': {'192.168.57.3': 1}, 'changed': {}} (deplo_test) akim@akim-PC:~/Desktop/wazuh-qa/deployability$ ```
Debian-11 : Debian-12 : Ubuntu-20.04 :green_circle: ```bash (deplo_test) akim@akim-PC:~/Desktop/wazuh-qa/deployability$ python3 modules/testing/main.py --wazuh-revision '40714' --wazuh-version '4.7.3' --component 'manager' --tests 'install,stop,restart,uninstall' --targets '{"wazuh-1":"/tmp/dtt1-poc/manager-linux-debian-11-amd64/inventory.yml"}' --targets '{"wazuh-2":"/tmp/dtt1-poc/manager-linux-debian-12-amd64/inventory.yml"}' --targets '{"wazuh-3":"/tmp/dtt1-poc/manager-linux-ubuntu-20.04-amd64/inventory.yml" }' --dependencies '{"wazuh-1":"/tmp/dtt1-poc/manager-linux-ubuntu-20.04-amd64/inventory.yml"}' [2024-03-22 15:37:06] [INFO] TESTER: Running tests for 192.168.57.3 [2024-03-22 15:37:06] [INFO] TESTER: Running tests for 192.168.57.4 [2024-03-22 15:37:06] [INFO] TESTER: Running tests for 192.168.57.5 [2024-03-22 15:37:06] [INFO] TESTER: Dependencies 192.168.57.5 [2024-03-22 15:37:06] [DEBUG] TESTER: Using extra vars: {'component': 'manager', 'wazuh_version': '4.7.3', 'wazuh_revision': '40714', 'wazuh_branch': None, 'working_dir': '/tmp/tests', 'hosts_ip': ['192.168.57.3', '192.168.57.4', '192.168.57.5'], 'targets': '{wazuh-1: /tmp/dtt1-poc/manager-linux-debian-11-amd64/inventory.yml, wazuh-2: /tmp/dtt1-poc/manager-linux-debian-12-amd64/inventory.yml, wazuh-3: /tmp/dtt1-poc/manager-linux-ubuntu-20.04-amd64/inventory.yml}', 'dependencies': '{wazuh-1: /tmp/dtt1-poc/manager-linux-ubuntu-20.04-amd64/inventory.yml}', 'local_host_path': '/home/akim/Desktop/wazuh-qa/deployability', 'current_user': 'akim'} [2024-03-22 15:37:06] [DEBUG] ANSIBLE: Rendering template /home/akim/Desktop/wazuh-qa/deployability/modules/testing/playbooks/setup.yml [2024-03-22 15:37:06] [DEBUG] ANSIBLE: Using inventory: {'all': {'hosts': {'192.168.57.3': {'ansible_port': 22, 'ansible_user': 'vagrant', 'ansible_ssh_private_key_file': '/tmp/wazuh-qa/VAGRANT-D8D0B266-73DC-4911-9C70-F886BAB8CD86/instance_key'}}}} [2024-03-22 15:37:06] [DEBUG] ANSIBLE: Running playbook: [{'hosts': 'localhost', 'become': True, 'become_user': 'akim', 'tasks': [{'name': 'Cleaning old key ssh-keygen registries', 'ansible.builtin.command': {'cmd': "ssh-keygen -f /home/akim/.ssh/known_hosts -R ''"}, 'loop': ['192.168.57.3', '192.168.57.4', '192.168.57.5']}]}] No config file found; using defaults PLAY [localhost] *************************************************************** TASK [Gathering Facts] ********************************************************* ok: [localhost] TASK [Cleaning old key ssh-keygen registries] ********************************** changed: [localhost] => (item=192.168.57.3) => changed=true ansible_loop_var: item cmd: - ssh-keygen - -f - /home/akim/.ssh/known_hosts - -R - '' delta: '0:00:00.010504' end: '2024-03-22 15:37:11.991075' item: 192.168.57.3 msg: '' rc: 0 start: '2024-03-22 15:37:11.980571' stderr: Host not found in /home/akim/.ssh/known_hosts stderr_lines: stdout: '' stdout_lines: changed: [localhost] => (item=192.168.57.4) => changed=true ansible_loop_var: item cmd: - ssh-keygen - -f - /home/akim/.ssh/known_hosts - -R - '' delta: '0:00:00.009536' end: '2024-03-22 15:37:12.172964' item: 192.168.57.4 msg: '' rc: 0 start: '2024-03-22 15:37:12.163428' stderr: Host not found in /home/akim/.ssh/known_hosts stderr_lines: stdout: '' stdout_lines: changed: [localhost] => (item=192.168.57.5) => changed=true ansible_loop_var: item cmd: - ssh-keygen - -f - /home/akim/.ssh/known_hosts - -R - '' delta: '0:00:00.010199' end: '2024-03-22 15:37:12.359302' item: 192.168.57.5 msg: '' rc: 0 start: '2024-03-22 15:37:12.349103' stderr: Host not found in /home/akim/.ssh/known_hosts stderr_lines: stdout: '' stdout_lines: PLAY RECAP ********************************************************************* localhost : ok=2 changed=1 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 [2024-03-22 15:37:12] [DEBUG] ANSIBLE: Playbook [{'hosts': 'localhost', 'become': True, 'become_user': 'akim', 'tasks': [{'name': 'Cleaning old key ssh-keygen registries', 'ansible.builtin.command': {'cmd': "ssh-keygen -f /home/akim/.ssh/known_hosts -R ''"}, 'loop': ['192.168.57.3', '192.168.57.4', '192.168.57.5']}]}] finished with status {'skipped': {}, 'ok': {'localhost': 2}, 'dark': {}, 'failures': {}, 'ignored': {}, 'rescued': {}, 'processed': {'localhost': 1}, 'changed': {'localhost': 1}} [2024-03-22 15:37:12] [DEBUG] ANSIBLE: Rendering template /home/akim/Desktop/wazuh-qa/deployability/modules/testing/playbooks/test.yml [2024-03-22 15:37:12] [DEBUG] ANSIBLE: Using inventory: {'all': {'hosts': {'192.168.57.3': {'ansible_port': 22, 'ansible_user': 'vagrant', 'ansible_ssh_private_key_file': '/tmp/wazuh-qa/VAGRANT-D8D0B266-73DC-4911-9C70-F886BAB8CD86/instance_key'}}}} [2024-03-22 15:37:12] [DEBUG] ANSIBLE: Running playbook: [{'hosts': 'localhost', 'become': True, 'become_user': 'akim', 'tasks': [{'name': 'Test install for manager', 'command': "python3 -m pytest modules/testing/tests/test_manager/test_install.py -v --wazuh_version=4.7.3 --wazuh_revision=40714 --component=manager --dependencies='{wazuh-1: /tmp/dtt1-poc/manager-linux-ubuntu-20.04-amd64/inventory.yml}' --targets='{wazuh-1: /tmp/dtt1-poc/manager-linux-debian-11-amd64/inventory.yml, wazuh-2: /tmp/dtt1-poc/manager-linux-debian-12-amd64/inventory.yml, wazuh-3: /tmp/dtt1-poc/manager-linux-ubuntu-20.04-amd64/inventory.yml}' -s", 'args': {'chdir': '/home/akim/Desktop/wazuh-qa/deployability'}}]}] No config file found; using defaults PLAY [localhost] *************************************************************** TASK [Gathering Facts] ********************************************************* ok: [localhost] TASK [Test install for manager] ************************************************ changed: [localhost] => changed=true cmd: - python3 - -m - pytest - modules/testing/tests/test_manager/test_install.py - -v - --wazuh_version=4.7.3 - --wazuh_revision=40714 - --component=manager - '--dependencies={wazuh-1: /tmp/dtt1-poc/manager-linux-ubuntu-20.04-amd64/inventory.yml}' - '--targets={wazuh-1: /tmp/dtt1-poc/manager-linux-debian-11-amd64/inventory.yml, wazuh-2: /tmp/dtt1-poc/manager-linux-debian-12-amd64/inventory.yml, wazuh-3: /tmp/dtt1-poc/manager-linux-ubuntu-20.04-amd64/inventory.yml}' - -s delta: '0:13:40.766136' end: '2024-03-22 15:50:56.614340' msg: '' rc: 0 start: '2024-03-22 15:37:15.848204' stderr: |- /home/akim/Desktop/venvs/deplo_test/lib/python3.10/site-packages/_testinfra_renamed.py:5: DeprecationWarning: testinfra package has been renamed to pytest-testinfra. Please `pip install pytest-testinfra` and `pip uninstall testinfra` and update your package requirements to avoid this message warnings.warn(( Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts. Failed to stop firewalld.service: Unit firewalld.service not loaded. Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts. Failed to disable unit: Unit file firewalld.service does not exist. Warning: Permanently added '192.168.57.4' (ED25519) to the list of known hosts. Failed to stop firewalld.service: Unit firewalld.service not loaded. Warning: Permanently added '192.168.57.4' (ED25519) to the list of known hosts. Failed to disable unit: Unit file firewalld.service does not exist. Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts. Failed to stop firewalld.service: Unit firewalld.service not loaded. Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts. Failed to disable unit: Unit file firewalld.service does not exist. Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts. --2024-03-22 14:37:20-- https://packages.wazuh.com/4.7/wazuh-install.sh Resolving packages.wazuh.com (packages.wazuh.com)... 18.154.48.93, 18.154.48.117, 18.154.48.50, ... Connecting to packages.wazuh.com (packages.wazuh.com)|18.154.48.93|:443... connected. HTTP request sent, awaiting response... 200 OK Length: 165734 (162K) [application/x-sh] Saving to: 'wazuh-install.sh' 0K .......... .......... .......... .......... .......... 30% 1.38M 0s 50K .......... .......... .......... .......... .......... 61% 1.07M 0s 100K .......... .......... .......... .......... .......... 92% 113M 0s 150K .......... . 100% 31.2K=0.5s 2024-03-22 14:37:20 (351 KB/s) - 'wazuh-install.sh' saved [165734/165734] Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts. --2024-03-22 14:37:20-- https://packages.wazuh.com/4.7/config.yml Resolving packages.wazuh.com (packages.wazuh.com)... 18.154.48.50, 18.154.48.93, 18.154.48.95, ... Connecting to packages.wazuh.com (packages.wazuh.com)|18.154.48.50|:443... connected. HTTP request sent, awaiting response... 200 OK Length: 636 [binary/octet-stream] Saving to: 'config.yml' 0K 100% 1.81M=0s 2024-03-22 14:37:23 (1.81 MB/s) - 'config.yml' saved [636/636] Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.4' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.4' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts. --2024-03-22 14:40:20-- https://packages.wazuh.com/4.7/wazuh-install.sh Resolving packages.wazuh.com (packages.wazuh.com)... 18.154.48.117, 18.154.48.95, 18.154.48.50, ... Connecting to packages.wazuh.com (packages.wazuh.com)|18.154.48.117|:443... connected. HTTP request sent, awaiting response... 200 OK Length: 165734 (162K) [application/x-sh] Saving to: 'wazuh-install.sh.1' 0K .......... .......... .......... .......... .......... 30% 396K 0s 50K .......... .......... .......... .......... .......... 61% 43.7K 1s 100K .......... .......... .......... .......... .......... 92% 10.0M 0s 150K .......... . 100% 93.6M=1.3s 2024-03-22 14:40:21 (127 KB/s) - 'wazuh-install.sh.1' saved [165734/165734] Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.4' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.4' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.4' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.4' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.4' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.4' (ED25519) to the list of known hosts. --2024-03-22 14:43:38-- https://packages.wazuh.com/4.7/wazuh-install.sh Resolving packages.wazuh.com (packages.wazuh.com)... 18.154.48.117, 18.154.48.95, 18.154.48.93, ... Connecting to packages.wazuh.com (packages.wazuh.com)|18.154.48.117|:443... connected. HTTP request sent, awaiting response... 200 OK Length: 165734 (162K) [application/x-sh] Saving to: 'wazuh-install.sh' 0K .......... .......... .......... .......... .......... 30% 2.51M 0s 50K .......... .......... .......... .......... .......... 61% 2.45M 0s 100K .......... .......... .......... .......... .......... 92% 3.95M 0s 150K .......... . 100% 28.7M=0.05s 2024-03-22 14:43:38 (3.03 MB/s) - 'wazuh-install.sh' saved [165734/165734] Warning: Permanently added '192.168.57.4' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.4' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.4' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.4' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.4' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.4' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.4' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.4' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.4' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.4' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.4' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.4' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.4' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.4' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.4' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.4' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.4' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.4' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.4' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.4' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.4' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.4' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts. stderr_lines: stdout: |- ============================= test session starts ============================== platform linux -- Python 3.10.12, pytest-8.1.0, pluggy-1.4.0 -- /home/akim/Desktop/venvs/deplo_test/bin/python3 cachedir: .pytest_cache rootdir: /home/akim/Desktop/wazuh-qa/deployability/modules plugins: testinfra-6.0.0, testinfra-10.1.0 collecting ... collected 5 items modules/testing/tests/test_manager/test_install.py::test_installation pwd pwd pwd chmod +rw wazuh-install-files.tar chmod 600 wazuh-install-files.tar chmod 600 wazuh-install-files.tar pwd pwd chmod +rw wazuh-install-files.tar chmod 600 wazuh-install-files.tar chmod 600 wazuh-install-files.tar uname sudo find /boot -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg sudo find /usr/bin -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg sudo find /root -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg sudo find /usr/sbin -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg sudo find /boot -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg sudo find /usr/bin -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg sudo find /root -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg sudo find /usr/sbin -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg /root added [] modified [] removed [] /usr/bin added [] modified [] removed [] /usr/sbin added [] modified [] removed [] /boot added [] modified [] removed [] uname sudo find /boot -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg sudo find /usr/bin -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg sudo find /root -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg sudo find /usr/sbin -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg sudo find /boot -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg sudo find /usr/bin -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg sudo find /root -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg sudo find /usr/sbin -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg /root added [] modified [] removed [] /usr/bin added [] modified [] removed [] /usr/sbin added [] modified [] removed [] /boot added [] modified [] removed [] uname sudo find /boot -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg sudo find /usr/bin -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg sudo find /root -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg sudo find /usr/sbin -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg sudo find /boot -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg sudo find /usr/bin -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg sudo find /root -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg sudo find /usr/sbin -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg /root added [] modified [] removed [] /usr/bin added [] modified [] removed [] /usr/sbin added [] modified [] removed [] /boot added [] modified [] removed [] /var/ossec/bin/cluster_control -l PASSED modules/testing/tests/test_manager/test_install.py::test_manager_status systemctl status wazuh-manager systemctl status wazuh-manager systemctl status wazuh-manager PASSED modules/testing/tests/test_manager/test_install.py::test_manager_version /var/ossec/bin/wazuh-control info -v pwd test -f /home/vagrant/wazuh-install-files/wazuh-passwords.txt && echo "true" || echo "false" tar -xvf wazuh-install-files.tar grep api_password wazuh-install-files/wazuh-passwords.txt | head -n 1 | awk '{print $NF}' /var/ossec/bin/wazuh-control info -v pwd test -f /home/vagrant/wazuh-install-files/wazuh-passwords.txt && echo "true" || echo "false" tar -xvf wazuh-install-files.tar grep api_password wazuh-install-files/wazuh-passwords.txt | head -n 1 | awk '{print $NF}' /var/ossec/bin/wazuh-control info -v pwd test -f /home/vagrant/wazuh-install-files/wazuh-passwords.txt && echo "true" || echo "false" tar -xvf wazuh-install-files.tar grep api_password wazuh-install-files/wazuh-passwords.txt | head -n 1 | awk '{print $NF}' PASSED modules/testing/tests/test_manager/test_install.py::test_manager_revision /var/ossec/bin/wazuh-control info -r pwd test -f /home/vagrant/wazuh-install-files/wazuh-passwords.txt && echo "true" || echo "false" grep api_password wazuh-install-files/wazuh-passwords.txt | head -n 1 | awk '{print $NF}' /var/ossec/bin/wazuh-control info -r pwd test -f /home/vagrant/wazuh-install-files/wazuh-passwords.txt && echo "true" || echo "false" grep api_password wazuh-install-files/wazuh-passwords.txt | head -n 1 | awk '{print $NF}' /var/ossec/bin/wazuh-control info -r pwd test -f /home/vagrant/wazuh-install-files/wazuh-passwords.txt && echo "true" || echo "false" grep api_password wazuh-install-files/wazuh-passwords.txt | head -n 1 | awk '{print $NF}' PASSED modules/testing/tests/test_manager/test_install.py::test_manager_installed_directory test -d /var/ossec && echo "true" || echo "false" test -d /var/ossec && echo "true" || echo "false" test -d /var/ossec && echo "true" || echo "false" PASSED =============================== warnings summary =============================== modules/provision/models.py:65 /home/akim/Desktop/wazuh-qa/deployability/modules/provision/models.py:65: 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', pre=True) modules/provision/models.py:73 /home/akim/Desktop/wazuh-qa/deployability/modules/provision/models.py:73: 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('uninstall', pre=True) -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html ================== 5 passed, 2 warnings in 820.04s (0:13:40) =================== stdout_lines: PLAY RECAP ********************************************************************* localhost : ok=2 changed=1 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 [2024-03-22 15:50:56] [DEBUG] ANSIBLE: Playbook [{'hosts': 'localhost', 'become': True, 'become_user': 'akim', 'tasks': [{'name': 'Test install for manager', 'command': "python3 -m pytest modules/testing/tests/test_manager/test_install.py -v --wazuh_version=4.7.3 --wazuh_revision=40714 --component=manager --dependencies='{wazuh-1: /tmp/dtt1-poc/manager-linux-ubuntu-20.04-amd64/inventory.yml}' --targets='{wazuh-1: /tmp/dtt1-poc/manager-linux-debian-11-amd64/inventory.yml, wazuh-2: /tmp/dtt1-poc/manager-linux-debian-12-amd64/inventory.yml, wazuh-3: /tmp/dtt1-poc/manager-linux-ubuntu-20.04-amd64/inventory.yml}' -s", 'args': {'chdir': '/home/akim/Desktop/wazuh-qa/deployability'}}]}] finished with status {'skipped': {}, 'ok': {'localhost': 2}, 'dark': {}, 'failures': {}, 'ignored': {}, 'rescued': {}, 'processed': {'localhost': 1}, 'changed': {'localhost': 1}} [2024-03-22 15:50:56] [DEBUG] ANSIBLE: Rendering template /home/akim/Desktop/wazuh-qa/deployability/modules/testing/playbooks/test.yml [2024-03-22 15:50:56] [DEBUG] ANSIBLE: Using inventory: {'all': {'hosts': {'192.168.57.3': {'ansible_port': 22, 'ansible_user': 'vagrant', 'ansible_ssh_private_key_file': '/tmp/wazuh-qa/VAGRANT-D8D0B266-73DC-4911-9C70-F886BAB8CD86/instance_key'}}}} [2024-03-22 15:50:56] [DEBUG] ANSIBLE: Running playbook: [{'hosts': 'localhost', 'become': True, 'become_user': 'akim', 'tasks': [{'name': 'Test stop for manager', 'command': "python3 -m pytest modules/testing/tests/test_manager/test_stop.py -v --wazuh_version=4.7.3 --wazuh_revision=40714 --component=manager --dependencies='{wazuh-1: /tmp/dtt1-poc/manager-linux-ubuntu-20.04-amd64/inventory.yml}' --targets='{wazuh-1: /tmp/dtt1-poc/manager-linux-debian-11-amd64/inventory.yml, wazuh-2: /tmp/dtt1-poc/manager-linux-debian-12-amd64/inventory.yml, wazuh-3: /tmp/dtt1-poc/manager-linux-ubuntu-20.04-amd64/inventory.yml}' -s", 'args': {'chdir': '/home/akim/Desktop/wazuh-qa/deployability'}}]}] No config file found; using defaults PLAY [localhost] *************************************************************** TASK [Gathering Facts] ********************************************************* ok: [localhost] TASK [Test stop for manager] *************************************************** changed: [localhost] => changed=true cmd: - python3 - -m - pytest - modules/testing/tests/test_manager/test_stop.py - -v - --wazuh_version=4.7.3 - --wazuh_revision=40714 - --component=manager - '--dependencies={wazuh-1: /tmp/dtt1-poc/manager-linux-ubuntu-20.04-amd64/inventory.yml}' - '--targets={wazuh-1: /tmp/dtt1-poc/manager-linux-debian-11-amd64/inventory.yml, wazuh-2: /tmp/dtt1-poc/manager-linux-debian-12-amd64/inventory.yml, wazuh-3: /tmp/dtt1-poc/manager-linux-ubuntu-20.04-amd64/inventory.yml}' - -s delta: '0:00:41.301194' end: '2024-03-22 15:51:44.130217' msg: '' rc: 0 start: '2024-03-22 15:51:02.829023' stderr: |- /home/akim/Desktop/venvs/deplo_test/lib/python3.10/site-packages/_testinfra_renamed.py:5: DeprecationWarning: testinfra package has been renamed to pytest-testinfra. Please `pip install pytest-testinfra` and `pip uninstall testinfra` and update your package requirements to avoid this message warnings.warn(( Warning: Permanently added '192.168.57.4' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.4' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.4' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts. stderr_lines: stdout: |- ============================= test session starts ============================== platform linux -- Python 3.10.12, pytest-8.1.0, pluggy-1.4.0 -- /home/akim/Desktop/venvs/deplo_test/bin/python3 cachedir: .pytest_cache rootdir: /home/akim/Desktop/wazuh-qa/deployability/modules plugins: testinfra-6.0.0, testinfra-10.1.0 collecting ... collected 1 item modules/testing/tests/test_manager/test_stop.py::test_stop systemctl stop wazuh-manager systemctl stop wazuh-manager systemctl status wazuh-manager systemctl status wazuh-manager systemctl status wazuh-manager PASSEDsystemctl restart wazuh-manager systemctl restart wazuh-manager =============================== warnings summary =============================== modules/provision/models.py:65 /home/akim/Desktop/wazuh-qa/deployability/modules/provision/models.py:65: 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', pre=True) modules/provision/models.py:73 /home/akim/Desktop/wazuh-qa/deployability/modules/provision/models.py:73: 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('uninstall', pre=True) -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html ======================== 1 passed, 2 warnings in 40.68s ======================== stdout_lines: PLAY RECAP ********************************************************************* localhost : ok=2 changed=1 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 [2024-03-22 15:51:44] [DEBUG] ANSIBLE: Playbook [{'hosts': 'localhost', 'become': True, 'become_user': 'akim', 'tasks': [{'name': 'Test stop for manager', 'command': "python3 -m pytest modules/testing/tests/test_manager/test_stop.py -v --wazuh_version=4.7.3 --wazuh_revision=40714 --component=manager --dependencies='{wazuh-1: /tmp/dtt1-poc/manager-linux-ubuntu-20.04-amd64/inventory.yml}' --targets='{wazuh-1: /tmp/dtt1-poc/manager-linux-debian-11-amd64/inventory.yml, wazuh-2: /tmp/dtt1-poc/manager-linux-debian-12-amd64/inventory.yml, wazuh-3: /tmp/dtt1-poc/manager-linux-ubuntu-20.04-amd64/inventory.yml}' -s", 'args': {'chdir': '/home/akim/Desktop/wazuh-qa/deployability'}}]}] finished with status {'skipped': {}, 'ok': {'localhost': 2}, 'dark': {}, 'failures': {}, 'ignored': {}, 'rescued': {}, 'processed': {'localhost': 1}, 'changed': {'localhost': 1}} [2024-03-22 15:51:44] [DEBUG] ANSIBLE: Rendering template /home/akim/Desktop/wazuh-qa/deployability/modules/testing/playbooks/test.yml [2024-03-22 15:51:44] [DEBUG] ANSIBLE: Using inventory: {'all': {'hosts': {'192.168.57.3': {'ansible_port': 22, 'ansible_user': 'vagrant', 'ansible_ssh_private_key_file': '/tmp/wazuh-qa/VAGRANT-D8D0B266-73DC-4911-9C70-F886BAB8CD86/instance_key'}}}} [2024-03-22 15:51:44] [DEBUG] ANSIBLE: Running playbook: [{'hosts': 'localhost', 'become': True, 'become_user': 'akim', 'tasks': [{'name': 'Test restart for manager', 'command': "python3 -m pytest modules/testing/tests/test_manager/test_restart.py -v --wazuh_version=4.7.3 --wazuh_revision=40714 --component=manager --dependencies='{wazuh-1: /tmp/dtt1-poc/manager-linux-ubuntu-20.04-amd64/inventory.yml}' --targets='{wazuh-1: /tmp/dtt1-poc/manager-linux-debian-11-amd64/inventory.yml, wazuh-2: /tmp/dtt1-poc/manager-linux-debian-12-amd64/inventory.yml, wazuh-3: /tmp/dtt1-poc/manager-linux-ubuntu-20.04-amd64/inventory.yml}' -s", 'args': {'chdir': '/home/akim/Desktop/wazuh-qa/deployability'}}]}] No config file found; using defaults PLAY [localhost] *************************************************************** TASK [Gathering Facts] ********************************************************* ok: [localhost] TASK [Test restart for manager] ************************************************ changed: [localhost] => changed=true cmd: - python3 - -m - pytest - modules/testing/tests/test_manager/test_restart.py - -v - --wazuh_version=4.7.3 - --wazuh_revision=40714 - --component=manager - '--dependencies={wazuh-1: /tmp/dtt1-poc/manager-linux-ubuntu-20.04-amd64/inventory.yml}' - '--targets={wazuh-1: /tmp/dtt1-poc/manager-linux-debian-11-amd64/inventory.yml, wazuh-2: /tmp/dtt1-poc/manager-linux-debian-12-amd64/inventory.yml, wazuh-3: /tmp/dtt1-poc/manager-linux-ubuntu-20.04-amd64/inventory.yml}' - -s delta: '0:00:41.200915' end: '2024-03-22 15:52:31.515143' msg: '' rc: 0 start: '2024-03-22 15:51:50.314228' stderr: |- /home/akim/Desktop/venvs/deplo_test/lib/python3.10/site-packages/_testinfra_renamed.py:5: DeprecationWarning: testinfra package has been renamed to pytest-testinfra. Please `pip install pytest-testinfra` and `pip uninstall testinfra` and update your package requirements to avoid this message warnings.warn(( Warning: Permanently added '192.168.57.4' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.4' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts. stderr_lines: stdout: |- ============================= test session starts ============================== platform linux -- Python 3.10.12, pytest-8.1.0, pluggy-1.4.0 -- /home/akim/Desktop/venvs/deplo_test/bin/python3 cachedir: .pytest_cache rootdir: /home/akim/Desktop/wazuh-qa/deployability/modules plugins: testinfra-6.0.0, testinfra-10.1.0 collecting ... collected 1 item modules/testing/tests/test_manager/test_restart.py::test_restart systemctl restart wazuh-manager systemctl restart wazuh-manager systemctl status wazuh-manager systemctl status wazuh-manager systemctl status wazuh-manager PASSED =============================== warnings summary =============================== modules/provision/models.py:65 /home/akim/Desktop/wazuh-qa/deployability/modules/provision/models.py:65: 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', pre=True) modules/provision/models.py:73 /home/akim/Desktop/wazuh-qa/deployability/modules/provision/models.py:73: 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('uninstall', pre=True) -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html ======================== 1 passed, 2 warnings in 40.54s ======================== stdout_lines: PLAY RECAP ********************************************************************* localhost : ok=2 changed=1 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 [2024-03-22 15:52:31] [DEBUG] ANSIBLE: Playbook [{'hosts': 'localhost', 'become': True, 'become_user': 'akim', 'tasks': [{'name': 'Test restart for manager', 'command': "python3 -m pytest modules/testing/tests/test_manager/test_restart.py -v --wazuh_version=4.7.3 --wazuh_revision=40714 --component=manager --dependencies='{wazuh-1: /tmp/dtt1-poc/manager-linux-ubuntu-20.04-amd64/inventory.yml}' --targets='{wazuh-1: /tmp/dtt1-poc/manager-linux-debian-11-amd64/inventory.yml, wazuh-2: /tmp/dtt1-poc/manager-linux-debian-12-amd64/inventory.yml, wazuh-3: /tmp/dtt1-poc/manager-linux-ubuntu-20.04-amd64/inventory.yml}' -s", 'args': {'chdir': '/home/akim/Desktop/wazuh-qa/deployability'}}]}] finished with status {'skipped': {}, 'ok': {'localhost': 2}, 'dark': {}, 'failures': {}, 'ignored': {}, 'rescued': {}, 'processed': {'localhost': 1}, 'changed': {'localhost': 1}} [2024-03-22 15:52:31] [DEBUG] ANSIBLE: Rendering template /home/akim/Desktop/wazuh-qa/deployability/modules/testing/playbooks/test.yml [2024-03-22 15:52:31] [DEBUG] ANSIBLE: Using inventory: {'all': {'hosts': {'192.168.57.3': {'ansible_port': 22, 'ansible_user': 'vagrant', 'ansible_ssh_private_key_file': '/tmp/wazuh-qa/VAGRANT-D8D0B266-73DC-4911-9C70-F886BAB8CD86/instance_key'}}}} [2024-03-22 15:52:31] [DEBUG] ANSIBLE: Running playbook: [{'hosts': 'localhost', 'become': True, 'become_user': 'akim', 'tasks': [{'name': 'Test uninstall for manager', 'command': "python3 -m pytest modules/testing/tests/test_manager/test_uninstall.py -v --wazuh_version=4.7.3 --wazuh_revision=40714 --component=manager --dependencies='{wazuh-1: /tmp/dtt1-poc/manager-linux-ubuntu-20.04-amd64/inventory.yml}' --targets='{wazuh-1: /tmp/dtt1-poc/manager-linux-debian-11-amd64/inventory.yml, wazuh-2: /tmp/dtt1-poc/manager-linux-debian-12-amd64/inventory.yml, wazuh-3: /tmp/dtt1-poc/manager-linux-ubuntu-20.04-amd64/inventory.yml}' -s", 'args': {'chdir': '/home/akim/Desktop/wazuh-qa/deployability'}}]}] No config file found; using defaults PLAY [localhost] *************************************************************** TASK [Gathering Facts] ********************************************************* ok: [localhost] TASK [Test uninstall for manager] ********************************************** changed: [localhost] => changed=true cmd: - python3 - -m - pytest - modules/testing/tests/test_manager/test_uninstall.py - -v - --wazuh_version=4.7.3 - --wazuh_revision=40714 - --component=manager - '--dependencies={wazuh-1: /tmp/dtt1-poc/manager-linux-ubuntu-20.04-amd64/inventory.yml}' - '--targets={wazuh-1: /tmp/dtt1-poc/manager-linux-debian-11-amd64/inventory.yml, wazuh-2: /tmp/dtt1-poc/manager-linux-debian-12-amd64/inventory.yml, wazuh-3: /tmp/dtt1-poc/manager-linux-ubuntu-20.04-amd64/inventory.yml}' - -s delta: '0:00:44.164926' end: '2024-03-22 15:53:21.889303' msg: '' rc: 0 start: '2024-03-22 15:52:37.724377' stderr: |- /home/akim/Desktop/venvs/deplo_test/lib/python3.10/site-packages/_testinfra_renamed.py:5: DeprecationWarning: testinfra package has been renamed to pytest-testinfra. Please `pip install pytest-testinfra` and `pip uninstall testinfra` and update your package requirements to avoid this message warnings.warn(( Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.4' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts. apt-listchanges: Can't set locale; make sure $LC_* and $LANG are correct! perl: warning: Setting locale failed. perl: warning: Please check that your locale settings: LANGUAGE = (unset), LC_ALL = (unset), LC_TIME = "es_ES.UTF-8", LC_MONETARY = "es_ES.UTF-8", LC_ADDRESS = "es_ES.UTF-8", LC_TELEPHONE = "es_ES.UTF-8", LC_NAME = "es_ES.UTF-8", ```
Ubuntu-22.04 : Oracle-9 : Amazon-2 :green_circle: ```bash (deplo_test) akim@akim-PC:~/Desktop/wazuh-qa/deployability$ python3 modules/testing/main.py --wazuh-revision '40714' --wazuh-version '4.7.3' --component 'manager' --tests 'install,stop,restart,uninstall' --targets '{"wazuh-1":"/tmp/dtt1-poc/manager-linux-ubuntu-22.04-amd64/inventory.yml"}' --targets '{"wazuh-2":"/tmp/dtt1-poc/manager-linux-oracle-9-amd64/inventory.yml"}' --targets '{"wazuh-3":"/tmp/dtt1-poc/manager-linux-amazon-2-amd64/inventory.yml" }' --dependencies '{"wazuh-1":"/tmp/dtt1-poc/manager-linux-ubuntu-22.04-amd64/inventory.yml"}' [2024-03-22 16:21:08] [INFO] TESTER: Running tests for 192.168.57.3 [2024-03-22 16:21:08] [INFO] TESTER: Running tests for 192.168.57.4 [2024-03-22 16:21:08] [INFO] TESTER: Running tests for 192.168.57.5 [2024-03-22 16:21:08] [INFO] TESTER: Dependencies 192.168.57.3 [2024-03-22 16:21:08] [DEBUG] TESTER: Using extra vars: {'component': 'manager', 'wazuh_version': '4.7.3', 'wazuh_revision': '40714', 'wazuh_branch': None, 'working_dir': '/tmp/tests', 'hosts_ip': ['192.168.57.3', '192.168.57.4', '192.168.57.5'], 'targets': '{wazuh-1: /tmp/dtt1-poc/manager-linux-ubuntu-22.04-amd64/inventory.yml, wazuh-2: /tmp/dtt1-poc/manager-linux-oracle-9-amd64/inventory.yml, wazuh-3: /tmp/dtt1-poc/manager-linux-amazon-2-amd64/inventory.yml}', 'dependencies': '{wazuh-1: /tmp/dtt1-poc/manager-linux-ubuntu-22.04-amd64/inventory.yml}', 'local_host_path': '/home/akim/Desktop/wazuh-qa/deployability', 'current_user': 'akim'} [2024-03-22 16:21:08] [DEBUG] ANSIBLE: Rendering template /home/akim/Desktop/wazuh-qa/deployability/modules/testing/playbooks/setup.yml [2024-03-22 16:21:08] [DEBUG] ANSIBLE: Using inventory: {'all': {'hosts': {'192.168.57.3': {'ansible_port': 22, 'ansible_user': 'vagrant', 'ansible_ssh_private_key_file': '/tmp/wazuh-qa/VAGRANT-F5271D10-6272-4A66-8A4F-9A7099490706/instance_key'}}}} [2024-03-22 16:21:08] [DEBUG] ANSIBLE: Running playbook: [{'hosts': 'localhost', 'become': True, 'become_user': 'akim', 'tasks': [{'name': 'Cleaning old key ssh-keygen registries', 'ansible.builtin.command': {'cmd': "ssh-keygen -f /home/akim/.ssh/known_hosts -R ''"}, 'loop': ['192.168.57.3', '192.168.57.4', '192.168.57.5']}]}] No config file found; using defaults PLAY [localhost] *************************************************************** TASK [Gathering Facts] ********************************************************* ok: [localhost] TASK [Cleaning old key ssh-keygen registries] ********************************** changed: [localhost] => (item=192.168.57.3) => changed=true ansible_loop_var: item cmd: - ssh-keygen - -f - /home/akim/.ssh/known_hosts - -R - '' delta: '0:00:00.010041' end: '2024-03-22 16:21:13.986712' item: 192.168.57.3 msg: '' rc: 0 start: '2024-03-22 16:21:13.976671' stderr: Host not found in /home/akim/.ssh/known_hosts stderr_lines: stdout: '' stdout_lines: changed: [localhost] => (item=192.168.57.4) => changed=true ansible_loop_var: item cmd: - ssh-keygen - -f - /home/akim/.ssh/known_hosts - -R - '' delta: '0:00:00.010390' end: '2024-03-22 16:21:14.170676' item: 192.168.57.4 msg: '' rc: 0 start: '2024-03-22 16:21:14.160286' stderr: Host not found in /home/akim/.ssh/known_hosts stderr_lines: stdout: '' stdout_lines: changed: [localhost] => (item=192.168.57.5) => changed=true ansible_loop_var: item cmd: - ssh-keygen - -f - /home/akim/.ssh/known_hosts - -R - '' delta: '0:00:00.010389' end: '2024-03-22 16:21:14.370804' item: 192.168.57.5 msg: '' rc: 0 start: '2024-03-22 16:21:14.360415' stderr: Host not found in /home/akim/.ssh/known_hosts stderr_lines: stdout: '' stdout_lines: PLAY RECAP ********************************************************************* localhost : ok=2 changed=1 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 [2024-03-22 16:21:14] [DEBUG] ANSIBLE: Playbook [{'hosts': 'localhost', 'become': True, 'become_user': 'akim', 'tasks': [{'name': 'Cleaning old key ssh-keygen registries', 'ansible.builtin.command': {'cmd': "ssh-keygen -f /home/akim/.ssh/known_hosts -R ''"}, 'loop': ['192.168.57.3', '192.168.57.4', '192.168.57.5']}]}] finished with status {'skipped': {}, 'ok': {'localhost': 2}, 'dark': {}, 'failures': {}, 'ignored': {}, 'rescued': {}, 'processed': {'localhost': 1}, 'changed': {'localhost': 1}} [2024-03-22 16:21:14] [DEBUG] ANSIBLE: Rendering template /home/akim/Desktop/wazuh-qa/deployability/modules/testing/playbooks/test.yml [2024-03-22 16:21:14] [DEBUG] ANSIBLE: Using inventory: {'all': {'hosts': {'192.168.57.3': {'ansible_port': 22, 'ansible_user': 'vagrant', 'ansible_ssh_private_key_file': '/tmp/wazuh-qa/VAGRANT-F5271D10-6272-4A66-8A4F-9A7099490706/instance_key'}}}} [2024-03-22 16:21:14] [DEBUG] ANSIBLE: Running playbook: [{'hosts': 'localhost', 'become': True, 'become_user': 'akim', 'tasks': [{'name': 'Test install for manager', 'command': "python3 -m pytest modules/testing/tests/test_manager/test_install.py -v --wazuh_version=4.7.3 --wazuh_revision=40714 --component=manager --dependencies='{wazuh-1: /tmp/dtt1-poc/manager-linux-ubuntu-22.04-amd64/inventory.yml}' --targets='{wazuh-1: /tmp/dtt1-poc/manager-linux-ubuntu-22.04-amd64/inventory.yml, wazuh-2: /tmp/dtt1-poc/manager-linux-oracle-9-amd64/inventory.yml, wazuh-3: /tmp/dtt1-poc/manager-linux-amazon-2-amd64/inventory.yml}' -s", 'args': {'chdir': '/home/akim/Desktop/wazuh-qa/deployability'}}]}] No config file found; using defaults PLAY [localhost] *************************************************************** TASK [Gathering Facts] ********************************************************* ok: [localhost] TASK [Test install for manager] ************************************************ changed: [localhost] => changed=true cmd: - python3 - -m - pytest - modules/testing/tests/test_manager/test_install.py - -v - --wazuh_version=4.7.3 - --wazuh_revision=40714 - --component=manager - '--dependencies={wazuh-1: /tmp/dtt1-poc/manager-linux-ubuntu-22.04-amd64/inventory.yml}' - '--targets={wazuh-1: /tmp/dtt1-poc/manager-linux-ubuntu-22.04-amd64/inventory.yml, wazuh-2: /tmp/dtt1-poc/manager-linux-oracle-9-amd64/inventory.yml, wazuh-3: /tmp/dtt1-poc/manager-linux-amazon-2-amd64/inventory.yml}' - -s delta: '0:10:22.795026' end: '2024-03-22 16:31:40.721707' msg: '' rc: 0 start: '2024-03-22 16:21:17.926681' stderr: |- /home/akim/Desktop/venvs/deplo_test/lib/python3.10/site-packages/_testinfra_renamed.py:5: DeprecationWarning: testinfra package has been renamed to pytest-testinfra. Please `pip install pytest-testinfra` and `pip uninstall testinfra` and update your package requirements to avoid this message warnings.warn(( Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts. Failed to stop firewalld.service: Unit firewalld.service not loaded. Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts. Failed to disable unit: Unit file firewalld.service does not exist. Warning: Permanently added '192.168.57.4' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.4' (ED25519) to the list of known hosts. Removed "/etc/systemd/system/multi-user.target.wants/firewalld.service". Removed "/etc/systemd/system/dbus-org.fedoraproject.FirewallD1.service". Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts. Failed to stop firewalld.service: Unit firewalld.service not loaded. Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts. Failed to execute operation: No such file or directory Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.4' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.4' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.4' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.4' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.4' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.4' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.4' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.4' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.4' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.4' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.4' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.4' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.4' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.4' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.4' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.4' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.4' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.4' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.4' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.4' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.4' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.4' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.4' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.4' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.4' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.4' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.4' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.4' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.4' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.4' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts. stderr_lines: stdout: |- ============================= test session starts ============================== platform linux -- Python 3.10.12, pytest-8.1.0, pluggy-1.4.0 -- /home/akim/Desktop/venvs/deplo_test/bin/python3 cachedir: .pytest_cache rootdir: /home/akim/Desktop/wazuh-qa/deployability/modules plugins: testinfra-6.0.0, testinfra-10.1.0 collecting ... collected 5 items modules/testing/tests/test_manager/test_install.py::test_installation pwd pwd pwd chmod +rw wazuh-install-files.tar chmod 600 wazuh-install-files.tar chmod 600 wazuh-install-files.tar pwd pwd chmod +rw wazuh-install-files.tar chmod 600 wazuh-install-files.tar chmod 600 wazuh-install-files.tar uname sudo find /boot -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg sudo find /usr/bin -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg sudo find /root -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg sudo find /usr/sbin -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg sudo find /boot -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg sudo find /usr/bin -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg sudo find /root -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg sudo find /usr/sbin -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg /root added [] modified [] removed [] /usr/bin added [] modified [] removed [] /usr/sbin added [] modified [] removed [] /boot added [] modified [] removed [] uname sudo find /boot -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg sudo find /usr/bin -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg sudo find /root -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg sudo find /usr/sbin -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg sudo find /boot -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg sudo find /usr/bin -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg sudo find /root -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg sudo find /usr/sbin -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg /root added [] modified [] removed [] /usr/bin added [] modified [] removed [] /usr/sbin added [] modified [] removed [] /boot added [] modified [] removed [] uname sudo find /boot -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg sudo find /usr/bin -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg sudo find /root -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg sudo find /usr/sbin -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg sudo find /boot -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg sudo find /usr/bin -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg sudo find /root -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg sudo find /usr/sbin -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg /root added [] modified [] removed [] /usr/bin added [] modified [] removed [] /usr/sbin added [] modified [] removed [] /boot added [] modified [] removed [] /var/ossec/bin/cluster_control -l PASSED modules/testing/tests/test_manager/test_install.py::test_manager_status systemctl status wazuh-manager systemctl status wazuh-manager systemctl status wazuh-manager PASSED modules/testing/tests/test_manager/test_install.py::test_manager_version /var/ossec/bin/wazuh-control info -v pwd test -f /home/vagrant/wazuh-install-files/wazuh-passwords.txt && echo "true" || echo "false" tar -xvf wazuh-install-files.tar grep api_password wazuh-install-files/wazuh-passwords.txt | head -n 1 | awk '{print $NF}' /var/ossec/bin/wazuh-control info -v pwd test -f /home/vagrant/wazuh-install-files/wazuh-passwords.txt && echo "true" || echo "false" tar -xvf wazuh-install-files.tar grep api_password wazuh-install-files/wazuh-passwords.txt | head -n 1 | awk '{print $NF}' /var/ossec/bin/wazuh-control info -v pwd test -f /home/vagrant/wazuh-install-files/wazuh-passwords.txt && echo "true" || echo "false" tar -xvf wazuh-install-files.tar grep api_password wazuh-install-files/wazuh-passwords.txt | head -n 1 | awk '{print $NF}' PASSED modules/testing/tests/test_manager/test_install.py::test_manager_revision /var/ossec/bin/wazuh-control info -r pwd test -f /home/vagrant/wazuh-install-files/wazuh-passwords.txt && echo "true" || echo "false" grep api_password wazuh-install-files/wazuh-passwords.txt | head -n 1 | awk '{print $NF}' /var/ossec/bin/wazuh-control info -r pwd test -f /home/vagrant/wazuh-install-files/wazuh-passwords.txt && echo "true" || echo "false" grep api_password wazuh-install-files/wazuh-passwords.txt | head -n 1 | awk '{print $NF}' /var/ossec/bin/wazuh-control info -r pwd test -f /home/vagrant/wazuh-install-files/wazuh-passwords.txt && echo "true" || echo "false" grep api_password wazuh-install-files/wazuh-passwords.txt | head -n 1 | awk '{print $NF}' PASSED modules/testing/tests/test_manager/test_install.py::test_manager_installed_directory test -d /var/ossec && echo "true" || echo "false" test -d /var/ossec && echo "true" || echo "false" test -d /var/ossec && echo "true" || echo "false" PASSED =============================== warnings summary =============================== modules/provision/models.py:65 /home/akim/Desktop/wazuh-qa/deployability/modules/provision/models.py:65: 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', pre=True) modules/provision/models.py:73 /home/akim/Desktop/wazuh-qa/deployability/modules/provision/models.py:73: 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('uninstall', pre=True) modules/testing/tests/helpers/manager.py:265 modules/testing/tests/helpers/manager.py:265 /home/akim/Desktop/wazuh-qa/deployability/modules/testing/tests/helpers/manager.py:265: DeprecationWarning: invalid escape sequence '\/' f"sed -i 's/node01<\/node_name>/{node_name}<\/node_name>/' {WAZUH_CONF}", modules/testing/tests/helpers/manager.py:266 modules/testing/tests/helpers/manager.py:266 /home/akim/Desktop/wazuh-qa/deployability/modules/testing/tests/helpers/manager.py:266: DeprecationWarning: invalid escape sequence '\/' f"sed -i 's/master<\/node_type>/{node_type}<\/node_type>/' {WAZUH_CONF}", modules/testing/tests/helpers/manager.py:267 modules/testing/tests/helpers/manager.py:267 /home/akim/Desktop/wazuh-qa/deployability/modules/testing/tests/helpers/manager.py:267: DeprecationWarning: invalid escape sequence '\/' f"sed -i 's/<\/key>/{key}<\/key>/' {WAZUH_CONF}", modules/testing/tests/helpers/manager.py:268 modules/testing/tests/helpers/manager.py:268 /home/akim/Desktop/wazuh-qa/deployability/modules/testing/tests/helpers/manager.py:268: DeprecationWarning: invalid escape sequence '\/' f"sed -i 's/NODE_IP<\/node>/{HostInformation.get_internal_ip_from_aws_dns(master_dns)}<\/node>/' {WAZUH_CONF}", modules/testing/tests/helpers/manager.py:269 modules/testing/tests/helpers/manager.py:269 /home/akim/Desktop/wazuh-qa/deployability/modules/testing/tests/helpers/manager.py:269: DeprecationWarning: invalid escape sequence '\/' f"sed -i 's/yes<\/disabled>/{disabled}<\/disabled>/' {WAZUH_CONF}", -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html ================== 5 passed, 12 warnings in 622.08s (0:10:22) ================== stdout_lines: PLAY RECAP ********************************************************************* localhost : ok=2 changed=1 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 [2024-03-22 16:31:41] [DEBUG] ANSIBLE: Playbook [{'hosts': 'localhost', 'become': True, 'become_user': 'akim', 'tasks': [{'name': 'Test install for manager', 'command': "python3 -m pytest modules/testing/tests/test_manager/test_install.py -v --wazuh_version=4.7.3 --wazuh_revision=40714 --component=manager --dependencies='{wazuh-1: /tmp/dtt1-poc/manager-linux-ubuntu-22.04-amd64/inventory.yml}' --targets='{wazuh-1: /tmp/dtt1-poc/manager-linux-ubuntu-22.04-amd64/inventory.yml, wazuh-2: /tmp/dtt1-poc/manager-linux-oracle-9-amd64/inventory.yml, wazuh-3: /tmp/dtt1-poc/manager-linux-amazon-2-amd64/inventory.yml}' -s", 'args': {'chdir': '/home/akim/Desktop/wazuh-qa/deployability'}}]}] finished with status {'skipped': {}, 'ok': {'localhost': 2}, 'dark': {}, 'failures': {}, 'ignored': {}, 'rescued': {}, 'processed': {'localhost': 1}, 'changed': {'localhost': 1}} [2024-03-22 16:31:41] [DEBUG] ANSIBLE: Rendering template /home/akim/Desktop/wazuh-qa/deployability/modules/testing/playbooks/test.yml [2024-03-22 16:31:41] [DEBUG] ANSIBLE: Using inventory: {'all': {'hosts': {'192.168.57.3': {'ansible_port': 22, 'ansible_user': 'vagrant', 'ansible_ssh_private_key_file': '/tmp/wazuh-qa/VAGRANT-F5271D10-6272-4A66-8A4F-9A7099490706/instance_key'}}}} [2024-03-22 16:31:41] [DEBUG] ANSIBLE: Running playbook: [{'hosts': 'localhost', 'become': True, 'become_user': 'akim', 'tasks': [{'name': 'Test stop for manager', 'command': "python3 -m pytest modules/testing/tests/test_manager/test_stop.py -v --wazuh_version=4.7.3 --wazuh_revision=40714 --component=manager --dependencies='{wazuh-1: /tmp/dtt1-poc/manager-linux-ubuntu-22.04-amd64/inventory.yml}' --targets='{wazuh-1: /tmp/dtt1-poc/manager-linux-ubuntu-22.04-amd64/inventory.yml, wazuh-2: /tmp/dtt1-poc/manager-linux-oracle-9-amd64/inventory.yml, wazuh-3: /tmp/dtt1-poc/manager-linux-amazon-2-amd64/inventory.yml}' -s", 'args': {'chdir': '/home/akim/Desktop/wazuh-qa/deployability'}}]}] No config file found; using defaults PLAY [localhost] *************************************************************** TASK [Gathering Facts] ********************************************************* ok: [localhost] TASK [Test stop for manager] *************************************************** changed: [localhost] => changed=true cmd: - python3 - -m - pytest - modules/testing/tests/test_manager/test_stop.py - -v - --wazuh_version=4.7.3 - --wazuh_revision=40714 - --component=manager - '--dependencies={wazuh-1: /tmp/dtt1-poc/manager-linux-ubuntu-22.04-amd64/inventory.yml}' - '--targets={wazuh-1: /tmp/dtt1-poc/manager-linux-ubuntu-22.04-amd64/inventory.yml, wazuh-2: /tmp/dtt1-poc/manager-linux-oracle-9-amd64/inventory.yml, wazuh-3: /tmp/dtt1-poc/manager-linux-amazon-2-amd64/inventory.yml}' - -s delta: '0:00:38.090559' end: '2024-03-22 16:32:25.083741' msg: '' rc: 0 start: '2024-03-22 16:31:46.993182' stderr: |- /home/akim/Desktop/venvs/deplo_test/lib/python3.10/site-packages/_testinfra_renamed.py:5: DeprecationWarning: testinfra package has been renamed to pytest-testinfra. Please `pip install pytest-testinfra` and `pip uninstall testinfra` and update your package requirements to avoid this message warnings.warn(( Warning: Permanently added '192.168.57.4' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.4' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.4' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts. stderr_lines: stdout: |- ============================= test session starts ============================== platform linux -- Python 3.10.12, pytest-8.1.0, pluggy-1.4.0 -- /home/akim/Desktop/venvs/deplo_test/bin/python3 cachedir: .pytest_cache rootdir: /home/akim/Desktop/wazuh-qa/deployability/modules plugins: testinfra-6.0.0, testinfra-10.1.0 collecting ... collected 1 item modules/testing/tests/test_manager/test_stop.py::test_stop systemctl stop wazuh-manager systemctl stop wazuh-manager systemctl status wazuh-manager systemctl status wazuh-manager systemctl status wazuh-manager PASSEDsystemctl restart wazuh-manager systemctl restart wazuh-manager =============================== warnings summary =============================== modules/provision/models.py:65 /home/akim/Desktop/wazuh-qa/deployability/modules/provision/models.py:65: 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', pre=True) modules/provision/models.py:73 /home/akim/Desktop/wazuh-qa/deployability/modules/provision/models.py:73: 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('uninstall', pre=True) modules/testing/tests/helpers/agent.py:55 /home/akim/Desktop/wazuh-qa/deployability/modules/testing/tests/helpers/agent.py:55: DeprecationWarning: invalid escape sequence '\w' "-OutFile ${env.tmp}\wazuh-agent;" modules/testing/tests/helpers/agent.py:56 /home/akim/Desktop/wazuh-qa/deployability/modules/testing/tests/helpers/agent.py:56: DeprecationWarning: invalid escape sequence '\w' "msiexec.exe /i ${env.tmp}\wazuh-agent /q" modules/testing/tests/helpers/agent.py:97 modules/testing/tests/helpers/agent.py:97 /home/akim/Desktop/wazuh-qa/deployability/modules/testing/tests/helpers/agent.py:97: DeprecationWarning: invalid escape sequence '\/' f"sed -i 's/
MANAGER_IP<\/address>/
{internal_ip}<\/address>/g' {WAZUH_CONF}", -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html ======================== 1 passed, 6 warnings in 37.47s ======================== stdout_lines: PLAY RECAP ********************************************************************* localhost : ok=2 changed=1 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 [2024-03-22 16:32:25] [DEBUG] ANSIBLE: Playbook [{'hosts': 'localhost', 'become': True, 'become_user': 'akim', 'tasks': [{'name': 'Test stop for manager', 'command': "python3 -m pytest modules/testing/tests/test_manager/test_stop.py -v --wazuh_version=4.7.3 --wazuh_revision=40714 --component=manager --dependencies='{wazuh-1: /tmp/dtt1-poc/manager-linux-ubuntu-22.04-amd64/inventory.yml}' --targets='{wazuh-1: /tmp/dtt1-poc/manager-linux-ubuntu-22.04-amd64/inventory.yml, wazuh-2: /tmp/dtt1-poc/manager-linux-oracle-9-amd64/inventory.yml, wazuh-3: /tmp/dtt1-poc/manager-linux-amazon-2-amd64/inventory.yml}' -s", 'args': {'chdir': '/home/akim/Desktop/wazuh-qa/deployability'}}]}] finished with status {'skipped': {}, 'ok': {'localhost': 2}, 'dark': {}, 'failures': {}, 'ignored': {}, 'rescued': {}, 'processed': {'localhost': 1}, 'changed': {'localhost': 1}} [2024-03-22 16:32:25] [DEBUG] ANSIBLE: Rendering template /home/akim/Desktop/wazuh-qa/deployability/modules/testing/playbooks/test.yml [2024-03-22 16:32:25] [DEBUG] ANSIBLE: Using inventory: {'all': {'hosts': {'192.168.57.3': {'ansible_port': 22, 'ansible_user': 'vagrant', 'ansible_ssh_private_key_file': '/tmp/wazuh-qa/VAGRANT-F5271D10-6272-4A66-8A4F-9A7099490706/instance_key'}}}} [2024-03-22 16:32:25] [DEBUG] ANSIBLE: Running playbook: [{'hosts': 'localhost', 'become': True, 'become_user': 'akim', 'tasks': [{'name': 'Test restart for manager', 'command': "python3 -m pytest modules/testing/tests/test_manager/test_restart.py -v --wazuh_version=4.7.3 --wazuh_revision=40714 --component=manager --dependencies='{wazuh-1: /tmp/dtt1-poc/manager-linux-ubuntu-22.04-amd64/inventory.yml}' --targets='{wazuh-1: /tmp/dtt1-poc/manager-linux-ubuntu-22.04-amd64/inventory.yml, wazuh-2: /tmp/dtt1-poc/manager-linux-oracle-9-amd64/inventory.yml, wazuh-3: /tmp/dtt1-poc/manager-linux-amazon-2-amd64/inventory.yml}' -s", 'args': {'chdir': '/home/akim/Desktop/wazuh-qa/deployability'}}]}] No config file found; using defaults PLAY [localhost] *************************************************************** TASK [Gathering Facts] ********************************************************* ok: [localhost] TASK [Test restart for manager] ************************************************ changed: [localhost] => changed=true cmd: - python3 - -m - pytest - modules/testing/tests/test_manager/test_restart.py - -v - --wazuh_version=4.7.3 - --wazuh_revision=40714 - --component=manager - '--dependencies={wazuh-1: /tmp/dtt1-poc/manager-linux-ubuntu-22.04-amd64/inventory.yml}' - '--targets={wazuh-1: /tmp/dtt1-poc/manager-linux-ubuntu-22.04-amd64/inventory.yml, wazuh-2: /tmp/dtt1-poc/manager-linux-oracle-9-amd64/inventory.yml, wazuh-3: /tmp/dtt1-poc/manager-linux-amazon-2-amd64/inventory.yml}' - -s delta: '0:00:32.234064' end: '2024-03-22 16:33:03.939697' msg: '' rc: 0 start: '2024-03-22 16:32:31.705633' stderr: |- /home/akim/Desktop/venvs/deplo_test/lib/python3.10/site-packages/_testinfra_renamed.py:5: DeprecationWarning: testinfra package has been renamed to pytest-testinfra. Please `pip install pytest-testinfra` and `pip uninstall testinfra` and update your package requirements to avoid this message warnings.warn(( Warning: Permanently added '192.168.57.4' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.4' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts. stderr_lines: stdout: |- ============================= test session starts ============================== platform linux -- Python 3.10.12, pytest-8.1.0, pluggy-1.4.0 -- /home/akim/Desktop/venvs/deplo_test/bin/python3 cachedir: .pytest_cache rootdir: /home/akim/Desktop/wazuh-qa/deployability/modules plugins: testinfra-6.0.0, testinfra-10.1.0 collecting ... collected 1 item modules/testing/tests/test_manager/test_restart.py::test_restart systemctl restart wazuh-manager systemctl restart wazuh-manager systemctl status wazuh-manager systemctl status wazuh-manager systemctl status wazuh-manager PASSED =============================== warnings summary =============================== modules/provision/models.py:65 /home/akim/Desktop/wazuh-qa/deployability/modules/provision/models.py:65: 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', pre=True) modules/provision/models.py:73 /home/akim/Desktop/wazuh-qa/deployability/modules/provision/models.py:73: 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('uninstall', pre=True) -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html ======================== 1 passed, 2 warnings in 31.61s ======================== stdout_lines: PLAY RECAP ********************************************************************* localhost : ok=2 changed=1 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 [2024-03-22 16:33:04] [DEBUG] ANSIBLE: Playbook [{'hosts': 'localhost', 'become': True, 'become_user': 'akim', 'tasks': [{'name': 'Test restart for manager', 'command': "python3 -m pytest modules/testing/tests/test_manager/test_restart.py -v --wazuh_version=4.7.3 --wazuh_revision=40714 --component=manager --dependencies='{wazuh-1: /tmp/dtt1-poc/manager-linux-ubuntu-22.04-amd64/inventory.yml}' --targets='{wazuh-1: /tmp/dtt1-poc/manager-linux-ubuntu-22.04-amd64/inventory.yml, wazuh-2: /tmp/dtt1-poc/manager-linux-oracle-9-amd64/inventory.yml, wazuh-3: /tmp/dtt1-poc/manager-linux-amazon-2-amd64/inventory.yml}' -s", 'args': {'chdir': '/home/akim/Desktop/wazuh-qa/deployability'}}]}] finished with status {'skipped': {}, 'ok': {'localhost': 2}, 'dark': {}, 'failures': {}, 'ignored': {}, 'rescued': {}, 'processed': {'localhost': 1}, 'changed': {'localhost': 1}} [2024-03-22 16:33:04] [DEBUG] ANSIBLE: Rendering template /home/akim/Desktop/wazuh-qa/deployability/modules/testing/playbooks/test.yml [2024-03-22 16:33:04] [DEBUG] ANSIBLE: Using inventory: {'all': {'hosts': {'192.168.57.3': {'ansible_port': 22, 'ansible_user': 'vagrant', 'ansible_ssh_private_key_file': '/tmp/wazuh-qa/VAGRANT-F5271D10-6272-4A66-8A4F-9A7099490706/instance_key'}}}} [2024-03-22 16:33:04] [DEBUG] ANSIBLE: Running playbook: [{'hosts': 'localhost', 'become': True, 'become_user': 'akim', 'tasks': [{'name': 'Test uninstall for manager', 'command': "python3 -m pytest modules/testing/tests/test_manager/test_uninstall.py -v --wazuh_version=4.7.3 --wazuh_revision=40714 --component=manager --dependencies='{wazuh-1: /tmp/dtt1-poc/manager-linux-ubuntu-22.04-amd64/inventory.yml}' --targets='{wazuh-1: /tmp/dtt1-poc/manager-linux-ubuntu-22.04-amd64/inventory.yml, wazuh-2: /tmp/dtt1-poc/manager-linux-oracle-9-amd64/inventory.yml, wazuh-3: /tmp/dtt1-poc/manager-linux-amazon-2-amd64/inventory.yml}' -s", 'args': {'chdir': '/home/akim/Desktop/wazuh-qa/deployability'}}]}] No config file found; using defaults PLAY [localhost] *************************************************************** TASK [Gathering Facts] ********************************************************* ok: [localhost] TASK [Test uninstall for manager] ********************************************** changed: [localhost] => changed=true cmd: - python3 - -m - pytest - modules/testing/tests/test_manager/test_uninstall.py - -v - --wazuh_version=4.7.3 - --wazuh_revision=40714 - --component=manager - '--dependencies={wazuh-1: /tmp/dtt1-poc/manager-linux-ubuntu-22.04-amd64/inventory.yml}' - '--targets={wazuh-1: /tmp/dtt1-poc/manager-linux-ubuntu-22.04-amd64/inventory.yml, wazuh-2: /tmp/dtt1-poc/manager-linux-oracle-9-amd64/inventory.yml, wazuh-3: /tmp/dtt1-poc/manager-linux-amazon-2-amd64/inventory.yml}' - -s delta: '0:00:59.205835' end: '2024-03-22 16:34:09.725853' msg: '' rc: 0 start: '2024-03-22 16:33:10.520018' stderr: |- /home/akim/Desktop/venvs/deplo_test/lib/python3.10/site-packages/_testinfra_renamed.py:5: DeprecationWarning: testinfra package has been renamed to pytest-testinfra. Please `pip install pytest-testinfra` and `pip uninstall testinfra` and update your package requirements to avoid this message warnings.warn(( Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.4' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts. perl: warning: Setting locale failed. perl: warning: Please check that your locale settings: LANGUAGE = (unset), LC_ALL = (unset), LC_TIME = "es_ES.UTF-8", LC_MONETARY = "es_ES.UTF-8", LC_ADDRESS = "es_ES.UTF-8", LC_TELEPHONE = "es_ES.UTF-8", LC_NAME = "es_ES.UTF-8", LC_MEASUREMENT = "es_ES.UTF-8", LC_IDENTIFICATION = "es_ES.UTF-8", LC_NUMERIC = "es_ES.UTF-8", LC_PAPER = "es_ES.UTF-8", LANG = "C.UTF-8" are supported and installed on your system. perl: warning: Falling back to a fallback locale ("C.UTF-8"). locale: Cannot set LC_ALL to default locale: No such file or directory Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts. Removed /etc/systemd/system/multi-user.target.wants/wazuh-manager.service. Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.4' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.4' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.4' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.4' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.4' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.4' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.4' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.4' (ED25519) to the list of known hosts. Failed to disable unit: Unit file wazuh-manager.service does not exist. Warning: Permanently added '192.168.57.4' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.4' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.4' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.4' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.4' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts. Failed to execute operation: No such file or directory Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.3' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.4' (ED25519) to the list of known hosts. Warning: Permanently added '192.168.57.5' (ED25519) to the list of known hosts. stderr_lines: stdout: |- ============================= test session starts ============================== platform linux -- Python 3.10.12, pytest-8.1.0, pluggy-1.4.0 -- /home/akim/Desktop/venvs/deplo_test/bin/python3 cachedir: .pytest_cache rootdir: /home/akim/Desktop/wazuh-qa/deployability/modules plugins: testinfra-6.0.0, testinfra-10.1.0 collecting ... collected 2 items modules/testing/tests/test_manager/test_uninstall.py::test_uninstall systemctl status wazuh-manager systemctl status wazuh-manager systemctl status wazuh-manager uname sudo find /boot -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg sudo find /usr/bin -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg sudo find /root -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg sudo find /usr/sbin -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg sudo find /boot -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg sudo find /usr/bin -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg sudo find /root -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg sudo find /usr/sbin -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg /root added [] modified [] removed [] /usr/bin added [] modified [] removed [] /usr/sbin added [] modified [] removed [] /boot added [] modified [] removed [] uname sudo find /boot -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg sudo find /usr/bin -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg sudo find /root -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg sudo find /usr/sbin -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg sudo find /boot -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg sudo find /usr/bin -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg sudo find /root -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg sudo find /usr/sbin -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg /root added [] modified [] removed [] /usr/bin added [] modified [] removed [] /usr/sbin added [] modified [] removed [] /boot added [] modified [] removed [] uname sudo find /boot -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg sudo find /usr/bin -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg sudo find /root -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg sudo find /usr/sbin -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg sudo find /boot -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg sudo find /usr/bin -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg sudo find /root -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg sudo find /usr/sbin -type f -exec sha256sum {} + | grep -v grep | grep -v tar | grep -v coreutils | grep -v sed | grep -v procps | grep -v gawk | grep -v lsof | grep -v curl | grep -v openssl | grep -v libcap | grep -v apt-transport-https | grep -v libcap2-bin | grep -v software-properties-common | grep -v gnupg | grep -v gpg /root added [] modified [] removed [] /usr/bin added [] modified [] removed [] /usr/sbin added [] modified [] removed [] /boot added [] modified [] removed [] PASSED modules/testing/tests/test_manager/test_uninstall.py::test_manager_uninstalled_directory test -d /var/ossec && echo "true" || echo "false" test -d /var/ossec && echo "true" || echo "false" test -d /var/ossec && echo "true" || echo "false" PASSED =============================== warnings summary =============================== modules/provision/models.py:65 /home/akim/Desktop/wazuh-qa/deployability/modules/provision/models.py:65: 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', pre=True) modules/provision/models.py:73 /home/akim/Desktop/wazuh-qa/deployability/modules/provision/models.py:73: 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('uninstall', pre=True) -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html ======================== 2 passed, 2 warnings in 58.57s ======================== stdout_lines: PLAY RECAP ********************************************************************* localhost : ok=2 changed=1 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 [2024-03-22 16:34:10] [DEBUG] ANSIBLE: Playbook [{'hosts': 'localhost', 'become': True, 'become_user': 'akim', 'tasks': [{'name': 'Test uninstall for manager', 'command': "python3 -m pytest modules/testing/tests/test_manager/test_uninstall.py -v --wazuh_version=4.7.3 --wazuh_revision=40714 --component=manager --dependencies='{wazuh-1: /tmp/dtt1-poc/manager-linux-ubuntu-22.04-amd64/inventory.yml}' --targets='{wazuh-1: /tmp/dtt1-poc/manager-linux-ubuntu-22.04-amd64/inventory.yml, wazuh-2: /tmp/dtt1-poc/manager-linux-oracle-9-amd64/inventory.yml, wazuh-3: /tmp/dtt1-poc/manager-linux-amazon-2-amd64/inventory.yml}' -s", 'args': {'chdir': '/home/akim/Desktop/wazuh-qa/deployability'}}]}] finished with status {'skipped': {}, 'ok': {'localhost': 2}, 'dark': {}, 'failures': {}, 'ignored': {}, 'rescued': {}, 'processed': {'localhost': 1}, 'changed': {'localhost': 1}} [2024-03-22 16:34:10] [DEBUG] ANSIBLE: Using inventory: {'all': {'hosts': {'192.168.57.3': {'ansible_port': 22, 'ansible_user': 'vagrant', 'ansible_ssh_private_key_file': '/tmp/wazuh-qa/VAGRANT-F5271D10-6272-4A66-8A4F-9A7099490706/instance_key'}}}} [2024-03-22 16:34:10] [DEBUG] ANSIBLE: Running playbook: /home/akim/Desktop/wazuh-qa/deployability/modules/testing/playbooks/cleanup.yml No config file found; using defaults PLAY [all] ********************************************************************* TASK [Gathering Facts] ********************************************************* ok: [192.168.57.3] TASK [Clean test directory] **************************************************** ok: [192.168.57.3] => changed=false path: /tmp/tests state: absent PLAY RECAP ********************************************************************* 192.168.57.3 : ok=2 changed=0 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 [2024-03-22 16:34:13] [DEBUG] ANSIBLE: Playbook /home/akim/Desktop/wazuh-qa/deployability/modules/testing/playbooks/cleanup.yml finished with status {'skipped': {}, 'ok': {'192.168.57.3': 2}, 'dark': {}, 'failures': {}, 'ignored': {}, 'rescued': {}, 'processed': {'192.168.57.3': 1}, 'changed': {}} [2024-03-22 16:34:13] [DEBUG] ANSIBLE: Using inventory: {'all': {'hosts': {'192.168.57.3': {'ansible_port': 22, 'ansible_user': 'vagrant', 'ansible_ssh_private_key_file': '/tmp/wazuh-qa/VAGRANT-F5271D10-6272-4A66-8A4F-9A7099490706/instance_key'}}}} [2024-03-22 16:34:13] [DEBUG] ANSIBLE: Running playbook: /home/akim/Desktop/wazuh-qa/deployability/modules/testing/playbooks/cleanup.yml No config file found; using defaults PLAY [all] ********************************************************************* TASK [Gathering Facts] ********************************************************* ok: [192.168.57.3] TASK [Clean test directory] **************************************************** ok: [192.168.57.3] => changed=false path: /tmp/tests state: absent PLAY RECAP ********************************************************************* 192.168.57.3 : ok=2 changed=0 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 [2024-03-22 16:34:16] [DEBUG] ANSIBLE: Playbook /home/akim/Desktop/wazuh-qa/deployability/modules/testing/playbooks/cleanup.yml finished with status {'skipped': {}, 'ok': {'192.168.57.3': 2}, 'dark': {}, 'failures': {}, 'ignored': {}, 'rescued': {}, 'processed': {'192.168.57.3': 1}, 'changed': {}} [2024-03-22 16:34:16] [DEBUG] ANSIBLE: Using inventory: {'all': {'hosts': {'192.168.57.3': {'ansible_port': 22, 'ansible_user': 'vagrant', 'ansible_ssh_private_key_file': '/tmp/wazuh-qa/VAGRANT-F5271D10-6272-4A66-8A4F-9A7099490706/instance_key'}}}} [2024-03-22 16:34:16] [DEBUG] ANSIBLE: Running playbook: /home/akim/Desktop/wazuh-qa/deployability/modules/testing/playbooks/cleanup.yml No config file found; using defaults PLAY [all] ********************************************************************* TASK [Gathering Facts] ********************************************************* ok: [192.168.57.3] TASK [Clean test directory] **************************************************** ok: [192.168.57.3] => changed=false path: /tmp/tests state: absent PLAY RECAP ********************************************************************* 192.168.57.3 : ok=2 changed=0 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 [2024-03-22 16:34:19] [DEBUG] ANSIBLE: Playbook /home/akim/Desktop/wazuh-qa/deployability/modules/testing/playbooks/cleanup.yml finished with status {'skipped': {}, 'ok': {'192.168.57.3': 2}, 'dark': {}, 'failures': {}, 'ignored': {}, 'rescued': {}, 'processed': {'192.168.57.3': 1}, 'changed': {}} ```
Opensuse-15 :red_circle: ```bash opensuse15:/home/vagrant # bash wazuh-install.sh --wazuh-server -wazuh-2 22/03/2024 15:52:48 INFO: Starting Wazuh installation assistant. Wazuh version: 4.7.3 22/03/2024 15:52:48 INFO: Verbose logging redirected to /var/log/wazuh-install.log 22/03/2024 15:52:48 ERROR: Couldn't find type of system ```
pro-akim commented 1 month ago

Update

Changes done.

fcaffieri commented 1 month ago

One question about execute_commands() metod

pro-akim commented 1 month ago

Update

Changes done

fcaffieri commented 1 month ago

LGTM

QU3B1M commented 1 month ago

LGTM!