r2_agent_enrollment_enrollment_cluster.html

Report generated on 01-Sep-2021 at 14:26:23 by pytest-html v3.1.1

Environment

Packages {"pluggy": "0.13.1", "py": "1.10.0", "pytest": "6.2.3"}
Platform Linux-5.11.0-7620-generic-x86_64-with-glibc2.33
Plugins {"html": "3.1.1", "metadata": "1.11.0", "testinfra": "6.0.0"}
Python 3.9.5

Summary

1 tests ran in 81.03 seconds.

1 passed, 0 skipped, 0 failed, 0 errors, 0 expected failures, 0 unexpected passes

Results

Result Test Duration Links
Passed test_agent_enrollment/test_agent_enrollment.py::test_agent_enrollment 80.91
------------------------------Captured stderr call------------------------------
2021-09-01 14:26:03,921 - wazuh_testing - DEBUG - Add new file composer process for wazuh-master and path: /var/ossec/logs/cluster.log 2021-09-01 14:26:03,923 - wazuh_testing - DEBUG - Add new file monitor process for wazuh-master and path: /var/ossec/logs/cluster.log 2021-09-01 14:26:03,923 - wazuh_testing - DEBUG - Starting file composer for wazuh-master and path: /var/ossec/logs/cluster.log. Composite file in /home/rebits/Work/wazuh-qa/tests/system/test_cluster/test_agent_enrollment/tmp/wazuh-master_cluster.log.tmp 2021-09-01 14:26:03,925 - wazuh_testing - DEBUG - Add new file composer process for wazuh-master and path: /var/ossec/logs/ossec.log 2021-09-01 14:26:03,926 - wazuh_testing - DEBUG - Starting QueueMonitor for wazuh-master and message: .*Received request:.*{"daemon_name":"authd","message":{"arguments":{"name":".*","ip":"any","force":0},"function":"add"}} 2021-09-01 14:26:03,928 - wazuh_testing - DEBUG - Starting file composer for wazuh-master and path: /var/ossec/logs/ossec.log. Composite file in /home/rebits/Work/wazuh-qa/tests/system/test_cluster/test_agent_enrollment/tmp/wazuh-master_ossec.log.tmp 2021-09-01 14:26:03,928 - wazuh_testing - DEBUG - Add new file monitor process for wazuh-master and path: /var/ossec/logs/ossec.log 2021-09-01 14:26:03,930 - wazuh_testing - DEBUG - Add new file composer process for wazuh-worker1 and path: /var/ossec/logs/cluster.log 2021-09-01 14:26:03,931 - wazuh_testing - DEBUG - Starting QueueMonitor for wazuh-master and message: .*Agent key generated for agent.* 2021-09-01 14:26:03,932 - wazuh_testing - DEBUG - Add new file monitor process for wazuh-worker1 and path: /var/ossec/logs/cluster.log 2021-09-01 14:26:03,934 - wazuh_testing - DEBUG - Starting file composer for wazuh-worker1 and path: /var/ossec/logs/cluster.log. Composite file in /home/rebits/Work/wazuh-qa/tests/system/test_cluster/test_agent_enrollment/tmp/wazuh-worker1_cluster.log.tmp 2021-09-01 14:26:03,935 - wazuh_testing - DEBUG - Starting QueueMonitor for wazuh-worker1 and message: .*Processing file etc\/client\.keys.* 2021-09-01 14:26:03,934 - wazuh_testing - DEBUG - Add new file composer process for wazuh-worker1 and path: /var/ossec/logs/ossec.log 2021-09-01 14:26:03,937 - wazuh_testing - DEBUG - Add new file monitor process for wazuh-worker1 and path: /var/ossec/logs/ossec.log 2021-09-01 14:26:03,937 - wazuh_testing - DEBUG - Starting file composer for wazuh-worker1 and path: /var/ossec/logs/ossec.log. Composite file in /home/rebits/Work/wazuh-qa/tests/system/test_cluster/test_agent_enrollment/tmp/wazuh-worker1_ossec.log.tmp 2021-09-01 14:26:03,939 - wazuh_testing - DEBUG - Add new file composer process for wazuh-agent1 and path: /var/ossec/logs/ossec.log 2021-09-01 14:26:03,940 - wazuh_testing - DEBUG - Starting QueueMonitor for wazuh-worker1 and message: .*Received request for a new agent.* 2021-09-01 14:26:03,942 - wazuh_testing - DEBUG - Add new file monitor process for wazuh-agent1 and path: /var/ossec/logs/ossec.log 2021-09-01 14:26:03,943 - wazuh_testing - DEBUG - Starting file composer for wazuh-agent1 and path: /var/ossec/logs/ossec.log. Composite file in /home/rebits/Work/wazuh-qa/tests/system/test_cluster/test_agent_enrollment/tmp/wazuh-agent1_ossec.log.tmp 2021-09-01 14:26:03,951 - wazuh_testing - DEBUG - Starting QueueMonitor for wazuh-agent1 and message: .*Requesting a key from server:.* 2021-09-01 14:26:05,931 - wazuh_testing - DEBUG - Finishing QueueMonitor for wazuh-master and message: .*Received request:.*{"daemon_name":"authd","message":{"arguments":{"name":".*","ip":"any","force":0},"function":"add"}} 2021-09-01 14:26:05,931 - wazuh_testing - DEBUG - Starting QueueMonitor for wazuh-master and message: .*Worker wazuh-worker1.*Integrity sync.*Finished in.* 2021-09-01 14:26:05,937 - wazuh_testing - DEBUG - Finishing QueueMonitor for wazuh-master and message: .*Worker wazuh-worker1.*Integrity sync.*Finished in.* 2021-09-01 14:26:05,940 - wazuh_testing - DEBUG - Finishing QueueMonitor for wazuh-master and message: .*Agent key generated for agent.* 2021-09-01 14:26:05,950 - wazuh_testing - DEBUG - Finishing QueueMonitor for wazuh-worker1 and message: .*Received request for a new agent.* 2021-09-01 14:26:05,950 - wazuh_testing - DEBUG - Starting QueueMonitor for wazuh-worker1 and message: .*Dispatching request to master node.* 2021-09-01 14:26:05,956 - wazuh_testing - DEBUG - Finishing QueueMonitor for wazuh-agent1 and message: .*Requesting a key from server:.* 2021-09-01 14:26:05,956 - wazuh_testing - DEBUG - Starting QueueMonitor for wazuh-agent1 and message: .*Registering agent to unverified manager 2021-09-01 14:26:05,956 - wazuh_testing - DEBUG - Finishing QueueMonitor for wazuh-worker1 and message: .*Dispatching request to master node.* 2021-09-01 14:26:05,956 - wazuh_testing - DEBUG - Starting QueueMonitor for wazuh-worker1 and message: .*Agent key generated for.* 2021-09-01 14:26:05,958 - wazuh_testing - DEBUG - Finishing QueueMonitor for wazuh-agent1 and message: .*Registering agent to unverified manager 2021-09-01 14:26:05,959 - wazuh_testing - DEBUG - Starting QueueMonitor for wazuh-agent1 and message: .*Using agent name as:* 2021-09-01 14:26:05,962 - wazuh_testing - DEBUG - Finishing QueueMonitor for wazuh-agent1 and message: .*Using agent name as:* 2021-09-01 14:26:05,962 - wazuh_testing - DEBUG - Starting QueueMonitor for wazuh-agent1 and message: .*Waiting for server reply 2021-09-01 14:26:05,962 - wazuh_testing - DEBUG - Finishing QueueMonitor for wazuh-worker1 and message: .*Agent key generated for.* 2021-09-01 14:26:05,965 - wazuh_testing - DEBUG - Finishing QueueMonitor for wazuh-agent1 and message: .*Waiting for server reply 2021-09-01 14:26:05,966 - wazuh_testing - DEBUG - Starting QueueMonitor for wazuh-agent1 and message: .*Valid key received 2021-09-01 14:26:05,968 - wazuh_testing - DEBUG - Finishing QueueMonitor for wazuh-agent1 and message: .*Valid key received 2021-09-01 14:26:05,968 - wazuh_testing - DEBUG - Starting QueueMonitor for wazuh-agent1 and message: .*Waiting .* seconds before server connection 2021-09-01 14:26:05,971 - wazuh_testing - DEBUG - Finishing QueueMonitor for wazuh-agent1 and message: .*Waiting .* seconds before server connection 2021-09-01 14:26:06,439 - wazuh_testing - DEBUG - Finishing QueueMonitor for wazuh-worker1 and message: .*Processing file etc\/client\.keys.* 2021-09-01 14:26:06,440 - wazuh_testing - DEBUG - Starting QueueMonitor for wazuh-worker1 and message: .*Updating local files: End.* 2021-09-01 14:26:06,467 - wazuh_testing - DEBUG - Finishing QueueMonitor for wazuh-worker1 and message: .*Updating local files: End.* 2021-09-01 14:26:07,003 - wazuh_testing - DEBUG - Cleaning temporal files... 2021-09-01 14:26:07,004 - wazuh_testing - DEBUG - Checking results... 2021-09-01 14:26:07,005 - wazuh_testing - DEBUG - Received from wazuh-master the expected message: 2021/09/01 14:25:57 DEBUG: [Worker wazuh-worker1] [SendSync] Received request: b'wazuh-worker1*980092 {"daemon_name":"authd","message":{"arguments":{"name":"wazuh-agent1","ip":"any","force":0},"function":"add"}}' 2021-09-01 14:26:07,006 - wazuh_testing - DEBUG - Received from wazuh-master the expected message: 2021/09/01 14:26:05 INFO: [Worker wazuh-worker1] [Integrity sync] Finished in 0.012s. 2021-09-01 14:26:07,008 - wazuh_testing - DEBUG - Received from wazuh-master the expected message: 2021/09/01 14:25:57 wazuh-authd[9844] local-server.c:394 at local_add(): INFO: Agent key generated for agent 'wazuh-agent1' (requested locally) 2021-09-01 14:26:07,009 - wazuh_testing - DEBUG - Received from wazuh-worker1 the expected message: 2021/09/01 14:25:57 wazuh-authd[10086] auth.c:95 at w_auth_parse_data(): INFO: Received request for a new agent (wazuh-agent1) from: 172.19.0.5 2021-09-01 14:26:07,009 - wazuh_testing - DEBUG - Received from wazuh-agent1 the expected message: 2021/09/01 14:25:57 wazuh-agentd[6910] enrollment_op.c:117 at w_enrollment_request_key(): INFO: Requesting a key from server: wazuh-worker1/172.19.0.3 2021-09-01 14:26:07,009 - wazuh_testing - DEBUG - Received from wazuh-worker1 the expected message: 2021/09/01 14:25:57 wazuh-authd[10086] main-server.c:628 at run_dispatcher(): INFO: Dispatching request to master node 2021-09-01 14:26:07,010 - wazuh_testing - DEBUG - Received from wazuh-agent1 the expected message: 2021/09/01 14:25:57 wazuh-agentd[6910] enrollment_op.c:476 at w_enrollment_verify_ca_certificate(): DEBUG: Registering agent to unverified manager 2021-09-01 14:26:07,010 - wazuh_testing - DEBUG - Received from wazuh-agent1 the expected message: 2021/09/01 14:25:57 wazuh-agentd[6910] enrollment_op.c:263 at w_enrollment_send_message(): INFO: Using agent name as: wazuh-agent1 2021-09-01 14:26:07,011 - wazuh_testing - DEBUG - Received from wazuh-worker1 the expected message: 2021/09/01 14:25:57 wazuh-authd[10086] main-server.c:647 at run_dispatcher(): INFO: Agent key generated for 'wazuh-agent1' (requested by any) 2021-09-01 14:26:07,011 - wazuh_testing - DEBUG - Received from wazuh-agent1 the expected message: 2021/09/01 14:25:57 wazuh-agentd[6910] enrollment_op.c:324 at w_enrollment_process_response(): INFO: Waiting for server reply 2021-09-01 14:26:07,012 - wazuh_testing - DEBUG - Received from wazuh-agent1 the expected message: 2021/09/01 14:25:57 wazuh-agentd[6910] enrollment_op.c:444 at w_enrollment_process_agent_key(): INFO: Valid key received 2021-09-01 14:26:07,012 - wazuh_testing - DEBUG - Received from wazuh-agent1 the expected message: 2021/09/01 14:25:57 wazuh-agentd[6910] start_agent.c:353 at try_enroll_to_server(): INFO: Waiting 20 seconds before server connection 2021-09-01 14:26:07,012 - wazuh_testing - DEBUG - Received from wazuh-worker1 the expected message: 2021/09/01 14:26:05 DEBUG2: [Worker wazuh-worker1] [Integrity sync] Processing file etc/client.keys 2021-09-01 14:26:07,013 - wazuh_testing - DEBUG - Received from wazuh-worker1 the expected message: 2021/09/01 14:26:05 DEBUG: [Worker wazuh-worker1] [Integrity sync] Updating local files: End.
-------------------------------Captured log call--------------------------------
DEBUG wazuh_testing:monitoring.py:882 Add new file composer process for wazuh-master and path: /var/ossec/logs/cluster.log DEBUG wazuh_testing:monitoring.py:886 Add new file monitor process for wazuh-master and path: /var/ossec/logs/cluster.log DEBUG wazuh_testing:monitoring.py:882 Add new file composer process for wazuh-master and path: /var/ossec/logs/ossec.log DEBUG wazuh_testing:monitoring.py:886 Add new file monitor process for wazuh-master and path: /var/ossec/logs/ossec.log DEBUG wazuh_testing:monitoring.py:882 Add new file composer process for wazuh-worker1 and path: /var/ossec/logs/cluster.log DEBUG wazuh_testing:monitoring.py:886 Add new file monitor process for wazuh-worker1 and path: /var/ossec/logs/cluster.log DEBUG wazuh_testing:monitoring.py:882 Add new file composer process for wazuh-worker1 and path: /var/ossec/logs/ossec.log DEBUG wazuh_testing:monitoring.py:886 Add new file monitor process for wazuh-worker1 and path: /var/ossec/logs/ossec.log DEBUG wazuh_testing:monitoring.py:882 Add new file composer process for wazuh-agent1 and path: /var/ossec/logs/ossec.log DEBUG wazuh_testing:monitoring.py:886 Add new file monitor process for wazuh-agent1 and path: /var/ossec/logs/ossec.log DEBUG wazuh_testing:monitoring.py:988 Cleaning temporal files... DEBUG wazuh_testing:monitoring.py:977 Checking results... DEBUG wazuh_testing:monitoring.py:983 Received from wazuh-master the expected message: 2021/09/01 14:25:57 DEBUG: [Worker wazuh-worker1] [SendSync] Received request: b'wazuh-worker1*980092 {"daemon_name":"authd","message":{"arguments":{"name":"wazuh-agent1","ip":"any","force":0},"function":"add"}}' DEBUG wazuh_testing:monitoring.py:983 Received from wazuh-master the expected message: 2021/09/01 14:26:05 INFO: [Worker wazuh-worker1] [Integrity sync] Finished in 0.012s. DEBUG wazuh_testing:monitoring.py:983 Received from wazuh-master the expected message: 2021/09/01 14:25:57 wazuh-authd[9844] local-server.c:394 at local_add(): INFO: Agent key generated for agent 'wazuh-agent1' (requested locally) DEBUG wazuh_testing:monitoring.py:983 Received from wazuh-worker1 the expected message: 2021/09/01 14:25:57 wazuh-authd[10086] auth.c:95 at w_auth_parse_data(): INFO: Received request for a new agent (wazuh-agent1) from: 172.19.0.5 DEBUG wazuh_testing:monitoring.py:983 Received from wazuh-agent1 the expected message: 2021/09/01 14:25:57 wazuh-agentd[6910] enrollment_op.c:117 at w_enrollment_request_key(): INFO: Requesting a key from server: wazuh-worker1/172.19.0.3 DEBUG wazuh_testing:monitoring.py:983 Received from wazuh-worker1 the expected message: 2021/09/01 14:25:57 wazuh-authd[10086] main-server.c:628 at run_dispatcher(): INFO: Dispatching request to master node DEBUG wazuh_testing:monitoring.py:983 Received from wazuh-agent1 the expected message: 2021/09/01 14:25:57 wazuh-agentd[6910] enrollment_op.c:476 at w_enrollment_verify_ca_certificate(): DEBUG: Registering agent to unverified manager DEBUG wazuh_testing:monitoring.py:983 Received from wazuh-agent1 the expected message: 2021/09/01 14:25:57 wazuh-agentd[6910] enrollment_op.c:263 at w_enrollment_send_message(): INFO: Using agent name as: wazuh-agent1 DEBUG wazuh_testing:monitoring.py:983 Received from wazuh-worker1 the expected message: 2021/09/01 14:25:57 wazuh-authd[10086] main-server.c:647 at run_dispatcher(): INFO: Agent key generated for 'wazuh-agent1' (requested by any) DEBUG wazuh_testing:monitoring.py:983 Received from wazuh-agent1 the expected message: 2021/09/01 14:25:57 wazuh-agentd[6910] enrollment_op.c:324 at w_enrollment_process_response(): INFO: Waiting for server reply DEBUG wazuh_testing:monitoring.py:983 Received from wazuh-agent1 the expected message: 2021/09/01 14:25:57 wazuh-agentd[6910] enrollment_op.c:444 at w_enrollment_process_agent_key(): INFO: Valid key received DEBUG wazuh_testing:monitoring.py:983 Received from wazuh-agent1 the expected message: 2021/09/01 14:25:57 wazuh-agentd[6910] start_agent.c:353 at try_enroll_to_server(): INFO: Waiting 20 seconds before server connection DEBUG wazuh_testing:monitoring.py:983 Received from wazuh-worker1 the expected message: 2021/09/01 14:26:05 DEBUG2: [Worker wazuh-worker1] [Integrity sync] Processing file etc/client.keys DEBUG wazuh_testing:monitoring.py:983 Received from wazuh-worker1 the expected message: 2021/09/01 14:26:05 DEBUG: [Worker wazuh-worker1] [Integrity sync] Updating local files: End.