wazuh / wazuh-qa

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

Modify the usage of the embedded Python interpreter in System Tests #3949

Closed fdalmaup closed 11 months ago

fdalmaup commented 1 year ago

Description

During https://github.com/wazuh/wazuh/issues/13373, when running the system tests, there were found several lines referring to Wazuh's embedded Python interpreter using python3.9 both in the provisioning tasks of the environments needed (basic_cluster, big_cluster_40_agents and four_manager_disconnected_node) and the tests themselves. For example: https://github.com/wazuh/wazuh-qa/blob/db4775bac707288f0a2aafbea99ae4f58029f281/tests/system/test_cluster/test_agent_info_sync/test_agent_info_sync.py#L109-L112

This should be modified in order to use python3 as the default line to execute the interpreter and make the system tests independent of the interpreter that is being used in the Wazuh branch to be tested.

Tasks

aradkdj commented 1 year ago

Update

Based on the above, the change should be safe and straightforward.

aradkdj commented 1 year ago

Update

According to the test/environment matrix in order to run the affected tests, the basic_cluster environment has to be built. And it built successfully

$ ansible-playbook -i provisioning/basic_cluster/inventory.yml provisioning/basic_cluster/playbook.yml --extra-vars='{"wazuh_branch":"4.4", "wazuh_qa_branch":"4.4"}' PLAY [Create our container (Master)] ********************************************************************************************************************************************************************************************************************************* TASK [Gathering Facts] *********************************************************************************************************************************************************************************************************************************************** ok: [localhost] TASK [Create a network] ********************************************************************************************************************************************************************************************************************************************** ok: [localhost] TASK [docker_container] ********************************************************************************************************************************************************************************************************************************************** changed: [localhost] PLAY [Create our container (Worker1)] ******************************************************************************************************************************************************************************************************************************** TASK [Gathering Facts] *********************************************************************************************************************************************************************************************************************************************** ok: [localhost] TASK [docker_container] ********************************************************************************************************************************************************************************************************************************************** changed: [localhost] PLAY [Create our container (Worker2)] ******************************************************************************************************************************************************************************************************************************** TASK [Gathering Facts] *********************************************************************************************************************************************************************************************************************************************** ok: [localhost] TASK [docker_container] ********************************************************************************************************************************************************************************************************************************************** changed: [localhost] PLAY [Create our container (Agent1)] ********************************************************************************************************************************************************************************************************************************* TASK [Gathering Facts] *********************************************************************************************************************************************************************************************************************************************** ok: [localhost] TASK [docker_container] ********************************************************************************************************************************************************************************************************************************************** changed: [localhost] PLAY [Create our container (Agent2)] ********************************************************************************************************************************************************************************************************************************* TASK [Gathering Facts] *********************************************************************************************************************************************************************************************************************************************** ok: [localhost] TASK [docker_container] ********************************************************************************************************************************************************************************************************************************************** changed: [localhost] PLAY [Create our container (Agent3)] ********************************************************************************************************************************************************************************************************************************* TASK [Gathering Facts] *********************************************************************************************************************************************************************************************************************************************** ok: [localhost] TASK [docker_container] ********************************************************************************************************************************************************************************************************************************************** changed: [localhost] PLAY [Wazuh Master] ************************************************************************************************************************************************************************************************************************************************** TASK [Gathering Facts] *********************************************************************************************************************************************************************************************************************************************** ok: [wazuh-master] TASK [roles/master-role : Check and update debian repositories] ****************************************************************************************************************************************************************************************************** changed: [wazuh-master] TASK [roles/master-role : Installing dependencies using apt] ********************************************************************************************************************************************************************************************************* ok: [wazuh-master] TASK [roles/master-role : Clone wazuh repository] ******************************************************************************************************************************************************************************************************************** changed: [wazuh-master] TASK [roles/master-role : Clone wazuh-qa repository] ***************************************************************************************************************************************************************************************************************** changed: [wazuh-master] TASK [roles/master-role : Install master] **************************************************************************************************************************************************************************************************************************** changed: [wazuh-master] TASK [roles/master-role : Copy ossec.conf file] ********************************************************************************************************************************************************************************************************************** changed: [wazuh-master] TASK [roles/master-role : Set cluster key] *************************************************************************************************************************************************************************************************************************** changed: [wazuh-master] TASK [roles/master-role : Set Wazuh Master IP] *********************************************************************************************************************************************************************************************************************** changed: [wazuh-master] TASK [roles/master-role : Stop Wazuh] ******************************************************************************************************************************************************************************************************************************** changed: [wazuh-master] TASK [roles/master-role : Remove client.keys] ************************************************************************************************************************************************************************************************************************ changed: [wazuh-master] TASK [roles/master-role : enable authd and clusterd debug mode] ****************************************************************************************************************************************************************************************************** changed: [wazuh-master] TASK [roles/master-role : Register agents] *************************************************************************************************************************************************************************************************************************** changed: [wazuh-master] TASK [roles/master-role : Start Wazuh] ******************************************************************************************************************************************************************************************************************************* changed: [wazuh-master] TASK [roles/master-role : Install necessary dependencies] ************************************************************************************************************************************************************************************************************ changed: [wazuh-master] TASK [roles/master-role : Copy wdb-query.py script] ****************************************************************************************************************************************************************************************************************** changed: [wazuh-master] PLAY [Wazuh Worker1] ************************************************************************************************************************************************************************************************************************************************* TASK [Gathering Facts] *********************************************************************************************************************************************************************************************************************************************** ok: [wazuh-worker1] TASK [roles/worker-role : Check and update debian repositories] ****************************************************************************************************************************************************************************************************** changed: [wazuh-worker1] TASK [roles/worker-role : Installing dependencies using apt] ********************************************************************************************************************************************************************************************************* changed: [wazuh-worker1] TASK [roles/worker-role : Clone wazuh repository] ******************************************************************************************************************************************************************************************************************** changed: [wazuh-worker1] TASK [roles/worker-role : Clone wazuh-qa repository] ***************************************************************************************************************************************************************************************************************** changed: [wazuh-worker1] TASK [roles/worker-role : Install worker] **************************************************************************************************************************************************************************************************************************** changed: [wazuh-worker1] TASK [roles/worker-role : Copy ossec.conf file] ********************************************************************************************************************************************************************************************************************** changed: [wazuh-worker1] TASK [roles/worker-role : Set cluster key] *************************************************************************************************************************************************************************************************************************** changed: [wazuh-worker1] TASK [roles/worker-role : Set Wazuh Worker name] ********************************************************************************************************************************************************************************************************************* changed: [wazuh-worker1] TASK [roles/worker-role : Set Wazuh Worker IP] *********************************************************************************************************************************************************************************************************************** changed: [wazuh-worker1] TASK [roles/worker-role : enable authd and clusterd debug mode] ****************************************************************************************************************************************************************************************************** changed: [wazuh-worker1] TASK [roles/worker-role : Restart Wazuh] ***************************************************************************************************************************************************************************************************************************** changed: [wazuh-worker1] TASK [roles/worker-role : Install necessary dependencies] ************************************************************************************************************************************************************************************************************ changed: [wazuh-worker1] PLAY [Wazuh Worker2] ************************************************************************************************************************************************************************************************************************************************* TASK [Gathering Facts] *********************************************************************************************************************************************************************************************************************************************** ok: [wazuh-worker2] TASK [roles/worker-role : Check and update debian repositories] ****************************************************************************************************************************************************************************************************** changed: [wazuh-worker2] TASK [roles/worker-role : Installing dependencies using apt] ********************************************************************************************************************************************************************************************************* changed: [wazuh-worker2] TASK [roles/worker-role : Clone wazuh repository] ******************************************************************************************************************************************************************************************************************** changed: [wazuh-worker2] TASK [roles/worker-role : Clone wazuh-qa repository] ***************************************************************************************************************************************************************************************************************** changed: [wazuh-worker2] TASK [roles/worker-role : Install worker] **************************************************************************************************************************************************************************************************************************** changed: [wazuh-worker2] TASK [roles/worker-role : Copy ossec.conf file] ********************************************************************************************************************************************************************************************************************** changed: [wazuh-worker2] TASK [roles/worker-role : Set cluster key] *************************************************************************************************************************************************************************************************************************** changed: [wazuh-worker2] TASK [roles/worker-role : Set Wazuh Worker name] ********************************************************************************************************************************************************************************************************************* changed: [wazuh-worker2] TASK [roles/worker-role : Set Wazuh Worker IP] *********************************************************************************************************************************************************************************************************************** changed: [wazuh-worker2] TASK [roles/worker-role : enable authd and clusterd debug mode] ****************************************************************************************************************************************************************************************************** changed: [wazuh-worker2] TASK [roles/worker-role : Restart Wazuh] ***************************************************************************************************************************************************************************************************************************** changed: [wazuh-worker2] TASK [roles/worker-role : Install necessary dependencies] ************************************************************************************************************************************************************************************************************ changed: [wazuh-worker2] PLAY [Wazuh Agent1] ************************************************************************************************************************************************************************************************************************************************** TASK [Gathering Facts] *********************************************************************************************************************************************************************************************************************************************** ok: [wazuh-agent1] TASK [roles/agent-role : Check and update debian repositories] ******************************************************************************************************************************************************************************************************* changed: [wazuh-agent1] TASK [roles/agent-role : Installing dependencies using apt] ********************************************************************************************************************************************************************************************************** changed: [wazuh-agent1] TASK [roles/agent-role : Clone wazuh repository] ********************************************************************************************************************************************************************************************************************* changed: [wazuh-agent1] TASK [roles/agent-role : Install agent] ****************************************************************************************************************************************************************************************************************************** changed: [wazuh-agent1] TASK [roles/agent-role : Copy ossec.conf file] *********************************************************************************************************************************************************************************************************************** changed: [wazuh-agent1] TASK [roles/agent-role : Remove client.keys] ************************************************************************************************************************************************************************************************************************* changed: [wazuh-agent1] TASK [roles/agent-role : Register agents] **************************************************************************************************************************************************************************************************************************** changed: [wazuh-agent1] TASK [roles/agent-role : Set Wazuh Manager IP] *********************************************************************************************************************************************************************************************************************** changed: [wazuh-agent1] TASK [roles/agent-role : Restart Wazuh] ****************************************************************************************************************************************************************************************************************************** changed: [wazuh-agent1] PLAY [Wazuh Agent2] ************************************************************************************************************************************************************************************************************************************************** TASK [Gathering Facts] *********************************************************************************************************************************************************************************************************************************************** ok: [wazuh-agent2] TASK [roles/agent-role : Check and update debian repositories] ******************************************************************************************************************************************************************************************************* changed: [wazuh-agent2] TASK [roles/agent-role : Installing dependencies using apt] ********************************************************************************************************************************************************************************************************** changed: [wazuh-agent2] TASK [roles/agent-role : Clone wazuh repository] ********************************************************************************************************************************************************************************************************************* changed: [wazuh-agent2] TASK [roles/agent-role : Install agent] ****************************************************************************************************************************************************************************************************************************** changed: [wazuh-agent2] TASK [roles/agent-role : Copy ossec.conf file] *********************************************************************************************************************************************************************************************************************** changed: [wazuh-agent2] TASK [roles/agent-role : Remove client.keys] ************************************************************************************************************************************************************************************************************************* changed: [wazuh-agent2] TASK [roles/agent-role : Register agents] **************************************************************************************************************************************************************************************************************************** changed: [wazuh-agent2] TASK [roles/agent-role : Set Wazuh Manager IP] *********************************************************************************************************************************************************************************************************************** changed: [wazuh-agent2] TASK [roles/agent-role : Restart Wazuh] ****************************************************************************************************************************************************************************************************************************** changed: [wazuh-agent2] PLAY [Wazuh Agent3] ************************************************************************************************************************************************************************************************************************************************** TASK [Gathering Facts] *********************************************************************************************************************************************************************************************************************************************** ok: [wazuh-agent3] TASK [roles/agent-role : Check and update debian repositories] ******************************************************************************************************************************************************************************************************* changed: [wazuh-agent3] TASK [roles/agent-role : Installing dependencies using apt] ********************************************************************************************************************************************************************************************************** changed: [wazuh-agent3] TASK [roles/agent-role : Clone wazuh repository] ********************************************************************************************************************************************************************************************************************* changed: [wazuh-agent3] TASK [roles/agent-role : Install agent] ****************************************************************************************************************************************************************************************************************************** changed: [wazuh-agent3] TASK [roles/agent-role : Copy ossec.conf file] *********************************************************************************************************************************************************************************************************************** changed: [wazuh-agent3] TASK [roles/agent-role : Remove client.keys] ************************************************************************************************************************************************************************************************************************* changed: [wazuh-agent3] TASK [roles/agent-role : Register agents] **************************************************************************************************************************************************************************************************************************** changed: [wazuh-agent3] TASK [roles/agent-role : Set Wazuh Manager IP] *********************************************************************************************************************************************************************************************************************** changed: [wazuh-agent3] TASK [roles/agent-role : Restart Wazuh] ****************************************************************************************************************************************************************************************************************************** changed: [wazuh-agent3] PLAY RECAP *********************************************************************************************************************************************************************************************************************************************************** localhost : ok=13 changed=6 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 wazuh-agent1 : ok=10 changed=9 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 wazuh-agent2 : ok=10 changed=9 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 wazuh-agent3 : ok=10 changed=9 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 wazuh-master : ok=16 changed=14 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 wazuh-worker1 : ok=13 changed=12 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 wazuh-worker2 : ok=13 changed=12 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0
aradkdj commented 1 year ago

Update

Updated the branch locally and recreated the cluster, since 4.4 has seen merges since the last time I worked on this. Then I tried to run test_agent_files_deletion.py but encountered the following error:

$ pytest test_agent_files_deletion
======================================================================================================================== test session starts =========================================================================================================================
platform linux -- Python 3.10.11, pytest-6.2.5, py-1.10.0, pluggy-1.0.0
rootdir: /home/aradkdj/Documents/work/Wazuh/wazuh-qa/tests/system, configfile: pytest.ini
plugins: testinfra-7.0.0, metadata-2.0.4, html-3.1.1
collected 1 item                                                                                                                                                                                                                                                     

test_agent_files_deletion/test_agent_files_deletion.py F                                                                                                                                                                                                       [100%]

============================================================================================================================== FAILURES ==============================================================================================================================
_____________________________________________________________________________________________________________________ test_agent_files_deletion ______________________________________________________________________________________________________________________

    def test_agent_files_deletion():
        """Check that when an agent is deleted, all its related files in managers are also removed."""
        # Clean ossec.log and cluster.log
        for hosts in managers_hosts:
            host_manager.clear_file(host=hosts, file_path=os.path.join(WAZUH_LOGS_PATH, 'ossec.log'))
            host_manager.clear_file(host=hosts, file_path=os.path.join(WAZUH_LOGS_PATH, 'cluster.log'))
            host_manager.control_service(host=hosts, service='wazuh', state='restarted')

        # Get the token
        master_token = host_manager.get_api_token(master_host)

        # Check if the agent is connected and reporting
        agent_healthcheck(master_token)

        # Get the current ID and name of the agent that is reporting to worker_host.
        response = host_manager.make_api_call(host=master_host, method='GET', token=master_token,
                                              endpoint=f"/agents?select=id,name&q=manager={worker_host}")

        assert response['status'] == 200, f"Failed when trying to obtain agent ID: {response}"
        try:
            agent_id = response['json']['data']['affected_items'][0]['id']
            agent_name = response['json']['data']['affected_items'][0]['name']
        except IndexError as e:
            pytest.fail(f"Could not find any agent reporting to {worker_host}: {response['json']}")

        # Check that expected files exist in each node before removing the agent.
        for file in files:
            for host in file['hosts']:
                result = host_manager.run_shell(
                    host, f"test -e {file['path'].format(id=agent_id, name=agent_name)} && echo 'exists'"
                )
                assert result, f"This file should exist in {host} but could not be found: " \
                               f"{file['path'].format(id=agent_id, name=agent_name)}"

        # Check that agent information is in the wdb socket
        for host in managers_hosts:
            for query in queries:
                result = host_manager.run_command(host,
                                                  f"{WAZUH_PATH}/framework/python/bin/python3.9 "
                                                  f"{script_path} '{query.format(id=agent_id)}'")
                assert result, f"This db query should have returned something in {host}, but it did not: {result}"

        # Remove the agent
        response = host_manager.make_api_call(host=master_host, method='DELETE', token=master_token,
                                              endpoint=f"/agents?agents_list={agent_id}&status=all&older_than=0s")
>       assert response['status'] == 200, f"Failed when trying to remove agent {agent_id}: {response}"
E       AssertionError: Failed when trying to remove agent 003: {'changed': False, 'connection': 'close', 'content_length': '53', 'content_type': 'application/problem+json; charset=utf-8', 'date': 'Thu, 11 May 2023 16:22:09 GMT', 'elapsed': 0, 'msg': 'Status code was 401 and not [200]: HTTP Error 401: Unauthorized', 'redirected': False, 'status': 401, 'url': 'https://localhost:55000/agents?agents_list=003&status=all&older_than=0s'}
E       assert 401 == 200

test_agent_files_deletion/test_agent_files_deletion.py:106: AssertionError
====================================================================================================================== short test summary info =======================================================================================================================
FAILED test_agent_files_deletion/test_agent_files_deletion.py::test_agent_files_deletion - AssertionError: Failed when trying to remove agent 003: {'changed': False, 'connection': 'close', 'content_length': '53', 'content_type': 'application/problem+json; cha...
=================================================================================================================== 1 failed in 3985.08s (1:06:25) ===================================================================================================================

Currently consulting with the team to find out what could be causing it as this should not be failing in the current state.

aradkdj commented 1 year ago

Update

The team was not able to reproduce my failures. Asked for the resolved dependencies in their environments and found some differences. After installing from their freezes the I got a different failure:

(wazuh-qa) [aradkdj@fedora test_cluster]$ pytest test_agent_files_deletion
======================================================================================================================== test session starts =========================================================================================================================
platform linux -- Python 3.10.11, pytest-7.1.2, pluggy-1.0.0
rootdir: /home/aradkdj/Documents/work/Wazuh/wazuh-qa/tests/system, configfile: pytest.ini
plugins: testinfra-5.0.0, metadata-2.0.4, html-3.1.1
collected 1 item                                                                                                                                                                                                                                                     

test_agent_files_deletion/test_agent_files_deletion.py F                                                                                                                                                                                                       [100%]

============================================================================================================================== FAILURES ==============================================================================================================================
_____________________________________________________________________________________________________________________ test_agent_files_deletion ______________________________________________________________________________________________________________________

    def test_agent_files_deletion():
        """Check that when an agent is deleted, all its related files in managers are also removed."""
        # Clean ossec.log and cluster.log
        for hosts in managers_hosts:
            host_manager.clear_file(host=hosts, file_path=os.path.join(WAZUH_LOGS_PATH, 'ossec.log'))
            host_manager.clear_file(host=hosts, file_path=os.path.join(WAZUH_LOGS_PATH, 'cluster.log'))
            host_manager.control_service(host=hosts, service='wazuh', state='restarted')

        # Get the token
        master_token = host_manager.get_api_token(master_host)

        # Check if the agent is connected and reporting
>       agent_healthcheck(master_token)

test_agent_files_deletion/test_agent_files_deletion.py:73: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

master_token = 'eyJhbGciOiJFUzUxMiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJ3YXp1aCIsImF1ZCI6IldhenVoIEFQSSBSRVNUIiwibmJmIjoxNjgzOTA2MTc5LCJleHAi...rZQXHrOSMum3ygEfJka5y1CqHLKQhgAGOrrEGaeWfVTkWanP-zDStr7_qMKtJ-ib2XBjzlU-YuMQsjJv1k7w5Hh_kZfI4zG9Iz-3stBIv4deeuteyEo5UH'

    def agent_healthcheck(master_token):
        """Check if the agent is active and reporting."""
        timeout = time() + time_to_agent_reconnect
        healthy = False

        while not healthy:
            response = host_manager.make_api_call(host=master_host, method='GET', token=master_token,
                                                  endpoint='/agents?status=active')

            assert response['status'] == 200, 'Failed when trying to get the active agents'
            if int(response['json']['data']['total_affected_items']) == 4:
                for item in response['json']['data']['affected_items']:
                    if item['name'] == agent_host and item['manager'] == worker_host:
                        healthy = True
            elif time() > timeout:
>               raise TimeoutError("The agent 'wazuh-agent3' is not 'Active' yet.")
E               TimeoutError: The agent 'wazuh-agent3' is not 'Active' yet.

test_agent_files_deletion/test_agent_files_deletion.py:56: TimeoutError
====================================================================================================================== short test summary info =======================================================================================================================
FAILED test_agent_files_deletion/test_agent_files_deletion.py::test_agent_files_deletion - TimeoutError: The agent 'wazuh-agent3' is not 'Active' yet.
=================================================================================================================== 1 failed in 2893.30s (0:48:13) ===================================================================================================================

I will rebuild the cluster and try again

aradkdj commented 1 year ago

Update

After reviewing my local environment with the team and arriving at the conclusion that everything looked normal, I spun up a VM to rule out OS issues. After installing the project's dependencies this is the result:

Running test_agent_files_deletion.py

(.venv) wazuh@ubuntu2204:~/wazuh-qa/tests/system/provisioning/basic_cluster$ ansible-playbook -i inventory.yml playbook.yml --extra-vars='{"wazuh_branch":"4.4", "wazuh_qa_branch":"4.4"}' [DEPRECATION WARNING]: [defaults]callback_whitelist option, normalizing names to new standard, use callbacks_enabled instead. This feature will be removed from ansible-core in version 2.15. Deprecation warnings can be disabled by setting deprecation_warnings=False in ansible.cfg. [DEPRECATION WARNING]: DEFAULT_GATHER_TIMEOUT option, the module_defaults keyword is a more generic version and can apply to all calls to the M(ansible.builtin.gather_facts) or M(ansible.builtin.setup) actions, use module_defaults instead. This feature will be removed from ansible-core in version 2.18. Deprecation warnings can be disabled by setting deprecation_warnings=False in ansible.cfg. [WARNING]: Skipping callback 'mail', unable to load due to: No setting was provided for required configuration plugin_type: callback plugin: ansible_collections.community.general.plugins.callback.mail setting: sender PLAY [Create our container (Master)] ******************************************* TASK [Gathering Facts] ********************************************************* mi\u00e9rcoles 17 mayo 2023 12:41:26 -0400 (0:00:00.063) 0:00:00.063 ******** ok: [localhost] TASK [Create a network] ******************************************************** mi\u00e9rcoles 17 mayo 2023 12:41:29 -0400 (0:00:02.578) 0:00:02.642 ******** changed: [localhost] TASK [docker_container] ******************************************************** mi\u00e9rcoles 17 mayo 2023 12:41:29 -0400 (0:00:00.880) 0:00:03.523 ******** changed: [localhost] PLAY [Create our container (Worker1)] ****************************************** TASK [Gathering Facts] ********************************************************* mi\u00e9rcoles 17 mayo 2023 12:41:58 -0400 (0:00:28.997) 0:00:32.520 ******** ok: [localhost] TASK [docker_container] ******************************************************** mi\u00e9rcoles 17 mayo 2023 12:42:00 -0400 (0:00:01.243) 0:00:33.764 ******** changed: [localhost] PLAY [Create our container (Worker2)] ****************************************** TASK [Gathering Facts] ********************************************************* mi\u00e9rcoles 17 mayo 2023 12:42:01 -0400 (0:00:01.166) 0:00:34.931 ******** ok: [localhost] TASK [docker_container] ******************************************************** mi\u00e9rcoles 17 mayo 2023 12:42:02 -0400 (0:00:01.332) 0:00:36.263 ******** changed: [localhost] PLAY [Create our container (Agent1)] ******************************************* TASK [Gathering Facts] ********************************************************* mi\u00e9rcoles 17 mayo 2023 12:42:03 -0400 (0:00:01.127) 0:00:37.391 ******** ok: [localhost] TASK [docker_container] ******************************************************** mi\u00e9rcoles 17 mayo 2023 12:42:04 -0400 (0:00:01.246) 0:00:38.638 ******** changed: [localhost] PLAY [Create our container (Agent2)] ******************************************* TASK [Gathering Facts] ********************************************************* mi\u00e9rcoles 17 mayo 2023 12:42:06 -0400 (0:00:01.175) 0:00:39.814 ******** ok: [localhost] TASK [docker_container] ******************************************************** mi\u00e9rcoles 17 mayo 2023 12:42:07 -0400 (0:00:01.272) 0:00:41.086 ******** changed: [localhost] PLAY [Create our container (Agent3)] ******************************************* TASK [Gathering Facts] ********************************************************* mi\u00e9rcoles 17 mayo 2023 12:42:08 -0400 (0:00:01.177) 0:00:42.264 ******** ok: [localhost] TASK [docker_container] ******************************************************** mi\u00e9rcoles 17 mayo 2023 12:42:09 -0400 (0:00:01.325) 0:00:43.589 ******** changed: [localhost] PLAY [Wazuh Master] ************************************************************ TASK [Gathering Facts] ********************************************************* mi\u00e9rcoles 17 mayo 2023 12:42:11 -0400 (0:00:01.164) 0:00:44.753 ******** ok: [wazuh-master] TASK [roles/master-role : Check and update debian repositories] **************** mi\u00e9rcoles 17 mayo 2023 12:42:14 -0400 (0:00:03.715) 0:00:48.469 ******** changed: [wazuh-master] TASK [roles/master-role : Installing dependencies using apt] ******************* mi\u00e9rcoles 17 mayo 2023 12:42:18 -0400 (0:00:03.878) 0:00:52.348 ******** changed: [wazuh-master] TASK [roles/master-role : Clone wazuh repository] ****************************** mi\u00e9rcoles 17 mayo 2023 12:42:31 -0400 (0:00:12.793) 0:01:05.141 ******** changed: [wazuh-master] TASK [roles/master-role : Clone wazuh-qa repository] *************************** mi\u00e9rcoles 17 mayo 2023 12:43:01 -0400 (0:00:29.582) 0:01:34.724 ******** changed: [wazuh-master] TASK [roles/master-role : Install master] ************************************** mi\u00e9rcoles 17 mayo 2023 12:43:08 -0400 (0:00:07.140) 0:01:41.864 ******** changed: [wazuh-master] TASK [roles/master-role : Copy ossec.conf file] ******************************** mi\u00e9rcoles 17 mayo 2023 12:45:07 -0400 (0:01:59.429) 0:03:41.294 ******** changed: [wazuh-master] TASK [roles/master-role : Set cluster key] ************************************* mi\u00e9rcoles 17 mayo 2023 12:45:10 -0400 (0:00:02.565) 0:03:43.860 ******** changed: [wazuh-master] TASK [roles/master-role : Set Wazuh Master IP] ********************************* mi\u00e9rcoles 17 mayo 2023 12:45:11 -0400 (0:00:01.173) 0:03:45.033 ******** changed: [wazuh-master] TASK [roles/master-role : Stop Wazuh] ****************************************** mi\u00e9rcoles 17 mayo 2023 12:45:12 -0400 (0:00:01.024) 0:03:46.057 ******** changed: [wazuh-master] TASK [roles/master-role : Remove client.keys] ********************************** mi\u00e9rcoles 17 mayo 2023 12:45:16 -0400 (0:00:04.077) 0:03:50.135 ******** changed: [wazuh-master] TASK [roles/master-role : enable authd and clusterd debug mode] **************** mi\u00e9rcoles 17 mayo 2023 12:45:17 -0400 (0:00:01.142) 0:03:51.277 ******** changed: [wazuh-master] TASK [roles/master-role : Register agents] ************************************* mi\u00e9rcoles 17 mayo 2023 12:45:18 -0400 (0:00:01.077) 0:03:52.355 ******** changed: [wazuh-master] TASK [roles/master-role : Start Wazuh] ***************************************** mi\u00e9rcoles 17 mayo 2023 12:45:19 -0400 (0:00:00.962) 0:03:53.317 ******** changed: [wazuh-master] TASK [roles/master-role : Install necessary dependencies] ********************** mi\u00e9rcoles 17 mayo 2023 12:45:36 -0400 (0:00:16.556) 0:04:09.874 ******** changed: [wazuh-master] TASK [roles/master-role : Copy wdb-query.py script] **************************** mi\u00e9rcoles 17 mayo 2023 12:45:41 -0400 (0:00:05.125) 0:04:15.000 ******** changed: [wazuh-master] PLAY [Wazuh Worker1] *********************************************************** TASK [Gathering Facts] ********************************************************* mi\u00e9rcoles 17 mayo 2023 12:45:43 -0400 (0:00:01.897) 0:04:16.898 ******** ok: [wazuh-worker1] TASK [roles/worker-role : Check and update debian repositories] **************** mi\u00e9rcoles 17 mayo 2023 12:45:47 -0400 (0:00:03.805) 0:04:20.704 ******** changed: [wazuh-worker1] TASK [roles/worker-role : Installing dependencies using apt] ******************* mi\u00e9rcoles 17 mayo 2023 12:45:50 -0400 (0:00:03.868) 0:04:24.572 ******** changed: [wazuh-worker1] TASK [roles/worker-role : Clone wazuh repository] ****************************** mi\u00e9rcoles 17 mayo 2023 12:46:05 -0400 (0:00:14.753) 0:04:39.326 ******** changed: [wazuh-worker1] TASK [roles/worker-role : Clone wazuh-qa repository] *************************** mi\u00e9rcoles 17 mayo 2023 12:46:34 -0400 (0:00:29.067) 0:05:08.394 ******** changed: [wazuh-worker1] TASK [roles/worker-role : Install worker] ************************************** mi\u00e9rcoles 17 mayo 2023 12:46:41 -0400 (0:00:07.132) 0:05:15.526 ******** changed: [wazuh-worker1] TASK [roles/worker-role : Copy ossec.conf file] ******************************** mi\u00e9rcoles 17 mayo 2023 12:48:38 -0400 (0:01:56.538) 0:07:12.065 ******** changed: [wazuh-worker1] TASK [roles/worker-role : Set cluster key] ************************************* mi\u00e9rcoles 17 mayo 2023 12:48:40 -0400 (0:00:02.164) 0:07:14.229 ******** changed: [wazuh-worker1] TASK [roles/worker-role : Set Wazuh Worker name] ******************************* mi\u00e9rcoles 17 mayo 2023 12:48:41 -0400 (0:00:01.083) 0:07:15.313 ******** changed: [wazuh-worker1] TASK [roles/worker-role : Set Wazuh Worker IP] ********************************* mi\u00e9rcoles 17 mayo 2023 12:48:42 -0400 (0:00:00.857) 0:07:16.170 ******** changed: [wazuh-worker1] TASK [roles/worker-role : enable authd and clusterd debug mode] **************** mi\u00e9rcoles 17 mayo 2023 12:48:43 -0400 (0:00:00.993) 0:07:17.164 ******** changed: [wazuh-worker1] TASK [roles/worker-role : Restart Wazuh] *************************************** mi\u00e9rcoles 17 mayo 2023 12:48:44 -0400 (0:00:01.007) 0:07:18.172 ******** changed: [wazuh-worker1] TASK [roles/worker-role : Install necessary dependencies] ********************** mi\u00e9rcoles 17 mayo 2023 12:49:00 -0400 (0:00:16.017) 0:07:34.189 ******** changed: [wazuh-worker1] PLAY [Wazuh Worker2] *********************************************************** TASK [Gathering Facts] ********************************************************* mi\u00e9rcoles 17 mayo 2023 12:49:05 -0400 (0:00:05.405) 0:07:39.595 ******** ok: [wazuh-worker2] TASK [roles/worker-role : Check and update debian repositories] **************** mi\u00e9rcoles 17 mayo 2023 12:49:09 -0400 (0:00:03.577) 0:07:43.173 ******** changed: [wazuh-worker2] TASK [roles/worker-role : Installing dependencies using apt] ******************* mi\u00e9rcoles 17 mayo 2023 12:49:13 -0400 (0:00:03.648) 0:07:46.821 ******** changed: [wazuh-worker2] TASK [roles/worker-role : Clone wazuh repository] ****************************** mi\u00e9rcoles 17 mayo 2023 12:49:27 -0400 (0:00:14.480) 0:08:01.302 ******** changed: [wazuh-worker2] TASK [roles/worker-role : Clone wazuh-qa repository] *************************** mi\u00e9rcoles 17 mayo 2023 12:50:04 -0400 (0:00:36.342) 0:08:37.645 ******** changed: [wazuh-worker2] TASK [roles/worker-role : Install worker] ************************************** mi\u00e9rcoles 17 mayo 2023 12:50:11 -0400 (0:00:07.126) 0:08:44.771 ******** changed: [wazuh-worker2] TASK [roles/worker-role : Copy ossec.conf file] ******************************** mi\u00e9rcoles 17 mayo 2023 12:52:13 -0400 (0:02:02.238) 0:10:47.010 ******** changed: [wazuh-worker2] TASK [roles/worker-role : Set cluster key] ************************************* mi\u00e9rcoles 17 mayo 2023 12:52:15 -0400 (0:00:02.226) 0:10:49.236 ******** changed: [wazuh-worker2] TASK [roles/worker-role : Set Wazuh Worker name] ******************************* mi\u00e9rcoles 17 mayo 2023 12:52:16 -0400 (0:00:01.031) 0:10:50.268 ******** changed: [wazuh-worker2] TASK [roles/worker-role : Set Wazuh Worker IP] ********************************* mi\u00e9rcoles 17 mayo 2023 12:52:17 -0400 (0:00:01.059) 0:10:51.327 ******** changed: [wazuh-worker2] TASK [roles/worker-role : enable authd and clusterd debug mode] **************** mi\u00e9rcoles 17 mayo 2023 12:52:18 -0400 (0:00:01.004) 0:10:52.331 ******** changed: [wazuh-worker2] TASK [roles/worker-role : Restart Wazuh] *************************************** mi\u00e9rcoles 17 mayo 2023 12:52:19 -0400 (0:00:00.972) 0:10:53.303 ******** changed: [wazuh-worker2] TASK [roles/worker-role : Install necessary dependencies] ********************** mi\u00e9rcoles 17 mayo 2023 12:52:36 -0400 (0:00:17.144) 0:11:10.448 ******** changed: [wazuh-worker2] PLAY [Wazuh Agent1] ************************************************************ TASK [Gathering Facts] ********************************************************* mi\u00e9rcoles 17 mayo 2023 12:52:41 -0400 (0:00:05.049) 0:11:15.498 ******** ok: [wazuh-agent1] TASK [roles/agent-role : Check and update debian repositories] ***************** mi\u00e9rcoles 17 mayo 2023 12:52:45 -0400 (0:00:03.709) 0:11:19.207 ******** changed: [wazuh-agent1] TASK [roles/agent-role : Installing dependencies using apt] ******************** mi\u00e9rcoles 17 mayo 2023 12:52:49 -0400 (0:00:03.715) 0:11:22.922 ******** changed: [wazuh-agent1] TASK [roles/agent-role : Clone wazuh repository] ******************************* mi\u00e9rcoles 17 mayo 2023 12:53:03 -0400 (0:00:14.025) 0:11:36.948 ******** changed: [wazuh-agent1] TASK [roles/agent-role : Install agent] **************************************** mi\u00e9rcoles 17 mayo 2023 12:53:37 -0400 (0:00:34.446) 0:12:11.394 ******** changed: [wazuh-agent1] TASK [roles/agent-role : Copy ossec.conf file] ********************************* mi\u00e9rcoles 17 mayo 2023 12:54:44 -0400 (0:01:06.299) 0:13:17.693 ******** changed: [wazuh-agent1] TASK [roles/agent-role : Remove client.keys] *********************************** mi\u00e9rcoles 17 mayo 2023 12:54:46 -0400 (0:00:02.209) 0:13:19.903 ******** changed: [wazuh-agent1] TASK [roles/agent-role : Register agents] ************************************** mi\u00e9rcoles 17 mayo 2023 12:54:47 -0400 (0:00:01.029) 0:13:20.933 ******** changed: [wazuh-agent1] TASK [roles/agent-role : Set Wazuh Manager IP] ********************************* mi\u00e9rcoles 17 mayo 2023 12:54:48 -0400 (0:00:01.060) 0:13:21.993 ******** changed: [wazuh-agent1] TASK [roles/agent-role : Restart Wazuh] **************************************** mi\u00e9rcoles 17 mayo 2023 12:54:49 -0400 (0:00:00.957) 0:13:22.950 ******** changed: [wazuh-agent1] PLAY [Wazuh Agent2] ************************************************************ TASK [Gathering Facts] ********************************************************* mi\u00e9rcoles 17 mayo 2023 12:54:56 -0400 (0:00:07.420) 0:13:30.370 ******** ok: [wazuh-agent2] TASK [roles/agent-role : Check and update debian repositories] ***************** mi\u00e9rcoles 17 mayo 2023 12:55:00 -0400 (0:00:03.596) 0:13:33.967 ******** changed: [wazuh-agent2] TASK [roles/agent-role : Installing dependencies using apt] ******************** mi\u00e9rcoles 17 mayo 2023 12:55:04 -0400 (0:00:03.749) 0:13:37.716 ******** changed: [wazuh-agent2] TASK [roles/agent-role : Clone wazuh repository] ******************************* mi\u00e9rcoles 17 mayo 2023 12:55:19 -0400 (0:00:14.933) 0:13:52.650 ******** changed: [wazuh-agent2] TASK [roles/agent-role : Install agent] **************************************** mi\u00e9rcoles 17 mayo 2023 12:55:47 -0400 (0:00:28.933) 0:14:21.583 ******** changed: [wazuh-agent2] TASK [roles/agent-role : Copy ossec.conf file] ********************************* mi\u00e9rcoles 17 mayo 2023 12:56:56 -0400 (0:01:08.293) 0:15:29.877 ******** changed: [wazuh-agent2] TASK [roles/agent-role : Remove client.keys] *********************************** mi\u00e9rcoles 17 mayo 2023 12:56:58 -0400 (0:00:02.243) 0:15:32.121 ******** changed: [wazuh-agent2] TASK [roles/agent-role : Register agents] ************************************** mi\u00e9rcoles 17 mayo 2023 12:56:59 -0400 (0:00:01.038) 0:15:33.160 ******** changed: [wazuh-agent2] TASK [roles/agent-role : Set Wazuh Manager IP] ********************************* mi\u00e9rcoles 17 mayo 2023 12:57:00 -0400 (0:00:01.055) 0:15:34.215 ******** changed: [wazuh-agent2] TASK [roles/agent-role : Restart Wazuh] **************************************** mi\u00e9rcoles 17 mayo 2023 12:57:01 -0400 (0:00:01.060) 0:15:35.276 ******** changed: [wazuh-agent2] PLAY [Wazuh Agent3] ************************************************************ TASK [Gathering Facts] ********************************************************* mi\u00e9rcoles 17 mayo 2023 12:57:11 -0400 (0:00:09.432) 0:15:44.708 ******** ok: [wazuh-agent3] TASK [roles/agent-role : Check and update debian repositories] ***************** mi\u00e9rcoles 17 mayo 2023 12:57:14 -0400 (0:00:03.731) 0:15:48.440 ******** changed: [wazuh-agent3] TASK [roles/agent-role : Installing dependencies using apt] ******************** mi\u00e9rcoles 17 mayo 2023 12:57:18 -0400 (0:00:03.791) 0:15:52.231 ******** changed: [wazuh-agent3] TASK [roles/agent-role : Clone wazuh repository] ******************************* mi\u00e9rcoles 17 mayo 2023 12:57:33 -0400 (0:00:15.129) 0:16:07.360 ******** changed: [wazuh-agent3] TASK [roles/agent-role : Install agent] **************************************** mi\u00e9rcoles 17 mayo 2023 12:58:07 -0400 (0:00:34.052) 0:16:41.413 ******** changed: [wazuh-agent3] TASK [roles/agent-role : Copy ossec.conf file] ********************************* mi\u00e9rcoles 17 mayo 2023 12:59:15 -0400 (0:01:08.001) 0:17:49.414 ******** changed: [wazuh-agent3] TASK [roles/agent-role : Remove client.keys] *********************************** mi\u00e9rcoles 17 mayo 2023 12:59:17 -0400 (0:00:02.186) 0:17:51.601 ******** changed: [wazuh-agent3] TASK [roles/agent-role : Register agents] ************************************** mi\u00e9rcoles 17 mayo 2023 12:59:18 -0400 (0:00:00.960) 0:17:52.561 ******** changed: [wazuh-agent3] TASK [roles/agent-role : Set Wazuh Manager IP] ********************************* mi\u00e9rcoles 17 mayo 2023 12:59:19 -0400 (0:00:01.031) 0:17:53.593 ******** changed: [wazuh-agent3] TASK [roles/agent-role : Restart Wazuh] **************************************** mi\u00e9rcoles 17 mayo 2023 12:59:20 -0400 (0:00:01.023) 0:17:54.616 ******** changed: [wazuh-agent3] PLAY RECAP ********************************************************************* localhost : ok=13 changed=7 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 wazuh-agent1 : ok=10 changed=9 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 wazuh-agent2 : ok=10 changed=9 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 wazuh-agent3 : ok=10 changed=9 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 wazuh-master : ok=16 changed=15 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 wazuh-worker1 : ok=13 changed=12 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 wazuh-worker2 : ok=13 changed=12 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 mi\u00e9rcoles 17 mayo 2023 12:59:28 -0400 (0:00:07.311) 0:18:01.928 ******** =============================================================================== roles/worker-role : Install worker ------------------------------------ 122.24s roles/master-role : Install master ------------------------------------ 119.43s roles/worker-role : Install worker ------------------------------------ 116.54s roles/agent-role : Install agent --------------------------------------- 68.29s roles/agent-role : Install agent --------------------------------------- 68.00s roles/agent-role : Install agent --------------------------------------- 66.30s roles/worker-role : Clone wazuh repository ----------------------------- 36.34s roles/agent-role : Clone wazuh repository ------------------------------ 34.45s roles/agent-role : Clone wazuh repository ------------------------------ 34.05s roles/master-role : Clone wazuh repository ----------------------------- 29.58s roles/worker-role : Clone wazuh repository ----------------------------- 29.07s docker_container ------------------------------------------------------- 29.00s roles/agent-role : Clone wazuh repository ------------------------------ 28.93s roles/worker-role : Restart Wazuh -------------------------------------- 17.14s roles/master-role : Start Wazuh ---------------------------------------- 16.56s roles/worker-role : Restart Wazuh -------------------------------------- 16.02s roles/agent-role : Installing dependencies using apt ------------------- 15.13s roles/agent-role : Installing dependencies using apt ------------------- 14.93s roles/worker-role : Installing dependencies using apt ------------------ 14.75s roles/worker-role : Installing dependencies using apt ------------------ 14.48s Playbook run took 0 days, 0 hours, 18 minutes, 1 seconds (.venv) wazuh@ubuntu2204:~/wazuh-qa/tests/system/test_cluster$ pytest test_agent_files_deletion/ ============================= test session starts ============================== platform linux -- Python 3.9.16, pytest-6.2.2, py-1.10.0, pluggy-0.13.1 rootdir: /home/wazuh/wazuh-qa/tests/system, configfile: pytest.ini plugins: testinfra-5.0.0, metadata-2.0.4, html-3.1.1 collected 1 item test_agent_files_deletion/test_agent_files_deletion.py . [100%] ======================== 1 passed in 267.60s (0:04:27) ========================= (.venv) wazuh@ubuntu2204:~/wazuh-qa/tests/system/test_cluster$
aradkdj commented 1 year ago

Update

Running test_agent_info_sync

(.venv) wazuh@ubuntu2204:~/wazuh-qa/tests/system/provisioning/basic_cluster$ ansible-playbook -i inventory.yml playbook.yml --extra-vars='{"wazuh_branch":"4.4", "wazuh_qa_branch":"4.4"}' [DEPRECATION WARNING]: [defaults]callback_whitelist option, normalizing names to new standard, use callbacks_enabled instead. This feature will be removed from ansible-core in version 2.15. Deprecation warnings can be disabled by setting deprecation_warnings=False in ansible.cfg. [DEPRECATION WARNING]: DEFAULT_GATHER_TIMEOUT option, the module_defaults keyword is a more generic version and can apply to all calls to the M(ansible.builtin.gather_facts) or M(ansible.builtin.setup) actions, use module_defaults instead. This feature will be removed from ansible-core in version 2.18. Deprecation warnings can be disabled by setting deprecation_warnings=False in ansible.cfg. [WARNING]: Skipping callback 'mail', unable to load due to: No setting was provided for required configuration plugin_type: callback plugin: ansible_collections.community.general.plugins.callback.mail setting: sender PLAY [Create our container (Master)] ******************************************* TASK [Gathering Facts] ********************************************************* mi\u00e9rcoles 17 mayo 2023 14:38:41 -0400 (0:00:00.024) 0:00:00.024 ******** ok: [localhost] TASK [Create a network] ******************************************************** mi\u00e9rcoles 17 mayo 2023 14:38:43 -0400 (0:00:01.754) 0:00:01.779 ******** ok: [localhost] TASK [docker_container] ******************************************************** mi\u00e9rcoles 17 mayo 2023 14:38:44 -0400 (0:00:00.836) 0:00:02.616 ******** ok: [localhost] PLAY [Create our container (Worker1)] ****************************************** TASK [Gathering Facts] ********************************************************* mi\u00e9rcoles 17 mayo 2023 14:38:45 -0400 (0:00:01.039) 0:00:03.655 ******** ok: [localhost] TASK [docker_container] ******************************************************** mi\u00e9rcoles 17 mayo 2023 14:38:47 -0400 (0:00:01.442) 0:00:05.098 ******** ok: [localhost] PLAY [Create our container (Worker2)] ****************************************** TASK [Gathering Facts] ********************************************************* mi\u00e9rcoles 17 mayo 2023 14:38:47 -0400 (0:00:00.749) 0:00:05.847 ******** ok: [localhost] TASK [docker_container] ******************************************************** mi\u00e9rcoles 17 mayo 2023 14:38:49 -0400 (0:00:01.450) 0:00:07.298 ******** ok: [localhost] PLAY [Create our container (Agent1)] ******************************************* TASK [Gathering Facts] ********************************************************* mi\u00e9rcoles 17 mayo 2023 14:38:49 -0400 (0:00:00.670) 0:00:07.969 ******** ok: [localhost] TASK [docker_container] ******************************************************** mi\u00e9rcoles 17 mayo 2023 14:38:51 -0400 (0:00:01.376) 0:00:09.346 ******** ok: [localhost] PLAY [Create our container (Agent2)] ******************************************* TASK [Gathering Facts] ********************************************************* mi\u00e9rcoles 17 mayo 2023 14:38:51 -0400 (0:00:00.698) 0:00:10.044 ******** ok: [localhost] TASK [docker_container] ******************************************************** mi\u00e9rcoles 17 mayo 2023 14:38:53 -0400 (0:00:01.404) 0:00:11.449 ******** ok: [localhost] PLAY [Create our container (Agent3)] ******************************************* TASK [Gathering Facts] ********************************************************* mi\u00e9rcoles 17 mayo 2023 14:38:54 -0400 (0:00:00.723) 0:00:12.173 ******** ok: [localhost] TASK [docker_container] ******************************************************** mi\u00e9rcoles 17 mayo 2023 14:38:55 -0400 (0:00:01.345) 0:00:13.518 ******** ok: [localhost] PLAY [Wazuh Master] ************************************************************ TASK [Gathering Facts] ********************************************************* mi\u00e9rcoles 17 mayo 2023 14:38:56 -0400 (0:00:00.688) 0:00:14.206 ******** ok: [wazuh-master] TASK [roles/master-role : Check and update debian repositories] **************** mi\u00e9rcoles 17 mayo 2023 14:38:59 -0400 (0:00:03.837) 0:00:18.044 ******** changed: [wazuh-master] TASK [roles/master-role : Installing dependencies using apt] ******************* mi\u00e9rcoles 17 mayo 2023 14:39:02 -0400 (0:00:02.661) 0:00:20.705 ******** ok: [wazuh-master] TASK [roles/master-role : Clone wazuh repository] ****************************** mi\u00e9rcoles 17 mayo 2023 14:39:05 -0400 (0:00:03.234) 0:00:23.939 ******** ok: [wazuh-master] TASK [roles/master-role : Clone wazuh-qa repository] *************************** mi\u00e9rcoles 17 mayo 2023 14:39:11 -0400 (0:00:05.550) 0:00:29.490 ******** ok: [wazuh-master] TASK [roles/master-role : Install master] ************************************** mi\u00e9rcoles 17 mayo 2023 14:39:17 -0400 (0:00:05.768) 0:00:35.259 ******** ok: [wazuh-master] TASK [roles/master-role : Copy ossec.conf file] ******************************** mi\u00e9rcoles 17 mayo 2023 14:39:18 -0400 (0:00:00.963) 0:00:36.222 ******** changed: [wazuh-master] TASK [roles/master-role : Set cluster key] ************************************* mi\u00e9rcoles 17 mayo 2023 14:39:20 -0400 (0:00:02.566) 0:00:38.789 ******** changed: [wazuh-master] TASK [roles/master-role : Set Wazuh Master IP] ********************************* mi\u00e9rcoles 17 mayo 2023 14:39:21 -0400 (0:00:01.152) 0:00:39.942 ******** changed: [wazuh-master] TASK [roles/master-role : Stop Wazuh] ****************************************** mi\u00e9rcoles 17 mayo 2023 14:39:22 -0400 (0:00:01.005) 0:00:40.948 ******** changed: [wazuh-master] TASK [roles/master-role : Remove client.keys] ********************************** mi\u00e9rcoles 17 mayo 2023 14:39:28 -0400 (0:00:05.724) 0:00:46.672 ******** changed: [wazuh-master] TASK [roles/master-role : enable authd and clusterd debug mode] **************** mi\u00e9rcoles 17 mayo 2023 14:39:29 -0400 (0:00:01.229) 0:00:47.902 ******** ok: [wazuh-master] TASK [roles/master-role : Register agents] ************************************* mi\u00e9rcoles 17 mayo 2023 14:39:30 -0400 (0:00:01.167) 0:00:49.069 ******** changed: [wazuh-master] TASK [roles/master-role : Start Wazuh] ***************************************** mi\u00e9rcoles 17 mayo 2023 14:39:32 -0400 (0:00:01.048) 0:00:50.118 ******** changed: [wazuh-master] TASK [roles/master-role : Install necessary dependencies] ********************** mi\u00e9rcoles 17 mayo 2023 14:39:47 -0400 (0:00:15.258) 0:01:05.377 ******** changed: [wazuh-master] TASK [roles/master-role : Copy wdb-query.py script] **************************** mi\u00e9rcoles 17 mayo 2023 14:39:49 -0400 (0:00:02.510) 0:01:07.887 ******** ok: [wazuh-master] PLAY [Wazuh Worker1] *********************************************************** TASK [Gathering Facts] ********************************************************* mi\u00e9rcoles 17 mayo 2023 14:39:51 -0400 (0:00:01.884) 0:01:09.772 ******** ok: [wazuh-worker1] TASK [roles/worker-role : Check and update debian repositories] **************** mi\u00e9rcoles 17 mayo 2023 14:39:55 -0400 (0:00:03.648) 0:01:13.421 ******** changed: [wazuh-worker1] TASK [roles/worker-role : Installing dependencies using apt] ******************* mi\u00e9rcoles 17 mayo 2023 14:39:57 -0400 (0:00:02.651) 0:01:16.072 ******** ok: [wazuh-worker1] TASK [roles/worker-role : Clone wazuh repository] ****************************** mi\u00e9rcoles 17 mayo 2023 14:40:00 -0400 (0:00:02.976) 0:01:19.048 ******** ok: [wazuh-worker1] TASK [roles/worker-role : Clone wazuh-qa repository] *************************** mi\u00e9rcoles 17 mayo 2023 14:40:06 -0400 (0:00:05.359) 0:01:24.408 ******** ok: [wazuh-worker1] TASK [roles/worker-role : Install worker] ************************************** mi\u00e9rcoles 17 mayo 2023 14:40:12 -0400 (0:00:06.048) 0:01:30.457 ******** ok: [wazuh-worker1] TASK [roles/worker-role : Copy ossec.conf file] ******************************** mi\u00e9rcoles 17 mayo 2023 14:40:13 -0400 (0:00:01.032) 0:01:31.490 ******** changed: [wazuh-worker1] TASK [roles/worker-role : Set cluster key] ************************************* mi\u00e9rcoles 17 mayo 2023 14:40:15 -0400 (0:00:02.191) 0:01:33.681 ******** changed: [wazuh-worker1] TASK [roles/worker-role : Set Wazuh Worker name] ******************************* mi\u00e9rcoles 17 mayo 2023 14:40:16 -0400 (0:00:01.057) 0:01:34.739 ******** changed: [wazuh-worker1] TASK [roles/worker-role : Set Wazuh Worker IP] ********************************* mi\u00e9rcoles 17 mayo 2023 14:40:17 -0400 (0:00:01.069) 0:01:35.809 ******** changed: [wazuh-worker1] TASK [roles/worker-role : enable authd and clusterd debug mode] **************** mi\u00e9rcoles 17 mayo 2023 14:40:18 -0400 (0:00:01.022) 0:01:36.831 ******** ok: [wazuh-worker1] TASK [roles/worker-role : Restart Wazuh] *************************************** mi\u00e9rcoles 17 mayo 2023 14:40:19 -0400 (0:00:01.052) 0:01:37.883 ******** changed: [wazuh-worker1] TASK [roles/worker-role : Install necessary dependencies] ********************** mi\u00e9rcoles 17 mayo 2023 14:40:38 -0400 (0:00:18.981) 0:01:56.865 ******** changed: [wazuh-worker1] PLAY [Wazuh Worker2] *********************************************************** TASK [Gathering Facts] ********************************************************* mi\u00e9rcoles 17 mayo 2023 14:40:41 -0400 (0:00:02.536) 0:01:59.402 ******** ok: [wazuh-worker2] TASK [roles/worker-role : Check and update debian repositories] **************** mi\u00e9rcoles 17 mayo 2023 14:40:44 -0400 (0:00:03.631) 0:02:03.033 ******** changed: [wazuh-worker2] TASK [roles/worker-role : Installing dependencies using apt] ******************* mi\u00e9rcoles 17 mayo 2023 14:40:47 -0400 (0:00:02.494) 0:02:05.527 ******** ok: [wazuh-worker2] TASK [roles/worker-role : Clone wazuh repository] ****************************** mi\u00e9rcoles 17 mayo 2023 14:40:50 -0400 (0:00:02.936) 0:02:08.464 ******** ok: [wazuh-worker2] TASK [roles/worker-role : Clone wazuh-qa repository] *************************** mi\u00e9rcoles 17 mayo 2023 14:40:56 -0400 (0:00:05.881) 0:02:14.346 ******** ok: [wazuh-worker2] TASK [roles/worker-role : Install worker] ************************************** mi\u00e9rcoles 17 mayo 2023 14:41:02 -0400 (0:00:06.063) 0:02:20.410 ******** ok: [wazuh-worker2] TASK [roles/worker-role : Copy ossec.conf file] ******************************** mi\u00e9rcoles 17 mayo 2023 14:41:03 -0400 (0:00:01.064) 0:02:21.474 ******** changed: [wazuh-worker2] TASK [roles/worker-role : Set cluster key] ************************************* mi\u00e9rcoles 17 mayo 2023 14:41:05 -0400 (0:00:02.149) 0:02:23.624 ******** changed: [wazuh-worker2] TASK [roles/worker-role : Set Wazuh Worker name] ******************************* mi\u00e9rcoles 17 mayo 2023 14:41:06 -0400 (0:00:00.938) 0:02:24.563 ******** changed: [wazuh-worker2] TASK [roles/worker-role : Set Wazuh Worker IP] ********************************* mi\u00e9rcoles 17 mayo 2023 14:41:07 -0400 (0:00:01.018) 0:02:25.581 ******** changed: [wazuh-worker2] TASK [roles/worker-role : enable authd and clusterd debug mode] **************** mi\u00e9rcoles 17 mayo 2023 14:41:08 -0400 (0:00:00.891) 0:02:26.473 ******** ok: [wazuh-worker2] TASK [roles/worker-role : Restart Wazuh] *************************************** mi\u00e9rcoles 17 mayo 2023 14:41:09 -0400 (0:00:01.056) 0:02:27.529 ******** changed: [wazuh-worker2] TASK [roles/worker-role : Install necessary dependencies] ********************** mi\u00e9rcoles 17 mayo 2023 14:41:24 -0400 (0:00:15.456) 0:02:42.986 ******** changed: [wazuh-worker2] PLAY [Wazuh Agent1] ************************************************************ TASK [Gathering Facts] ********************************************************* mi\u00e9rcoles 17 mayo 2023 14:41:27 -0400 (0:00:02.673) 0:02:45.659 ******** ok: [wazuh-agent1] TASK [roles/agent-role : Check and update debian repositories] ***************** mi\u00e9rcoles 17 mayo 2023 14:41:31 -0400 (0:00:03.611) 0:02:49.271 ******** changed: [wazuh-agent1] TASK [roles/agent-role : Installing dependencies using apt] ******************** mi\u00e9rcoles 17 mayo 2023 14:41:33 -0400 (0:00:02.513) 0:02:51.785 ******** ok: [wazuh-agent1] TASK [roles/agent-role : Clone wazuh repository] ******************************* mi\u00e9rcoles 17 mayo 2023 14:41:36 -0400 (0:00:02.909) 0:02:54.694 ******** ok: [wazuh-agent1] TASK [roles/agent-role : Install agent] **************************************** mi\u00e9rcoles 17 mayo 2023 14:41:42 -0400 (0:00:05.632) 0:03:00.327 ******** ok: [wazuh-agent1] TASK [roles/agent-role : Copy ossec.conf file] ********************************* mi\u00e9rcoles 17 mayo 2023 14:41:43 -0400 (0:00:00.965) 0:03:01.293 ******** changed: [wazuh-agent1] TASK [roles/agent-role : Remove client.keys] *********************************** mi\u00e9rcoles 17 mayo 2023 14:41:45 -0400 (0:00:02.123) 0:03:03.416 ******** changed: [wazuh-agent1] TASK [roles/agent-role : Register agents] ************************************** mi\u00e9rcoles 17 mayo 2023 14:41:46 -0400 (0:00:00.969) 0:03:04.385 ******** changed: [wazuh-agent1] TASK [roles/agent-role : Set Wazuh Manager IP] ********************************* mi\u00e9rcoles 17 mayo 2023 14:41:47 -0400 (0:00:01.002) 0:03:05.388 ******** changed: [wazuh-agent1] TASK [roles/agent-role : Restart Wazuh] **************************************** mi\u00e9rcoles 17 mayo 2023 14:41:48 -0400 (0:00:00.996) 0:03:06.385 ******** changed: [wazuh-agent1] PLAY [Wazuh Agent2] ************************************************************ TASK [Gathering Facts] ********************************************************* mi\u00e9rcoles 17 mayo 2023 14:41:55 -0400 (0:00:07.436) 0:03:13.821 ******** ok: [wazuh-agent2] TASK [roles/agent-role : Check and update debian repositories] ***************** mi\u00e9rcoles 17 mayo 2023 14:41:59 -0400 (0:00:03.747) 0:03:17.568 ******** changed: [wazuh-agent2] TASK [roles/agent-role : Installing dependencies using apt] ******************** mi\u00e9rcoles 17 mayo 2023 14:42:03 -0400 (0:00:03.662) 0:03:21.231 ******** changed: [wazuh-agent2] TASK [roles/agent-role : Clone wazuh repository] ******************************* mi\u00e9rcoles 17 mayo 2023 14:42:17 -0400 (0:00:14.720) 0:03:35.952 ******** changed: [wazuh-agent2] TASK [roles/agent-role : Install agent] **************************************** mi\u00e9rcoles 17 mayo 2023 14:42:46 -0400 (0:00:28.619) 0:04:04.572 ******** changed: [wazuh-agent2] TASK [roles/agent-role : Copy ossec.conf file] ********************************* mi\u00e9rcoles 17 mayo 2023 14:43:53 -0400 (0:01:06.583) 0:05:11.156 ******** changed: [wazuh-agent2] TASK [roles/agent-role : Remove client.keys] *********************************** mi\u00e9rcoles 17 mayo 2023 14:43:55 -0400 (0:00:02.361) 0:05:13.517 ******** changed: [wazuh-agent2] TASK [roles/agent-role : Register agents] ************************************** mi\u00e9rcoles 17 mayo 2023 14:43:56 -0400 (0:00:01.072) 0:05:14.590 ******** changed: [wazuh-agent2] TASK [roles/agent-role : Set Wazuh Manager IP] ********************************* mi\u00e9rcoles 17 mayo 2023 14:43:57 -0400 (0:00:01.088) 0:05:15.678 ******** changed: [wazuh-agent2] TASK [roles/agent-role : Restart Wazuh] **************************************** mi\u00e9rcoles 17 mayo 2023 14:43:58 -0400 (0:00:01.043) 0:05:16.721 ******** changed: [wazuh-agent2] PLAY [Wazuh Agent3] ************************************************************ TASK [Gathering Facts] ********************************************************* mi\u00e9rcoles 17 mayo 2023 14:44:07 -0400 (0:00:08.490) 0:05:25.212 ******** ok: [wazuh-agent3] TASK [roles/agent-role : Check and update debian repositories] ***************** mi\u00e9rcoles 17 mayo 2023 14:44:10 -0400 (0:00:03.750) 0:05:28.963 ******** changed: [wazuh-agent3] TASK [roles/agent-role : Installing dependencies using apt] ******************** mi\u00e9rcoles 17 mayo 2023 14:44:14 -0400 (0:00:03.600) 0:05:32.564 ******** changed: [wazuh-agent3] TASK [roles/agent-role : Clone wazuh repository] ******************************* mi\u00e9rcoles 17 mayo 2023 14:44:29 -0400 (0:00:14.552) 0:05:47.116 ******** changed: [wazuh-agent3] TASK [roles/agent-role : Install agent] **************************************** mi\u00e9rcoles 17 mayo 2023 14:44:55 -0400 (0:00:26.319) 0:06:13.436 ******** changed: [wazuh-agent3] TASK [roles/agent-role : Copy ossec.conf file] ********************************* mi\u00e9rcoles 17 mayo 2023 14:46:02 -0400 (0:01:07.621) 0:07:21.057 ******** changed: [wazuh-agent3] TASK [roles/agent-role : Remove client.keys] *********************************** mi\u00e9rcoles 17 mayo 2023 14:46:05 -0400 (0:00:02.202) 0:07:23.260 ******** changed: [wazuh-agent3] TASK [roles/agent-role : Register agents] ************************************** mi\u00e9rcoles 17 mayo 2023 14:46:06 -0400 (0:00:00.984) 0:07:24.244 ******** changed: [wazuh-agent3] TASK [roles/agent-role : Set Wazuh Manager IP] ********************************* mi\u00e9rcoles 17 mayo 2023 14:46:07 -0400 (0:00:01.006) 0:07:25.251 ******** changed: [wazuh-agent3] TASK [roles/agent-role : Restart Wazuh] **************************************** mi\u00e9rcoles 17 mayo 2023 14:46:08 -0400 (0:00:00.958) 0:07:26.209 ******** changed: [wazuh-agent3] PLAY RECAP ********************************************************************* localhost : ok=13 changed=0 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 wazuh-agent1 : ok=10 changed=6 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 wazuh-agent2 : ok=10 changed=9 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 wazuh-agent3 : ok=10 changed=9 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 wazuh-master : ok=16 changed=9 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 wazuh-worker1 : ok=13 changed=7 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 wazuh-worker2 : ok=13 changed=7 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 mi\u00e9rcoles 17 mayo 2023 14:46:15 -0400 (0:00:07.393) 0:07:33.603 ******** =============================================================================== roles/agent-role : Install agent --------------------------------------- 67.62s roles/agent-role : Install agent --------------------------------------- 66.59s roles/agent-role : Clone wazuh repository ------------------------------ 28.62s roles/agent-role : Clone wazuh repository ------------------------------ 26.32s roles/worker-role : Restart Wazuh -------------------------------------- 18.98s roles/worker-role : Restart Wazuh -------------------------------------- 15.46s roles/master-role : Start Wazuh ---------------------------------------- 15.26s roles/agent-role : Installing dependencies using apt ------------------- 14.72s roles/agent-role : Installing dependencies using apt ------------------- 14.55s roles/agent-role : Restart Wazuh ---------------------------------------- 8.49s roles/agent-role : Restart Wazuh ---------------------------------------- 7.44s roles/agent-role : Restart Wazuh ---------------------------------------- 7.39s roles/worker-role : Clone wazuh-qa repository --------------------------- 6.06s roles/worker-role : Clone wazuh-qa repository --------------------------- 6.05s roles/worker-role : Clone wazuh repository ------------------------------ 5.88s roles/master-role : Clone wazuh-qa repository --------------------------- 5.77s roles/master-role : Stop Wazuh ------------------------------------------ 5.72s roles/agent-role : Clone wazuh repository ------------------------------- 5.63s roles/master-role : Clone wazuh repository ------------------------------ 5.55s roles/worker-role : Clone wazuh repository ------------------------------ 5.36s Playbook run took 0 days, 0 hours, 7 minutes, 33 seconds (.venv) wazuh@ubuntu2204:~/wazuh-qa/tests/system/test_cluster$ pytest test_agent_info_sync/ ============================= test session starts ============================== platform linux -- Python 3.9.16, pytest-6.2.2, py-1.10.0, pluggy-0.13.1 rootdir: /home/wazuh/wazuh-qa/tests/system, configfile: pytest.ini plugins: testinfra-5.0.0, metadata-2.0.4, html-3.1.1 collected 2 items test_agent_info_sync/test_agent_info_sync.py .. [100%] ======================== 2 passed in 441.84s (0:07:21) ========================= (.venv) wazuh@ubuntu2204:~/wazuh-qa/tests/system/test_cluster$
aradkdj commented 1 year ago

Update

Building the four_manager_disconnected_node environment.

(.venv) wazuh@ubuntu2204:~/wazuh-qa/tests/system/provisioning/four_manager_disconnected_node$ ansible-playbook -i inventory.yml playbook.yml --extra-vars='{"wazuh_branch":"4.4", "wazuh_qa_branch":"4.4"}' [DEPRECATION WARNING]: [defaults]callback_whitelist option, normalizing names to new standard, use callbacks_enabled instead. This feature will be removed from ansible-core in version 2.15. Deprecation warnings can be disabled by setting deprecation_warnings=False in ansible.cfg. [DEPRECATION WARNING]: DEFAULT_GATHER_TIMEOUT option, the module_defaults keyword is a more generic version and can apply to all calls to the M(ansible.builtin.gather_facts) or M(ansible.builtin.setup) actions, use module_defaults instead. This feature will be removed from ansible-core in version 2.18. Deprecation warnings can be disabled by setting deprecation_warnings=False in ansible.cfg. [WARNING]: Skipping callback 'mail', unable to load due to: No setting was provided for required configuration plugin_type: callback plugin: ansible_collections.community.general.plugins.callback.mail setting: sender PLAY [Create our container (Master)] ******************************************* TASK [Gathering Facts] ********************************************************* mi\u00e9rcoles 17 mayo 2023 18:21:00 -0400 (0:00:00.023) 0:00:00.023 ******** ok: [localhost] TASK [Create a network] ******************************************************** mi\u00e9rcoles 17 mayo 2023 18:21:02 -0400 (0:00:01.536) 0:00:01.559 ******** ok: [localhost] TASK [docker_container] ******************************************************** mi\u00e9rcoles 17 mayo 2023 18:21:02 -0400 (0:00:00.825) 0:00:02.384 ******** changed: [localhost] PLAY [Create our container (Worker1)] ****************************************** TASK [Gathering Facts] ********************************************************* mi\u00e9rcoles 17 mayo 2023 18:21:04 -0400 (0:00:01.611) 0:00:03.996 ******** ok: [localhost] TASK [docker_container] ******************************************************** mi\u00e9rcoles 17 mayo 2023 18:21:05 -0400 (0:00:01.258) 0:00:05.255 ******** changed: [localhost] PLAY [Create our container (Worker2)] ****************************************** TASK [Gathering Facts] ********************************************************* mi\u00e9rcoles 17 mayo 2023 18:21:06 -0400 (0:00:01.037) 0:00:06.293 ******** ok: [localhost] TASK [docker_container] ******************************************************** mi\u00e9rcoles 17 mayo 2023 18:21:08 -0400 (0:00:01.239) 0:00:07.532 ******** changed: [localhost] PLAY [Create our container (Worker3)] ****************************************** TASK [Gathering Facts] ********************************************************* mi\u00e9rcoles 17 mayo 2023 18:21:09 -0400 (0:00:01.049) 0:00:08.581 ******** ok: [localhost] TASK [docker_container] ******************************************************** mi\u00e9rcoles 17 mayo 2023 18:21:11 -0400 (0:00:02.238) 0:00:10.820 ******** changed: [localhost] PLAY [Create our container (Agent1)] ******************************************* TASK [Gathering Facts] ********************************************************* mi\u00e9rcoles 17 mayo 2023 18:21:12 -0400 (0:00:01.078) 0:00:11.898 ******** ok: [localhost] TASK [docker_container] ******************************************************** mi\u00e9rcoles 17 mayo 2023 18:21:13 -0400 (0:00:01.303) 0:00:13.202 ******** changed: [localhost] PLAY [Create our container (Agent2)] ******************************************* TASK [Gathering Facts] ********************************************************* mi\u00e9rcoles 17 mayo 2023 18:21:14 -0400 (0:00:01.120) 0:00:14.322 ******** ok: [localhost] TASK [docker_container] ******************************************************** mi\u00e9rcoles 17 mayo 2023 18:21:16 -0400 (0:00:01.293) 0:00:15.615 ******** changed: [localhost] PLAY [Wazuh Master] ************************************************************ TASK [Gathering Facts] ********************************************************* mi\u00e9rcoles 17 mayo 2023 18:21:17 -0400 (0:00:01.065) 0:00:16.680 ******** ok: [wazuh-master] TASK [roles/master-role : Check and update debian repositories] **************** mi\u00e9rcoles 17 mayo 2023 18:21:21 -0400 (0:00:03.755) 0:00:20.435 ******** changed: [wazuh-master] TASK [roles/master-role : Installing dependencies using apt] ******************* mi\u00e9rcoles 17 mayo 2023 18:21:24 -0400 (0:00:03.855) 0:00:24.291 ******** changed: [wazuh-master] TASK [roles/master-role : Clone wazuh repository] ****************************** mi\u00e9rcoles 17 mayo 2023 18:21:37 -0400 (0:00:12.273) 0:00:36.565 ******** changed: [wazuh-master] TASK [roles/master-role : Install master] ************************************** mi\u00e9rcoles 17 mayo 2023 18:22:15 -0400 (0:00:38.123) 0:01:14.688 ******** changed: [wazuh-master] TASK [roles/master-role : Copy ossec.conf file] ******************************** mi\u00e9rcoles 17 mayo 2023 18:24:11 -0400 (0:01:56.537) 0:03:11.226 ******** changed: [wazuh-master] TASK [roles/master-role : Set cluster key] ************************************* mi\u00e9rcoles 17 mayo 2023 18:24:14 -0400 (0:00:02.546) 0:03:13.772 ******** changed: [wazuh-master] TASK [roles/master-role : Set Wazuh Master IP] ********************************* mi\u00e9rcoles 17 mayo 2023 18:24:15 -0400 (0:00:01.187) 0:03:14.960 ******** changed: [wazuh-master] TASK [roles/master-role : Stop Wazuh] ****************************************** mi\u00e9rcoles 17 mayo 2023 18:24:16 -0400 (0:00:00.912) 0:03:15.872 ******** changed: [wazuh-master] TASK [roles/master-role : Remove client.keys] ********************************** mi\u00e9rcoles 17 mayo 2023 18:24:20 -0400 (0:00:04.253) 0:03:20.125 ******** changed: [wazuh-master] TASK [roles/master-role : enable authd and clusterd debug mode] **************** mi\u00e9rcoles 17 mayo 2023 18:24:21 -0400 (0:00:01.181) 0:03:21.307 ******** changed: [wazuh-master] TASK [roles/master-role : Start Wazuh] ***************************************** mi\u00e9rcoles 17 mayo 2023 18:24:23 -0400 (0:00:01.122) 0:03:22.430 ******** changed: [wazuh-master] TASK [roles/master-role : Install necessary dependencies] ********************** mi\u00e9rcoles 17 mayo 2023 18:24:36 -0400 (0:00:13.751) 0:03:36.181 ******** changed: [wazuh-master] PLAY [Wazuh Worker1] *********************************************************** TASK [Gathering Facts] ********************************************************* mi\u00e9rcoles 17 mayo 2023 18:24:42 -0400 (0:00:05.270) 0:03:41.452 ******** ok: [wazuh-worker1] TASK [roles/worker-role : Check and update debian repositories] **************** mi\u00e9rcoles 17 mayo 2023 18:24:45 -0400 (0:00:03.559) 0:03:45.011 ******** changed: [wazuh-worker1] TASK [roles/worker-role : Installing dependencies using apt] ******************* mi\u00e9rcoles 17 mayo 2023 18:24:49 -0400 (0:00:03.542) 0:03:48.554 ******** changed: [wazuh-worker1] TASK [roles/worker-role : Clone wazuh repository] ****************************** mi\u00e9rcoles 17 mayo 2023 18:25:03 -0400 (0:00:13.954) 0:04:02.509 ******** changed: [wazuh-worker1] TASK [roles/worker-role : Install worker] ************************************** mi\u00e9rcoles 17 mayo 2023 18:25:28 -0400 (0:00:25.616) 0:04:28.126 ******** changed: [wazuh-worker1] TASK [roles/worker-role : Copy ossec.conf file] ******************************** mi\u00e9rcoles 17 mayo 2023 18:27:27 -0400 (0:01:58.990) 0:06:27.116 ******** changed: [wazuh-worker1] TASK [roles/worker-role : Set cluster key] ************************************* mi\u00e9rcoles 17 mayo 2023 18:27:29 -0400 (0:00:02.203) 0:06:29.319 ******** changed: [wazuh-worker1] TASK [roles/worker-role : Set Wazuh Worker name] ******************************* mi\u00e9rcoles 17 mayo 2023 18:27:30 -0400 (0:00:01.012) 0:06:30.332 ******** changed: [wazuh-worker1] TASK [roles/worker-role : Set Wazuh Worker IP] ********************************* mi\u00e9rcoles 17 mayo 2023 18:27:31 -0400 (0:00:00.976) 0:06:31.309 ******** changed: [wazuh-worker1] TASK [roles/worker-role : enable authd and clusterd debug mode] **************** mi\u00e9rcoles 17 mayo 2023 18:27:32 -0400 (0:00:00.997) 0:06:32.306 ******** changed: [wazuh-worker1] TASK [roles/worker-role : Restart Wazuh] *************************************** mi\u00e9rcoles 17 mayo 2023 18:27:33 -0400 (0:00:00.971) 0:06:33.278 ******** changed: [wazuh-worker1] TASK [roles/worker-role : Install necessary dependencies] ********************** mi\u00e9rcoles 17 mayo 2023 18:27:49 -0400 (0:00:15.452) 0:06:48.730 ******** changed: [wazuh-worker1] PLAY [Wazuh Worker2] *********************************************************** TASK [Gathering Facts] ********************************************************* mi\u00e9rcoles 17 mayo 2023 18:27:54 -0400 (0:00:05.139) 0:06:53.869 ******** ok: [wazuh-worker2] TASK [roles/worker-role : Check and update debian repositories] **************** mi\u00e9rcoles 17 mayo 2023 18:27:58 -0400 (0:00:03.751) 0:06:57.621 ******** changed: [wazuh-worker2] TASK [roles/worker-role : Installing dependencies using apt] ******************* mi\u00e9rcoles 17 mayo 2023 18:28:01 -0400 (0:00:03.579) 0:07:01.201 ******** changed: [wazuh-worker2] TASK [roles/worker-role : Clone wazuh repository] ****************************** mi\u00e9rcoles 17 mayo 2023 18:28:15 -0400 (0:00:14.064) 0:07:15.265 ******** changed: [wazuh-worker2] TASK [roles/worker-role : Install worker] ************************************** mi\u00e9rcoles 17 mayo 2023 18:28:45 -0400 (0:00:30.049) 0:07:45.314 ******** changed: [wazuh-worker2] TASK [roles/worker-role : Copy ossec.conf file] ******************************** mi\u00e9rcoles 17 mayo 2023 18:30:46 -0400 (0:02:00.369) 0:09:45.683 ******** changed: [wazuh-worker2] TASK [roles/worker-role : Set cluster key] ************************************* mi\u00e9rcoles 17 mayo 2023 18:30:48 -0400 (0:00:01.841) 0:09:47.525 ******** changed: [wazuh-worker2] TASK [roles/worker-role : Set Wazuh Worker name] ******************************* mi\u00e9rcoles 17 mayo 2023 18:30:48 -0400 (0:00:00.746) 0:09:48.272 ******** changed: [wazuh-worker2] TASK [roles/worker-role : Set Wazuh Worker IP] ********************************* mi\u00e9rcoles 17 mayo 2023 18:30:49 -0400 (0:00:00.720) 0:09:48.992 ******** changed: [wazuh-worker2] TASK [roles/worker-role : enable authd and clusterd debug mode] **************** mi\u00e9rcoles 17 mayo 2023 18:30:50 -0400 (0:00:00.791) 0:09:49.784 ******** changed: [wazuh-worker2] TASK [roles/worker-role : Restart Wazuh] *************************************** mi\u00e9rcoles 17 mayo 2023 18:30:51 -0400 (0:00:00.920) 0:09:50.704 ******** changed: [wazuh-worker2] TASK [roles/worker-role : Install necessary dependencies] ********************** mi\u00e9rcoles 17 mayo 2023 18:31:08 -0400 (0:00:17.035) 0:10:07.739 ******** changed: [wazuh-worker2] PLAY [Wazuh Worker3] *********************************************************** TASK [Gathering Facts] ********************************************************* mi\u00e9rcoles 17 mayo 2023 18:31:13 -0400 (0:00:05.128) 0:10:12.868 ******** ok: [wazuh-worker3] TASK [roles/worker-role : Check and update debian repositories] **************** mi\u00e9rcoles 17 mayo 2023 18:31:17 -0400 (0:00:03.699) 0:10:16.568 ******** changed: [wazuh-worker3] TASK [roles/worker-role : Installing dependencies using apt] ******************* mi\u00e9rcoles 17 mayo 2023 18:31:20 -0400 (0:00:03.591) 0:10:20.159 ******** changed: [wazuh-worker3] TASK [roles/worker-role : Clone wazuh repository] ****************************** mi\u00e9rcoles 17 mayo 2023 18:31:35 -0400 (0:00:14.560) 0:10:34.719 ******** changed: [wazuh-worker3] TASK [roles/worker-role : Install worker] ************************************** mi\u00e9rcoles 17 mayo 2023 18:32:06 -0400 (0:00:30.833) 0:11:05.553 ******** changed: [wazuh-worker3] TASK [roles/worker-role : Copy ossec.conf file] ******************************** mi\u00e9rcoles 17 mayo 2023 18:33:59 -0400 (0:01:53.061) 0:12:58.614 ******** changed: [wazuh-worker3] TASK [roles/worker-role : Set cluster key] ************************************* mi\u00e9rcoles 17 mayo 2023 18:34:01 -0400 (0:00:02.030) 0:13:00.644 ******** changed: [wazuh-worker3] TASK [roles/worker-role : Set Wazuh Worker name] ******************************* mi\u00e9rcoles 17 mayo 2023 18:34:02 -0400 (0:00:00.957) 0:13:01.602 ******** changed: [wazuh-worker3] TASK [roles/worker-role : Set Wazuh Worker IP] ********************************* mi\u00e9rcoles 17 mayo 2023 18:34:03 -0400 (0:00:00.987) 0:13:02.590 ******** changed: [wazuh-worker3] TASK [roles/worker-role : enable authd and clusterd debug mode] **************** mi\u00e9rcoles 17 mayo 2023 18:34:04 -0400 (0:00:00.990) 0:13:03.581 ******** changed: [wazuh-worker3] TASK [roles/worker-role : Restart Wazuh] *************************************** mi\u00e9rcoles 17 mayo 2023 18:34:05 -0400 (0:00:00.944) 0:13:04.525 ******** changed: [wazuh-worker3] TASK [roles/worker-role : Install necessary dependencies] ********************** mi\u00e9rcoles 17 mayo 2023 18:34:20 -0400 (0:00:15.232) 0:13:19.757 ******** changed: [wazuh-worker3] PLAY [Wazuh Agent1] ************************************************************ TASK [Gathering Facts] ********************************************************* mi\u00e9rcoles 17 mayo 2023 18:34:25 -0400 (0:00:04.813) 0:13:24.570 ******** ok: [wazuh-agent1] TASK [roles/agent-role : Check and update debian repositories] ***************** mi\u00e9rcoles 17 mayo 2023 18:34:28 -0400 (0:00:03.639) 0:13:28.210 ******** changed: [wazuh-agent1] TASK [roles/agent-role : Installing dependencies using apt] ******************** mi\u00e9rcoles 17 mayo 2023 18:34:32 -0400 (0:00:03.486) 0:13:31.697 ******** changed: [wazuh-agent1] TASK [roles/agent-role : Clone wazuh repository] ******************************* mi\u00e9rcoles 17 mayo 2023 18:34:46 -0400 (0:00:13.756) 0:13:45.454 ******** changed: [wazuh-agent1] TASK [roles/agent-role : Install agent] **************************************** mi\u00e9rcoles 17 mayo 2023 18:35:17 -0400 (0:00:31.819) 0:14:17.273 ******** changed: [wazuh-agent1] TASK [roles/agent-role : Copy ossec.conf file] ********************************* mi\u00e9rcoles 17 mayo 2023 18:36:23 -0400 (0:01:06.073) 0:15:23.347 ******** changed: [wazuh-agent1] TASK [roles/agent-role : Remove client.keys] *********************************** mi\u00e9rcoles 17 mayo 2023 18:36:26 -0400 (0:00:02.223) 0:15:25.570 ******** changed: [wazuh-agent1] TASK [roles/agent-role : Set Wazuh Manager IP] ********************************* mi\u00e9rcoles 17 mayo 2023 18:36:27 -0400 (0:00:00.967) 0:15:26.537 ******** changed: [wazuh-agent1] PLAY [Wazuh Agent2] ************************************************************ TASK [Gathering Facts] ********************************************************* mi\u00e9rcoles 17 mayo 2023 18:36:28 -0400 (0:00:01.102) 0:15:27.640 ******** ok: [wazuh-agent2] TASK [roles/agent-role : Check and update debian repositories] ***************** mi\u00e9rcoles 17 mayo 2023 18:36:31 -0400 (0:00:03.560) 0:15:31.200 ******** changed: [wazuh-agent2] TASK [roles/agent-role : Installing dependencies using apt] ******************** mi\u00e9rcoles 17 mayo 2023 18:36:35 -0400 (0:00:03.933) 0:15:35.134 ******** changed: [wazuh-agent2] TASK [roles/agent-role : Clone wazuh repository] ******************************* mi\u00e9rcoles 17 mayo 2023 18:36:50 -0400 (0:00:14.469) 0:15:49.604 ******** changed: [wazuh-agent2] TASK [roles/agent-role : Install agent] **************************************** mi\u00e9rcoles 17 mayo 2023 18:37:20 -0400 (0:00:29.942) 0:16:19.546 ******** changed: [wazuh-agent2] TASK [roles/agent-role : Copy ossec.conf file] ********************************* mi\u00e9rcoles 17 mayo 2023 18:38:24 -0400 (0:01:04.008) 0:17:23.555 ******** changed: [wazuh-agent2] TASK [roles/agent-role : Remove client.keys] *********************************** mi\u00e9rcoles 17 mayo 2023 18:38:26 -0400 (0:00:02.171) 0:17:25.727 ******** changed: [wazuh-agent2] TASK [roles/agent-role : Set Wazuh Manager IP] ********************************* mi\u00e9rcoles 17 mayo 2023 18:38:27 -0400 (0:00:01.024) 0:17:26.752 ******** changed: [wazuh-agent2] PLAY RECAP ********************************************************************* localhost : ok=13 changed=6 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 wazuh-agent1 : ok=8 changed=7 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 wazuh-agent2 : ok=8 changed=7 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 wazuh-master : ok=13 changed=12 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 wazuh-worker1 : ok=12 changed=11 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 wazuh-worker2 : ok=12 changed=11 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 wazuh-worker3 : ok=12 changed=11 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 mi\u00e9rcoles 17 mayo 2023 18:38:28 -0400 (0:00:01.116) 0:17:27.868 ******** =============================================================================== roles/worker-role : Install worker ------------------------------------ 120.37s roles/worker-role : Install worker ------------------------------------ 118.99s roles/master-role : Install master ------------------------------------ 116.54s roles/worker-role : Install worker ------------------------------------ 113.06s roles/agent-role : Install agent --------------------------------------- 66.07s roles/agent-role : Install agent --------------------------------------- 64.01s roles/master-role : Clone wazuh repository ----------------------------- 38.12s roles/agent-role : Clone wazuh repository ------------------------------ 31.82s roles/worker-role : Clone wazuh repository ----------------------------- 30.83s roles/worker-role : Clone wazuh repository ----------------------------- 30.05s roles/agent-role : Clone wazuh repository ------------------------------ 29.94s roles/worker-role : Clone wazuh repository ----------------------------- 25.62s roles/worker-role : Restart Wazuh -------------------------------------- 17.04s roles/worker-role : Restart Wazuh -------------------------------------- 15.45s roles/worker-role : Restart Wazuh -------------------------------------- 15.23s roles/worker-role : Installing dependencies using apt ------------------ 14.56s roles/agent-role : Installing dependencies using apt ------------------- 14.47s roles/worker-role : Installing dependencies using apt ------------------ 14.06s roles/worker-role : Installing dependencies using apt ------------------ 13.95s roles/agent-role : Installing dependencies using apt ------------------- 13.76s Playbook run took 0 days, 0 hours, 17 minutes, 27 seconds (.venv) wazuh@ubuntu2204:~/wazuh-qa/tests/system/provisioning/four_manager_disconnected_node$
aradkdj commented 1 year ago

Update

Creating the big_cluster_40_agents.

(venv) wazuh@ubuntu2204:~/wazuh-qa/tests/system/provisioning/big_cluster_40_agents$ ansible-playbook -i inventory.yml playbook.yml --extra-vars='{"wazuh_branch":"4.4", "wazuh_qa_branch":"4.4"}' [DEPRECATION WARNING]: [defaults]callback_whitelist option, normalizing names to new standard, use callbacks_enabled instead. This feature will be removed from ansible-core in version 2.15. Deprecation warnings can be disabled by setting deprecation_warnings=False in ansible.cfg. [DEPRECATION WARNING]: DEFAULT_GATHER_TIMEOUT option, the module_defaults keyword is a more generic version and can apply to all calls to the M(ansible.builtin.gather_facts) or M(ansible.builtin.setup) actions, use module_defaults instead. This feature will be removed from ansible-core in version 2.18. Deprecation warnings can be disabled by setting deprecation_warnings=False in ansible.cfg. [WARNING]: Skipping callback 'mail', unable to load due to: No setting was provided for required configuration plugin_type: callback plugin: ansible_collections.community.general.plugins.callback.mail setting: sender PLAY [Create our container (Master)] ******************************************* TASK [Gathering Facts] ********************************************************* mi\u00e9rcoles 17 mayo 2023 23:32:24 -0400 (0:00:00.018) 0:00:00.018 ******** ok: [localhost] TASK [Create a network] ******************************************************** mi\u00e9rcoles 17 mayo 2023 23:32:26 -0400 (0:00:01.676) 0:00:01.695 ******** changed: [localhost] TASK [docker_container] ******************************************************** mi\u00e9rcoles 17 mayo 2023 23:32:27 -0400 (0:00:00.876) 0:00:02.572 ******** changed: [localhost] PLAY [Create our container (Worker1)] ****************************************** TASK [Gathering Facts] ********************************************************* mi\u00e9rcoles 17 mayo 2023 23:32:57 -0400 (0:00:30.163) 0:00:32.735 ******** ok: [localhost] TASK [docker_container] ******************************************************** mi\u00e9rcoles 17 mayo 2023 23:32:58 -0400 (0:00:01.201) 0:00:33.936 ******** changed: [localhost] PLAY [Create our container (Worker2)] ****************************************** TASK [Gathering Facts] ********************************************************* mi\u00e9rcoles 17 mayo 2023 23:32:59 -0400 (0:00:01.250) 0:00:35.187 ******** ok: [localhost] TASK [docker_container] ******************************************************** mi\u00e9rcoles 17 mayo 2023 23:33:00 -0400 (0:00:01.207) 0:00:36.394 ******** changed: [localhost] PLAY [Create our agents containers (1-40)] ************************************* TASK [Gathering Facts] ********************************************************* mi\u00e9rcoles 17 mayo 2023 23:33:01 -0400 (0:00:01.164) 0:00:37.558 ******** ok: [localhost] TASK [docker_container] ******************************************************** mi\u00e9rcoles 17 mayo 2023 23:33:03 -0400 (0:00:01.271) 0:00:38.830 ******** changed: [localhost] => (item={'name': 'wazuh-agent1'}) changed: [localhost] => (item={'name': 'wazuh-agent2'}) changed: [localhost] => (item={'name': 'wazuh-agent3'}) changed: [localhost] => (item={'name': 'wazuh-agent4'}) changed: [localhost] => (item={'name': 'wazuh-agent5'}) changed: [localhost] => (item={'name': 'wazuh-agent6'}) changed: [localhost] => (item={'name': 'wazuh-agent7'}) changed: [localhost] => (item={'name': 'wazuh-agent8'}) changed: [localhost] => (item={'name': 'wazuh-agent9'}) changed: [localhost] => (item={'name': 'wazuh-agent10'}) changed: [localhost] => (item={'name': 'wazuh-agent11'}) changed: [localhost] => (item={'name': 'wazuh-agent12'}) changed: [localhost] => (item={'name': 'wazuh-agent13'}) changed: [localhost] => (item={'name': 'wazuh-agent14'}) changed: [localhost] => (item={'name': 'wazuh-agent15'}) changed: [localhost] => (item={'name': 'wazuh-agent16'}) changed: [localhost] => (item={'name': 'wazuh-agent17'}) changed: [localhost] => (item={'name': 'wazuh-agent18'}) changed: [localhost] => (item={'name': 'wazuh-agent19'}) changed: [localhost] => (item={'name': 'wazuh-agent20'}) changed: [localhost] => (item={'name': 'wazuh-agent21'}) changed: [localhost] => (item={'name': 'wazuh-agent22'}) changed: [localhost] => (item={'name': 'wazuh-agent23'}) changed: [localhost] => (item={'name': 'wazuh-agent24'}) changed: [localhost] => (item={'name': 'wazuh-agent25'}) changed: [localhost] => (item={'name': 'wazuh-agent26'}) changed: [localhost] => (item={'name': 'wazuh-agent27'}) changed: [localhost] => (item={'name': 'wazuh-agent28'}) changed: [localhost] => (item={'name': 'wazuh-agent29'}) changed: [localhost] => (item={'name': 'wazuh-agent30'}) changed: [localhost] => (item={'name': 'wazuh-agent31'}) changed: [localhost] => (item={'name': 'wazuh-agent32'}) changed: [localhost] => (item={'name': 'wazuh-agent33'}) changed: [localhost] => (item={'name': 'wazuh-agent34'}) changed: [localhost] => (item={'name': 'wazuh-agent35'}) changed: [localhost] => (item={'name': 'wazuh-agent36'}) changed: [localhost] => (item={'name': 'wazuh-agent37'}) changed: [localhost] => (item={'name': 'wazuh-agent38'}) changed: [localhost] => (item={'name': 'wazuh-agent39'}) changed: [localhost] => (item={'name': 'wazuh-agent40'}) PLAY [Wazuh Master] ************************************************************ TASK [Gathering Facts] ********************************************************* mi\u00e9rcoles 17 mayo 2023 23:33:45 -0400 (0:00:42.180) 0:01:21.010 ******** ok: [wazuh-master] TASK [roles/master-role : Check and update debian repositories] **************** mi\u00e9rcoles 17 mayo 2023 23:33:48 -0400 (0:00:03.533) 0:01:24.544 ******** changed: [wazuh-master] TASK [roles/master-role : Installing dependencies using apt] ******************* mi\u00e9rcoles 17 mayo 2023 23:33:52 -0400 (0:00:03.786) 0:01:28.330 ******** changed: [wazuh-master] TASK [roles/master-role : Clone wazuh repository] ****************************** mi\u00e9rcoles 17 mayo 2023 23:34:06 -0400 (0:00:13.368) 0:01:41.699 ******** changed: [wazuh-master] TASK [roles/master-role : Install master] ************************************** mi\u00e9rcoles 17 mayo 2023 23:34:36 -0400 (0:00:30.728) 0:02:12.428 ******** changed: [wazuh-master] TASK [roles/master-role : Copy ossec.conf file] ******************************** mi\u00e9rcoles 17 mayo 2023 23:36:38 -0400 (0:02:01.825) 0:04:14.253 ******** changed: [wazuh-master] TASK [roles/master-role : Set cluster key] ************************************* mi\u00e9rcoles 17 mayo 2023 23:36:41 -0400 (0:00:02.400) 0:04:16.654 ******** changed: [wazuh-master] TASK [roles/master-role : Set Wazuh Master IP] ********************************* mi\u00e9rcoles 17 mayo 2023 23:36:42 -0400 (0:00:01.129) 0:04:17.784 ******** changed: [wazuh-master] TASK [roles/master-role : Stop Wazuh] ****************************************** mi\u00e9rcoles 17 mayo 2023 23:36:43 -0400 (0:00:00.955) 0:04:18.740 ******** changed: [wazuh-master] TASK [roles/master-role : Remove client.keys] ********************************** mi\u00e9rcoles 17 mayo 2023 23:36:47 -0400 (0:00:04.231) 0:04:22.971 ******** changed: [wazuh-master] TASK [roles/master-role : enable authd and clusterd debug mode] **************** mi\u00e9rcoles 17 mayo 2023 23:36:48 -0400 (0:00:01.137) 0:04:24.109 ******** changed: [wazuh-master] TASK [roles/master-role : Start Wazuh] ***************************************** mi\u00e9rcoles 17 mayo 2023 23:36:49 -0400 (0:00:01.157) 0:04:25.266 ******** changed: [wazuh-master] TASK [roles/master-role : Install necessary dependencies] ********************** mi\u00e9rcoles 17 mayo 2023 23:37:05 -0400 (0:00:16.107) 0:04:41.374 ******** changed: [wazuh-master] PLAY [Wazuh Worker1] *********************************************************** TASK [Gathering Facts] ********************************************************* mi\u00e9rcoles 17 mayo 2023 23:37:11 -0400 (0:00:05.281) 0:04:46.655 ******** ok: [wazuh-worker1] TASK [roles/worker-role : Check and update debian repositories] **************** mi\u00e9rcoles 17 mayo 2023 23:37:14 -0400 (0:00:03.525) 0:04:50.181 ******** changed: [wazuh-worker1] TASK [roles/worker-role : Installing dependencies using apt] ******************* mi\u00e9rcoles 17 mayo 2023 23:37:18 -0400 (0:00:03.738) 0:04:53.919 ******** changed: [wazuh-worker1] TASK [roles/worker-role : Clone wazuh repository] ****************************** mi\u00e9rcoles 17 mayo 2023 23:37:34 -0400 (0:00:15.927) 0:05:09.846 ******** changed: [wazuh-worker1] TASK [roles/worker-role : Install master] ************************************** mi\u00e9rcoles 17 mayo 2023 23:38:03 -0400 (0:00:29.328) 0:05:39.175 ******** changed: [wazuh-worker1] TASK [roles/worker-role : Copy ossec.conf file] ******************************** mi\u00e9rcoles 17 mayo 2023 23:40:09 -0400 (0:02:05.404) 0:07:44.580 ******** changed: [wazuh-worker1] TASK [roles/worker-role : Set cluster key] ************************************* mi\u00e9rcoles 17 mayo 2023 23:40:11 -0400 (0:00:02.134) 0:07:46.714 ******** changed: [wazuh-worker1] TASK [roles/worker-role : Set Wazuh Worker name] ******************************* mi\u00e9rcoles 17 mayo 2023 23:40:12 -0400 (0:00:00.991) 0:07:47.705 ******** changed: [wazuh-worker1] TASK [roles/worker-role : Set Wazuh Worker IP] ********************************* mi\u00e9rcoles 17 mayo 2023 23:40:13 -0400 (0:00:00.892) 0:07:48.598 ******** changed: [wazuh-worker1] TASK [roles/worker-role : enable authd and clusterd debug mode] **************** mi\u00e9rcoles 17 mayo 2023 23:40:13 -0400 (0:00:00.959) 0:07:49.558 ******** changed: [wazuh-worker1] TASK [roles/worker-role : Restart Wazuh] *************************************** mi\u00e9rcoles 17 mayo 2023 23:40:15 -0400 (0:00:01.042) 0:07:50.600 ******** changed: [wazuh-worker1] TASK [roles/worker-role : Install necessary dependencies] ********************** mi\u00e9rcoles 17 mayo 2023 23:40:31 -0400 (0:00:15.969) 0:08:06.570 ******** changed: [wazuh-worker1] PLAY [Wazuh Worker2] *********************************************************** TASK [Gathering Facts] ********************************************************* mi\u00e9rcoles 17 mayo 2023 23:40:36 -0400 (0:00:05.267) 0:08:11.837 ******** ok: [wazuh-worker2] TASK [roles/worker-role : Check and update debian repositories] **************** mi\u00e9rcoles 17 mayo 2023 23:40:39 -0400 (0:00:03.337) 0:08:15.174 ******** changed: [wazuh-worker2] TASK [roles/worker-role : Installing dependencies using apt] ******************* mi\u00e9rcoles 17 mayo 2023 23:40:43 -0400 (0:00:03.629) 0:08:18.804 ******** changed: [wazuh-worker2] TASK [roles/worker-role : Clone wazuh repository] ****************************** mi\u00e9rcoles 17 mayo 2023 23:40:58 -0400 (0:00:15.645) 0:08:34.449 ******** changed: [wazuh-worker2] TASK [roles/worker-role : Install master] ************************************** mi\u00e9rcoles 17 mayo 2023 23:41:30 -0400 (0:00:31.909) 0:09:06.359 ******** changed: [wazuh-worker2] TASK [roles/worker-role : Copy ossec.conf file] ******************************** mi\u00e9rcoles 17 mayo 2023 23:43:36 -0400 (0:02:05.784) 0:11:12.143 ******** changed: [wazuh-worker2] TASK [roles/worker-role : Set cluster key] ************************************* mi\u00e9rcoles 17 mayo 2023 23:43:38 -0400 (0:00:02.080) 0:11:14.224 ******** changed: [wazuh-worker2] TASK [roles/worker-role : Set Wazuh Worker name] ******************************* mi\u00e9rcoles 17 mayo 2023 23:43:39 -0400 (0:00:01.041) 0:11:15.265 ******** changed: [wazuh-worker2] TASK [roles/worker-role : Set Wazuh Worker IP] ********************************* mi\u00e9rcoles 17 mayo 2023 23:43:40 -0400 (0:00:00.900) 0:11:16.165 ******** changed: [wazuh-worker2] TASK [roles/worker-role : enable authd and clusterd debug mode] **************** mi\u00e9rcoles 17 mayo 2023 23:43:41 -0400 (0:00:00.930) 0:11:17.096 ******** changed: [wazuh-worker2] TASK [roles/worker-role : Restart Wazuh] *************************************** mi\u00e9rcoles 17 mayo 2023 23:43:42 -0400 (0:00:00.982) 0:11:18.079 ******** changed: [wazuh-worker2] TASK [roles/worker-role : Install necessary dependencies] ********************** mi\u00e9rcoles 17 mayo 2023 23:43:57 -0400 (0:00:15.190) 0:11:33.270 ******** changed: [wazuh-worker2] PLAY [Wazuh Agents] ************************************************************ TASK [Gathering Facts] ********************************************************* mi\u00e9rcoles 17 mayo 2023 23:44:02 -0400 (0:00:05.076) 0:11:38.346 ******** ok: [wazuh-agent3] ok: [wazuh-agent2] ok: [wazuh-agent5] ok: [wazuh-agent1] ok: [wazuh-agent4] ok: [wazuh-agent6] ok: [wazuh-agent7] ok: [wazuh-agent8] ok: [wazuh-agent9] ok: [wazuh-agent10] ok: [wazuh-agent11] ok: [wazuh-agent12] ok: [wazuh-agent13] ok: [wazuh-agent14] ok: [wazuh-agent15] ok: [wazuh-agent18] ok: [wazuh-agent16] ok: [wazuh-agent17] ok: [wazuh-agent20] ok: [wazuh-agent19] ok: [wazuh-agent21] ok: [wazuh-agent22] ok: [wazuh-agent23] ok: [wazuh-agent24] ok: [wazuh-agent25] ok: [wazuh-agent27] ok: [wazuh-agent26] ok: [wazuh-agent28] ok: [wazuh-agent29] ok: [wazuh-agent30] ok: [wazuh-agent31] ok: [wazuh-agent32] ok: [wazuh-agent33] ok: [wazuh-agent34] ok: [wazuh-agent35] ok: [wazuh-agent36] ok: [wazuh-agent37] ok: [wazuh-agent38] ok: [wazuh-agent40] ok: [wazuh-agent39] TASK [roles/agent-role : Check and update debian repositories] ***************** mi\u00e9rcoles 17 mayo 2023 23:44:31 -0400 (0:00:28.718) 0:12:07.065 ******** changed: [wazuh-agent3] changed: [wazuh-agent4] changed: [wazuh-agent2] changed: [wazuh-agent1] changed: [wazuh-agent5] changed: [wazuh-agent7] changed: [wazuh-agent9] changed: [wazuh-agent6] changed: [wazuh-agent8] changed: [wazuh-agent10] changed: [wazuh-agent11] changed: [wazuh-agent12] changed: [wazuh-agent14] changed: [wazuh-agent13] changed: [wazuh-agent15] changed: [wazuh-agent16] changed: [wazuh-agent17] changed: [wazuh-agent18] changed: [wazuh-agent19] changed: [wazuh-agent20] changed: [wazuh-agent21] changed: [wazuh-agent22] changed: [wazuh-agent23] changed: [wazuh-agent24] changed: [wazuh-agent25] changed: [wazuh-agent26] changed: [wazuh-agent27] changed: [wazuh-agent28] changed: [wazuh-agent29] changed: [wazuh-agent30] changed: [wazuh-agent31] changed: [wazuh-agent32] changed: [wazuh-agent34] changed: [wazuh-agent35] changed: [wazuh-agent36] changed: [wazuh-agent33] changed: [wazuh-agent37] changed: [wazuh-agent38] changed: [wazuh-agent39] changed: [wazuh-agent40] TASK [roles/agent-role : Installing dependencies using apt] ******************** mi\u00e9rcoles 17 mayo 2023 23:45:03 -0400 (0:00:32.215) 0:12:39.281 ******** changed: [wazuh-agent2] changed: [wazuh-agent3] changed: [wazuh-agent1] changed: [wazuh-agent5] changed: [wazuh-agent4] changed: [wazuh-agent6] changed: [wazuh-agent7] changed: [wazuh-agent9] changed: [wazuh-agent8] changed: [wazuh-agent10] changed: [wazuh-agent11] changed: [wazuh-agent12] changed: [wazuh-agent13] changed: [wazuh-agent14] changed: [wazuh-agent15] changed: [wazuh-agent16] changed: [wazuh-agent17] changed: [wazuh-agent18] changed: [wazuh-agent19] changed: [wazuh-agent20] changed: [wazuh-agent21] changed: [wazuh-agent22] changed: [wazuh-agent23] changed: [wazuh-agent24] changed: [wazuh-agent25] changed: [wazuh-agent26] changed: [wazuh-agent27] changed: [wazuh-agent28] changed: [wazuh-agent29] changed: [wazuh-agent30] changed: [wazuh-agent31] changed: [wazuh-agent32] changed: [wazuh-agent33] changed: [wazuh-agent34] changed: [wazuh-agent35] changed: [wazuh-agent36] changed: [wazuh-agent37] changed: [wazuh-agent38] changed: [wazuh-agent39] changed: [wazuh-agent40] TASK [roles/agent-role : Clone wazuh repository] ******************************* mi\u00e9rcoles 17 mayo 2023 23:47:12 -0400 (0:02:08.905) 0:14:48.186 ******** changed: [wazuh-agent1] changed: [wazuh-agent5] changed: [wazuh-agent3] changed: [wazuh-agent2] changed: [wazuh-agent4] changed: [wazuh-agent10] changed: [wazuh-agent8] changed: [wazuh-agent7] changed: [wazuh-agent9] changed: [wazuh-agent6] changed: [wazuh-agent15] changed: [wazuh-agent14] changed: [wazuh-agent11] changed: [wazuh-agent13] changed: [wazuh-agent12] changed: [wazuh-agent17] changed: [wazuh-agent18] changed: [wazuh-agent20] changed: [wazuh-agent19] changed: [wazuh-agent16] changed: [wazuh-agent22] changed: [wazuh-agent24] changed: [wazuh-agent25] changed: [wazuh-agent21] changed: [wazuh-agent23] changed: [wazuh-agent29] changed: [wazuh-agent26] changed: [wazuh-agent27] changed: [wazuh-agent28] changed: [wazuh-agent30] changed: [wazuh-agent31] changed: [wazuh-agent36] changed: [wazuh-agent35] changed: [wazuh-agent33] changed: [wazuh-agent34] changed: [wazuh-agent32] changed: [wazuh-agent39] changed: [wazuh-agent37] changed: [wazuh-agent38] changed: [wazuh-agent40] TASK [roles/agent-role : Install agent] **************************************** mi\u00e9rcoles 17 mayo 2023 23:53:33 -0400 (0:06:21.150) 0:21:09.336 ******** changed: [wazuh-agent4] changed: [wazuh-agent5] changed: [wazuh-agent1] changed: [wazuh-agent2] changed: [wazuh-agent3] changed: [wazuh-agent6] changed: [wazuh-agent8] changed: [wazuh-agent7] changed: [wazuh-agent9] changed: [wazuh-agent10] changed: [wazuh-agent11] changed: [wazuh-agent15] changed: [wazuh-agent13] changed: [wazuh-agent12] changed: [wazuh-agent14] changed: [wazuh-agent16] changed: [wazuh-agent17] changed: [wazuh-agent18] changed: [wazuh-agent19] changed: [wazuh-agent20] changed: [wazuh-agent21] changed: [wazuh-agent22] changed: [wazuh-agent24] changed: [wazuh-agent25] changed: [wazuh-agent23] changed: [wazuh-agent26] changed: [wazuh-agent27] changed: [wazuh-agent28] changed: [wazuh-agent29] changed: [wazuh-agent30] changed: [wazuh-agent31] changed: [wazuh-agent32] changed: [wazuh-agent35] changed: [wazuh-agent33] changed: [wazuh-agent34] changed: [wazuh-agent36] changed: [wazuh-agent37] changed: [wazuh-agent38] changed: [wazuh-agent40] changed: [wazuh-agent39] TASK [roles/agent-role : Copy ossec.conf file] ********************************* jueves 18 mayo 2023 00:12:46 -0400 (0:19:12.319) 0:40:21.655 *********** changed: [wazuh-agent2] changed: [wazuh-agent4] changed: [wazuh-agent1] changed: [wazuh-agent5] changed: [wazuh-agent3] changed: [wazuh-agent7] changed: [wazuh-agent6] changed: [wazuh-agent9] changed: [wazuh-agent8] changed: [wazuh-agent10] changed: [wazuh-agent11] changed: [wazuh-agent12] changed: [wazuh-agent14] changed: [wazuh-agent15] changed: [wazuh-agent13] changed: [wazuh-agent17] changed: [wazuh-agent16] changed: [wazuh-agent20] changed: [wazuh-agent18] changed: [wazuh-agent19] changed: [wazuh-agent21] changed: [wazuh-agent22] changed: [wazuh-agent23] changed: [wazuh-agent25] changed: [wazuh-agent24] changed: [wazuh-agent26] changed: [wazuh-agent27] changed: [wazuh-agent28] changed: [wazuh-agent29] changed: [wazuh-agent30] changed: [wazuh-agent31] changed: [wazuh-agent32] changed: [wazuh-agent33] changed: [wazuh-agent35] changed: [wazuh-agent34] changed: [wazuh-agent36] changed: [wazuh-agent37] changed: [wazuh-agent38] changed: [wazuh-agent39] changed: [wazuh-agent40] TASK [roles/agent-role : Set Wazuh Manager IP] ********************************* jueves 18 mayo 2023 00:13:00 -0400 (0:00:14.681) 0:40:36.337 *********** changed: [wazuh-agent1] changed: [wazuh-agent3] changed: [wazuh-agent5] changed: [wazuh-agent2] changed: [wazuh-agent4] changed: [wazuh-agent6] changed: [wazuh-agent7] changed: [wazuh-agent8] changed: [wazuh-agent9] changed: [wazuh-agent10] changed: [wazuh-agent11] changed: [wazuh-agent13] changed: [wazuh-agent12] changed: [wazuh-agent14] changed: [wazuh-agent15] changed: [wazuh-agent16] changed: [wazuh-agent17] changed: [wazuh-agent19] changed: [wazuh-agent20] changed: [wazuh-agent18] changed: [wazuh-agent21] changed: [wazuh-agent22] changed: [wazuh-agent23] changed: [wazuh-agent24] changed: [wazuh-agent25] changed: [wazuh-agent26] changed: [wazuh-agent27] changed: [wazuh-agent28] changed: [wazuh-agent29] changed: [wazuh-agent30] changed: [wazuh-agent31] changed: [wazuh-agent34] changed: [wazuh-agent33] changed: [wazuh-agent32] changed: [wazuh-agent35] changed: [wazuh-agent36] changed: [wazuh-agent38] changed: [wazuh-agent37] changed: [wazuh-agent39] changed: [wazuh-agent40] PLAY RECAP ********************************************************************* localhost : ok=9 changed=5 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 wazuh-agent1 : ok=7 changed=6 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 wazuh-agent10 : ok=7 changed=6 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 wazuh-agent11 : ok=7 changed=6 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 wazuh-agent12 : ok=7 changed=6 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 wazuh-agent13 : ok=7 changed=6 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 wazuh-agent14 : ok=7 changed=6 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 wazuh-agent15 : ok=7 changed=6 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 wazuh-agent16 : ok=7 changed=6 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 wazuh-agent17 : ok=7 changed=6 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 wazuh-agent18 : ok=7 changed=6 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 wazuh-agent19 : ok=7 changed=6 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 wazuh-agent2 : ok=7 changed=6 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 wazuh-agent20 : ok=7 changed=6 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 wazuh-agent21 : ok=7 changed=6 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 wazuh-agent22 : ok=7 changed=6 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 wazuh-agent23 : ok=7 changed=6 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 wazuh-agent24 : ok=7 changed=6 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 wazuh-agent25 : ok=7 changed=6 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 wazuh-agent26 : ok=7 changed=6 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 wazuh-agent27 : ok=7 changed=6 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 wazuh-agent28 : ok=7 changed=6 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 wazuh-agent29 : ok=7 changed=6 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 wazuh-agent3 : ok=7 changed=6 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 wazuh-agent30 : ok=7 changed=6 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 wazuh-agent31 : ok=7 changed=6 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 wazuh-agent32 : ok=7 changed=6 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 wazuh-agent33 : ok=7 changed=6 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 wazuh-agent34 : ok=7 changed=6 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 wazuh-agent35 : ok=7 changed=6 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 wazuh-agent36 : ok=7 changed=6 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 wazuh-agent37 : ok=7 changed=6 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 wazuh-agent38 : ok=7 changed=6 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 wazuh-agent39 : ok=7 changed=6 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 wazuh-agent4 : ok=7 changed=6 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 wazuh-agent40 : ok=7 changed=6 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 wazuh-agent5 : ok=7 changed=6 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 wazuh-agent6 : ok=7 changed=6 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 wazuh-agent7 : ok=7 changed=6 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 wazuh-agent8 : ok=7 changed=6 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 wazuh-agent9 : ok=7 changed=6 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 wazuh-master : ok=13 changed=12 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 wazuh-worker1 : ok=12 changed=11 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 wazuh-worker2 : ok=12 changed=11 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 jueves 18 mayo 2023 00:13:09 -0400 (0:00:08.332) 0:40:44.670 *********** =============================================================================== roles/agent-role : Install agent ------------------------------------- 1152.32s roles/agent-role : Clone wazuh repository ----------------------------- 381.15s roles/agent-role : Installing dependencies using apt ------------------ 128.91s roles/worker-role : Install master ------------------------------------ 125.78s roles/worker-role : Install master ------------------------------------ 125.40s roles/master-role : Install master ------------------------------------ 121.83s docker_container ------------------------------------------------------- 42.18s roles/agent-role : Check and update debian repositories ---------------- 32.22s roles/worker-role : Clone wazuh repository ----------------------------- 31.91s roles/master-role : Clone wazuh repository ----------------------------- 30.73s docker_container ------------------------------------------------------- 30.16s roles/worker-role : Clone wazuh repository ----------------------------- 29.33s Gathering Facts -------------------------------------------------------- 28.72s roles/master-role : Start Wazuh ---------------------------------------- 16.11s roles/worker-role : Restart Wazuh -------------------------------------- 15.97s roles/worker-role : Installing dependencies using apt ------------------ 15.93s roles/worker-role : Installing dependencies using apt ------------------ 15.65s roles/worker-role : Restart Wazuh -------------------------------------- 15.19s roles/agent-role : Copy ossec.conf file -------------------------------- 14.68s roles/master-role : Installing dependencies using apt ------------------ 13.37s Playbook run took 0 days, 0 hours, 40 minutes, 44 seconds (venv) wazuh@ubuntu2204:~/wazuh-qa/tests/system/provisioning/big_cluster_40_agents$
aradkdj commented 1 year ago

Update

The modifications were made and a branch with them is available at 8d65d3ac24a6bf5e9d2a7615129d587a9e2f4869. Tests from now on will be made on that branch.

aradkdj commented 1 year ago

Update

The basic_cluster environment was successfully built.

(venv) wazuh@ubuntu2204:~/wazuh-qa/tests/system/provisioning/basic_cluster$ git status On branch fix/3949-consistently-use-python3-in-system-tests Your branch is up to date with 'origin/fix/3949-consistently-use-python3-in-system-tests'. nothing to commit, working tree clean (venv) wazuh@ubuntu2204:~/wazuh-qa/tests/system/provisioning/basic_cluster$ ansible-playbook -i inventory.yml playbook.yml --extra-vars='{"wazuh_branch":"4.4", "wazuh_qa_branch":"fix/3949-consistently-use-python3-in-system-tests"}' [DEPRECATION WARNING]: [defaults]callback_whitelist option, normalizing names to new standard, use callbacks_enabled instead. This feature will be removed from ansible-core in version 2.15. Deprecation warnings can be disabled by setting deprecation_warnings=False in ansible.cfg. [DEPRECATION WARNING]: DEFAULT_GATHER_TIMEOUT option, the module_defaults keyword is a more generic version and can apply to all calls to the M(ansible.builtin.gather_facts) or M(ansible.builtin.setup) actions, use module_defaults instead. This feature will be removed from ansible-core in version 2.18. Deprecation warnings can be disabled by setting deprecation_warnings=False in ansible.cfg. [WARNING]: Skipping callback 'mail', unable to load due to: No setting was provided for required configuration plugin_type: callback plugin: ansible_collections.community.general.plugins.callback.mail setting: sender PLAY [Create our container (Master)] ******************************************* TASK [Gathering Facts] ********************************************************* jueves 18 mayo 2023 08:14:31 -0400 (0:00:00.026) 0:00:00.026 *********** ok: [localhost] TASK [Create a network] ******************************************************** jueves 18 mayo 2023 08:14:34 -0400 (0:00:02.824) 0:00:02.850 *********** ok: [localhost] TASK [docker_container] ******************************************************** jueves 18 mayo 2023 08:14:35 -0400 (0:00:00.726) 0:00:03.576 *********** changed: [localhost] PLAY [Create our container (Worker1)] ****************************************** TASK [Gathering Facts] ********************************************************* jueves 18 mayo 2023 08:14:37 -0400 (0:00:01.652) 0:00:05.229 *********** ok: [localhost] TASK [docker_container] ******************************************************** jueves 18 mayo 2023 08:14:38 -0400 (0:00:01.327) 0:00:06.557 *********** changed: [localhost] PLAY [Create our container (Worker2)] ****************************************** TASK [Gathering Facts] ********************************************************* jueves 18 mayo 2023 08:14:39 -0400 (0:00:01.151) 0:00:07.709 *********** ok: [localhost] TASK [docker_container] ******************************************************** jueves 18 mayo 2023 08:14:40 -0400 (0:00:01.230) 0:00:08.940 *********** changed: [localhost] PLAY [Create our container (Agent1)] ******************************************* TASK [Gathering Facts] ********************************************************* jueves 18 mayo 2023 08:14:42 -0400 (0:00:01.120) 0:00:10.061 *********** ok: [localhost] TASK [docker_container] ******************************************************** jueves 18 mayo 2023 08:14:43 -0400 (0:00:01.247) 0:00:11.308 *********** changed: [localhost] PLAY [Create our container (Agent2)] ******************************************* TASK [Gathering Facts] ********************************************************* jueves 18 mayo 2023 08:14:44 -0400 (0:00:01.186) 0:00:12.494 *********** ok: [localhost] TASK [docker_container] ******************************************************** jueves 18 mayo 2023 08:14:45 -0400 (0:00:01.293) 0:00:13.788 *********** changed: [localhost] PLAY [Create our container (Agent3)] ******************************************* TASK [Gathering Facts] ********************************************************* jueves 18 mayo 2023 08:14:46 -0400 (0:00:01.113) 0:00:14.902 *********** ok: [localhost] TASK [docker_container] ******************************************************** jueves 18 mayo 2023 08:14:48 -0400 (0:00:01.354) 0:00:16.257 *********** changed: [localhost] PLAY [Wazuh Master] ************************************************************ TASK [Gathering Facts] ********************************************************* jueves 18 mayo 2023 08:14:49 -0400 (0:00:01.165) 0:00:17.422 *********** ok: [wazuh-master] TASK [roles/master-role : Check and update debian repositories] **************** jueves 18 mayo 2023 08:14:53 -0400 (0:00:03.948) 0:00:21.370 *********** changed: [wazuh-master] TASK [roles/master-role : Installing dependencies using apt] ******************* jueves 18 mayo 2023 08:14:56 -0400 (0:00:02.915) 0:00:24.285 *********** ok: [wazuh-master] TASK [roles/master-role : Clone wazuh repository] ****************************** jueves 18 mayo 2023 08:14:59 -0400 (0:00:03.354) 0:00:27.640 *********** ok: [wazuh-master] TASK [roles/master-role : Clone wazuh-qa repository] *************************** jueves 18 mayo 2023 08:15:06 -0400 (0:00:06.524) 0:00:34.165 *********** changed: [wazuh-master] TASK [roles/master-role : Install master] ************************************** jueves 18 mayo 2023 08:15:13 -0400 (0:00:06.967) 0:00:41.132 *********** ok: [wazuh-master] TASK [roles/master-role : Copy ossec.conf file] ******************************** jueves 18 mayo 2023 08:15:14 -0400 (0:00:00.991) 0:00:42.123 *********** changed: [wazuh-master] TASK [roles/master-role : Set cluster key] ************************************* jueves 18 mayo 2023 08:15:16 -0400 (0:00:02.502) 0:00:44.626 *********** changed: [wazuh-master] TASK [roles/master-role : Set Wazuh Master IP] ********************************* jueves 18 mayo 2023 08:15:17 -0400 (0:00:01.102) 0:00:45.728 *********** changed: [wazuh-master] TASK [roles/master-role : Stop Wazuh] ****************************************** jueves 18 mayo 2023 08:15:18 -0400 (0:00:00.896) 0:00:46.625 *********** changed: [wazuh-master] TASK [roles/master-role : Remove client.keys] ********************************** jueves 18 mayo 2023 08:15:19 -0400 (0:00:01.272) 0:00:47.898 *********** changed: [wazuh-master] TASK [roles/master-role : enable authd and clusterd debug mode] **************** jueves 18 mayo 2023 08:15:20 -0400 (0:00:01.132) 0:00:49.030 *********** ok: [wazuh-master] TASK [roles/master-role : Register agents] ************************************* jueves 18 mayo 2023 08:15:22 -0400 (0:00:01.141) 0:00:50.171 *********** changed: [wazuh-master] TASK [roles/master-role : Start Wazuh] ***************************************** jueves 18 mayo 2023 08:15:23 -0400 (0:00:01.032) 0:00:51.203 *********** changed: [wazuh-master] TASK [roles/master-role : Install necessary dependencies] ********************** jueves 18 mayo 2023 08:15:37 -0400 (0:00:14.027) 0:01:05.230 *********** changed: [wazuh-master] TASK [roles/master-role : Copy wdb-query.py script] **************************** jueves 18 mayo 2023 08:15:39 -0400 (0:00:02.552) 0:01:07.783 *********** changed: [wazuh-master] PLAY [Wazuh Worker1] *********************************************************** TASK [Gathering Facts] ********************************************************* jueves 18 mayo 2023 08:15:41 -0400 (0:00:01.847) 0:01:09.631 *********** ok: [wazuh-worker1] TASK [roles/worker-role : Check and update debian repositories] **************** jueves 18 mayo 2023 08:15:45 -0400 (0:00:03.648) 0:01:13.280 *********** changed: [wazuh-worker1] TASK [roles/worker-role : Installing dependencies using apt] ******************* jueves 18 mayo 2023 08:15:47 -0400 (0:00:02.571) 0:01:15.852 *********** ok: [wazuh-worker1] TASK [roles/worker-role : Clone wazuh repository] ****************************** jueves 18 mayo 2023 08:15:50 -0400 (0:00:02.998) 0:01:18.850 *********** ok: [wazuh-worker1] TASK [roles/worker-role : Clone wazuh-qa repository] *************************** jueves 18 mayo 2023 08:15:56 -0400 (0:00:06.051) 0:01:24.902 *********** changed: [wazuh-worker1] TASK [roles/worker-role : Install worker] ************************************** jueves 18 mayo 2023 08:16:04 -0400 (0:00:07.172) 0:01:32.074 *********** ok: [wazuh-worker1] TASK [roles/worker-role : Copy ossec.conf file] ******************************** jueves 18 mayo 2023 08:16:04 -0400 (0:00:00.906) 0:01:32.980 *********** changed: [wazuh-worker1] TASK [roles/worker-role : Set cluster key] ************************************* jueves 18 mayo 2023 08:16:06 -0400 (0:00:02.060) 0:01:35.041 *********** changed: [wazuh-worker1] TASK [roles/worker-role : Set Wazuh Worker name] ******************************* jueves 18 mayo 2023 08:16:08 -0400 (0:00:01.033) 0:01:36.074 *********** changed: [wazuh-worker1] TASK [roles/worker-role : Set Wazuh Worker IP] ********************************* jueves 18 mayo 2023 08:16:09 -0400 (0:00:01.044) 0:01:37.119 *********** changed: [wazuh-worker1] TASK [roles/worker-role : enable authd and clusterd debug mode] **************** jueves 18 mayo 2023 08:16:10 -0400 (0:00:00.973) 0:01:38.093 *********** ok: [wazuh-worker1] TASK [roles/worker-role : Restart Wazuh] *************************************** jueves 18 mayo 2023 08:16:10 -0400 (0:00:00.913) 0:01:39.007 *********** changed: [wazuh-worker1] TASK [roles/worker-role : Install necessary dependencies] ********************** jueves 18 mayo 2023 08:16:24 -0400 (0:00:14.033) 0:01:53.040 *********** changed: [wazuh-worker1] PLAY [Wazuh Worker2] *********************************************************** TASK [Gathering Facts] ********************************************************* jueves 18 mayo 2023 08:16:27 -0400 (0:00:02.762) 0:01:55.803 *********** ok: [wazuh-worker2] TASK [roles/worker-role : Check and update debian repositories] **************** jueves 18 mayo 2023 08:16:31 -0400 (0:00:03.480) 0:01:59.284 *********** changed: [wazuh-worker2] TASK [roles/worker-role : Installing dependencies using apt] ******************* jueves 18 mayo 2023 08:16:33 -0400 (0:00:02.518) 0:02:01.802 *********** ok: [wazuh-worker2] TASK [roles/worker-role : Clone wazuh repository] ****************************** jueves 18 mayo 2023 08:16:36 -0400 (0:00:02.956) 0:02:04.758 *********** ok: [wazuh-worker2] TASK [roles/worker-role : Clone wazuh-qa repository] *************************** jueves 18 mayo 2023 08:16:42 -0400 (0:00:06.201) 0:02:10.959 *********** changed: [wazuh-worker2] TASK [roles/worker-role : Install worker] ************************************** jueves 18 mayo 2023 08:16:51 -0400 (0:00:08.109) 0:02:19.068 *********** ok: [wazuh-worker2] TASK [roles/worker-role : Copy ossec.conf file] ******************************** jueves 18 mayo 2023 08:16:51 -0400 (0:00:00.960) 0:02:20.029 *********** changed: [wazuh-worker2] TASK [roles/worker-role : Set cluster key] ************************************* jueves 18 mayo 2023 08:16:54 -0400 (0:00:02.136) 0:02:22.165 *********** changed: [wazuh-worker2] TASK [roles/worker-role : Set Wazuh Worker name] ******************************* jueves 18 mayo 2023 08:16:55 -0400 (0:00:00.976) 0:02:23.142 *********** changed: [wazuh-worker2] TASK [roles/worker-role : Set Wazuh Worker IP] ********************************* jueves 18 mayo 2023 08:16:56 -0400 (0:00:01.005) 0:02:24.147 *********** changed: [wazuh-worker2] TASK [roles/worker-role : enable authd and clusterd debug mode] **************** jueves 18 mayo 2023 08:16:57 -0400 (0:00:00.991) 0:02:25.139 *********** ok: [wazuh-worker2] TASK [roles/worker-role : Restart Wazuh] *************************************** jueves 18 mayo 2023 08:16:57 -0400 (0:00:00.907) 0:02:26.046 *********** changed: [wazuh-worker2] TASK [roles/worker-role : Install necessary dependencies] ********************** jueves 18 mayo 2023 08:17:14 -0400 (0:00:16.039) 0:02:42.086 *********** changed: [wazuh-worker2] PLAY [Wazuh Agent1] ************************************************************ TASK [Gathering Facts] ********************************************************* jueves 18 mayo 2023 08:17:16 -0400 (0:00:02.612) 0:02:44.699 *********** ok: [wazuh-agent1] TASK [roles/agent-role : Check and update debian repositories] ***************** jueves 18 mayo 2023 08:17:20 -0400 (0:00:03.656) 0:02:48.355 *********** changed: [wazuh-agent1] TASK [roles/agent-role : Installing dependencies using apt] ******************** jueves 18 mayo 2023 08:17:22 -0400 (0:00:02.625) 0:02:50.980 *********** ok: [wazuh-agent1] TASK [roles/agent-role : Clone wazuh repository] ******************************* jueves 18 mayo 2023 08:17:25 -0400 (0:00:02.907) 0:02:53.888 *********** ok: [wazuh-agent1] TASK [roles/agent-role : Install agent] **************************************** jueves 18 mayo 2023 08:17:31 -0400 (0:00:06.131) 0:03:00.020 *********** ok: [wazuh-agent1] TASK [roles/agent-role : Copy ossec.conf file] ********************************* jueves 18 mayo 2023 08:17:32 -0400 (0:00:00.958) 0:03:00.978 *********** changed: [wazuh-agent1] TASK [roles/agent-role : Remove client.keys] *********************************** jueves 18 mayo 2023 08:17:34 -0400 (0:00:02.068) 0:03:03.047 *********** changed: [wazuh-agent1] TASK [roles/agent-role : Register agents] ************************************** jueves 18 mayo 2023 08:17:35 -0400 (0:00:00.823) 0:03:03.870 *********** changed: [wazuh-agent1] TASK [roles/agent-role : Set Wazuh Manager IP] ********************************* jueves 18 mayo 2023 08:17:36 -0400 (0:00:00.908) 0:03:04.778 *********** changed: [wazuh-agent1] TASK [roles/agent-role : Restart Wazuh] **************************************** jueves 18 mayo 2023 08:17:37 -0400 (0:00:00.941) 0:03:05.720 *********** changed: [wazuh-agent1] PLAY [Wazuh Agent2] ************************************************************ TASK [Gathering Facts] ********************************************************* jueves 18 mayo 2023 08:17:45 -0400 (0:00:08.248) 0:03:13.969 *********** ok: [wazuh-agent2] TASK [roles/agent-role : Check and update debian repositories] ***************** jueves 18 mayo 2023 08:17:49 -0400 (0:00:03.545) 0:03:17.514 *********** changed: [wazuh-agent2] TASK [roles/agent-role : Installing dependencies using apt] ******************** jueves 18 mayo 2023 08:17:52 -0400 (0:00:02.577) 0:03:20.092 *********** ok: [wazuh-agent2] TASK [roles/agent-role : Clone wazuh repository] ******************************* jueves 18 mayo 2023 08:17:54 -0400 (0:00:02.887) 0:03:22.979 *********** ok: [wazuh-agent2] TASK [roles/agent-role : Install agent] **************************************** jueves 18 mayo 2023 08:18:01 -0400 (0:00:06.075) 0:03:29.055 *********** ok: [wazuh-agent2] TASK [roles/agent-role : Copy ossec.conf file] ********************************* jueves 18 mayo 2023 08:18:01 -0400 (0:00:00.991) 0:03:30.046 *********** changed: [wazuh-agent2] TASK [roles/agent-role : Remove client.keys] *********************************** jueves 18 mayo 2023 08:18:04 -0400 (0:00:02.071) 0:03:32.118 *********** changed: [wazuh-agent2] TASK [roles/agent-role : Register agents] ************************************** jueves 18 mayo 2023 08:18:04 -0400 (0:00:00.892) 0:03:33.011 *********** changed: [wazuh-agent2] TASK [roles/agent-role : Set Wazuh Manager IP] ********************************* jueves 18 mayo 2023 08:18:05 -0400 (0:00:00.942) 0:03:33.954 *********** changed: [wazuh-agent2] TASK [roles/agent-role : Restart Wazuh] **************************************** jueves 18 mayo 2023 08:18:06 -0400 (0:00:01.018) 0:03:34.972 *********** changed: [wazuh-agent2] PLAY [Wazuh Agent3] ************************************************************ TASK [Gathering Facts] ********************************************************* jueves 18 mayo 2023 08:18:16 -0400 (0:00:09.391) 0:03:44.363 *********** ok: [wazuh-agent3] TASK [roles/agent-role : Check and update debian repositories] ***************** jueves 18 mayo 2023 08:18:19 -0400 (0:00:03.485) 0:03:47.849 *********** changed: [wazuh-agent3] TASK [roles/agent-role : Installing dependencies using apt] ******************** jueves 18 mayo 2023 08:18:22 -0400 (0:00:02.643) 0:03:50.493 *********** ok: [wazuh-agent3] TASK [roles/agent-role : Clone wazuh repository] ******************************* jueves 18 mayo 2023 08:18:25 -0400 (0:00:02.958) 0:03:53.451 *********** ok: [wazuh-agent3] TASK [roles/agent-role : Install agent] **************************************** jueves 18 mayo 2023 08:18:31 -0400 (0:00:06.210) 0:03:59.662 *********** ok: [wazuh-agent3] TASK [roles/agent-role : Copy ossec.conf file] ********************************* jueves 18 mayo 2023 08:18:32 -0400 (0:00:00.909) 0:04:00.572 *********** changed: [wazuh-agent3] TASK [roles/agent-role : Remove client.keys] *********************************** jueves 18 mayo 2023 08:18:34 -0400 (0:00:02.241) 0:04:02.814 *********** changed: [wazuh-agent3] TASK [roles/agent-role : Register agents] ************************************** jueves 18 mayo 2023 08:18:35 -0400 (0:00:00.938) 0:04:03.752 *********** changed: [wazuh-agent3] TASK [roles/agent-role : Set Wazuh Manager IP] ********************************* jueves 18 mayo 2023 08:18:36 -0400 (0:00:00.974) 0:04:04.726 *********** changed: [wazuh-agent3] TASK [roles/agent-role : Restart Wazuh] **************************************** jueves 18 mayo 2023 08:18:37 -0400 (0:00:00.964) 0:04:05.691 *********** changed: [wazuh-agent3] PLAY RECAP ********************************************************************* localhost : ok=13 changed=6 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 wazuh-agent1 : ok=10 changed=6 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 wazuh-agent2 : ok=10 changed=6 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 wazuh-agent3 : ok=10 changed=6 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 wazuh-master : ok=16 changed=11 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 wazuh-worker1 : ok=13 changed=8 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 wazuh-worker2 : ok=13 changed=8 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 jueves 18 mayo 2023 08:18:46 -0400 (0:00:08.401) 0:04:14.092 *********** =============================================================================== roles/worker-role : Restart Wazuh -------------------------------------- 16.04s roles/worker-role : Restart Wazuh -------------------------------------- 14.03s roles/master-role : Start Wazuh ---------------------------------------- 14.03s roles/agent-role : Restart Wazuh ---------------------------------------- 9.39s roles/agent-role : Restart Wazuh ---------------------------------------- 8.40s roles/agent-role : Restart Wazuh ---------------------------------------- 8.25s roles/worker-role : Clone wazuh-qa repository --------------------------- 8.11s roles/worker-role : Clone wazuh-qa repository --------------------------- 7.17s roles/master-role : Clone wazuh-qa repository --------------------------- 6.97s roles/master-role : Clone wazuh repository ------------------------------ 6.52s roles/agent-role : Clone wazuh repository ------------------------------- 6.21s roles/worker-role : Clone wazuh repository ------------------------------ 6.20s roles/agent-role : Clone wazuh repository ------------------------------- 6.13s roles/agent-role : Clone wazuh repository ------------------------------- 6.08s roles/worker-role : Clone wazuh repository ------------------------------ 6.05s Gathering Facts --------------------------------------------------------- 3.95s Gathering Facts --------------------------------------------------------- 3.66s Gathering Facts --------------------------------------------------------- 3.65s Gathering Facts --------------------------------------------------------- 3.55s Gathering Facts --------------------------------------------------------- 3.49s Playbook run took 0 days, 0 hours, 4 minutes, 14 seconds (venv) wazuh@ubuntu2204:~/wazuh-qa/tests/system/provisioning/basic_cluster$
aradkdj commented 1 year ago

Update

test_agent_files_deletion passed.

(venv) wazuh@ubuntu2204:~/wazuh-qa/tests/system/test_cluster$ pytest test_agent_files_deletion/
============================= test session starts ==============================
platform linux -- Python 3.9.16, pytest-6.2.2, py-1.10.0, pluggy-0.13.1
rootdir: /home/wazuh/wazuh-qa/tests/system, configfile: pytest.ini
plugins: metadata-2.0.4, testinfra-5.0.0, html-3.1.1
collected 1 item                                                               

test_agent_files_deletion/test_agent_files_deletion.py .                 [100%]

======================== 1 passed in 255.42s (0:04:15) =========================
(venv) wazuh@ubuntu2204:~/wazuh-qa/tests/system/test_cluster$
aradkdj commented 1 year ago

Update

test_agent_info_sync passed.

(venv) wazuh@ubuntu2204:~/wazuh-qa/tests/system/test_cluster$ pytest test_agent_info_sync/
============================= test session starts ==============================
platform linux -- Python 3.9.16, pytest-6.2.2, py-1.10.0, pluggy-0.13.1
rootdir: /home/wazuh/wazuh-qa/tests/system, configfile: pytest.ini
plugins: metadata-2.0.4, testinfra-5.0.0, html-3.1.1
collected 2 items                                                              

test_agent_info_sync/test_agent_info_sync.py ..                          [100%]

======================== 2 passed in 433.03s (0:07:13) =========================
(venv) wazuh@ubuntu2204:~/wazuh-qa/tests/system/test_cluster$
aradkdj commented 1 year ago

Update

four_manager_disconnected_node environment was successfully built

(venv) wazuh@ubuntu2204:~/wazuh-qa/tests/system/provisioning/four_manager_disconnected_node$ ansible-playbook -i inventory.yml playbook.yml --extra-vars='{"wazuh_branch":"4.4", "wazuh_qa_branch":"fix/3949-consistently-use-python3-in-system-tests"}' [DEPRECATION WARNING]: [defaults]callback_whitelist option, normalizing names to new standard, use callbacks_enabled instead. This feature will be removed from ansible-core in version 2.15. Deprecation warnings can be disabled by setting deprecation_warnings=False in ansible.cfg. [DEPRECATION WARNING]: DEFAULT_GATHER_TIMEOUT option, the module_defaults keyword is a more generic version and can apply to all calls to the M(ansible.builtin.gather_facts) or M(ansible.builtin.setup) actions, use module_defaults instead. This feature will be removed from ansible-core in version 2.18. Deprecation warnings can be disabled by setting deprecation_warnings=False in ansible.cfg. [WARNING]: Skipping callback 'mail', unable to load due to: No setting was provided for required configuration plugin_type: callback plugin: ansible_collections.community.general.plugins.callback.mail setting: sender PLAY [Create our container (Master)] ******************************************* TASK [Gathering Facts] ********************************************************* jueves 18 mayo 2023 10:45:50 -0400 (0:00:00.022) 0:00:00.022 *********** ok: [localhost] TASK [Create a network] ******************************************************** jueves 18 mayo 2023 10:45:51 -0400 (0:00:01.669) 0:00:01.692 *********** ok: [localhost] TASK [docker_container] ******************************************************** jueves 18 mayo 2023 10:45:52 -0400 (0:00:00.868) 0:00:02.561 *********** changed: [localhost] PLAY [Create our container (Worker1)] ****************************************** TASK [Gathering Facts] ********************************************************* jueves 18 mayo 2023 10:45:54 -0400 (0:00:01.628) 0:00:04.189 *********** ok: [localhost] TASK [docker_container] ******************************************************** jueves 18 mayo 2023 10:45:55 -0400 (0:00:01.354) 0:00:05.544 *********** changed: [localhost] PLAY [Create our container (Worker2)] ****************************************** TASK [Gathering Facts] ********************************************************* jueves 18 mayo 2023 10:45:56 -0400 (0:00:01.148) 0:00:06.693 *********** ok: [localhost] TASK [docker_container] ******************************************************** jueves 18 mayo 2023 10:45:57 -0400 (0:00:01.180) 0:00:07.873 *********** changed: [localhost] PLAY [Create our container (Worker3)] ****************************************** TASK [Gathering Facts] ********************************************************* jueves 18 mayo 2023 10:45:59 -0400 (0:00:01.293) 0:00:09.167 *********** ok: [localhost] TASK [docker_container] ******************************************************** jueves 18 mayo 2023 10:46:00 -0400 (0:00:01.324) 0:00:10.491 *********** changed: [localhost] PLAY [Create our container (Agent1)] ******************************************* TASK [Gathering Facts] ********************************************************* jueves 18 mayo 2023 10:46:01 -0400 (0:00:01.144) 0:00:11.636 *********** ok: [localhost] TASK [docker_container] ******************************************************** jueves 18 mayo 2023 10:46:03 -0400 (0:00:01.417) 0:00:13.054 *********** changed: [localhost] PLAY [Create our container (Agent2)] ******************************************* TASK [Gathering Facts] ********************************************************* jueves 18 mayo 2023 10:46:04 -0400 (0:00:01.236) 0:00:14.290 *********** ok: [localhost] TASK [docker_container] ******************************************************** jueves 18 mayo 2023 10:46:06 -0400 (0:00:02.476) 0:00:16.766 *********** changed: [localhost] PLAY [Wazuh Master] ************************************************************ TASK [Gathering Facts] ********************************************************* jueves 18 mayo 2023 10:46:08 -0400 (0:00:01.225) 0:00:17.992 *********** ok: [wazuh-master] TASK [roles/master-role : Check and update debian repositories] **************** jueves 18 mayo 2023 10:46:12 -0400 (0:00:04.840) 0:00:22.832 *********** changed: [wazuh-master] TASK [roles/master-role : Installing dependencies using apt] ******************* jueves 18 mayo 2023 10:46:18 -0400 (0:00:05.777) 0:00:28.610 *********** changed: [wazuh-master] TASK [roles/master-role : Clone wazuh repository] ****************************** jueves 18 mayo 2023 10:46:32 -0400 (0:00:13.607) 0:00:42.217 *********** changed: [wazuh-master] TASK [roles/master-role : Install master] ************************************** jueves 18 mayo 2023 10:47:02 -0400 (0:00:30.228) 0:01:12.446 *********** changed: [wazuh-master] TASK [roles/master-role : Copy ossec.conf file] ******************************** jueves 18 mayo 2023 10:49:02 -0400 (0:01:59.739) 0:03:12.186 *********** changed: [wazuh-master] TASK [roles/master-role : Set cluster key] ************************************* jueves 18 mayo 2023 10:49:04 -0400 (0:00:02.354) 0:03:14.540 *********** changed: [wazuh-master] TASK [roles/master-role : Set Wazuh Master IP] ********************************* jueves 18 mayo 2023 10:49:05 -0400 (0:00:01.083) 0:03:15.623 *********** changed: [wazuh-master] TASK [roles/master-role : Stop Wazuh] ****************************************** jueves 18 mayo 2023 10:49:06 -0400 (0:00:00.967) 0:03:16.590 *********** changed: [wazuh-master] TASK [roles/master-role : Remove client.keys] ********************************** jueves 18 mayo 2023 10:49:10 -0400 (0:00:03.835) 0:03:20.426 *********** changed: [wazuh-master] TASK [roles/master-role : enable authd and clusterd debug mode] **************** jueves 18 mayo 2023 10:49:11 -0400 (0:00:01.093) 0:03:21.520 *********** changed: [wazuh-master] TASK [roles/master-role : Start Wazuh] ***************************************** jueves 18 mayo 2023 10:49:12 -0400 (0:00:01.109) 0:03:22.629 *********** changed: [wazuh-master] TASK [roles/master-role : Install necessary dependencies] ********************** jueves 18 mayo 2023 10:49:27 -0400 (0:00:14.895) 0:03:37.525 *********** changed: [wazuh-master] PLAY [Wazuh Worker1] *********************************************************** TASK [Gathering Facts] ********************************************************* jueves 18 mayo 2023 10:49:32 -0400 (0:00:04.787) 0:03:42.313 *********** ok: [wazuh-worker1] TASK [roles/worker-role : Check and update debian repositories] **************** jueves 18 mayo 2023 10:49:35 -0400 (0:00:03.473) 0:03:45.786 *********** changed: [wazuh-worker1] TASK [roles/worker-role : Installing dependencies using apt] ******************* jueves 18 mayo 2023 10:49:39 -0400 (0:00:03.598) 0:03:49.384 *********** changed: [wazuh-worker1] TASK [roles/worker-role : Clone wazuh repository] ****************************** jueves 18 mayo 2023 10:49:53 -0400 (0:00:14.324) 0:04:03.709 *********** changed: [wazuh-worker1] TASK [roles/worker-role : Install worker] ************************************** jueves 18 mayo 2023 10:50:24 -0400 (0:00:30.541) 0:04:34.250 *********** changed: [wazuh-worker1] TASK [roles/worker-role : Copy ossec.conf file] ******************************** jueves 18 mayo 2023 10:52:20 -0400 (0:01:55.928) 0:06:30.178 *********** changed: [wazuh-worker1] TASK [roles/worker-role : Set cluster key] ************************************* jueves 18 mayo 2023 10:52:22 -0400 (0:00:01.887) 0:06:32.066 *********** changed: [wazuh-worker1] TASK [roles/worker-role : Set Wazuh Worker name] ******************************* jueves 18 mayo 2023 10:52:23 -0400 (0:00:00.939) 0:06:33.005 *********** changed: [wazuh-worker1] TASK [roles/worker-role : Set Wazuh Worker IP] ********************************* jueves 18 mayo 2023 10:52:23 -0400 (0:00:00.921) 0:06:33.927 *********** changed: [wazuh-worker1] TASK [roles/worker-role : enable authd and clusterd debug mode] **************** jueves 18 mayo 2023 10:52:24 -0400 (0:00:00.956) 0:06:34.883 *********** changed: [wazuh-worker1] TASK [roles/worker-role : Restart Wazuh] *************************************** jueves 18 mayo 2023 10:52:25 -0400 (0:00:00.892) 0:06:35.776 *********** changed: [wazuh-worker1] TASK [roles/worker-role : Install necessary dependencies] ********************** jueves 18 mayo 2023 10:52:39 -0400 (0:00:13.712) 0:06:49.488 *********** changed: [wazuh-worker1] PLAY [Wazuh Worker2] *********************************************************** TASK [Gathering Facts] ********************************************************* jueves 18 mayo 2023 10:52:44 -0400 (0:00:04.909) 0:06:54.398 *********** ok: [wazuh-worker2] TASK [roles/worker-role : Check and update debian repositories] **************** jueves 18 mayo 2023 10:52:47 -0400 (0:00:03.388) 0:06:57.786 *********** changed: [wazuh-worker2] TASK [roles/worker-role : Installing dependencies using apt] ******************* jueves 18 mayo 2023 10:52:51 -0400 (0:00:03.578) 0:07:01.364 *********** changed: [wazuh-worker2] TASK [roles/worker-role : Clone wazuh repository] ****************************** jueves 18 mayo 2023 10:53:05 -0400 (0:00:14.582) 0:07:15.946 *********** changed: [wazuh-worker2] TASK [roles/worker-role : Install worker] ************************************** jueves 18 mayo 2023 10:53:33 -0400 (0:00:27.595) 0:07:43.542 *********** changed: [wazuh-worker2] TASK [roles/worker-role : Copy ossec.conf file] ******************************** jueves 18 mayo 2023 10:55:39 -0400 (0:02:06.206) 0:09:49.748 *********** changed: [wazuh-worker2] TASK [roles/worker-role : Set cluster key] ************************************* jueves 18 mayo 2023 10:55:41 -0400 (0:00:02.039) 0:09:51.788 *********** changed: [wazuh-worker2] TASK [roles/worker-role : Set Wazuh Worker name] ******************************* jueves 18 mayo 2023 10:55:42 -0400 (0:00:00.993) 0:09:52.781 *********** changed: [wazuh-worker2] TASK [roles/worker-role : Set Wazuh Worker IP] ********************************* jueves 18 mayo 2023 10:55:43 -0400 (0:00:00.906) 0:09:53.688 *********** changed: [wazuh-worker2] TASK [roles/worker-role : enable authd and clusterd debug mode] **************** jueves 18 mayo 2023 10:55:44 -0400 (0:00:00.875) 0:09:54.564 *********** changed: [wazuh-worker2] TASK [roles/worker-role : Restart Wazuh] *************************************** jueves 18 mayo 2023 10:55:45 -0400 (0:00:00.954) 0:09:55.518 *********** changed: [wazuh-worker2] TASK [roles/worker-role : Install necessary dependencies] ********************** jueves 18 mayo 2023 10:56:01 -0400 (0:00:16.242) 0:10:11.761 *********** changed: [wazuh-worker2] PLAY [Wazuh Worker3] *********************************************************** TASK [Gathering Facts] ********************************************************* jueves 18 mayo 2023 10:56:06 -0400 (0:00:05.105) 0:10:16.867 *********** ok: [wazuh-worker3] TASK [roles/worker-role : Check and update debian repositories] **************** jueves 18 mayo 2023 10:56:10 -0400 (0:00:03.569) 0:10:20.436 *********** changed: [wazuh-worker3] TASK [roles/worker-role : Installing dependencies using apt] ******************* jueves 18 mayo 2023 10:56:14 -0400 (0:00:03.611) 0:10:24.048 *********** changed: [wazuh-worker3] TASK [roles/worker-role : Clone wazuh repository] ****************************** jueves 18 mayo 2023 10:56:28 -0400 (0:00:14.208) 0:10:38.257 *********** changed: [wazuh-worker3] TASK [roles/worker-role : Install worker] ************************************** jueves 18 mayo 2023 10:56:52 -0400 (0:00:24.456) 0:11:02.713 *********** changed: [wazuh-worker3] TASK [roles/worker-role : Copy ossec.conf file] ******************************** jueves 18 mayo 2023 10:58:51 -0400 (0:01:59.122) 0:13:01.836 *********** changed: [wazuh-worker3] TASK [roles/worker-role : Set cluster key] ************************************* jueves 18 mayo 2023 10:58:53 -0400 (0:00:02.111) 0:13:03.948 *********** changed: [wazuh-worker3] TASK [roles/worker-role : Set Wazuh Worker name] ******************************* jueves 18 mayo 2023 10:58:54 -0400 (0:00:00.979) 0:13:04.927 *********** changed: [wazuh-worker3] TASK [roles/worker-role : Set Wazuh Worker IP] ********************************* jueves 18 mayo 2023 10:58:55 -0400 (0:00:01.026) 0:13:05.954 *********** changed: [wazuh-worker3] TASK [roles/worker-role : enable authd and clusterd debug mode] **************** jueves 18 mayo 2023 10:58:56 -0400 (0:00:00.939) 0:13:06.894 *********** changed: [wazuh-worker3] TASK [roles/worker-role : Restart Wazuh] *************************************** jueves 18 mayo 2023 10:58:57 -0400 (0:00:00.990) 0:13:07.884 *********** changed: [wazuh-worker3] TASK [roles/worker-role : Install necessary dependencies] ********************** jueves 18 mayo 2023 10:59:12 -0400 (0:00:14.537) 0:13:22.422 *********** changed: [wazuh-worker3] PLAY [Wazuh Agent1] ************************************************************ TASK [Gathering Facts] ********************************************************* jueves 18 mayo 2023 10:59:18 -0400 (0:00:05.689) 0:13:28.111 *********** ok: [wazuh-agent1] TASK [roles/agent-role : Check and update debian repositories] ***************** jueves 18 mayo 2023 10:59:21 -0400 (0:00:03.524) 0:13:31.636 *********** changed: [wazuh-agent1] TASK [roles/agent-role : Installing dependencies using apt] ******************** jueves 18 mayo 2023 10:59:25 -0400 (0:00:03.738) 0:13:35.374 *********** changed: [wazuh-agent1] TASK [roles/agent-role : Clone wazuh repository] ******************************* jueves 18 mayo 2023 10:59:40 -0400 (0:00:15.280) 0:13:50.654 *********** changed: [wazuh-agent1] TASK [roles/agent-role : Install agent] **************************************** jueves 18 mayo 2023 11:00:12 -0400 (0:00:31.900) 0:14:22.555 *********** changed: [wazuh-agent1] TASK [roles/agent-role : Copy ossec.conf file] ********************************* jueves 18 mayo 2023 11:01:20 -0400 (0:01:07.426) 0:15:29.981 *********** changed: [wazuh-agent1] TASK [roles/agent-role : Remove client.keys] *********************************** jueves 18 mayo 2023 11:01:22 -0400 (0:00:02.102) 0:15:32.084 *********** changed: [wazuh-agent1] TASK [roles/agent-role : Set Wazuh Manager IP] ********************************* jueves 18 mayo 2023 11:01:23 -0400 (0:00:00.960) 0:15:33.044 *********** changed: [wazuh-agent1] PLAY [Wazuh Agent2] ************************************************************ TASK [Gathering Facts] ********************************************************* jueves 18 mayo 2023 11:01:24 -0400 (0:00:01.144) 0:15:34.189 *********** ok: [wazuh-agent2] TASK [roles/agent-role : Check and update debian repositories] ***************** jueves 18 mayo 2023 11:01:27 -0400 (0:00:03.599) 0:15:37.788 *********** changed: [wazuh-agent2] TASK [roles/agent-role : Installing dependencies using apt] ******************** jueves 18 mayo 2023 11:01:31 -0400 (0:00:03.626) 0:15:41.415 *********** changed: [wazuh-agent2] TASK [roles/agent-role : Clone wazuh repository] ******************************* jueves 18 mayo 2023 11:01:45 -0400 (0:00:14.315) 0:15:55.731 *********** changed: [wazuh-agent2] TASK [roles/agent-role : Install agent] **************************************** jueves 18 mayo 2023 11:02:15 -0400 (0:00:29.623) 0:16:25.354 *********** changed: [wazuh-agent2] TASK [roles/agent-role : Copy ossec.conf file] ********************************* jueves 18 mayo 2023 11:03:21 -0400 (0:01:06.516) 0:17:31.870 *********** changed: [wazuh-agent2] TASK [roles/agent-role : Remove client.keys] *********************************** jueves 18 mayo 2023 11:03:23 -0400 (0:00:02.057) 0:17:33.928 *********** changed: [wazuh-agent2] TASK [roles/agent-role : Set Wazuh Manager IP] ********************************* jueves 18 mayo 2023 11:03:24 -0400 (0:00:00.996) 0:17:34.925 *********** changed: [wazuh-agent2] PLAY RECAP ********************************************************************* localhost : ok=13 changed=6 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 wazuh-agent1 : ok=8 changed=7 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 wazuh-agent2 : ok=8 changed=7 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 wazuh-master : ok=13 changed=12 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 wazuh-worker1 : ok=12 changed=11 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 wazuh-worker2 : ok=12 changed=11 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 wazuh-worker3 : ok=12 changed=11 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 jueves 18 mayo 2023 11:03:26 -0400 (0:00:01.054) 0:17:35.979 *********** =============================================================================== roles/worker-role : Install worker ------------------------------------ 126.21s roles/master-role : Install master ------------------------------------ 119.74s roles/worker-role : Install worker ------------------------------------ 119.12s roles/worker-role : Install worker ------------------------------------ 115.93s roles/agent-role : Install agent --------------------------------------- 67.43s roles/agent-role : Install agent --------------------------------------- 66.52s roles/agent-role : Clone wazuh repository ------------------------------ 31.90s roles/worker-role : Clone wazuh repository ----------------------------- 30.54s roles/master-role : Clone wazuh repository ----------------------------- 30.23s roles/agent-role : Clone wazuh repository ------------------------------ 29.62s roles/worker-role : Clone wazuh repository ----------------------------- 27.60s roles/worker-role : Clone wazuh repository ----------------------------- 24.46s roles/worker-role : Restart Wazuh -------------------------------------- 16.24s roles/agent-role : Installing dependencies using apt ------------------- 15.28s roles/master-role : Start Wazuh ---------------------------------------- 14.90s roles/worker-role : Installing dependencies using apt ------------------ 14.58s roles/worker-role : Restart Wazuh -------------------------------------- 14.54s roles/worker-role : Installing dependencies using apt ------------------ 14.32s roles/agent-role : Installing dependencies using apt ------------------- 14.32s roles/worker-role : Installing dependencies using apt ------------------ 14.21s Playbook run took 0 days, 0 hours, 17 minutes, 35 seconds (venv) wazuh@ubuntu2204:~/wazuh-qa/tests/system/provisioning/four_manager_disconnected_node$
aradkdj commented 1 year ago

Update

big_cluster_40_agents environment was successfully built.

(venv) wazuh@ubuntu2204:~/wazuh-qa/tests/system/provisioning/big_cluster_40_agents$ ansible-playbook -i inventory.yml playbook.yml --extra-vars='{"wazuh_branch":"4.4", "wazuh_qa_branch":"fix/3949-consistently-use-python3-in-system-tests"}' [DEPRECATION WARNING]: [defaults]callback_whitelist option, normalizing names to new standard, use callbacks_enabled instead. This feature will be removed from ansible-core in version 2.15. Deprecation warnings can be disabled by setting deprecation_warnings=False in ansible.cfg. [DEPRECATION WARNING]: DEFAULT_GATHER_TIMEOUT option, the module_defaults keyword is a more generic version and can apply to all calls to the M(ansible.builtin.gather_facts) or M(ansible.builtin.setup) actions, use module_defaults instead. This feature will be removed from ansible-core in version 2.18. Deprecation warnings can be disabled by setting deprecation_warnings=False in ansible.cfg. [WARNING]: Skipping callback 'mail', unable to load due to: No setting was provided for required configuration plugin_type: callback plugin: ansible_collections.community.general.plugins.callback.mail setting: sender PLAY [Create our container (Master)] ******************************************* TASK [Gathering Facts] ********************************************************* jueves 18 mayo 2023 13:24:01 -0400 (0:00:00.019) 0:00:00.019 *********** ok: [localhost] TASK [Create a network] ******************************************************** jueves 18 mayo 2023 13:24:03 -0400 (0:00:01.740) 0:00:01.760 *********** ok: [localhost] TASK [docker_container] ******************************************************** jueves 18 mayo 2023 13:24:04 -0400 (0:00:00.729) 0:00:02.489 *********** changed: [localhost] PLAY [Create our container (Worker1)] ****************************************** TASK [Gathering Facts] ********************************************************* jueves 18 mayo 2023 13:24:05 -0400 (0:00:01.533) 0:00:04.023 *********** ok: [localhost] TASK [docker_container] ******************************************************** jueves 18 mayo 2023 13:24:06 -0400 (0:00:01.213) 0:00:05.237 *********** changed: [localhost] PLAY [Create our container (Worker2)] ****************************************** TASK [Gathering Facts] ********************************************************* jueves 18 mayo 2023 13:24:07 -0400 (0:00:01.085) 0:00:06.322 *********** ok: [localhost] TASK [docker_container] ******************************************************** jueves 18 mayo 2023 13:24:09 -0400 (0:00:01.348) 0:00:07.671 *********** changed: [localhost] PLAY [Create our agents containers (1-40)] ************************************* TASK [Gathering Facts] ********************************************************* jueves 18 mayo 2023 13:24:10 -0400 (0:00:01.229) 0:00:08.901 *********** ok: [localhost] TASK [docker_container] ******************************************************** jueves 18 mayo 2023 13:24:12 -0400 (0:00:02.370) 0:00:11.272 *********** changed: [localhost] => (item={'name': 'wazuh-agent1'}) changed: [localhost] => (item={'name': 'wazuh-agent2'}) changed: [localhost] => (item={'name': 'wazuh-agent3'}) changed: [localhost] => (item={'name': 'wazuh-agent4'}) changed: [localhost] => (item={'name': 'wazuh-agent5'}) changed: [localhost] => (item={'name': 'wazuh-agent6'}) changed: [localhost] => (item={'name': 'wazuh-agent7'}) changed: [localhost] => (item={'name': 'wazuh-agent8'}) changed: [localhost] => (item={'name': 'wazuh-agent9'}) changed: [localhost] => (item={'name': 'wazuh-agent10'}) changed: [localhost] => (item={'name': 'wazuh-agent11'}) changed: [localhost] => (item={'name': 'wazuh-agent12'}) changed: [localhost] => (item={'name': 'wazuh-agent13'}) changed: [localhost] => (item={'name': 'wazuh-agent14'}) changed: [localhost] => (item={'name': 'wazuh-agent15'}) changed: [localhost] => (item={'name': 'wazuh-agent16'}) changed: [localhost] => (item={'name': 'wazuh-agent17'}) changed: [localhost] => (item={'name': 'wazuh-agent18'}) changed: [localhost] => (item={'name': 'wazuh-agent19'}) changed: [localhost] => (item={'name': 'wazuh-agent20'}) changed: [localhost] => (item={'name': 'wazuh-agent21'}) changed: [localhost] => (item={'name': 'wazuh-agent22'}) changed: [localhost] => (item={'name': 'wazuh-agent23'}) changed: [localhost] => (item={'name': 'wazuh-agent24'}) changed: [localhost] => (item={'name': 'wazuh-agent25'}) changed: [localhost] => (item={'name': 'wazuh-agent26'}) changed: [localhost] => (item={'name': 'wazuh-agent27'}) changed: [localhost] => (item={'name': 'wazuh-agent28'}) changed: [localhost] => (item={'name': 'wazuh-agent29'}) changed: [localhost] => (item={'name': 'wazuh-agent30'}) changed: [localhost] => (item={'name': 'wazuh-agent31'}) changed: [localhost] => (item={'name': 'wazuh-agent32'}) changed: [localhost] => (item={'name': 'wazuh-agent33'}) changed: [localhost] => (item={'name': 'wazuh-agent34'}) changed: [localhost] => (item={'name': 'wazuh-agent35'}) changed: [localhost] => (item={'name': 'wazuh-agent36'}) changed: [localhost] => (item={'name': 'wazuh-agent37'}) changed: [localhost] => (item={'name': 'wazuh-agent38'}) changed: [localhost] => (item={'name': 'wazuh-agent39'}) changed: [localhost] => (item={'name': 'wazuh-agent40'}) PLAY [Wazuh Master] ************************************************************ TASK [Gathering Facts] ********************************************************* jueves 18 mayo 2023 13:24:53 -0400 (0:00:40.769) 0:00:52.041 *********** ok: [wazuh-master] TASK [roles/master-role : Check and update debian repositories] **************** jueves 18 mayo 2023 13:24:57 -0400 (0:00:03.663) 0:00:55.705 *********** changed: [wazuh-master] TASK [roles/master-role : Installing dependencies using apt] ******************* jueves 18 mayo 2023 13:25:01 -0400 (0:00:03.917) 0:00:59.622 *********** changed: [wazuh-master] TASK [roles/master-role : Clone wazuh repository] ****************************** jueves 18 mayo 2023 13:25:17 -0400 (0:00:16.169) 0:01:15.792 *********** changed: [wazuh-master] TASK [roles/master-role : Install master] ************************************** jueves 18 mayo 2023 13:25:44 -0400 (0:00:27.566) 0:01:43.358 *********** changed: [wazuh-master] TASK [roles/master-role : Copy ossec.conf file] ******************************** jueves 18 mayo 2023 13:28:00 -0400 (0:02:15.051) 0:03:58.409 *********** changed: [wazuh-master] TASK [roles/master-role : Set cluster key] ************************************* jueves 18 mayo 2023 13:28:02 -0400 (0:00:02.338) 0:04:00.747 *********** changed: [wazuh-master] TASK [roles/master-role : Set Wazuh Master IP] ********************************* jueves 18 mayo 2023 13:28:03 -0400 (0:00:01.140) 0:04:01.888 *********** changed: [wazuh-master] TASK [roles/master-role : Stop Wazuh] ****************************************** jueves 18 mayo 2023 13:28:04 -0400 (0:00:00.951) 0:04:02.840 *********** changed: [wazuh-master] TASK [roles/master-role : Remove client.keys] ********************************** jueves 18 mayo 2023 13:28:09 -0400 (0:00:04.588) 0:04:07.428 *********** changed: [wazuh-master] TASK [roles/master-role : enable authd and clusterd debug mode] **************** jueves 18 mayo 2023 13:28:10 -0400 (0:00:01.043) 0:04:08.471 *********** changed: [wazuh-master] TASK [roles/master-role : Start Wazuh] ***************************************** jueves 18 mayo 2023 13:28:11 -0400 (0:00:00.987) 0:04:09.459 *********** changed: [wazuh-master] TASK [roles/master-role : Install necessary dependencies] ********************** jueves 18 mayo 2023 13:28:27 -0400 (0:00:16.123) 0:04:25.583 *********** changed: [wazuh-master] PLAY [Wazuh Worker1] *********************************************************** TASK [Gathering Facts] ********************************************************* jueves 18 mayo 2023 13:28:32 -0400 (0:00:05.296) 0:04:30.880 *********** ok: [wazuh-worker1] TASK [roles/worker-role : Check and update debian repositories] **************** jueves 18 mayo 2023 13:28:35 -0400 (0:00:03.424) 0:04:34.305 *********** changed: [wazuh-worker1] TASK [roles/worker-role : Installing dependencies using apt] ******************* jueves 18 mayo 2023 13:28:39 -0400 (0:00:03.701) 0:04:38.006 *********** changed: [wazuh-worker1] TASK [roles/worker-role : Clone wazuh repository] ****************************** jueves 18 mayo 2023 13:28:56 -0400 (0:00:16.417) 0:04:54.423 *********** changed: [wazuh-worker1] TASK [roles/worker-role : Install master] ************************************** jueves 18 mayo 2023 13:29:27 -0400 (0:00:31.783) 0:05:26.207 *********** changed: [wazuh-worker1] TASK [roles/worker-role : Copy ossec.conf file] ******************************** jueves 18 mayo 2023 13:31:35 -0400 (0:02:07.347) 0:07:33.555 *********** changed: [wazuh-worker1] TASK [roles/worker-role : Set cluster key] ************************************* jueves 18 mayo 2023 13:31:37 -0400 (0:00:02.107) 0:07:35.662 *********** changed: [wazuh-worker1] TASK [roles/worker-role : Set Wazuh Worker name] ******************************* jueves 18 mayo 2023 13:31:38 -0400 (0:00:01.039) 0:07:36.702 *********** changed: [wazuh-worker1] TASK [roles/worker-role : Set Wazuh Worker IP] ********************************* jueves 18 mayo 2023 13:31:39 -0400 (0:00:00.880) 0:07:37.582 *********** changed: [wazuh-worker1] TASK [roles/worker-role : enable authd and clusterd debug mode] **************** jueves 18 mayo 2023 13:31:40 -0400 (0:00:00.928) 0:07:38.511 *********** changed: [wazuh-worker1] TASK [roles/worker-role : Restart Wazuh] *************************************** jueves 18 mayo 2023 13:31:41 -0400 (0:00:00.969) 0:07:39.480 *********** changed: [wazuh-worker1] TASK [roles/worker-role : Install necessary dependencies] ********************** jueves 18 mayo 2023 13:31:58 -0400 (0:00:17.136) 0:07:56.617 *********** changed: [wazuh-worker1] PLAY [Wazuh Worker2] *********************************************************** TASK [Gathering Facts] ********************************************************* jueves 18 mayo 2023 13:32:03 -0400 (0:00:05.221) 0:08:01.839 *********** ok: [wazuh-worker2] TASK [roles/worker-role : Check and update debian repositories] **************** jueves 18 mayo 2023 13:32:07 -0400 (0:00:03.596) 0:08:05.435 *********** changed: [wazuh-worker2] TASK [roles/worker-role : Installing dependencies using apt] ******************* jueves 18 mayo 2023 13:32:10 -0400 (0:00:03.545) 0:08:08.980 *********** changed: [wazuh-worker2] TASK [roles/worker-role : Clone wazuh repository] ****************************** jueves 18 mayo 2023 13:32:24 -0400 (0:00:14.227) 0:08:23.208 *********** changed: [wazuh-worker2] TASK [roles/worker-role : Install master] ************************************** jueves 18 mayo 2023 13:32:56 -0400 (0:00:31.456) 0:08:54.665 *********** changed: [wazuh-worker2] TASK [roles/worker-role : Copy ossec.conf file] ******************************** jueves 18 mayo 2023 13:34:58 -0400 (0:02:02.495) 0:10:57.161 *********** changed: [wazuh-worker2] TASK [roles/worker-role : Set cluster key] ************************************* jueves 18 mayo 2023 13:35:00 -0400 (0:00:01.978) 0:10:59.139 *********** changed: [wazuh-worker2] TASK [roles/worker-role : Set Wazuh Worker name] ******************************* jueves 18 mayo 2023 13:35:01 -0400 (0:00:01.073) 0:11:00.213 *********** changed: [wazuh-worker2] TASK [roles/worker-role : Set Wazuh Worker IP] ********************************* jueves 18 mayo 2023 13:35:02 -0400 (0:00:00.993) 0:11:01.207 *********** changed: [wazuh-worker2] TASK [roles/worker-role : enable authd and clusterd debug mode] **************** jueves 18 mayo 2023 13:35:03 -0400 (0:00:00.992) 0:11:02.200 *********** changed: [wazuh-worker2] TASK [roles/worker-role : Restart Wazuh] *************************************** jueves 18 mayo 2023 13:35:04 -0400 (0:00:00.966) 0:11:03.166 *********** changed: [wazuh-worker2] TASK [roles/worker-role : Install necessary dependencies] ********************** jueves 18 mayo 2023 13:35:20 -0400 (0:00:15.683) 0:11:18.849 *********** changed: [wazuh-worker2] PLAY [Wazuh Agents] ************************************************************ TASK [Gathering Facts] ********************************************************* jueves 18 mayo 2023 13:35:25 -0400 (0:00:05.211) 0:11:24.061 *********** ok: [wazuh-agent4] ok: [wazuh-agent1] ok: [wazuh-agent3] ok: [wazuh-agent5] ok: [wazuh-agent2] ok: [wazuh-agent8] ok: [wazuh-agent7] ok: [wazuh-agent9] ok: [wazuh-agent6] ok: [wazuh-agent10] ok: [wazuh-agent12] ok: [wazuh-agent11] ok: [wazuh-agent13] ok: [wazuh-agent14] ok: [wazuh-agent15] ok: [wazuh-agent16] ok: [wazuh-agent18] ok: [wazuh-agent17] ok: [wazuh-agent19] ok: [wazuh-agent20] ok: [wazuh-agent21] ok: [wazuh-agent23] ok: [wazuh-agent22] ok: [wazuh-agent24] ok: [wazuh-agent25] ok: [wazuh-agent26] ok: [wazuh-agent27] ok: [wazuh-agent28] ok: [wazuh-agent29] ok: [wazuh-agent30] ok: [wazuh-agent31] ok: [wazuh-agent33] ok: [wazuh-agent32] ok: [wazuh-agent34] ok: [wazuh-agent35] ok: [wazuh-agent36] ok: [wazuh-agent38] ok: [wazuh-agent37] ok: [wazuh-agent39] ok: [wazuh-agent40] TASK [roles/agent-role : Check and update debian repositories] ***************** jueves 18 mayo 2023 13:35:52 -0400 (0:00:27.177) 0:11:51.238 *********** changed: [wazuh-agent5] changed: [wazuh-agent4] changed: [wazuh-agent3] changed: [wazuh-agent2] changed: [wazuh-agent1] changed: [wazuh-agent6] changed: [wazuh-agent7] changed: [wazuh-agent8] changed: [wazuh-agent10] changed: [wazuh-agent9] changed: [wazuh-agent11] changed: [wazuh-agent12] changed: [wazuh-agent13] changed: [wazuh-agent14] changed: [wazuh-agent15] changed: [wazuh-agent16] changed: [wazuh-agent17] changed: [wazuh-agent18] changed: [wazuh-agent19] changed: [wazuh-agent20] changed: [wazuh-agent21] changed: [wazuh-agent22] changed: [wazuh-agent23] changed: [wazuh-agent24] changed: [wazuh-agent25] changed: [wazuh-agent26] changed: [wazuh-agent27] changed: [wazuh-agent28] changed: [wazuh-agent30] changed: [wazuh-agent29] changed: [wazuh-agent31] changed: [wazuh-agent32] changed: [wazuh-agent33] changed: [wazuh-agent34] changed: [wazuh-agent35] changed: [wazuh-agent36] changed: [wazuh-agent37] changed: [wazuh-agent38] changed: [wazuh-agent39] changed: [wazuh-agent40] TASK [roles/agent-role : Installing dependencies using apt] ******************** jueves 18 mayo 2023 13:36:13 -0400 (0:00:20.782) 0:12:12.021 *********** ok: [wazuh-agent5] ok: [wazuh-agent4] ok: [wazuh-agent6] ok: [wazuh-agent7] ok: [wazuh-agent8] ok: [wazuh-agent9] ok: [wazuh-agent10] ok: [wazuh-agent11] changed: [wazuh-agent3] changed: [wazuh-agent1] ok: [wazuh-agent12] ok: [wazuh-agent13] changed: [wazuh-agent2] ok: [wazuh-agent14] ok: [wazuh-agent15] ok: [wazuh-agent16] ok: [wazuh-agent17] ok: [wazuh-agent18] ok: [wazuh-agent19] ok: [wazuh-agent20] ok: [wazuh-agent21] ok: [wazuh-agent22] ok: [wazuh-agent23] ok: [wazuh-agent24] ok: [wazuh-agent25] ok: [wazuh-agent27] ok: [wazuh-agent26] ok: [wazuh-agent28] ok: [wazuh-agent29] ok: [wazuh-agent30] ok: [wazuh-agent32] ok: [wazuh-agent31] ok: [wazuh-agent33] ok: [wazuh-agent34] ok: [wazuh-agent35] ok: [wazuh-agent37] ok: [wazuh-agent36] ok: [wazuh-agent38] ok: [wazuh-agent39] ok: [wazuh-agent40] TASK [roles/agent-role : Clone wazuh repository] ******************************* jueves 18 mayo 2023 13:36:47 -0400 (0:00:33.797) 0:12:45.819 *********** ok: [wazuh-agent5] ok: [wazuh-agent4] ok: [wazuh-agent6] ok: [wazuh-agent7] ok: [wazuh-agent9] ok: [wazuh-agent8] ok: [wazuh-agent10] ok: [wazuh-agent11] ok: [wazuh-agent13] ok: [wazuh-agent12] ok: [wazuh-agent14] ok: [wazuh-agent15] changed: [wazuh-agent2] changed: [wazuh-agent1] ok: [wazuh-agent17] ok: [wazuh-agent16] changed: [wazuh-agent3] ok: [wazuh-agent18] ok: [wazuh-agent19] ok: [wazuh-agent20] ok: [wazuh-agent21] ok: [wazuh-agent22] ok: [wazuh-agent23] ok: [wazuh-agent24] ok: [wazuh-agent25] ok: [wazuh-agent26] ok: [wazuh-agent27] ok: [wazuh-agent28] ok: [wazuh-agent29] ok: [wazuh-agent31] ok: [wazuh-agent30] ok: [wazuh-agent32] ok: [wazuh-agent33] ok: [wazuh-agent34] ok: [wazuh-agent35] ok: [wazuh-agent36] ok: [wazuh-agent37] ok: [wazuh-agent38] ok: [wazuh-agent39] ok: [wazuh-agent40] TASK [roles/agent-role : Install agent] **************************************** jueves 18 mayo 2023 13:38:00 -0400 (0:01:13.306) 0:13:59.125 *********** ok: [wazuh-agent4] ok: [wazuh-agent5] ok: [wazuh-agent6] ok: [wazuh-agent7] ok: [wazuh-agent9] ok: [wazuh-agent8] ok: [wazuh-agent10] ok: [wazuh-agent11] ok: [wazuh-agent12] ok: [wazuh-agent13] ok: [wazuh-agent14] ok: [wazuh-agent15] ok: [wazuh-agent16] ok: [wazuh-agent17] ok: [wazuh-agent18] ok: [wazuh-agent19] ok: [wazuh-agent20] ok: [wazuh-agent21] ok: [wazuh-agent22] ok: [wazuh-agent23] ok: [wazuh-agent24] ok: [wazuh-agent25] ok: [wazuh-agent26] ok: [wazuh-agent27] ok: [wazuh-agent28] ok: [wazuh-agent29] ok: [wazuh-agent30] ok: [wazuh-agent31] ok: [wazuh-agent32] ok: [wazuh-agent33] ok: [wazuh-agent35] ok: [wazuh-agent34] ok: [wazuh-agent37] ok: [wazuh-agent36] ok: [wazuh-agent39] ok: [wazuh-agent38] ok: [wazuh-agent40] changed: [wazuh-agent2] changed: [wazuh-agent3] changed: [wazuh-agent1] TASK [roles/agent-role : Copy ossec.conf file] ********************************* jueves 18 mayo 2023 13:39:38 -0400 (0:01:37.660) 0:15:36.786 *********** changed: [wazuh-agent3] changed: [wazuh-agent1] changed: [wazuh-agent2] changed: [wazuh-agent5] changed: [wazuh-agent4] changed: [wazuh-agent6] changed: [wazuh-agent9] changed: [wazuh-agent8] changed: [wazuh-agent10] changed: [wazuh-agent7] changed: [wazuh-agent11] changed: [wazuh-agent12] changed: [wazuh-agent15] changed: [wazuh-agent13] changed: [wazuh-agent14] changed: [wazuh-agent16] changed: [wazuh-agent17] changed: [wazuh-agent18] changed: [wazuh-agent19] changed: [wazuh-agent20] changed: [wazuh-agent21] changed: [wazuh-agent22] changed: [wazuh-agent23] changed: [wazuh-agent25] changed: [wazuh-agent24] changed: [wazuh-agent26] changed: [wazuh-agent27] changed: [wazuh-agent28] changed: [wazuh-agent29] changed: [wazuh-agent30] changed: [wazuh-agent31] changed: [wazuh-agent32] changed: [wazuh-agent33] changed: [wazuh-agent35] changed: [wazuh-agent34] changed: [wazuh-agent36] changed: [wazuh-agent38] changed: [wazuh-agent37] changed: [wazuh-agent39] changed: [wazuh-agent40] TASK [roles/agent-role : Set Wazuh Manager IP] ********************************* jueves 18 mayo 2023 13:39:52 -0400 (0:00:14.120) 0:15:50.907 *********** changed: [wazuh-agent4] changed: [wazuh-agent2] changed: [wazuh-agent5] changed: [wazuh-agent3] changed: [wazuh-agent1] changed: [wazuh-agent6] changed: [wazuh-agent7] changed: [wazuh-agent9] changed: [wazuh-agent8] changed: [wazuh-agent10] changed: [wazuh-agent11] changed: [wazuh-agent12] changed: [wazuh-agent13] changed: [wazuh-agent14] changed: [wazuh-agent15] changed: [wazuh-agent16] changed: [wazuh-agent17] changed: [wazuh-agent20] changed: [wazuh-agent18] changed: [wazuh-agent19] changed: [wazuh-agent21] changed: [wazuh-agent22] changed: [wazuh-agent24] changed: [wazuh-agent23] changed: [wazuh-agent25] changed: [wazuh-agent26] changed: [wazuh-agent27] changed: [wazuh-agent28] changed: [wazuh-agent29] changed: [wazuh-agent30] changed: [wazuh-agent31] changed: [wazuh-agent32] changed: [wazuh-agent33] changed: [wazuh-agent34] changed: [wazuh-agent35] changed: [wazuh-agent36] changed: [wazuh-agent37] changed: [wazuh-agent40] changed: [wazuh-agent39] changed: [wazuh-agent38] PLAY RECAP ********************************************************************* localhost : ok=9 changed=4 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 wazuh-agent1 : ok=7 changed=6 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 wazuh-agent10 : ok=7 changed=3 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 wazuh-agent11 : ok=7 changed=3 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 wazuh-agent12 : ok=7 changed=3 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 wazuh-agent13 : ok=7 changed=3 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 wazuh-agent14 : ok=7 changed=3 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 wazuh-agent15 : ok=7 changed=3 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 wazuh-agent16 : ok=7 changed=3 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 wazuh-agent17 : ok=7 changed=3 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 wazuh-agent18 : ok=7 changed=3 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 wazuh-agent19 : ok=7 changed=3 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 wazuh-agent2 : ok=7 changed=6 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 wazuh-agent20 : ok=7 changed=3 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 wazuh-agent21 : ok=7 changed=3 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 wazuh-agent22 : ok=7 changed=3 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 wazuh-agent23 : ok=7 changed=3 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 wazuh-agent24 : ok=7 changed=3 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 wazuh-agent25 : ok=7 changed=3 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 wazuh-agent26 : ok=7 changed=3 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 wazuh-agent27 : ok=7 changed=3 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 wazuh-agent28 : ok=7 changed=3 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 wazuh-agent29 : ok=7 changed=3 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 wazuh-agent3 : ok=7 changed=6 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 wazuh-agent30 : ok=7 changed=3 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 wazuh-agent31 : ok=7 changed=3 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 wazuh-agent32 : ok=7 changed=3 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 wazuh-agent33 : ok=7 changed=3 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 wazuh-agent34 : ok=7 changed=3 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 wazuh-agent35 : ok=7 changed=3 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 wazuh-agent36 : ok=7 changed=3 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 wazuh-agent37 : ok=7 changed=3 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 wazuh-agent38 : ok=7 changed=3 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 wazuh-agent39 : ok=7 changed=3 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 wazuh-agent4 : ok=7 changed=3 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 wazuh-agent40 : ok=7 changed=3 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 wazuh-agent5 : ok=7 changed=3 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 wazuh-agent6 : ok=7 changed=3 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 wazuh-agent7 : ok=7 changed=3 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 wazuh-agent8 : ok=7 changed=3 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 wazuh-agent9 : ok=7 changed=3 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 wazuh-master : ok=13 changed=12 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 wazuh-worker1 : ok=12 changed=11 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 wazuh-worker2 : ok=12 changed=11 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 jueves 18 mayo 2023 13:40:00 -0400 (0:00:08.214) 0:15:59.121 *********** =============================================================================== roles/master-role : Install master ------------------------------------ 135.05s roles/worker-role : Install master ------------------------------------ 127.35s roles/worker-role : Install master ------------------------------------ 122.50s roles/agent-role : Install agent --------------------------------------- 97.66s roles/agent-role : Clone wazuh repository ------------------------------ 73.31s docker_container ------------------------------------------------------- 40.77s roles/agent-role : Installing dependencies using apt ------------------- 33.80s roles/worker-role : Clone wazuh repository ----------------------------- 31.78s roles/worker-role : Clone wazuh repository ----------------------------- 31.46s roles/master-role : Clone wazuh repository ----------------------------- 27.57s Gathering Facts -------------------------------------------------------- 27.18s roles/agent-role : Check and update debian repositories ---------------- 20.78s roles/worker-role : Restart Wazuh -------------------------------------- 17.14s roles/worker-role : Installing dependencies using apt ------------------ 16.42s roles/master-role : Installing dependencies using apt ------------------ 16.17s roles/master-role : Start Wazuh ---------------------------------------- 16.12s roles/worker-role : Restart Wazuh -------------------------------------- 15.68s roles/worker-role : Installing dependencies using apt ------------------ 14.23s roles/agent-role : Copy ossec.conf file -------------------------------- 14.12s roles/agent-role : Set Wazuh Manager IP --------------------------------- 8.21s Playbook run took 0 days, 0 hours, 15 minutes, 59 seconds (venv) wazuh@ubuntu2204:~/wazuh-qa/tests/system/provisioning/big_cluster_40_agents$
fdalmaup commented 11 months ago

Issue Update

Rebased the branch fix/3949-consistently-use-python3-in-system-tests to 4.5. In the process of testing the modifications: Test Environment Status
test_cluster/test_agent_info_sync basic_cluster
test_cluster/test_agent_key_polling basic_cluster
test_cluster/test_agent_files_deletion basic_cluster :green_circle:
test_multigroups/test_multigroups basic_cluster :green_circle:
test_cluster/test_agent_groups/test_agent_groups_forced_change basic_cluster :green_circle:
test_cluster/test_agent_groups/test_agent_groups_new_cluster_node four_manager_disconnected_node
test_cluster/test_agent_groups/test_groups_sync_default big_cluster_40_agents
test_cluster/test_agent_groups/test_groups_sync_time big_cluster_40_agents
fdalmaup commented 11 months ago

Issue Update

All the tests passed:

Test Environment Status
test_cluster/test_agent_info_sync basic_cluster :green_circle:
test_cluster/test_agent_key_polling basic_cluster :green_circle:
test_cluster/test_agent_files_deletion basic_cluster :green_circle:
test_multigroups/test_multigroups basic_cluster :green_circle:
test_cluster/test_agent_groups/test_agent_groups_forced_change basic_cluster :green_circle:
test_cluster/test_agent_groups/test_agent_groups_new_cluster_node four_manager_disconnected_node :green_circle:
test_cluster/test_agent_groups/test_groups_sync_default big_cluster_40_agents :green_circle:
test_cluster/test_agent_groups/test_groups_sync_time big_cluster_40_agents :green_circle:
basic_cluster python3 -m pytest -vvx test_cluster/test_agent_info_sync/ =============================================================================================== test session starts =============================================================================================== platform linux -- Python 3.9.17, pytest-6.2.2, py-1.10.0, pluggy-0.13.1 -- /home/fdalmau/venv/qa-system/bin/python3 cachedir: .pytest_cache metadata: {'Python': '3.9.17', 'Platform': 'Linux-5.14.0-1059-oem-x86_64-with-glibc2.31', 'Packages': {'pytest': '6.2.2', 'pluggy': '0.13.1'}, 'Plugins': {'html': '3.1.1', 'testinfra': '5.0.0', 'metadata': '2.0.4'}} rootdir: /home/fdalmau/git/wazuh-qa/tests/system, configfile: pytest.ini plugins: html-3.1.1, testinfra-5.0.0, metadata-2.0.4 collected 2 items test_cluster/test_agent_info_sync/test_agent_info_sync.py::test_agent_info_sync PASSED [ 50%] test_cluster/test_agent_info_sync/test_agent_info_sync.py::test_agent_info_sync_remove_agent PASSED [100%] ========================================================================================== 2 passed in 365.91s (0:06:05) ========================================================================================== python3 -m pytest -vvx test_cluster/test_agent_key_polling/ =============================================================================================== test session starts =============================================================================================== platform linux -- Python 3.9.17, pytest-6.2.2, py-1.10.0, pluggy-0.13.1 -- /home/fdalmau/venv/qa-system/bin/python3 cachedir: .pytest_cache metadata: {'Python': '3.9.17', 'Platform': 'Linux-5.14.0-1059-oem-x86_64-with-glibc2.31', 'Packages': {'pytest': '6.2.2', 'pluggy': '0.13.1'}, 'Plugins': {'html': '3.1.1', 'testinfra': '5.0.0', 'metadata': '2.0.4'}} rootdir: /home/fdalmau/git/wazuh-qa/tests/system, configfile: pytest.ini plugins: html-3.1.1, testinfra-5.0.0, metadata-2.0.4 collected 1 item test_cluster/test_agent_key_polling/test_agent_key_polling.py::test_agent_key_polling PASSED [100%] ========================================================================================== 1 passed in 131.76s (0:02:11) ========================================================================================== python3 -m pytest -vvx test_cluster/test_agent_files_deletion/ =============================================================================================== test session starts =============================================================================================== platform linux -- Python 3.9.17, pytest-6.2.2, py-1.10.0, pluggy-0.13.1 -- /home/fdalmau/venv/qa-system/bin/python3 cachedir: .pytest_cache metadata: {'Python': '3.9.17', 'Platform': 'Linux-5.14.0-1059-oem-x86_64-with-glibc2.31', 'Packages': {'pytest': '6.2.2', 'pluggy': '0.13.1'}, 'Plugins': {'html': '3.1.1', 'testinfra': '5.0.0', 'metadata': '2.0.4'}} rootdir: /home/fdalmau/git/wazuh-qa/tests/system, configfile: pytest.ini plugins: html-3.1.1, testinfra-5.0.0, metadata-2.0.4 collected 1 item test_cluster/test_agent_files_deletion/test_agent_files_deletion.py::test_agent_files_deletion PASSED [100%] ========================================================================================== 1 passed in 220.16s (0:03:40) ========================================================================================== python3 -m pytest -vvx test_multigroups/test_multigroups.py =============================================================================================== test session starts =============================================================================================== platform linux -- Python 3.9.17, pytest-6.2.2, py-1.10.0, pluggy-0.13.1 -- /home/fdalmau/venv/qa-system/bin/python3 cachedir: .pytest_cache metadata: {'Python': '3.9.17', 'Platform': 'Linux-5.14.0-1059-oem-x86_64-with-glibc2.31', 'Packages': {'pytest': '6.2.2', 'pluggy': '0.13.1'}, 'Plugins': {'html': '3.1.1', 'testinfra': '5.0.0', 'metadata': '2.0.4'}} rootdir: /home/fdalmau/git/wazuh-qa/tests/system, configfile: pytest.ini plugins: html-3.1.1, testinfra-5.0.0, metadata-2.0.4 collected 4 items test_multigroups/test_multigroups.py::test_multigroups_not_reloaded PASSED [ 25%] test_multigroups/test_multigroups.py::test_multigroups_updated[test_mg_0] PASSED [ 50%] test_multigroups/test_multigroups.py::test_multigroups_updated[default] PASSED [ 75%] test_multigroups/test_multigroups.py::test_multigroups_deleted PASSED [100%] ========================================================================================== 4 passed in 736.54s (0:12:16) ========================================================================================== python3 -m pytest -vvx test_cluster/test_agent_groups/test_agent_groups_forced_change.py =============================================================================================== test session starts =============================================================================================== platform linux -- Python 3.9.17, pytest-6.2.2, py-1.10.0, pluggy-0.13.1 -- /home/fdalmau/venv/qa-system/bin/python3 cachedir: .pytest_cache metadata: {'Python': '3.9.17', 'Platform': 'Linux-5.14.0-1059-oem-x86_64-with-glibc2.31', 'Packages': {'pytest': '6.2.2', 'pluggy': '0.13.1'}, 'Plugins': {'html': '3.1.1', 'testinfra': '5.0.0', 'metadata': '2.0.4'}} rootdir: /home/fdalmau/git/wazuh-qa/tests/system, configfile: pytest.ini plugins: html-3.1.1, testinfra-5.0.0, metadata-2.0.4 collected 3 items test_cluster/test_agent_groups/test_agent_groups_forced_change.py::test_sync_when_forced_to_change_a_group[wazuh-master] PASSED [ 33%] test_cluster/test_agent_groups/test_agent_groups_forced_change.py::test_sync_when_forced_to_change_a_group[wazuh-worker1] PASSED [ 66%] test_cluster/test_agent_groups/test_agent_groups_forced_change.py::test_force_group_change_during_sync PASSED [100%] ========================================================================================== 3 passed in 456.92s (0:07:36) ==========================================================================================
four_manager_disconnected_node python3 -m pytest -vvx test_cluster/test_agent_groups/test_agent_groups_new_cluster_node.py =============================================================================================== test session starts =============================================================================================== platform linux -- Python 3.9.17, pytest-6.2.2, py-1.10.0, pluggy-0.13.1 -- /home/fdalmau/venv/qa-system/bin/python3 cachedir: .pytest_cache metadata: {'Python': '3.9.17', 'Platform': 'Linux-5.14.0-1059-oem-x86_64-with-glibc2.31', 'Packages': {'pytest': '6.2.2', 'pluggy': '0.13.1'}, 'Plugins': {'html': '3.1.1', 'testinfra': '5.0.0', 'metadata': '2.0.4'}} rootdir: /home/fdalmau/git/wazuh-qa/tests/system, configfile: pytest.ini plugins: html-3.1.1, testinfra-5.0.0, metadata-2.0.4 collected 2 items test_cluster/test_agent_groups/test_agent_groups_new_cluster_node.py::test_agent_groups_sync_when_add_a_new_cluster_node[master] PASSED [ 50%] test_cluster/test_agent_groups/test_agent_groups_new_cluster_node.py::test_agent_groups_sync_when_add_a_new_cluster_node[different_workers] PASSED [100%] ========================================================================================== 2 passed in 251.68s (0:04:11) ==========================================================================================
big_cluster_40_agents python3 -m pytest -vvx test_cluster/test_agent_groups/test_groups_sync_default.py =============================================================================================== test session starts =============================================================================================== platform linux -- Python 3.9.17, pytest-6.2.2, py-1.10.0, pluggy-0.13.1 -- /home/fdalmau/venv/qa-system/bin/python3 cachedir: .pytest_cache metadata: {'Python': '3.9.17', 'Platform': 'Linux-5.14.0-1059-oem-x86_64-with-glibc2.31', 'Packages': {'pytest': '6.2.2', 'pluggy': '0.13.1'}, 'Plugins': {'html': '3.1.1', 'testinfra': '5.0.0', 'metadata': '2.0.4'}} rootdir: /home/fdalmau/git/wazuh-qa/tests/system, configfile: pytest.ini plugins: html-3.1.1, testinfra-5.0.0, metadata-2.0.4 collected 2 items test_cluster/test_agent_groups/test_groups_sync_default.py::test_agent_groups_sync_default[wazuh-master] PASSED [ 50%] test_cluster/test_agent_groups/test_groups_sync_default.py::test_agent_groups_sync_default[wazuh-worker1] PASSED [100%] ========================================================================================= 2 passed in 3259.63s (0:54:19) ========================================================================================== python3 -m pytest -vvx test_cluster/test_agent_groups/test_groups_sync_time.py =============================================================================================== test session starts =============================================================================================== platform linux -- Python 3.9.17, pytest-6.2.2, py-1.10.0, pluggy-0.13.1 -- /home/fdalmau/venv/qa-system/bin/python3 cachedir: .pytest_cache metadata: {'Python': '3.9.17', 'Platform': 'Linux-5.14.0-1059-oem-x86_64-with-glibc2.31', 'Packages': {'pytest': '6.2.2', 'pluggy': '0.13.1'}, 'Plugins': {'html': '3.1.1', 'testinfra': '5.0.0', 'metadata': '2.0.4'}} rootdir: /home/fdalmau/git/wazuh-qa/tests/system, configfile: pytest.ini plugins: html-3.1.1, testinfra-5.0.0, metadata-2.0.4 collected 2 items test_cluster/test_agent_groups/test_groups_sync_time.py::test_agent_groups_sync_time[wazuh-master] PASSED [ 50%] test_cluster/test_agent_groups/test_groups_sync_time.py::test_agent_groups_sync_time[wazuh-worker1] PASSED [100%] ========================================================================================= 2 passed in 3483.07s (0:58:03) ==========================================================================================