r1_agent_enrollment_enrollment_cluster.html

Report generated on 01-Sep-2021 at 14:11:45 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 88.04 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 87.88
------------------------------Captured stderr call------------------------------
2021-09-01 14:11:21,380 - wazuh_testing - DEBUG - Add new file composer process for wazuh-master and path: /var/ossec/logs/cluster.log 2021-09-01 14:11:21,382 - wazuh_testing - DEBUG - Add new file monitor process for wazuh-master and path: /var/ossec/logs/cluster.log 2021-09-01 14:11:21,383 - 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:11:21,384 - wazuh_testing - DEBUG - Add new file composer process for wazuh-master and path: /var/ossec/logs/ossec.log 2021-09-01 14:11:21,385 - 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:11:21,387 - 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:11:21,386 - wazuh_testing - DEBUG - Add new file monitor process for wazuh-master and path: /var/ossec/logs/ossec.log 2021-09-01 14:11:21,389 - wazuh_testing - DEBUG - Add new file composer process for wazuh-worker1 and path: /var/ossec/logs/cluster.log 2021-09-01 14:11:21,389 - wazuh_testing - DEBUG - Starting QueueMonitor for wazuh-master and message: .*Agent key generated for agent.* 2021-09-01 14:11:21,391 - wazuh_testing - DEBUG - Add new file monitor process for wazuh-worker1 and path: /var/ossec/logs/cluster.log 2021-09-01 14:11:21,394 - wazuh_testing - DEBUG - Add new file composer process for wazuh-worker1 and path: /var/ossec/logs/ossec.log 2021-09-01 14:11:21,396 - 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:11:21,397 - wazuh_testing - DEBUG - Add new file monitor process for wazuh-worker1 and path: /var/ossec/logs/ossec.log 2021-09-01 14:11:21,397 - wazuh_testing - DEBUG - Starting QueueMonitor for wazuh-worker1 and message: .*Processing file etc\/client\.keys.* 2021-09-01 14:11:21,399 - wazuh_testing - DEBUG - Add new file composer process for wazuh-agent1 and path: /var/ossec/logs/ossec.log 2021-09-01 14:11:21,402 - wazuh_testing - DEBUG - Add new file monitor process for wazuh-agent1 and path: /var/ossec/logs/ossec.log 2021-09-01 14:11:21,409 - 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:11:21,411 - 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:11:21,416 - wazuh_testing - DEBUG - Starting QueueMonitor for wazuh-agent1 and message: .*Requesting a key from server:.* 2021-09-01 14:11:21,416 - wazuh_testing - DEBUG - Starting QueueMonitor for wazuh-worker1 and message: .*Received request for a new agent.* 2021-09-01 14:11:23,390 - 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:11:23,391 - wazuh_testing - DEBUG - Starting QueueMonitor for wazuh-master and message: .*Worker wazuh-worker1.*Integrity sync.*Finished in.* 2021-09-01 14:11:23,397 - wazuh_testing - DEBUG - Finishing QueueMonitor for wazuh-master and message: .*Worker wazuh-worker1.*Integrity sync.*Finished in.* 2021-09-01 14:11:23,399 - wazuh_testing - DEBUG - Finishing QueueMonitor for wazuh-master and message: .*Agent key generated for agent.* 2021-09-01 14:11:23,402 - wazuh_testing - DEBUG - Finishing QueueMonitor for wazuh-worker1 and message: .*Processing file etc\/client\.keys.* 2021-09-01 14:11:23,402 - wazuh_testing - DEBUG - Starting QueueMonitor for wazuh-worker1 and message: .*Updating local files: End.* 2021-09-01 14:11:23,404 - wazuh_testing - DEBUG - Finishing QueueMonitor for wazuh-worker1 and message: .*Updating local files: End.* 2021-09-01 14:11:23,426 - wazuh_testing - DEBUG - Finishing QueueMonitor for wazuh-agent1 and message: .*Requesting a key from server:.* 2021-09-01 14:11:23,426 - wazuh_testing - DEBUG - Finishing QueueMonitor for wazuh-worker1 and message: .*Received request for a new agent.* 2021-09-01 14:11:23,426 - wazuh_testing - DEBUG - Starting QueueMonitor for wazuh-agent1 and message: .*Registering agent to unverified manager 2021-09-01 14:11:23,427 - wazuh_testing - DEBUG - Starting QueueMonitor for wazuh-worker1 and message: .*Dispatching request to master node.* 2021-09-01 14:11:23,429 - wazuh_testing - DEBUG - Finishing QueueMonitor for wazuh-agent1 and message: .*Registering agent to unverified manager 2021-09-01 14:11:23,429 - wazuh_testing - DEBUG - Starting QueueMonitor for wazuh-agent1 and message: .*Using agent name as:* 2021-09-01 14:11:23,432 - wazuh_testing - DEBUG - Finishing QueueMonitor for wazuh-agent1 and message: .*Using agent name as:* 2021-09-01 14:11:23,432 - wazuh_testing - DEBUG - Starting QueueMonitor for wazuh-agent1 and message: .*Waiting for server reply 2021-09-01 14:11:23,433 - wazuh_testing - DEBUG - Finishing QueueMonitor for wazuh-worker1 and message: .*Dispatching request to master node.* 2021-09-01 14:11:23,433 - wazuh_testing - DEBUG - Starting QueueMonitor for wazuh-worker1 and message: .*Agent key generated for.* 2021-09-01 14:11:23,434 - wazuh_testing - DEBUG - Finishing QueueMonitor for wazuh-agent1 and message: .*Waiting for server reply 2021-09-01 14:11:23,435 - wazuh_testing - DEBUG - Starting QueueMonitor for wazuh-agent1 and message: .*Valid key received 2021-09-01 14:11:23,437 - wazuh_testing - DEBUG - Finishing QueueMonitor for wazuh-agent1 and message: .*Valid key received 2021-09-01 14:11:23,437 - wazuh_testing - DEBUG - Starting QueueMonitor for wazuh-agent1 and message: .*Waiting .* seconds before server connection 2021-09-01 14:11:23,439 - wazuh_testing - DEBUG - Finishing QueueMonitor for wazuh-agent1 and message: .*Waiting .* seconds before server connection 2021-09-01 14:11:23,440 - wazuh_testing - DEBUG - Finishing QueueMonitor for wazuh-worker1 and message: .*Agent key generated for.* 2021-09-01 14:11:24,413 - wazuh_testing - DEBUG - Cleaning temporal files... 2021-09-01 14:11:24,414 - wazuh_testing - DEBUG - Checking results... 2021-09-01 14:11:24,415 - wazuh_testing - DEBUG - Received from wazuh-master the expected message: 2021/09/01 14:11:15 DEBUG: [Worker wazuh-worker1] [SendSync] Received request: b'wazuh-worker1*560012 {"daemon_name":"authd","message":{"arguments":{"name":"wazuh-agent1","ip":"any","force":0},"function":"add"}}' 2021-09-01 14:11:24,415 - wazuh_testing - DEBUG - Received from wazuh-master the expected message: 2021/09/01 14:11:22 INFO: [Worker wazuh-worker1] [Integrity sync] Finished in 0.016s. 2021-09-01 14:11:24,416 - wazuh_testing - DEBUG - Received from wazuh-master the expected message: 2021/09/01 14:11:15 wazuh-authd[8260] local-server.c:394 at local_add(): INFO: Agent key generated for agent 'wazuh-agent1' (requested locally) 2021-09-01 14:11:24,416 - wazuh_testing - DEBUG - Received from wazuh-worker1 the expected message: 2021/09/01 14:11:22 DEBUG2: [Worker wazuh-worker1] [Integrity sync] Processing file etc/client.keys 2021-09-01 14:11:24,416 - wazuh_testing - DEBUG - Received from wazuh-worker1 the expected message: 2021/09/01 14:11:22 DEBUG: [Worker wazuh-worker1] [Integrity sync] Updating local files: End. 2021-09-01 14:11:24,416 - wazuh_testing - DEBUG - Received from wazuh-agent1 the expected message: 2021/09/01 14:11:15 wazuh-agentd[5185] 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:11:24,416 - wazuh_testing - DEBUG - Received from wazuh-worker1 the expected message: 2021/09/01 14:11:15 wazuh-authd[8705] 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:11:24,417 - wazuh_testing - DEBUG - Received from wazuh-agent1 the expected message: 2021/09/01 14:11:15 wazuh-agentd[5185] enrollment_op.c:476 at w_enrollment_verify_ca_certificate(): DEBUG: Registering agent to unverified manager 2021-09-01 14:11:24,417 - wazuh_testing - DEBUG - Received from wazuh-agent1 the expected message: 2021/09/01 14:11:15 wazuh-agentd[5185] enrollment_op.c:263 at w_enrollment_send_message(): INFO: Using agent name as: wazuh-agent1 2021-09-01 14:11:24,417 - wazuh_testing - DEBUG - Received from wazuh-worker1 the expected message: 2021/09/01 14:11:15 wazuh-authd[8705] main-server.c:628 at run_dispatcher(): INFO: Dispatching request to master node 2021-09-01 14:11:24,417 - wazuh_testing - DEBUG - Received from wazuh-agent1 the expected message: 2021/09/01 14:11:15 wazuh-agentd[5185] enrollment_op.c:324 at w_enrollment_process_response(): INFO: Waiting for server reply 2021-09-01 14:11:24,417 - wazuh_testing - DEBUG - Received from wazuh-agent1 the expected message: 2021/09/01 14:11:15 wazuh-agentd[5185] enrollment_op.c:444 at w_enrollment_process_agent_key(): INFO: Valid key received 2021-09-01 14:11:24,417 - wazuh_testing - DEBUG - Received from wazuh-agent1 the expected message: 2021/09/01 14:11:15 wazuh-agentd[5185] start_agent.c:353 at try_enroll_to_server(): INFO: Waiting 20 seconds before server connection 2021-09-01 14:11:24,418 - wazuh_testing - DEBUG - Received from wazuh-worker1 the expected message: 2021/09/01 14:11:15 wazuh-authd[8705] main-server.c:647 at run_dispatcher(): INFO: Agent key generated for 'wazuh-agent1' (requested by any)
-------------------------------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:11:15 DEBUG: [Worker wazuh-worker1] [SendSync] Received request: b'wazuh-worker1*560012 {"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:11:22 INFO: [Worker wazuh-worker1] [Integrity sync] Finished in 0.016s. DEBUG wazuh_testing:monitoring.py:983 Received from wazuh-master the expected message: 2021/09/01 14:11:15 wazuh-authd[8260] 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:11:22 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:11:22 DEBUG: [Worker wazuh-worker1] [Integrity sync] Updating local files: End. DEBUG wazuh_testing:monitoring.py:983 Received from wazuh-agent1 the expected message: 2021/09/01 14:11:15 wazuh-agentd[5185] 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:11:15 wazuh-authd[8705] 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:11:15 wazuh-agentd[5185] 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:11:15 wazuh-agentd[5185] 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:11:15 wazuh-authd[8705] 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:11:15 wazuh-agentd[5185] 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:11:15 wazuh-agentd[5185] 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:11:15 wazuh-agentd[5185] 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:11:15 wazuh-authd[8705] main-server.c:647 at run_dispatcher(): INFO: Agent key generated for 'wazuh-agent1' (requested by any)