Report generated on 15-Mar-2022 at 12:00:14 by pytest-html v3.1.1
Packages | {"pluggy": "0.13.1", "py": "1.10.0", "pytest": "6.2.2"} |
Platform | Linux-5.13.0-35-generic-x86_64-with-glibc2.29 |
Plugins | {"html": "3.1.1", "metadata": "1.11.0", "testinfra": "5.0.0"} |
Python | 3.8.10 |
4 tests ran in 750.35 seconds.
(Un)check the boxes to filter the results.
4 passed, 0 skipped, 0 failed, 0 errors, 0 expected failures, 0 unexpected passesResult | Test | Duration | Links |
---|---|---|---|
No results found. Try to check the filters | |||
Passed | test_assign_agent_to_a_group.py::test_assign_agent_to_a_group[wazuh-master-active-host_manager0-test_infra_agents0-test_infra_managers0] | 173.41 | |
-------------------------------Captured log setup------------------------------- DEBUG testinfra:base.py:277 RUN CommandResult(command=b'ansible --tree /tmp/tmpgpth7ftr -i /home/deblintrake/Escritorio/SysTests/wazuh-qa/tests/system/provisioning/enrollment_cluster/inventory.yml -m copy --args \'dest=/var/ossec/logs/ossec.log content=\'"\'"\'\'"\'"\' force=yes\' wazuh-agent1', exit_status=0, stdout=b'wazuh-agent1 | CHANGED => {\n "changed": true,\n "checksum": "da39a3ee5e6b4b0d3255bfef95601890afd80709",\n "dest": "/var/ossec/logs/ossec.log",\n "gid": 999,\n "group": "wazuh",\n "md5sum": "d41d8cd98f00b204e9800998ecf8427e",\n "mode": "0660",\n "owner": "wazuh",\n "size": 0,\n "src": "/root/.ansible/tmp/ansible-tmp-1647355664.7137964-212458-231634554547923/source",\n "state": "file",\n "uid": 999\n}\n', stderr=None) INFO testinfra:ansible.py:58 RUN Ansible('copy', "dest=/var/ossec/logs/ossec.log content='' force=yes", {'check': False, 'become': False}): {'changed': True, 'checksum': 'da39a3ee5e6b4b0d3255bfef95601890afd80709', 'dest': '/var/ossec/logs/ossec.log', 'gid': 999, 'group': 'wazuh', 'md5sum': 'd41d8cd98f00b204e9800998ecf8427e', 'mode': '0660', 'owner': 'wazuh', 'size': 0, 'src': '/root/.ansible/tmp/ansible-tmp-1647355664.7137964-212458-231634554547923/source', 'state': 'file', 'uid': 999} DEBUG testinfra:base.py:277 RUN CommandResult(command=b'ansible --tree /tmp/tmp5k3bgx4z -i /home/deblintrake/Escritorio/SysTests/wazuh-qa/tests/system/provisioning/enrollment_cluster/inventory.yml -m copy --args \'dest=/var/ossec/logs/ossec.log content=\'"\'"\'\'"\'"\' force=yes\' wazuh-master', exit_status=0, stdout=b'wazuh-master | CHANGED => {\n "changed": true,\n "checksum": "da39a3ee5e6b4b0d3255bfef95601890afd80709",\n "dest": "/var/ossec/logs/ossec.log",\n "gid": 999,\n "group": "wazuh",\n "md5sum": "d41d8cd98f00b204e9800998ecf8427e",\n "mode": "0660",\n "owner": "wazuh",\n "size": 0,\n "src": "/root/.ansible/tmp/ansible-tmp-1647355669.9275482-212908-13394990046318/source",\n "state": "file",\n "uid": 999\n}\n', stderr=None) INFO testinfra:ansible.py:58 RUN Ansible('copy', "dest=/var/ossec/logs/ossec.log content='' force=yes", {'check': False, 'become': False}): {'changed': True, 'checksum': 'da39a3ee5e6b4b0d3255bfef95601890afd80709', 'dest': '/var/ossec/logs/ossec.log', 'gid': 999, 'group': 'wazuh', 'md5sum': 'd41d8cd98f00b204e9800998ecf8427e', 'mode': '0660', 'owner': 'wazuh', 'size': 0, 'src': '/root/.ansible/tmp/ansible-tmp-1647355669.9275482-212908-13394990046318/source', 'state': 'file', 'uid': 999} DEBUG testinfra:base.py:277 RUN CommandResult(command=b'ansible --tree /tmp/tmpqf6p1768 -i /home/deblintrake/Escritorio/SysTests/wazuh-qa/tests/system/provisioning/enrollment_cluster/inventory.yml -m copy --args \'dest=/var/ossec/logs/cluster.log content=\'"\'"\'\'"\'"\' force=yes\' wazuh-master', exit_status=0, stdout=b'wazuh-master | SUCCESS => {\n "changed": false,\n "checksum": "da39a3ee5e6b4b0d3255bfef95601890afd80709",\n "dest": "/var/ossec/logs/cluster.log",\n "gid": 999,\n "group": "wazuh",\n "mode": "0660",\n "owner": "wazuh",\n "path": "/var/ossec/logs/cluster.log",\n "size": 0,\n "state": "file",\n "uid": 999\n}\n', stderr=None) INFO testinfra:ansible.py:58 RUN Ansible('copy', "dest=/var/ossec/logs/cluster.log content='' force=yes", {'check': False, 'become': False}): {'changed': False, 'checksum': 'da39a3ee5e6b4b0d3255bfef95601890afd80709', 'dest': '/var/ossec/logs/cluster.log', 'gid': 999, 'group': 'wazuh', 'mode': '0660', 'owner': 'wazuh', 'path': '/var/ossec/logs/cluster.log', 'size': 0, 'state': 'file', 'uid': 999} DEBUG testinfra:base.py:277 RUN CommandResult(command=b'ansible --tree /tmp/tmpfuft4u7x -i /home/deblintrake/Escritorio/SysTests/wazuh-qa/tests/system/provisioning/enrollment_cluster/inventory.yml -m copy --args \'dest=/var/ossec/logs/ossec.log content=\'"\'"\'\'"\'"\' force=yes\' wazuh-worker1', exit_status=0, stdout=b'wazuh-worker1 | CHANGED => {\n "changed": true,\n "checksum": "da39a3ee5e6b4b0d3255bfef95601890afd80709",\n "dest": "/var/ossec/logs/ossec.log",\n "gid": 999,\n "group": "wazuh",\n "md5sum": "d41d8cd98f00b204e9800998ecf8427e",\n "mode": "0660",\n "owner": "wazuh",\n "size": 0,\n "src": "/root/.ansible/tmp/ansible-tmp-1647355680.0074134-213671-252093600131800/source",\n "state": "file",\n "uid": 999\n}\n', stderr=None) INFO testinfra:ansible.py:58 RUN Ansible('copy', "dest=/var/ossec/logs/ossec.log content='' force=yes", {'check': False, 'become': False}): {'changed': True, 'checksum': 'da39a3ee5e6b4b0d3255bfef95601890afd80709', 'dest': '/var/ossec/logs/ossec.log', 'gid': 999, 'group': 'wazuh', 'md5sum': 'd41d8cd98f00b204e9800998ecf8427e', 'mode': '0660', 'owner': 'wazuh', 'size': 0, 'src': '/root/.ansible/tmp/ansible-tmp-1647355680.0074134-213671-252093600131800/source', 'state': 'file', 'uid': 999} DEBUG testinfra:base.py:277 RUN CommandResult(command=b'ansible --tree /tmp/tmpxeweib54 -i /home/deblintrake/Escritorio/SysTests/wazuh-qa/tests/system/provisioning/enrollment_cluster/inventory.yml -m copy --args \'dest=/var/ossec/logs/cluster.log content=\'"\'"\'\'"\'"\' force=yes\' wazuh-worker1', exit_status=0, stdout=b'wazuh-worker1 | SUCCESS => {\n "changed": false,\n "checksum": "da39a3ee5e6b4b0d3255bfef95601890afd80709",\n "dest": "/var/ossec/logs/cluster.log",\n "gid": 999,\n "group": "wazuh",\n "mode": "0660",\n "owner": "wazuh",\n "path": "/var/ossec/logs/cluster.log",\n "size": 0,\n "state": "file",\n "uid": 999\n}\n', stderr=None) INFO testinfra:ansible.py:58 RUN Ansible('copy', "dest=/var/ossec/logs/cluster.log content='' force=yes", {'check': False, 'become': False}): {'changed': False, 'checksum': 'da39a3ee5e6b4b0d3255bfef95601890afd80709', 'dest': '/var/ossec/logs/cluster.log', 'gid': 999, 'group': 'wazuh', 'mode': '0660', 'owner': 'wazuh', 'path': '/var/ossec/logs/cluster.log', 'size': 0, 'state': 'file', 'uid': 999} DEBUG testinfra:base.py:277 RUN CommandResult(command=b'ansible --tree /tmp/tmpbal8no3v -i /home/deblintrake/Escritorio/SysTests/wazuh-qa/tests/system/provisioning/enrollment_cluster/inventory.yml -m copy --args \'dest=/var/ossec/logs/ossec.log content=\'"\'"\'\'"\'"\' force=yes\' wazuh-worker2', exit_status=0, stdout=b'wazuh-worker2 | CHANGED => {\n "changed": true,\n "checksum": "da39a3ee5e6b4b0d3255bfef95601890afd80709",\n "dest": "/var/ossec/logs/ossec.log",\n "gid": 999,\n "group": "wazuh",\n "md5sum": "d41d8cd98f00b204e9800998ecf8427e",\n "mode": "0660",\n "owner": "wazuh",\n "size": 0,\n "src": "/root/.ansible/tmp/ansible-tmp-1647355689.8690746-214431-18818043616985/source",\n "state": "file",\n "uid": 999\n}\n', stderr=None) INFO testinfra:ansible.py:58 RUN Ansible('copy', "dest=/var/ossec/logs/ossec.log content='' force=yes", {'check': False, 'become': False}): {'changed': True, 'checksum': 'da39a3ee5e6b4b0d3255bfef95601890afd80709', 'dest': '/var/ossec/logs/ossec.log', 'gid': 999, 'group': 'wazuh', 'md5sum': 'd41d8cd98f00b204e9800998ecf8427e', 'mode': '0660', 'owner': 'wazuh', 'size': 0, 'src': '/root/.ansible/tmp/ansible-tmp-1647355689.8690746-214431-18818043616985/source', 'state': 'file', 'uid': 999} DEBUG testinfra:base.py:277 RUN CommandResult(command=b'ansible --tree /tmp/tmp3go_o3xx -i /home/deblintrake/Escritorio/SysTests/wazuh-qa/tests/system/provisioning/enrollment_cluster/inventory.yml -m copy --args \'dest=/var/ossec/logs/cluster.log content=\'"\'"\'\'"\'"\' force=yes\' wazuh-worker2', exit_status=0, stdout=b'wazuh-worker2 | SUCCESS => {\n "changed": false,\n "checksum": "da39a3ee5e6b4b0d3255bfef95601890afd80709",\n "dest": "/var/ossec/logs/cluster.log",\n "gid": 999,\n "group": "wazuh",\n "mode": "0660",\n "owner": "wazuh",\n "path": "/var/ossec/logs/cluster.log",\n "size": 0,\n "state": "file",\n "uid": 999\n}\n', stderr=None) INFO testinfra:ansible.py:58 RUN Ansible('copy', "dest=/var/ossec/logs/cluster.log content='' force=yes", {'check': False, 'become': False}): {'changed': False, 'checksum': 'da39a3ee5e6b4b0d3255bfef95601890afd80709', 'dest': '/var/ossec/logs/cluster.log', 'gid': 999, 'group': 'wazuh', 'mode': '0660', 'owner': 'wazuh', 'path': '/var/ossec/logs/cluster.log', 'size': 0, 'state': 'file', 'uid': 999} -------------------------------Captured log call-------------------------------- DEBUG testinfra:base.py:277 RUN CommandResult(command=b"ansible --tree /tmp/tmpr7rgn725 -i /home/deblintrake/Escritorio/SysTests/wazuh-qa/tests/system/provisioning/enrollment_cluster/inventory.yml -m command --args 'hostname -i' wazuh-agent1", exit_status=0, stdout=b'wazuh-agent1 | CHANGED | rc=0 >>\n172.18.0.6\n', stderr=None) INFO testinfra:ansible.py:58 RUN Ansible('command', 'hostname -i', {'check': False, 'become': False}): {'changed': True, 'cmd': ['hostname', '-i'], 'delta': '0:00:01.026956', 'end': '2022-03-15 15:48:21.998693', 'msg': '', 'rc': 0, 'start': '2022-03-15 15:48:20.971737', 'stderr': '', 'stderr_lines': [], 'stdout': '172.18.0.6', 'stdout_lines': ['172.18.0.6']} DEBUG testinfra:base.py:277 RUN CommandResult(command=b"ansible --tree /tmp/tmphg5_qoch -i /home/deblintrake/Escritorio/SysTests/wazuh-qa/tests/system/provisioning/enrollment_cluster/inventory.yml -m command --args 'hostname -i' wazuh-master", exit_status=0, stdout=b'wazuh-master | CHANGED | rc=0 >>\n172.18.0.2\n', stderr=None) INFO testinfra:ansible.py:58 RUN Ansible('command', 'hostname -i', {'check': False, 'become': False}): {'changed': True, 'cmd': ['hostname', '-i'], 'delta': '0:00:01.180986', 'end': '2022-03-15 15:48:25.068365', 'msg': '', 'rc': 0, 'start': '2022-03-15 15:48:23.887379', 'stderr': '', 'stderr_lines': [], 'stdout': '172.18.0.2', 'stdout_lines': ['172.18.0.2']} DEBUG testinfra:base.py:277 RUN CommandResult(command=b'ansible --tree /tmp/tmpxddw85p2 -i /home/deblintrake/Escritorio/SysTests/wazuh-qa/tests/system/provisioning/enrollment_cluster/inventory.yml -m replace --args \'path=/var/ossec/etc/ossec.conf regexp=\'"\'"\'<address>[\\s\\S]+</address>\'"\'"\' replace=\'"\'"\'<address>172.18.0.2</address>\'"\'"\'\' wazuh-agent1', exit_status=0, stdout=b'wazuh-agent1 | CHANGED => {\n "changed": true,\n "msg": "1 replacements made"\n}\n', stderr=None) INFO testinfra:ansible.py:58 RUN Ansible('replace', "path=/var/ossec/etc/ossec.conf regexp='<address>[\\s\\S]+</address>' replace='<address>172.18.0.2</address>'", {'check': False, 'become': False}): {'changed': True, 'msg': '1 replacements made'} DEBUG testinfra:base.py:277 RUN CommandResult(command=b"ansible --tree /tmp/tmp5577h_hk -i /home/deblintrake/Escritorio/SysTests/wazuh-qa/tests/system/provisioning/enrollment_cluster/inventory.yml -m command --args '/var/ossec/bin/agent-auth -m 172.18.0.2 -A Agent-1647355702 -I 172.18.0.6' wazuh-agent1", exit_status=0, stdout=b'wazuh-agent1 | CHANGED | rc=0 >>\n2022/03/15 15:48:30 agent-auth: INFO: Started (pid: 7982).\n2022/03/15 15:48:30 agent-auth: INFO: Requesting a key from server: 172.18.0.2\n2022/03/15 15:48:30 agent-auth: INFO: No authentication password provided\n2022/03/15 15:48:30 agent-auth: INFO: Using agent name as: Agent-1647355702\n2022/03/15 15:48:30 agent-auth: INFO: Waiting for server reply\n2022/03/15 15:48:30 agent-auth: INFO: Valid key received\n', stderr=None) INFO testinfra:ansible.py:58 RUN Ansible('command', '/var/ossec/bin/agent-auth -m 172.18.0.2 -A Agent-1647355702 -I 172.18.0.6', {'check': False, 'become': False}): {'changed': True, 'cmd': ['/var/ossec/bin/agent-auth', '-m', '172.18.0.2', '-A', 'Agent-1647355702', '-I', '172.18.0.6'], 'delta': '0:00:01.034925', 'end': '2022-03-15 15:48:30.479784', 'msg': '', 'rc': 0, 'start': '2022-03-15 15:48:29.444859', 'stderr': '2022/03/15 15:48:30 agent-auth: INFO: Started (pid: 7982).\n' '2022/03/15 15:48:30 agent-auth: INFO: Requesting a key from ' 'server: 172.18.0.2\n' '2022/03/15 15:48:30 agent-auth: INFO: No authentication password ' 'provided\n' '2022/03/15 15:48:30 agent-auth: INFO: Using agent name as: ' 'Agent-1647355702\n' '2022/03/15 15:48:30 agent-auth: INFO: Waiting for server reply\n' '2022/03/15 15:48:30 agent-auth: INFO: Valid key received', 'stderr_lines': ['2022/03/15 15:48:30 agent-auth: INFO: Started (pid: 7982).', '2022/03/15 15:48:30 agent-auth: INFO: Requesting a key from ' 'server: 172.18.0.2', '2022/03/15 15:48:30 agent-auth: INFO: No authentication ' 'password provided', '2022/03/15 15:48:30 agent-auth: INFO: Using agent name as: ' 'Agent-1647355702', '2022/03/15 15:48:30 agent-auth: INFO: Waiting for server ' 'reply', '2022/03/15 15:48:30 agent-auth: INFO: Valid key received'], 'stdout': '', 'stdout_lines': []} DEBUG testinfra:base.py:277 RUN CommandResult(command=b"ansible --tree /tmp/tmpy8f0ynoo -i /home/deblintrake/Escritorio/SysTests/wazuh-qa/tests/system/provisioning/enrollment_cluster/inventory.yml -m command --args 'cut -c 1-3 /var/ossec/etc/client.keys' wazuh-agent1", exit_status=0, stdout=b'wazuh-agent1 | CHANGED | rc=0 >>\n005\n', stderr=None) INFO testinfra:ansible.py:58 RUN Ansible('command', 'cut -c 1-3 /var/ossec/etc/client.keys', {'check': False, 'become': False}): {'changed': True, 'cmd': ['cut', '-c', '1-3', '/var/ossec/etc/client.keys'], 'delta': '0:00:01.058988', 'end': '2022-03-15 15:48:33.689693', 'msg': '', 'rc': 0, 'start': '2022-03-15 15:48:32.630705', 'stderr': '', 'stderr_lines': [], 'stdout': '005', 'stdout_lines': ['005']} DEBUG testinfra:base.py:277 RUN CommandResult(command=b"ansible --tree /tmp/tmp65_n085u -i /home/deblintrake/Escritorio/SysTests/wazuh-qa/tests/system/provisioning/enrollment_cluster/inventory.yml -m command --args '/var/ossec/bin/agent_groups -s -i 005' wazuh-master", exit_status=0, stdout=b"wazuh-master | CHANGED | rc=0 >>\nThe agent 'Agent-1647355702' with ID '005' belongs to groups: Null.\n", stderr=None) INFO testinfra:ansible.py:58 RUN Ansible('command', '/var/ossec/bin/agent_groups -s -i 005', {'check': False, 'become': False}): {'changed': True, 'cmd': ['/var/ossec/bin/agent_groups', '-s', '-i', '005'], 'delta': '0:00:02.978384', 'end': '2022-03-15 15:48:38.808950', 'msg': '', 'rc': 0, 'start': '2022-03-15 15:48:35.830566', 'stderr': '', 'stderr_lines': [], 'stdout': "The agent 'Agent-1647355702' with ID '005' belongs to groups: " 'Null.', 'stdout_lines': ["The agent 'Agent-1647355702' with ID '005' belongs to " 'groups: Null.']} DEBUG testinfra:base.py:277 RUN CommandResult(command=b"ansible --tree /tmp/tmpbtzn3dq3 -i /home/deblintrake/Escritorio/SysTests/wazuh-qa/tests/system/provisioning/enrollment_cluster/inventory.yml -m command --args '/var/ossec/bin/agent_groups -s -i 005' wazuh-worker1", exit_status=0, stdout=b"wazuh-worker1 | CHANGED | rc=0 >>\nThe agent 'Agent-1647355702' with ID '005' belongs to groups: Null.\n", stderr=None) INFO testinfra:ansible.py:58 RUN Ansible('command', '/var/ossec/bin/agent_groups -s -i 005', {'check': False, 'become': False}): {'changed': True, 'cmd': ['/var/ossec/bin/agent_groups', '-s', '-i', '005'], 'delta': '0:00:02.738987', 'end': '2022-03-15 15:48:43.958753', 'msg': '', 'rc': 0, 'start': '2022-03-15 15:48:41.219766', 'stderr': '', 'stderr_lines': [], 'stdout': "The agent 'Agent-1647355702' with ID '005' belongs to groups: " 'Null.', 'stdout_lines': ["The agent 'Agent-1647355702' with ID '005' belongs to " 'groups: Null.']} DEBUG testinfra:base.py:277 RUN CommandResult(command=b"ansible --tree /tmp/tmpw0du4g_m -i /home/deblintrake/Escritorio/SysTests/wazuh-qa/tests/system/provisioning/enrollment_cluster/inventory.yml -m command --args '/var/ossec/bin/agent_groups -s -i 005' wazuh-worker2", exit_status=0, stdout=b"wazuh-worker2 | CHANGED | rc=0 >>\nThe agent 'Agent-1647355702' with ID '005' belongs to groups: Null.\n", stderr=None) INFO testinfra:ansible.py:58 RUN Ansible('command', '/var/ossec/bin/agent_groups -s -i 005', {'check': False, 'become': False}): {'changed': True, 'cmd': ['/var/ossec/bin/agent_groups', '-s', '-i', '005'], 'delta': '0:00:02.883926', 'end': '2022-03-15 15:48:48.810739', 'msg': '', 'rc': 0, 'start': '2022-03-15 15:48:45.926813', 'stderr': '', 'stderr_lines': [], 'stdout': "The agent 'Agent-1647355702' with ID '005' belongs to groups: " 'Null.', 'stdout_lines': ["The agent 'Agent-1647355702' with ID '005' belongs to " 'groups: Null.']} DEBUG testinfra:base.py:277 RUN CommandResult(command=b'ANSIBLE_VERBOSITY=0 ansible-inventory --list -i /home/deblintrake/Escritorio/SysTests/wazuh-qa/tests/system/provisioning/enrollment_cluster/inventory.yml', exit_status=0, stdout=b'{\n "_meta": {\n "hostvars": {\n "wazuh-agent1": {\n "ansible_connection": "docker",\n "ansible_python_interpreter": "python"\n },\n "wazuh-master": {\n "ansible_connection": "docker",\n "ansible_python_interpreter": "python"\n },\n "wazuh-worker1": {\n "ansible_connection": "docker",\n "ansible_python_interpreter": "python"\n },\n "wazuh-worker2": {\n "ansible_connection": "docker",\n "ansible_python_interpreter": "python"\n }\n }\n },\n "agents": {\n "hosts": [\n "wazuh-agent1"\n ]\n },\n "all": {\n "children": [\n "agents",\n "managers",\n "master",\n "ungrouped",\n "workers"\n ]\n },\n "managers": {\n "hosts": [\n "wazuh-master",\n "wazuh-worker1",\n "wazuh-worker2"\n ]\n },\n "master": {\n "hosts": [\n "wazuh-master"\n ]\n },\n "workers": {\n "hosts": [\n "wazuh-worker1",\n "wazuh-worker2"\n ]\n }\n}\n', stderr=None) DEBUG testinfra:base.py:277 RUN CommandResult(command=b"docker exec wazuh-agent1 /bin/sh -c 'uname -s'", exit_status=0, stdout=b'Linux\n', stderr=None) DEBUG testinfra:base.py:277 RUN CommandResult(command=b"docker exec wazuh-agent1 /bin/sh -c 'lsb_release -a'", exit_status=0, stdout=b'Distributor ID:\tDebian\nDescription:\tDebian GNU/Linux 10 (buster)\nRelease:\t10\nCodename:\tbuster\n', stderr=b'No LSB modules are available.\n') DEBUG testinfra:base.py:277 RUN CommandResult(command=b"docker exec wazuh-agent1 /bin/sh -c 'cat -- /var/ossec/etc/client.keys'", exit_status=0, stdout=b'005 Agent-1647355702 172.18.0.6 4d3afa088fc8d4bb688bd67b26d4fd98dc18f98ac333a216568e6411df3a2d2a\n', stderr=None) DEBUG testinfra:base.py:277 RUN CommandResult(command=b"ansible --tree /tmp/tmp_tnj961a -i /home/deblintrake/Escritorio/SysTests/wazuh-qa/tests/system/provisioning/enrollment_cluster/inventory.yml -m command --args 'service wazuh-agent restart' wazuh-agent1", exit_status=0, stdout=b'wazuh-agent1 | CHANGED | rc=0 >>\nwazuh-modulesd not running...\nwazuh-logcollector not running...\nwazuh-syscheckd not running...\nwazuh-agentd not running...\nwazuh-execd not running...\nWazuh v4.4.0 Stopped\nStarting Wazuh v4.4.0...\nStarted wazuh-execd...\nStarted wazuh-agentd...\nStarted wazuh-syscheckd...\nStarted wazuh-logcollector...\nStarted wazuh-modulesd...\nCompleted.2022/03/15 15:48:53 wazuh-agentd[8154] debug_op.c:70 at _log(): DEBUG: Logging module auto-initialized\n2022/03/15 15:48:53 wazuh-agentd[8154] main.c:139 at main(): DEBUG: Wazuh home directory: /var/ossec\n2022/03/15 15:48:53 wazuh-agentd[8154] main.c:141 at main(): DEBUG: Started (pid: 8154).\n2022/03/15 15:48:53 wazuh-agentd[8174] debug_op.c:70 at _log(): DEBUG: Logging module auto-initialized\n2022/03/15 15:48:53 wazuh-agentd[8174] main.c:139 at main(): DEBUG: Wazuh home directory: /var/ossec\n2022/03/15 15:48:53 wazuh-agentd[8174] main.c:141 at main(): DEBUG: Started (pid: 8174).\n', stderr=None) INFO testinfra:ansible.py:58 RUN Ansible('command', 'service wazuh-agent restart', {'check': False, 'become': False}): {'changed': True, 'cmd': ['service', 'wazuh-agent', 'restart'], 'delta': '0:00:07.171647', 'end': '2022-03-15 15:48:59.434285', 'msg': '', 'rc': 0, 'start': '2022-03-15 15:48:52.262638', 'stderr': '2022/03/15 15:48:53 wazuh-agentd[8154] debug_op.c:70 at _log(): ' 'DEBUG: Logging module auto-initialized\n' '2022/03/15 15:48:53 wazuh-agentd[8154] main.c:139 at main(): ' 'DEBUG: Wazuh home directory: /var/ossec\n' '2022/03/15 15:48:53 wazuh-agentd[8154] main.c:141 at main(): ' 'DEBUG: Started (pid: 8154).\n' '2022/03/15 15:48:53 wazuh-agentd[8174] debug_op.c:70 at _log(): ' 'DEBUG: Logging module auto-initialized\n' '2022/03/15 15:48:53 wazuh-agentd[8174] main.c:139 at main(): ' 'DEBUG: Wazuh home directory: /var/ossec\n' '2022/03/15 15:48:53 wazuh-agentd[8174] main.c:141 at main(): ' 'DEBUG: Started (pid: 8174).', 'stderr_lines': ['2022/03/15 15:48:53 wazuh-agentd[8154] debug_op.c:70 at ' '_log(): DEBUG: Logging module auto-initialized', '2022/03/15 15:48:53 wazuh-agentd[8154] main.c:139 at ' 'main(): DEBUG: Wazuh home directory: /var/ossec', '2022/03/15 15:48:53 wazuh-agentd[8154] main.c:141 at ' 'main(): DEBUG: Started (pid: 8154).', '2022/03/15 15:48:53 wazuh-agentd[8174] debug_op.c:70 at ' '_log(): DEBUG: Logging module auto-initialized', '2022/03/15 15:48:53 wazuh-agentd[8174] main.c:139 at ' 'main(): DEBUG: Wazuh home directory: /var/ossec', '2022/03/15 15:48:53 wazuh-agentd[8174] main.c:141 at ' 'main(): DEBUG: Started (pid: 8174).'], 'stdout': 'wazuh-modulesd not running...\n' 'wazuh-logcollector not running...\n' 'wazuh-syscheckd not running...\n' 'wazuh-agentd not running...\n' 'wazuh-execd not running...\n' 'Wazuh v4.4.0 Stopped\n' 'Starting Wazuh v4.4.0...\n' 'Started wazuh-execd...\n' 'Started wazuh-agentd...\n' 'Started wazuh-syscheckd...\n' 'Started wazuh-logcollector...\n' 'Started wazuh-modulesd...\n' 'Completed.', 'stdout_lines': ['wazuh-modulesd not running...', 'wazuh-logcollector not running...', 'wazuh-syscheckd not running...', 'wazuh-agentd not running...', 'wazuh-execd not running...', 'Wazuh v4.4.0 Stopped', 'Starting Wazuh v4.4.0...', 'Started wazuh-execd...', 'Started wazuh-agentd...', 'Started wazuh-syscheckd...', 'Started wazuh-logcollector...', 'Started wazuh-modulesd...', 'Completed.']} DEBUG testinfra:base.py:277 RUN CommandResult(command=b"ansible --tree /tmp/tmpvawbfy5p -i /home/deblintrake/Escritorio/SysTests/wazuh-qa/tests/system/provisioning/enrollment_cluster/inventory.yml -m service --args 'name=wazuh-agent state=restarted' wazuh-agent1", exit_status=0, stdout=b'wazuh-agent1 | CHANGED => {\n "changed": true,\n "name": "wazuh-agent",\n "state": "started"\n}\n', stderr=None) INFO testinfra:ansible.py:58 RUN Ansible('service', 'name=wazuh-agent state=restarted', {'check': False, 'become': False}): {'changed': True, 'name': 'wazuh-agent', 'state': 'started'} DEBUG testinfra:base.py:277 RUN CommandResult(command=b"ansible --tree /tmp/tmpt84turaq -i /home/deblintrake/Escritorio/SysTests/wazuh-qa/tests/system/provisioning/enrollment_cluster/inventory.yml -m command --args '/var/ossec/bin/cluster_control -a' wazuh-master", exit_status=0, stdout=b'wazuh-master | CHANGED | rc=0 >>\nID NAME IP STATUS VERSION NODE NAME \n000 wazuh-master 127.0.0.1 active Wazuh v4.4.0 wazuh-master \n005 Agent-1647355702 172.18.0.6 active Wazuh v4.4.0 wazuh-master \n', stderr=None) INFO testinfra:ansible.py:58 RUN Ansible('command', '/var/ossec/bin/cluster_control -a', {'check': False, 'become': False}): {'changed': True, 'cmd': ['/var/ossec/bin/cluster_control', '-a'], 'delta': '0:00:01.442985', 'end': '2022-03-15 15:49:29.399188', 'msg': '', 'rc': 0, 'start': '2022-03-15 15:49:27.956203', 'stderr': '', 'stderr_lines': [], 'stdout': 'ID NAME IP STATUS VERSION NODE ' 'NAME \n' '000 wazuh-master 127.0.0.1 active Wazuh v4.4.0 ' 'wazuh-master \n' '005 Agent-1647355702 172.18.0.6 active Wazuh v4.4.0 ' 'wazuh-master ', 'stdout_lines': ['ID NAME IP STATUS VERSION ' 'NODE NAME ', '000 wazuh-master 127.0.0.1 active Wazuh v4.4.0 ' 'wazuh-master ', '005 Agent-1647355702 172.18.0.6 active Wazuh v4.4.0 ' 'wazuh-master ']} DEBUG testinfra:base.py:277 RUN CommandResult(command=b"ansible --tree /tmp/tmp3hfpov3t -i /home/deblintrake/Escritorio/SysTests/wazuh-qa/tests/system/provisioning/enrollment_cluster/inventory.yml -m command --args '/var/ossec/bin/cluster_control -a' wazuh-worker1", exit_status=0, stdout=b'wazuh-worker1 | CHANGED | rc=0 >>\nID NAME IP STATUS VERSION NODE NAME \n000 wazuh-master 127.0.0.1 active Wazuh v4.4.0 wazuh-master \n005 Agent-1647355702 172.18.0.6 active Wazuh v4.4.0 wazuh-master \n', stderr=None) INFO testinfra:ansible.py:58 RUN Ansible('command', '/var/ossec/bin/cluster_control -a', {'check': False, 'become': False}): {'changed': True, 'cmd': ['/var/ossec/bin/cluster_control', '-a'], 'delta': '0:00:01.664254', 'end': '2022-03-15 15:49:33.052627', 'msg': '', 'rc': 0, 'start': '2022-03-15 15:49:31.388373', 'stderr': '', 'stderr_lines': [], 'stdout': 'ID NAME IP STATUS VERSION NODE ' 'NAME \n' '000 wazuh-master 127.0.0.1 active Wazuh v4.4.0 ' 'wazuh-master \n' '005 Agent-1647355702 172.18.0.6 active Wazuh v4.4.0 ' 'wazuh-master ', 'stdout_lines': ['ID NAME IP STATUS VERSION ' 'NODE NAME ', '000 wazuh-master 127.0.0.1 active Wazuh v4.4.0 ' 'wazuh-master ', '005 Agent-1647355702 172.18.0.6 active Wazuh v4.4.0 ' 'wazuh-master ']} DEBUG testinfra:base.py:277 RUN CommandResult(command=b"ansible --tree /tmp/tmpu86_s8l0 -i /home/deblintrake/Escritorio/SysTests/wazuh-qa/tests/system/provisioning/enrollment_cluster/inventory.yml -m command --args '/var/ossec/bin/cluster_control -a' wazuh-worker2", exit_status=0, stdout=b'wazuh-worker2 | CHANGED | rc=0 >>\nID NAME IP STATUS VERSION NODE NAME \n000 wazuh-master 127.0.0.1 active Wazuh v4.4.0 wazuh-master \n005 Agent-1647355702 172.18.0.6 active Wazuh v4.4.0 wazuh-master \n', stderr=None) INFO testinfra:ansible.py:58 RUN Ansible('command', '/var/ossec/bin/cluster_control -a', {'check': False, 'become': False}): {'changed': True, 'cmd': ['/var/ossec/bin/cluster_control', '-a'], 'delta': '0:00:01.271173', 'end': '2022-03-15 15:49:36.424917', 'msg': '', 'rc': 0, 'start': '2022-03-15 15:49:35.153744', 'stderr': '', 'stderr_lines': [], 'stdout': 'ID NAME IP STATUS VERSION NODE ' 'NAME \n' '000 wazuh-master 127.0.0.1 active Wazuh v4.4.0 ' 'wazuh-master \n' '005 Agent-1647355702 172.18.0.6 active Wazuh v4.4.0 ' 'wazuh-master ', 'stdout_lines': ['ID NAME IP STATUS VERSION ' 'NODE NAME ', '000 wazuh-master 127.0.0.1 active Wazuh v4.4.0 ' 'wazuh-master ', '005 Agent-1647355702 172.18.0.6 active Wazuh v4.4.0 ' 'wazuh-master ']} DEBUG testinfra:base.py:277 RUN CommandResult(command=b"ansible --tree /tmp/tmp_sd3q4d6 -i /home/deblintrake/Escritorio/SysTests/wazuh-qa/tests/system/provisioning/enrollment_cluster/inventory.yml -m command --args '/var/ossec/bin/agent_groups -q -a -g group_test' wazuh-master", exit_status=0, stdout=b"wazuh-master | CHANGED | rc=0 >>\nGroup 'group_test' created.\n", stderr=None) INFO testinfra:ansible.py:58 RUN Ansible('command', '/var/ossec/bin/agent_groups -q -a -g group_test', {'check': False, 'become': False}): {'changed': True, 'cmd': ['/var/ossec/bin/agent_groups', '-q', '-a', '-g', 'group_test'], 'delta': '0:00:02.143306', 'end': '2022-03-15 15:49:40.771907', 'msg': '', 'rc': 0, 'start': '2022-03-15 15:49:38.628601', 'stderr': '', 'stderr_lines': [], 'stdout': "Group 'group_test' created.", 'stdout_lines': ["Group 'group_test' created."]} DEBUG testinfra:base.py:277 RUN CommandResult(command=b"ansible --tree /tmp/tmpljej8b16 -i /home/deblintrake/Escritorio/SysTests/wazuh-qa/tests/system/provisioning/enrollment_cluster/inventory.yml -m command --args '/var/ossec/bin/agent_groups -q -a -i 005 -g group_test' wazuh-master", exit_status=0, stdout=b"wazuh-master | CHANGED | rc=0 >>\nGroup '['group_test']' added to agent '['005']'.\n", stderr=None) INFO testinfra:ansible.py:58 RUN Ansible('command', '/var/ossec/bin/agent_groups -q -a -i 005 -g group_test', {'check': False, 'become': False}): {'changed': True, 'cmd': ['/var/ossec/bin/agent_groups', '-q', '-a', '-i', '005', '-g', 'group_test'], 'delta': '0:00:02.802760', 'end': '2022-03-15 15:49:45.598116', 'msg': '', 'rc': 0, 'start': '2022-03-15 15:49:42.795356', 'stderr': '', 'stderr_lines': [], 'stdout': "Group '['group_test']' added to agent '['005']'.", 'stdout_lines': ["Group '['group_test']' added to agent '['005']'."]} DEBUG testinfra:base.py:277 RUN CommandResult(command=b"ansible --tree /tmp/tmpobat0r4y -i /home/deblintrake/Escritorio/SysTests/wazuh-qa/tests/system/provisioning/enrollment_cluster/inventory.yml -m command --args '/var/ossec/bin/agent_groups -s -i 005' wazuh-master", exit_status=0, stdout=b"wazuh-master | CHANGED | rc=0 >>\nThe agent 'Agent-1647355702' with ID '005' belongs to groups: default, group_test.\n", stderr=None) INFO testinfra:ansible.py:58 RUN Ansible('command', '/var/ossec/bin/agent_groups -s -i 005', {'check': False, 'become': False}): {'changed': True, 'cmd': ['/var/ossec/bin/agent_groups', '-s', '-i', '005'], 'delta': '0:00:03.162381', 'end': '2022-03-15 15:50:00.843010', 'msg': '', 'rc': 0, 'start': '2022-03-15 15:49:57.680629', 'stderr': '', 'stderr_lines': [], 'stdout': "The agent 'Agent-1647355702' with ID '005' belongs to groups: " 'default, group_test.', 'stdout_lines': ["The agent 'Agent-1647355702' with ID '005' belongs to " 'groups: default, group_test.']} DEBUG testinfra:base.py:277 RUN CommandResult(command=b"ansible --tree /tmp/tmpscpiau3p -i /home/deblintrake/Escritorio/SysTests/wazuh-qa/tests/system/provisioning/enrollment_cluster/inventory.yml -m command --args '/var/ossec/bin/agent_groups -s -i 005' wazuh-worker1", exit_status=0, stdout=b"wazuh-worker1 | CHANGED | rc=0 >>\nThe agent 'Agent-1647355702' with ID '005' belongs to groups: default, group_test.\n", stderr=None) INFO testinfra:ansible.py:58 RUN Ansible('command', '/var/ossec/bin/agent_groups -s -i 005', {'check': False, 'become': False}): {'changed': True, 'cmd': ['/var/ossec/bin/agent_groups', '-s', '-i', '005'], 'delta': '0:00:02.575539', 'end': '2022-03-15 15:50:05.417732', 'msg': '', 'rc': 0, 'start': '2022-03-15 15:50:02.842193', 'stderr': '', 'stderr_lines': [], 'stdout': "The agent 'Agent-1647355702' with ID '005' belongs to groups: " 'default, group_test.', 'stdout_lines': ["The agent 'Agent-1647355702' with ID '005' belongs to " 'groups: default, group_test.']} DEBUG testinfra:base.py:277 RUN CommandResult(command=b"ansible --tree /tmp/tmp86ybezbj -i /home/deblintrake/Escritorio/SysTests/wazuh-qa/tests/system/provisioning/enrollment_cluster/inventory.yml -m command --args '/var/ossec/bin/agent_groups -s -i 005' wazuh-worker2", exit_status=0, stdout=b"wazuh-worker2 | CHANGED | rc=0 >>\nThe agent 'Agent-1647355702' with ID '005' belongs to groups: default, group_test.\n", stderr=None) INFO testinfra:ansible.py:58 RUN Ansible('command', '/var/ossec/bin/agent_groups -s -i 005', {'check': False, 'become': False}): {'changed': True, 'cmd': ['/var/ossec/bin/agent_groups', '-s', '-i', '005'], 'delta': '0:00:02.335939', 'end': '2022-03-15 15:50:10.021683', 'msg': '', 'rc': 0, 'start': '2022-03-15 15:50:07.685744', 'stderr': '', 'stderr_lines': [], 'stdout': "The agent 'Agent-1647355702' with ID '005' belongs to groups: " 'default, group_test.', 'stdout_lines': ["The agent 'Agent-1647355702' with ID '005' belongs to " 'groups: default, group_test.']} DEBUG testinfra:base.py:277 RUN CommandResult(command=b"ansible --tree /tmp/tmpxy168yen -i /home/deblintrake/Escritorio/SysTests/wazuh-qa/tests/system/provisioning/enrollment_cluster/inventory.yml -m command --args '/var/ossec/bin/agent_groups -q -r -g group_test' wazuh-master", exit_status=0, stdout=b'wazuh-master | CHANGED | rc=0 >>\nGroup group_test removed.\nAffected agents: 005.\n', stderr=None) INFO testinfra:ansible.py:58 RUN Ansible('command', '/var/ossec/bin/agent_groups -q -r -g group_test', {'check': False, 'become': False}): {'changed': True, 'cmd': ['/var/ossec/bin/agent_groups', '-q', '-r', '-g', 'group_test'], 'delta': '0:00:02.908938', 'end': '2022-03-15 15:50:14.918006', 'msg': '', 'rc': 0, 'start': '2022-03-15 15:50:12.009068', 'stderr': '', 'stderr_lines': [], 'stdout': 'Group group_test removed.\nAffected agents: 005.', 'stdout_lines': ['Group group_test removed.', 'Affected agents: 005.']} -----------------------------Captured log teardown------------------------------ DEBUG testinfra:base.py:277 RUN CommandResult(command=b"ansible --tree /tmp/tmpfswoj6jd -i /home/deblintrake/Escritorio/SysTests/wazuh-qa/tests/system/provisioning/enrollment_cluster/inventory.yml -m command --args 'cut -c 1-3 /var/ossec/etc/client.keys' wazuh-master", exit_status=0, stdout=b'wazuh-master | CHANGED | rc=0 >>\n005\n', stderr=None) INFO testinfra:ansible.py:58 RUN Ansible('command', 'cut -c 1-3 /var/ossec/etc/client.keys', {'check': False, 'become': False}): {'changed': True, 'cmd': ['cut', '-c', '1-3', '/var/ossec/etc/client.keys'], 'delta': '0:00:01.161733', 'end': '2022-03-15 15:50:18.316793', 'msg': '', 'rc': 0, 'start': '2022-03-15 15:50:17.155060', 'stderr': '', 'stderr_lines': [], 'stdout': '005', 'stdout_lines': ['005']} DEBUG testinfra:base.py:277 RUN CommandResult(command=b"ansible --tree /tmp/tmpehg51k2e -i /home/deblintrake/Escritorio/SysTests/wazuh-qa/tests/system/provisioning/enrollment_cluster/inventory.yml -m command --args '/var/ossec/bin/manage_agents -r 005' wazuh-master", exit_status=0, stdout=b"wazuh-master | CHANGED | rc=0 >>\n\n\n****************************************\n* Wazuh v4.4.0 Agent manager. *\n* The following options are available: *\n****************************************\n (A)dd an agent (A).\n (E)xtract key for an agent (E).\n (L)ist already added agents (L).\n (R)emove an agent (R).\n (Q)uit.\nChoose your action: A,E,L,R or Q: \nAvailable agents: \n ID: 005, Name: Agent-1647355702, IP: 172.18.0.6\nProvide the ID of the agent to be removed (or '\\q' to quit): 005\nConfirm deleting it?(y/n): y\nAgent '005' removed.\n\nmanage_agents: Exiting.\n", stderr=None) INFO testinfra:ansible.py:58 RUN Ansible('command', '/var/ossec/bin/manage_agents -r 005', {'check': False, 'become': False}): {'changed': True, 'cmd': ['/var/ossec/bin/manage_agents', '-r', '005'], 'delta': '0:00:01.182069', 'end': '2022-03-15 15:50:21.560840', 'msg': '', 'rc': 0, 'start': '2022-03-15 15:50:20.378771', 'stderr': '', 'stderr_lines': [], 'stdout': '\n' '\n' '****************************************\n' '* Wazuh v4.4.0 Agent manager. *\n' '* The following options are available: *\n' '****************************************\n' ' (A)dd an agent (A).\n' ' (E)xtract key for an agent (E).\n' ' (L)ist already added agents (L).\n' ' (R)emove an agent (R).\n' ' (Q)uit.\n' 'Choose your action: A,E,L,R or Q: \n' 'Available agents: \n' ' ID: 005, Name: Agent-1647355702, IP: 172.18.0.6\n' "Provide the ID of the agent to be removed (or '\\q' to quit): 005\n" 'Confirm deleting it?(y/n): y\n' "Agent '005' removed.\n" '\n' 'manage_agents: Exiting.', 'stdout_lines': ['', '', '****************************************', '* Wazuh v4.4.0 Agent manager. *', '* The following options are available: *', '****************************************', ' (A)dd an agent (A).', ' (E)xtract key for an agent (E).', ' (L)ist already added agents (L).', ' (R)emove an agent (R).', ' (Q)uit.', 'Choose your action: A,E,L,R or Q: ', 'Available agents: ', ' ID: 005, Name: Agent-1647355702, IP: 172.18.0.6', "Provide the ID of the agent to be removed (or '\\q' to " 'quit): 005', 'Confirm deleting it?(y/n): y', "Agent '005' removed.", '', 'manage_agents: Exiting.']} DEBUG testinfra:base.py:277 RUN CommandResult(command=b"ansible --tree /tmp/tmp3bjf7l2h -i /home/deblintrake/Escritorio/SysTests/wazuh-qa/tests/system/provisioning/enrollment_cluster/inventory.yml -m command --args 'cut -c 1-3 /var/ossec/etc/client.keys' wazuh-master", exit_status=0, stdout=b'wazuh-master | CHANGED | rc=0 >>\n\n', stderr=None) INFO testinfra:ansible.py:58 RUN Ansible('command', 'cut -c 1-3 /var/ossec/etc/client.keys', {'check': False, 'become': False}): {'changed': True, 'cmd': ['cut', '-c', '1-3', '/var/ossec/etc/client.keys'], 'delta': '0:00:00.777288', 'end': '2022-03-15 15:50:24.620802', 'msg': '', 'rc': 0, 'start': '2022-03-15 15:50:23.843514', 'stderr': '', 'stderr_lines': [], 'stdout': '', 'stdout_lines': []} DEBUG testinfra:base.py:277 RUN CommandResult(command=b"ansible --tree /tmp/tmp5v8_yo1k -i /home/deblintrake/Escritorio/SysTests/wazuh-qa/tests/system/provisioning/enrollment_cluster/inventory.yml -m service --args 'name=wazuh-agent state=stopped' wazuh-agent1", exit_status=0, stdout=b'wazuh-agent1 | CHANGED => {\n "changed": true,\n "name": "wazuh-agent",\n "state": "stopped"\n}\n', stderr=None) INFO testinfra:ansible.py:58 RUN Ansible('service', 'name=wazuh-agent state=stopped', {'check': False, 'become': False}): {'changed': True, 'name': 'wazuh-agent', 'state': 'stopped'} DEBUG testinfra:base.py:277 RUN CommandResult(command=b'ansible --tree /tmp/tmp5b7dif8d -i /home/deblintrake/Escritorio/SysTests/wazuh-qa/tests/system/provisioning/enrollment_cluster/inventory.yml -m copy --args \'dest=/var/ossec/etc/client.keys content=\'"\'"\'\'"\'"\' force=yes\' wazuh-agent1', exit_status=0, stdout=b'wazuh-agent1 | CHANGED => {\n "changed": true,\n "checksum": "da39a3ee5e6b4b0d3255bfef95601890afd80709",\n "dest": "/var/ossec/etc/client.keys",\n "gid": 999,\n "group": "wazuh",\n "md5sum": "d41d8cd98f00b204e9800998ecf8427e",\n "mode": "0640",\n "owner": "root",\n "size": 0,\n "src": "/root/.ansible/tmp/ansible-tmp-1647355833.3234782-224753-154120795358954/source",\n "state": "file",\n "uid": 0\n}\n', stderr=None) INFO testinfra:ansible.py:58 RUN Ansible('copy', "dest=/var/ossec/etc/client.keys content='' force=yes", {'check': False, 'become': False}): {'changed': True, 'checksum': 'da39a3ee5e6b4b0d3255bfef95601890afd80709', 'dest': '/var/ossec/etc/client.keys', 'gid': 999, 'group': 'wazuh', 'md5sum': 'd41d8cd98f00b204e9800998ecf8427e', 'mode': '0640', 'owner': 'root', 'size': 0, 'src': '/root/.ansible/tmp/ansible-tmp-1647355833.3234782-224753-154120795358954/source', 'state': 'file', 'uid': 0} | |||
Passed | test_assign_agent_to_a_group.py::test_assign_agent_to_a_group[wazuh-master-disconnected-host_manager0-test_infra_agents0-test_infra_managers0] | 201.00 | |
-------------------------------Captured log setup------------------------------- DEBUG testinfra:base.py:277 RUN CommandResult(command=b'ansible --tree /tmp/tmpex6qi0lf -i /home/deblintrake/Escritorio/SysTests/wazuh-qa/tests/system/provisioning/enrollment_cluster/inventory.yml -m copy --args \'dest=/var/ossec/logs/ossec.log content=\'"\'"\'\'"\'"\' force=yes\' wazuh-agent1', exit_status=0, stdout=b'wazuh-agent1 | CHANGED => {\n "changed": true,\n "checksum": "da39a3ee5e6b4b0d3255bfef95601890afd80709",\n "dest": "/var/ossec/logs/ossec.log",\n "gid": 999,\n "group": "wazuh",\n "md5sum": "d41d8cd98f00b204e9800998ecf8427e",\n "mode": "0660",\n "owner": "wazuh",\n "size": 0,\n "src": "/root/.ansible/tmp/ansible-tmp-1647355838.34809-225159-196094437534452/source",\n "state": "file",\n "uid": 999\n}\n', stderr=None) INFO testinfra:ansible.py:58 RUN Ansible('copy', "dest=/var/ossec/logs/ossec.log content='' force=yes", {'check': False, 'become': False}): {'changed': True, 'checksum': 'da39a3ee5e6b4b0d3255bfef95601890afd80709', 'dest': '/var/ossec/logs/ossec.log', 'gid': 999, 'group': 'wazuh', 'md5sum': 'd41d8cd98f00b204e9800998ecf8427e', 'mode': '0660', 'owner': 'wazuh', 'size': 0, 'src': '/root/.ansible/tmp/ansible-tmp-1647355838.34809-225159-196094437534452/source', 'state': 'file', 'uid': 999} DEBUG testinfra:base.py:277 RUN CommandResult(command=b'ansible --tree /tmp/tmprkrno66o -i /home/deblintrake/Escritorio/SysTests/wazuh-qa/tests/system/provisioning/enrollment_cluster/inventory.yml -m copy --args \'dest=/var/ossec/logs/ossec.log content=\'"\'"\'\'"\'"\' force=yes\' wazuh-master', exit_status=0, stdout=b'wazuh-master | CHANGED => {\n "changed": true,\n "checksum": "da39a3ee5e6b4b0d3255bfef95601890afd80709",\n "dest": "/var/ossec/logs/ossec.log",\n "gid": 999,\n "group": "wazuh",\n "md5sum": "d41d8cd98f00b204e9800998ecf8427e",\n "mode": "0660",\n "owner": "wazuh",\n "size": 0,\n "src": "/root/.ansible/tmp/ansible-tmp-1647355843.3932095-225620-29877419789879/source",\n "state": "file",\n "uid": 999\n}\n', stderr=None) INFO testinfra:ansible.py:58 RUN Ansible('copy', "dest=/var/ossec/logs/ossec.log content='' force=yes", {'check': False, 'become': False}): {'changed': True, 'checksum': 'da39a3ee5e6b4b0d3255bfef95601890afd80709', 'dest': '/var/ossec/logs/ossec.log', 'gid': 999, 'group': 'wazuh', 'md5sum': 'd41d8cd98f00b204e9800998ecf8427e', 'mode': '0660', 'owner': 'wazuh', 'size': 0, 'src': '/root/.ansible/tmp/ansible-tmp-1647355843.3932095-225620-29877419789879/source', 'state': 'file', 'uid': 999} DEBUG testinfra:base.py:277 RUN CommandResult(command=b'ansible --tree /tmp/tmpzksmfihq -i /home/deblintrake/Escritorio/SysTests/wazuh-qa/tests/system/provisioning/enrollment_cluster/inventory.yml -m copy --args \'dest=/var/ossec/logs/cluster.log content=\'"\'"\'\'"\'"\' force=yes\' wazuh-master', exit_status=0, stdout=b'wazuh-master | SUCCESS => {\n "changed": false,\n "checksum": "da39a3ee5e6b4b0d3255bfef95601890afd80709",\n "dest": "/var/ossec/logs/cluster.log",\n "gid": 999,\n "group": "wazuh",\n "mode": "0660",\n "owner": "wazuh",\n "path": "/var/ossec/logs/cluster.log",\n "size": 0,\n "state": "file",\n "uid": 999\n}\n', stderr=None) INFO testinfra:ansible.py:58 RUN Ansible('copy', "dest=/var/ossec/logs/cluster.log content='' force=yes", {'check': False, 'become': False}): {'changed': False, 'checksum': 'da39a3ee5e6b4b0d3255bfef95601890afd80709', 'dest': '/var/ossec/logs/cluster.log', 'gid': 999, 'group': 'wazuh', 'mode': '0660', 'owner': 'wazuh', 'path': '/var/ossec/logs/cluster.log', 'size': 0, 'state': 'file', 'uid': 999} DEBUG testinfra:base.py:277 RUN CommandResult(command=b'ansible --tree /tmp/tmpnwq2dex4 -i /home/deblintrake/Escritorio/SysTests/wazuh-qa/tests/system/provisioning/enrollment_cluster/inventory.yml -m copy --args \'dest=/var/ossec/logs/ossec.log content=\'"\'"\'\'"\'"\' force=yes\' wazuh-worker1', exit_status=0, stdout=b'wazuh-worker1 | CHANGED => {\n "changed": true,\n "checksum": "da39a3ee5e6b4b0d3255bfef95601890afd80709",\n "dest": "/var/ossec/logs/ossec.log",\n "gid": 999,\n "group": "wazuh",\n "md5sum": "d41d8cd98f00b204e9800998ecf8427e",\n "mode": "0660",\n "owner": "wazuh",\n "size": 0,\n "src": "/root/.ansible/tmp/ansible-tmp-1647355853.088253-226435-35605711001908/source",\n "state": "file",\n "uid": 999\n}\n', stderr=None) INFO testinfra:ansible.py:58 RUN Ansible('copy', "dest=/var/ossec/logs/ossec.log content='' force=yes", {'check': False, 'become': False}): {'changed': True, 'checksum': 'da39a3ee5e6b4b0d3255bfef95601890afd80709', 'dest': '/var/ossec/logs/ossec.log', 'gid': 999, 'group': 'wazuh', 'md5sum': 'd41d8cd98f00b204e9800998ecf8427e', 'mode': '0660', 'owner': 'wazuh', 'size': 0, 'src': '/root/.ansible/tmp/ansible-tmp-1647355853.088253-226435-35605711001908/source', 'state': 'file', 'uid': 999} DEBUG testinfra:base.py:277 RUN CommandResult(command=b'ansible --tree /tmp/tmpe1a_rims -i /home/deblintrake/Escritorio/SysTests/wazuh-qa/tests/system/provisioning/enrollment_cluster/inventory.yml -m copy --args \'dest=/var/ossec/logs/cluster.log content=\'"\'"\'\'"\'"\' force=yes\' wazuh-worker1', exit_status=0, stdout=b'wazuh-worker1 | SUCCESS => {\n "changed": false,\n "checksum": "da39a3ee5e6b4b0d3255bfef95601890afd80709",\n "dest": "/var/ossec/logs/cluster.log",\n "gid": 999,\n "group": "wazuh",\n "mode": "0660",\n "owner": "wazuh",\n "path": "/var/ossec/logs/cluster.log",\n "size": 0,\n "state": "file",\n "uid": 999\n}\n', stderr=None) INFO testinfra:ansible.py:58 RUN Ansible('copy', "dest=/var/ossec/logs/cluster.log content='' force=yes", {'check': False, 'become': False}): {'changed': False, 'checksum': 'da39a3ee5e6b4b0d3255bfef95601890afd80709', 'dest': '/var/ossec/logs/cluster.log', 'gid': 999, 'group': 'wazuh', 'mode': '0660', 'owner': 'wazuh', 'path': '/var/ossec/logs/cluster.log', 'size': 0, 'state': 'file', 'uid': 999} DEBUG testinfra:base.py:277 RUN CommandResult(command=b'ansible --tree /tmp/tmpwlmmgy1l -i /home/deblintrake/Escritorio/SysTests/wazuh-qa/tests/system/provisioning/enrollment_cluster/inventory.yml -m copy --args \'dest=/var/ossec/logs/ossec.log content=\'"\'"\'\'"\'"\' force=yes\' wazuh-worker2', exit_status=0, stdout=b'wazuh-worker2 | CHANGED => {\n "changed": true,\n "checksum": "da39a3ee5e6b4b0d3255bfef95601890afd80709",\n "dest": "/var/ossec/logs/ossec.log",\n "gid": 999,\n "group": "wazuh",\n "md5sum": "d41d8cd98f00b204e9800998ecf8427e",\n "mode": "0660",\n "owner": "wazuh",\n "size": 0,\n "src": "/root/.ansible/tmp/ansible-tmp-1647355862.8777506-227358-15038649799203/source",\n "state": "file",\n "uid": 999\n}\n', stderr=None) INFO testinfra:ansible.py:58 RUN Ansible('copy', "dest=/var/ossec/logs/ossec.log content='' force=yes", {'check': False, 'become': False}): {'changed': True, 'checksum': 'da39a3ee5e6b4b0d3255bfef95601890afd80709', 'dest': '/var/ossec/logs/ossec.log', 'gid': 999, 'group': 'wazuh', 'md5sum': 'd41d8cd98f00b204e9800998ecf8427e', 'mode': '0660', 'owner': 'wazuh', 'size': 0, 'src': '/root/.ansible/tmp/ansible-tmp-1647355862.8777506-227358-15038649799203/source', 'state': 'file', 'uid': 999} DEBUG testinfra:base.py:277 RUN CommandResult(command=b'ansible --tree /tmp/tmphf580eiv -i /home/deblintrake/Escritorio/SysTests/wazuh-qa/tests/system/provisioning/enrollment_cluster/inventory.yml -m copy --args \'dest=/var/ossec/logs/cluster.log content=\'"\'"\'\'"\'"\' force=yes\' wazuh-worker2', exit_status=0, stdout=b'wazuh-worker2 | SUCCESS => {\n "changed": false,\n "checksum": "da39a3ee5e6b4b0d3255bfef95601890afd80709",\n "dest": "/var/ossec/logs/cluster.log",\n "gid": 999,\n "group": "wazuh",\n "mode": "0660",\n "owner": "wazuh",\n "path": "/var/ossec/logs/cluster.log",\n "size": 0,\n "state": "file",\n "uid": 999\n}\n', stderr=None) INFO testinfra:ansible.py:58 RUN Ansible('copy', "dest=/var/ossec/logs/cluster.log content='' force=yes", {'check': False, 'become': False}): {'changed': False, 'checksum': 'da39a3ee5e6b4b0d3255bfef95601890afd80709', 'dest': '/var/ossec/logs/cluster.log', 'gid': 999, 'group': 'wazuh', 'mode': '0660', 'owner': 'wazuh', 'path': '/var/ossec/logs/cluster.log', 'size': 0, 'state': 'file', 'uid': 999} -------------------------------Captured log call-------------------------------- DEBUG testinfra:base.py:277 RUN CommandResult(command=b"ansible --tree /tmp/tmpbwyrenu_ -i /home/deblintrake/Escritorio/SysTests/wazuh-qa/tests/system/provisioning/enrollment_cluster/inventory.yml -m command --args 'hostname -i' wazuh-agent1", exit_status=0, stdout=b'wazuh-agent1 | CHANGED | rc=0 >>\n172.18.0.6\n', stderr=None) INFO testinfra:ansible.py:58 RUN Ansible('command', 'hostname -i', {'check': False, 'become': False}): {'changed': True, 'cmd': ['hostname', '-i'], 'delta': '0:00:00.793400', 'end': '2022-03-15 15:51:14.547070', 'msg': '', 'rc': 0, 'start': '2022-03-15 15:51:13.753670', 'stderr': '', 'stderr_lines': [], 'stdout': '172.18.0.6', 'stdout_lines': ['172.18.0.6']} DEBUG testinfra:base.py:277 RUN CommandResult(command=b"ansible --tree /tmp/tmp8hs14mef -i /home/deblintrake/Escritorio/SysTests/wazuh-qa/tests/system/provisioning/enrollment_cluster/inventory.yml -m command --args 'hostname -i' wazuh-master", exit_status=0, stdout=b'wazuh-master | CHANGED | rc=0 >>\n172.18.0.2\n', stderr=None) INFO testinfra:ansible.py:58 RUN Ansible('command', 'hostname -i', {'check': False, 'become': False}): {'changed': True, 'cmd': ['hostname', '-i'], 'delta': '0:00:00.785044', 'end': '2022-03-15 15:51:17.709246', 'msg': '', 'rc': 0, 'start': '2022-03-15 15:51:16.924202', 'stderr': '', 'stderr_lines': [], 'stdout': '172.18.0.2', 'stdout_lines': ['172.18.0.2']} DEBUG testinfra:base.py:277 RUN CommandResult(command=b'ansible --tree /tmp/tmph1t18j8x -i /home/deblintrake/Escritorio/SysTests/wazuh-qa/tests/system/provisioning/enrollment_cluster/inventory.yml -m replace --args \'path=/var/ossec/etc/ossec.conf regexp=\'"\'"\'<address>[\\s\\S]+</address>\'"\'"\' replace=\'"\'"\'<address>172.18.0.2</address>\'"\'"\'\' wazuh-agent1', exit_status=0, stdout=b'wazuh-agent1 | SUCCESS => {\n "changed": false,\n "msg": ""\n}\n', stderr=None) INFO testinfra:ansible.py:58 RUN Ansible('replace', "path=/var/ossec/etc/ossec.conf regexp='<address>[\\s\\S]+</address>' replace='<address>172.18.0.2</address>'", {'check': False, 'become': False}): {'changed': False, 'msg': ''} DEBUG testinfra:base.py:277 RUN CommandResult(command=b"ansible --tree /tmp/tmpbfpu7isl -i /home/deblintrake/Escritorio/SysTests/wazuh-qa/tests/system/provisioning/enrollment_cluster/inventory.yml -m command --args '/var/ossec/bin/agent-auth -m 172.18.0.2 -A Agent-1647355875 -I 172.18.0.6' wazuh-agent1", exit_status=0, stdout=b'wazuh-agent1 | CHANGED | rc=0 >>\n2022/03/15 15:51:22 agent-auth: INFO: Started (pid: 12035).\n2022/03/15 15:51:23 agent-auth: INFO: Requesting a key from server: 172.18.0.2\n2022/03/15 15:51:23 agent-auth: INFO: No authentication password provided\n2022/03/15 15:51:23 agent-auth: INFO: Using agent name as: Agent-1647355875\n2022/03/15 15:51:23 agent-auth: INFO: Waiting for server reply\n2022/03/15 15:51:23 agent-auth: INFO: Valid key received\n', stderr=None) INFO testinfra:ansible.py:58 RUN Ansible('command', '/var/ossec/bin/agent-auth -m 172.18.0.2 -A Agent-1647355875 -I 172.18.0.6', {'check': False, 'become': False}): {'changed': True, 'cmd': ['/var/ossec/bin/agent-auth', '-m', '172.18.0.2', '-A', 'Agent-1647355875', '-I', '172.18.0.6'], 'delta': '0:00:00.820468', 'end': '2022-03-15 15:51:23.009370', 'msg': '', 'rc': 0, 'start': '2022-03-15 15:51:22.188902', 'stderr': '2022/03/15 15:51:22 agent-auth: INFO: Started (pid: 12035).\n' '2022/03/15 15:51:23 agent-auth: INFO: Requesting a key from ' 'server: 172.18.0.2\n' '2022/03/15 15:51:23 agent-auth: INFO: No authentication password ' 'provided\n' '2022/03/15 15:51:23 agent-auth: INFO: Using agent name as: ' 'Agent-1647355875\n' '2022/03/15 15:51:23 agent-auth: INFO: Waiting for server reply\n' '2022/03/15 15:51:23 agent-auth: INFO: Valid key received', 'stderr_lines': ['2022/03/15 15:51:22 agent-auth: INFO: Started (pid: 12035).', '2022/03/15 15:51:23 agent-auth: INFO: Requesting a key from ' 'server: 172.18.0.2', '2022/03/15 15:51:23 agent-auth: INFO: No authentication ' 'password provided', '2022/03/15 15:51:23 agent-auth: INFO: Using agent name as: ' 'Agent-1647355875', '2022/03/15 15:51:23 agent-auth: INFO: Waiting for server ' 'reply', '2022/03/15 15:51:23 agent-auth: INFO: Valid key received'], 'stdout': '', 'stdout_lines': []} DEBUG testinfra:base.py:277 RUN CommandResult(command=b"ansible --tree /tmp/tmpik0zdrgy -i /home/deblintrake/Escritorio/SysTests/wazuh-qa/tests/system/provisioning/enrollment_cluster/inventory.yml -m command --args 'cut -c 1-3 /var/ossec/etc/client.keys' wazuh-agent1", exit_status=0, stdout=b'wazuh-agent1 | CHANGED | rc=0 >>\n006\n', stderr=None) INFO testinfra:ansible.py:58 RUN Ansible('command', 'cut -c 1-3 /var/ossec/etc/client.keys', {'check': False, 'become': False}): {'changed': True, 'cmd': ['cut', '-c', '1-3', '/var/ossec/etc/client.keys'], 'delta': '0:00:00.881198', 'end': '2022-03-15 15:51:26.183330', 'msg': '', 'rc': 0, 'start': '2022-03-15 15:51:25.302132', 'stderr': '', 'stderr_lines': [], 'stdout': '006', 'stdout_lines': ['006']} DEBUG testinfra:base.py:277 RUN CommandResult(command=b"ansible --tree /tmp/tmpm1k79kj0 -i /home/deblintrake/Escritorio/SysTests/wazuh-qa/tests/system/provisioning/enrollment_cluster/inventory.yml -m command --args '/var/ossec/bin/agent_groups -s -i 006' wazuh-master", exit_status=0, stdout=b"wazuh-master | CHANGED | rc=0 >>\nThe agent 'Agent-1647355875' with ID '006' belongs to groups: Null.\n", stderr=None) INFO testinfra:ansible.py:58 RUN Ansible('command', '/var/ossec/bin/agent_groups -s -i 006', {'check': False, 'become': False}): {'changed': True, 'cmd': ['/var/ossec/bin/agent_groups', '-s', '-i', '006'], 'delta': '0:00:03.235115', 'end': '2022-03-15 15:51:31.742438', 'msg': '', 'rc': 0, 'start': '2022-03-15 15:51:28.507323', 'stderr': '', 'stderr_lines': [], 'stdout': "The agent 'Agent-1647355875' with ID '006' belongs to groups: " 'Null.', 'stdout_lines': ["The agent 'Agent-1647355875' with ID '006' belongs to " 'groups: Null.']} DEBUG testinfra:base.py:277 RUN CommandResult(command=b"ansible --tree /tmp/tmp61nmypwh -i /home/deblintrake/Escritorio/SysTests/wazuh-qa/tests/system/provisioning/enrollment_cluster/inventory.yml -m command --args '/var/ossec/bin/agent_groups -s -i 006' wazuh-worker1", exit_status=0, stdout=b"wazuh-worker1 | CHANGED | rc=0 >>\nThe agent 'Agent-1647355875' with ID '006' belongs to groups: Null.\n", stderr=None) INFO testinfra:ansible.py:58 RUN Ansible('command', '/var/ossec/bin/agent_groups -s -i 006', {'check': False, 'become': False}): {'changed': True, 'cmd': ['/var/ossec/bin/agent_groups', '-s', '-i', '006'], 'delta': '0:00:03.312971', 'end': '2022-03-15 15:51:37.265989', 'msg': '', 'rc': 0, 'start': '2022-03-15 15:51:33.953018', 'stderr': '', 'stderr_lines': [], 'stdout': "The agent 'Agent-1647355875' with ID '006' belongs to groups: " 'Null.', 'stdout_lines': ["The agent 'Agent-1647355875' with ID '006' belongs to " 'groups: Null.']} DEBUG testinfra:base.py:277 RUN CommandResult(command=b"ansible --tree /tmp/tmpvppt_iqy -i /home/deblintrake/Escritorio/SysTests/wazuh-qa/tests/system/provisioning/enrollment_cluster/inventory.yml -m command --args '/var/ossec/bin/agent_groups -s -i 006' wazuh-worker2", exit_status=0, stdout=b"wazuh-worker2 | CHANGED | rc=0 >>\nThe agent 'Agent-1647355875' with ID '006' belongs to groups: Null.\n", stderr=None) INFO testinfra:ansible.py:58 RUN Ansible('command', '/var/ossec/bin/agent_groups -s -i 006', {'check': False, 'become': False}): {'changed': True, 'cmd': ['/var/ossec/bin/agent_groups', '-s', '-i', '006'], 'delta': '0:00:03.093970', 'end': '2022-03-15 15:51:42.597150', 'msg': '', 'rc': 0, 'start': '2022-03-15 15:51:39.503180', 'stderr': '', 'stderr_lines': [], 'stdout': "The agent 'Agent-1647355875' with ID '006' belongs to groups: " 'Null.', 'stdout_lines': ["The agent 'Agent-1647355875' with ID '006' belongs to " 'groups: Null.']} DEBUG testinfra:base.py:277 RUN CommandResult(command=b"docker exec wazuh-agent1 /bin/sh -c 'cat -- /var/ossec/etc/client.keys'", exit_status=0, stdout=b'006 Agent-1647355875 172.18.0.6 87a7f20b356fc70572fdaa81682f77363ef01e7422bf99877ff5ffc9710c4978\n', stderr=None) DEBUG testinfra:base.py:277 RUN CommandResult(command=b"ansible --tree /tmp/tmprqrvalf_ -i /home/deblintrake/Escritorio/SysTests/wazuh-qa/tests/system/provisioning/enrollment_cluster/inventory.yml -m command --args 'service wazuh-agent restart' wazuh-agent1", exit_status=0, stdout=b'wazuh-agent1 | CHANGED | rc=0 >>\nwazuh-modulesd not running...\nwazuh-logcollector not running...\nwazuh-syscheckd not running...\nwazuh-agentd not running...\nwazuh-execd not running...\nWazuh v4.4.0 Stopped\nStarting Wazuh v4.4.0...\nStarted wazuh-execd...\nStarted wazuh-agentd...\nStarted wazuh-syscheckd...\nStarted wazuh-logcollector...\nStarted wazuh-modulesd...\nCompleted.2022/03/15 15:51:45 wazuh-agentd[12194] debug_op.c:70 at _log(): DEBUG: Logging module auto-initialized\n2022/03/15 15:51:45 wazuh-agentd[12194] main.c:139 at main(): DEBUG: Wazuh home directory: /var/ossec\n2022/03/15 15:51:45 wazuh-agentd[12194] main.c:141 at main(): DEBUG: Started (pid: 12194).\n2022/03/15 15:51:45 wazuh-agentd[12194] agent_op.c:219 at os_read_agent_profile(): DEBUG: Calling os_read_agent_profile().\n2022/03/15 15:51:45 wazuh-agentd[12194] agent_op.c:238 at os_read_agent_profile(): DEBUG: os_read_agent_profile() = [debian, debian10]\n2022/03/15 15:51:45 wazuh-agentd[12194] config.c:416 at ReadConfig(): DEBUG: agent_config element does not have any attributes.\n2022/03/15 15:51:45 wazuh-agentd[12194] agent_op.c:219 at os_read_agent_profile(): DEBUG: Calling os_read_agent_profile().\n2022/03/15 15:51:45 wazuh-agentd[12194] agent_op.c:238 at os_read_agent_profile(): DEBUG: os_read_agent_profile() = [debian, debian10]\n2022/03/15 15:51:45 wazuh-agentd[12194] config.c:416 at ReadConfig(): DEBUG: agent_config element does not have any attributes.\n2022/03/15 15:51:45 wazuh-agentd[12214] debug_op.c:70 at _log(): DEBUG: Logging module auto-initialized\n2022/03/15 15:51:45 wazuh-agentd[12214] main.c:139 at main(): DEBUG: Wazuh home directory: /var/ossec\n2022/03/15 15:51:45 wazuh-agentd[12214] main.c:141 at main(): DEBUG: Started (pid: 12214).\n2022/03/15 15:51:45 wazuh-agentd[12214] agent_op.c:219 at os_read_agent_profile(): DEBUG: Calling os_read_agent_profile().\n2022/03/15 15:51:45 wazuh-agentd[12214] agent_op.c:238 at os_read_agent_profile(): DEBUG: os_read_agent_profile() = [debian, debian10]\n2022/03/15 15:51:45 wazuh-agentd[12214] config.c:416 at ReadConfig(): DEBUG: agent_config element does not have any attributes.\n2022/03/15 15:51:45 wazuh-agentd[12214] agent_op.c:219 at os_read_agent_profile(): DEBUG: Calling os_read_agent_profile().\n2022/03/15 15:51:45 wazuh-agentd[12214] agent_op.c:238 at os_read_agent_profile(): DEBUG: os_read_agent_profile() = [debian, debian10]\n2022/03/15 15:51:45 wazuh-agentd[12214] config.c:416 at ReadConfig(): DEBUG: agent_config element does not have any attributes.\n', stderr=None) INFO testinfra:ansible.py:58 RUN Ansible('command', 'service wazuh-agent restart', {'check': False, 'become': False}): {'changed': True, 'cmd': ['service', 'wazuh-agent', 'restart'], 'delta': '0:00:05.873676', 'end': '2022-03-15 15:51:50.915661', 'msg': '', 'rc': 0, 'start': '2022-03-15 15:51:45.041985', 'stderr': '2022/03/15 15:51:45 wazuh-agentd[12194] debug_op.c:70 at _log(): ' 'DEBUG: Logging module auto-initialized\n' '2022/03/15 15:51:45 wazuh-agentd[12194] main.c:139 at main(): ' 'DEBUG: Wazuh home directory: /var/ossec\n' '2022/03/15 15:51:45 wazuh-agentd[12194] main.c:141 at main(): ' 'DEBUG: Started (pid: 12194).\n' '2022/03/15 15:51:45 wazuh-agentd[12194] agent_op.c:219 at ' 'os_read_agent_profile(): DEBUG: Calling os_read_agent_profile().\n' '2022/03/15 15:51:45 wazuh-agentd[12194] agent_op.c:238 at ' 'os_read_agent_profile(): DEBUG: os_read_agent_profile() = [debian, ' 'debian10]\n' '2022/03/15 15:51:45 wazuh-agentd[12194] config.c:416 at ' 'ReadConfig(): DEBUG: agent_config element does not have any ' 'attributes.\n' '2022/03/15 15:51:45 wazuh-agentd[12194] agent_op.c:219 at ' 'os_read_agent_profile(): DEBUG: Calling os_read_agent_profile().\n' '2022/03/15 15:51:45 wazuh-agentd[12194] agent_op.c:238 at ' 'os_read_agent_profile(): DEBUG: os_read_agent_profile() = [debian, ' 'debian10]\n' '2022/03/15 15:51:45 wazuh-agentd[12194] config.c:416 at ' 'ReadConfig(): DEBUG: agent_config element does not have any ' 'attributes.\n' '2022/03/15 15:51:45 wazuh-agentd[12214] debug_op.c:70 at _log(): ' 'DEBUG: Logging module auto-initialized\n' '2022/03/15 15:51:45 wazuh-agentd[12214] main.c:139 at main(): ' 'DEBUG: Wazuh home directory: /var/ossec\n' '2022/03/15 15:51:45 wazuh-agentd[12214] main.c:141 at main(): ' 'DEBUG: Started (pid: 12214).\n' '2022/03/15 15:51:45 wazuh-agentd[12214] agent_op.c:219 at ' 'os_read_agent_profile(): DEBUG: Calling os_read_agent_profile().\n' '2022/03/15 15:51:45 wazuh-agentd[12214] agent_op.c:238 at ' 'os_read_agent_profile(): DEBUG: os_read_agent_profile() = [debian, ' 'debian10]\n' '2022/03/15 15:51:45 wazuh-agentd[12214] config.c:416 at ' 'ReadConfig(): DEBUG: agent_config element does not have any ' 'attributes.\n' '2022/03/15 15:51:45 wazuh-agentd[12214] agent_op.c:219 at ' 'os_read_agent_profile(): DEBUG: Calling os_read_agent_profile().\n' '2022/03/15 15:51:45 wazuh-agentd[12214] agent_op.c:238 at ' 'os_read_agent_profile(): DEBUG: os_read_agent_profile() = [debian, ' 'debian10]\n' '2022/03/15 15:51:45 wazuh-agentd[12214] config.c:416 at ' 'ReadConfig(): DEBUG: agent_config element does not have any ' 'attributes.', 'stderr_lines': ['2022/03/15 15:51:45 wazuh-agentd[12194] debug_op.c:70 at ' '_log(): DEBUG: Logging module auto-initialized', '2022/03/15 15:51:45 wazuh-agentd[12194] main.c:139 at ' 'main(): DEBUG: Wazuh home directory: /var/ossec', '2022/03/15 15:51:45 wazuh-agentd[12194] main.c:141 at ' 'main(): DEBUG: Started (pid: 12194).', '2022/03/15 15:51:45 wazuh-agentd[12194] agent_op.c:219 at ' 'os_read_agent_profile(): DEBUG: Calling ' 'os_read_agent_profile().', '2022/03/15 15:51:45 wazuh-agentd[12194] agent_op.c:238 at ' 'os_read_agent_profile(): DEBUG: os_read_agent_profile() = ' '[debian, debian10]', '2022/03/15 15:51:45 wazuh-agentd[12194] config.c:416 at ' 'ReadConfig(): DEBUG: agent_config element does not have any ' 'attributes.', '2022/03/15 15:51:45 wazuh-agentd[12194] agent_op.c:219 at ' 'os_read_agent_profile(): DEBUG: Calling ' 'os_read_agent_profile().', '2022/03/15 15:51:45 wazuh-agentd[12194] agent_op.c:238 at ' 'os_read_agent_profile(): DEBUG: os_read_agent_profile() = ' '[debian, debian10]', '2022/03/15 15:51:45 wazuh-agentd[12194] config.c:416 at ' 'ReadConfig(): DEBUG: agent_config element does not have any ' 'attributes.', '2022/03/15 15:51:45 wazuh-agentd[12214] debug_op.c:70 at ' '_log(): DEBUG: Logging module auto-initialized', '2022/03/15 15:51:45 wazuh-agentd[12214] main.c:139 at ' 'main(): DEBUG: Wazuh home directory: /var/ossec', '2022/03/15 15:51:45 wazuh-agentd[12214] main.c:141 at ' 'main(): DEBUG: Started (pid: 12214).', '2022/03/15 15:51:45 wazuh-agentd[12214] agent_op.c:219 at ' 'os_read_agent_profile(): DEBUG: Calling ' 'os_read_agent_profile().', '2022/03/15 15:51:45 wazuh-agentd[12214] agent_op.c:238 at ' 'os_read_agent_profile(): DEBUG: os_read_agent_profile() = ' '[debian, debian10]', '2022/03/15 15:51:45 wazuh-agentd[12214] config.c:416 at ' 'ReadConfig(): DEBUG: agent_config element does not have any ' 'attributes.', '2022/03/15 15:51:45 wazuh-agentd[12214] agent_op.c:219 at ' 'os_read_agent_profile(): DEBUG: Calling ' 'os_read_agent_profile().', '2022/03/15 15:51:45 wazuh-agentd[12214] agent_op.c:238 at ' 'os_read_agent_profile(): DEBUG: os_read_agent_profile() = ' '[debian, debian10]', '2022/03/15 15:51:45 wazuh-agentd[12214] config.c:416 at ' 'ReadConfig(): DEBUG: agent_config element does not have any ' 'attributes.'], 'stdout': 'wazuh-modulesd not running...\n' 'wazuh-logcollector not running...\n' 'wazuh-syscheckd not running...\n' 'wazuh-agentd not running...\n' 'wazuh-execd not running...\n' 'Wazuh v4.4.0 Stopped\n' 'Starting Wazuh v4.4.0...\n' 'Started wazuh-execd...\n' 'Started wazuh-agentd...\n' 'Started wazuh-syscheckd...\n' 'Started wazuh-logcollector...\n' 'Started wazuh-modulesd...\n' 'Completed.', 'stdout_lines': ['wazuh-modulesd not running...', 'wazuh-logcollector not running...', 'wazuh-syscheckd not running...', 'wazuh-agentd not running...', 'wazuh-execd not running...', 'Wazuh v4.4.0 Stopped', 'Starting Wazuh v4.4.0...', 'Started wazuh-execd...', 'Started wazuh-agentd...', 'Started wazuh-syscheckd...', 'Started wazuh-logcollector...', 'Started wazuh-modulesd...', 'Completed.']} DEBUG testinfra:base.py:277 RUN CommandResult(command=b"ansible --tree /tmp/tmpjanzangi -i /home/deblintrake/Escritorio/SysTests/wazuh-qa/tests/system/provisioning/enrollment_cluster/inventory.yml -m service --args 'name=wazuh-agent state=restarted' wazuh-agent1", exit_status=0, stdout=b'wazuh-agent1 | CHANGED => {\n "changed": true,\n "name": "wazuh-agent",\n "state": "started"\n}\n', stderr=None) INFO testinfra:ansible.py:58 RUN Ansible('service', 'name=wazuh-agent state=restarted', {'check': False, 'become': False}): {'changed': True, 'name': 'wazuh-agent', 'state': 'started'} DEBUG testinfra:base.py:277 RUN CommandResult(command=b"ansible --tree /tmp/tmpupwjb2c3 -i /home/deblintrake/Escritorio/SysTests/wazuh-qa/tests/system/provisioning/enrollment_cluster/inventory.yml -m command --args '/var/ossec/bin/cluster_control -a' wazuh-master", exit_status=0, stdout=b'wazuh-master | CHANGED | rc=0 >>\nID NAME IP STATUS VERSION NODE NAME \n000 wazuh-master 127.0.0.1 active Wazuh v4.4.0 wazuh-master \n006 Agent-1647355875 172.18.0.6 active Wazuh v4.4.0 wazuh-master \n', stderr=None) INFO testinfra:ansible.py:58 RUN Ansible('command', '/var/ossec/bin/cluster_control -a', {'check': False, 'become': False}): {'changed': True, 'cmd': ['/var/ossec/bin/cluster_control', '-a'], 'delta': '0:00:01.721381', 'end': '2022-03-15 15:52:18.269660', 'msg': '', 'rc': 0, 'start': '2022-03-15 15:52:16.548279', 'stderr': '', 'stderr_lines': [], 'stdout': 'ID NAME IP STATUS VERSION NODE ' 'NAME \n' '000 wazuh-master 127.0.0.1 active Wazuh v4.4.0 ' 'wazuh-master \n' '006 Agent-1647355875 172.18.0.6 active Wazuh v4.4.0 ' 'wazuh-master ', 'stdout_lines': ['ID NAME IP STATUS VERSION ' 'NODE NAME ', '000 wazuh-master 127.0.0.1 active Wazuh v4.4.0 ' 'wazuh-master ', '006 Agent-1647355875 172.18.0.6 active Wazuh v4.4.0 ' 'wazuh-master ']} DEBUG testinfra:base.py:277 RUN CommandResult(command=b"ansible --tree /tmp/tmpg3nrkt0o -i /home/deblintrake/Escritorio/SysTests/wazuh-qa/tests/system/provisioning/enrollment_cluster/inventory.yml -m command --args '/var/ossec/bin/cluster_control -a' wazuh-worker1", exit_status=0, stdout=b'wazuh-worker1 | CHANGED | rc=0 >>\nID NAME IP STATUS VERSION NODE NAME \n000 wazuh-master 127.0.0.1 active Wazuh v4.4.0 wazuh-master \n006 Agent-1647355875 172.18.0.6 active Wazuh v4.4.0 wazuh-master \n', stderr=None) INFO testinfra:ansible.py:58 RUN Ansible('command', '/var/ossec/bin/cluster_control -a', {'check': False, 'become': False}): {'changed': True, 'cmd': ['/var/ossec/bin/cluster_control', '-a'], 'delta': '0:00:01.556964', 'end': '2022-03-15 15:52:22.243537', 'msg': '', 'rc': 0, 'start': '2022-03-15 15:52:20.686573', 'stderr': '', 'stderr_lines': [], 'stdout': 'ID NAME IP STATUS VERSION NODE ' 'NAME \n' '000 wazuh-master 127.0.0.1 active Wazuh v4.4.0 ' 'wazuh-master \n' '006 Agent-1647355875 172.18.0.6 active Wazuh v4.4.0 ' 'wazuh-master ', 'stdout_lines': ['ID NAME IP STATUS VERSION ' 'NODE NAME ', '000 wazuh-master 127.0.0.1 active Wazuh v4.4.0 ' 'wazuh-master ', '006 Agent-1647355875 172.18.0.6 active Wazuh v4.4.0 ' 'wazuh-master ']} DEBUG testinfra:base.py:277 RUN CommandResult(command=b"ansible --tree /tmp/tmpwl6rnf4x -i /home/deblintrake/Escritorio/SysTests/wazuh-qa/tests/system/provisioning/enrollment_cluster/inventory.yml -m command --args '/var/ossec/bin/cluster_control -a' wazuh-worker2", exit_status=0, stdout=b'wazuh-worker2 | CHANGED | rc=0 >>\nID NAME IP STATUS VERSION NODE NAME \n000 wazuh-master 127.0.0.1 active Wazuh v4.4.0 wazuh-master \n006 Agent-1647355875 172.18.0.6 active Wazuh v4.4.0 wazuh-master \n', stderr=None) INFO testinfra:ansible.py:58 RUN Ansible('command', '/var/ossec/bin/cluster_control -a', {'check': False, 'become': False}): {'changed': True, 'cmd': ['/var/ossec/bin/cluster_control', '-a'], 'delta': '0:00:01.670769', 'end': '2022-03-15 15:52:26.119638', 'msg': '', 'rc': 0, 'start': '2022-03-15 15:52:24.448869', 'stderr': '', 'stderr_lines': [], 'stdout': 'ID NAME IP STATUS VERSION NODE ' 'NAME \n' '000 wazuh-master 127.0.0.1 active Wazuh v4.4.0 ' 'wazuh-master \n' '006 Agent-1647355875 172.18.0.6 active Wazuh v4.4.0 ' 'wazuh-master ', 'stdout_lines': ['ID NAME IP STATUS VERSION ' 'NODE NAME ', '000 wazuh-master 127.0.0.1 active Wazuh v4.4.0 ' 'wazuh-master ', '006 Agent-1647355875 172.18.0.6 active Wazuh v4.4.0 ' 'wazuh-master ']} DEBUG testinfra:base.py:277 RUN CommandResult(command=b"ansible --tree /tmp/tmp56u0sslk -i /home/deblintrake/Escritorio/SysTests/wazuh-qa/tests/system/provisioning/enrollment_cluster/inventory.yml -m service --args 'name=wazuh-agent state=stopped' wazuh-agent1", exit_status=0, stdout=b'wazuh-agent1 | CHANGED => {\n "changed": true,\n "name": "wazuh-agent",\n "state": "stopped"\n}\n', stderr=None) INFO testinfra:ansible.py:58 RUN Ansible('service', 'name=wazuh-agent state=stopped', {'check': False, 'become': False}): {'changed': True, 'name': 'wazuh-agent', 'state': 'stopped'} DEBUG testinfra:base.py:277 RUN CommandResult(command=b"ansible --tree /tmp/tmpao0yejro -i /home/deblintrake/Escritorio/SysTests/wazuh-qa/tests/system/provisioning/enrollment_cluster/inventory.yml -m command --args '/var/ossec/bin/cluster_control -a' wazuh-master", exit_status=0, stdout=b'wazuh-master | CHANGED | rc=0 >>\nID NAME IP STATUS VERSION NODE NAME \n000 wazuh-master 127.0.0.1 active Wazuh v4.4.0 wazuh-master \n006 Agent-1647355875 172.18.0.6 disconnected Wazuh v4.4.0 wazuh-master \n', stderr=None) INFO testinfra:ansible.py:58 RUN Ansible('command', '/var/ossec/bin/cluster_control -a', {'check': False, 'become': False}): {'changed': True, 'cmd': ['/var/ossec/bin/cluster_control', '-a'], 'delta': '0:00:01.360510', 'end': '2022-03-15 15:52:47.490179', 'msg': '', 'rc': 0, 'start': '2022-03-15 15:52:46.129669', 'stderr': '', 'stderr_lines': [], 'stdout': 'ID NAME IP STATUS VERSION ' 'NODE NAME \n' '000 wazuh-master 127.0.0.1 active Wazuh v4.4.0 ' 'wazuh-master \n' '006 Agent-1647355875 172.18.0.6 disconnected Wazuh v4.4.0 ' 'wazuh-master ', 'stdout_lines': ['ID NAME IP STATUS ' 'VERSION NODE NAME ', '000 wazuh-master 127.0.0.1 active Wazuh ' 'v4.4.0 wazuh-master ', '006 Agent-1647355875 172.18.0.6 disconnected Wazuh ' 'v4.4.0 wazuh-master ']} DEBUG testinfra:base.py:277 RUN CommandResult(command=b"ansible --tree /tmp/tmpgex5pkjl -i /home/deblintrake/Escritorio/SysTests/wazuh-qa/tests/system/provisioning/enrollment_cluster/inventory.yml -m command --args '/var/ossec/bin/cluster_control -a' wazuh-worker1", exit_status=0, stdout=b'wazuh-worker1 | CHANGED | rc=0 >>\nID NAME IP STATUS VERSION NODE NAME \n000 wazuh-master 127.0.0.1 active Wazuh v4.4.0 wazuh-master \n006 Agent-1647355875 172.18.0.6 disconnected Wazuh v4.4.0 wazuh-master \n', stderr=None) INFO testinfra:ansible.py:58 RUN Ansible('command', '/var/ossec/bin/cluster_control -a', {'check': False, 'become': False}): {'changed': True, 'cmd': ['/var/ossec/bin/cluster_control', '-a'], 'delta': '0:00:01.622316', 'end': '2022-03-15 15:52:51.106402', 'msg': '', 'rc': 0, 'start': '2022-03-15 15:52:49.484086', 'stderr': '', 'stderr_lines': [], 'stdout': 'ID NAME IP STATUS VERSION ' 'NODE NAME \n' '000 wazuh-master 127.0.0.1 active Wazuh v4.4.0 ' 'wazuh-master \n' '006 Agent-1647355875 172.18.0.6 disconnected Wazuh v4.4.0 ' 'wazuh-master ', 'stdout_lines': ['ID NAME IP STATUS ' 'VERSION NODE NAME ', '000 wazuh-master 127.0.0.1 active Wazuh ' 'v4.4.0 wazuh-master ', '006 Agent-1647355875 172.18.0.6 disconnected Wazuh ' 'v4.4.0 wazuh-master ']} DEBUG testinfra:base.py:277 RUN CommandResult(command=b"ansible --tree /tmp/tmp_dnlrkv6 -i /home/deblintrake/Escritorio/SysTests/wazuh-qa/tests/system/provisioning/enrollment_cluster/inventory.yml -m command --args '/var/ossec/bin/cluster_control -a' wazuh-worker2", exit_status=0, stdout=b'wazuh-worker2 | CHANGED | rc=0 >>\nID NAME IP STATUS VERSION NODE NAME \n000 wazuh-master 127.0.0.1 active Wazuh v4.4.0 wazuh-master \n006 Agent-1647355875 172.18.0.6 disconnected Wazuh v4.4.0 wazuh-master \n', stderr=None) INFO testinfra:ansible.py:58 RUN Ansible('command', '/var/ossec/bin/cluster_control -a', {'check': False, 'become': False}): {'changed': True, 'cmd': ['/var/ossec/bin/cluster_control', '-a'], 'delta': '0:00:01.574747', 'end': '2022-03-15 15:52:54.912965', 'msg': '', 'rc': 0, 'start': '2022-03-15 15:52:53.338218', 'stderr': '', 'stderr_lines': [], 'stdout': 'ID NAME IP STATUS VERSION ' 'NODE NAME \n' '000 wazuh-master 127.0.0.1 active Wazuh v4.4.0 ' 'wazuh-master \n' '006 Agent-1647355875 172.18.0.6 disconnected Wazuh v4.4.0 ' 'wazuh-master ', 'stdout_lines': ['ID NAME IP STATUS ' 'VERSION NODE NAME ', '000 wazuh-master 127.0.0.1 active Wazuh ' 'v4.4.0 wazuh-master ', '006 Agent-1647355875 172.18.0.6 disconnected Wazuh ' 'v4.4.0 wazuh-master ']} DEBUG testinfra:base.py:277 RUN CommandResult(command=b"ansible --tree /tmp/tmpvcbfagvq -i /home/deblintrake/Escritorio/SysTests/wazuh-qa/tests/system/provisioning/enrollment_cluster/inventory.yml -m command --args '/var/ossec/bin/agent_groups -q -a -g group_test' wazuh-master", exit_status=0, stdout=b"wazuh-master | CHANGED | rc=0 >>\nGroup 'group_test' created.\n", stderr=None) INFO testinfra:ansible.py:58 RUN Ansible('command', '/var/ossec/bin/agent_groups -q -a -g group_test', {'check': False, 'become': False}): {'changed': True, 'cmd': ['/var/ossec/bin/agent_groups', '-q', '-a', '-g', 'group_test'], 'delta': '0:00:02.860550', 'end': '2022-03-15 15:52:59.996917', 'msg': '', 'rc': 0, 'start': '2022-03-15 15:52:57.136367', 'stderr': '', 'stderr_lines': [], 'stdout': "Group 'group_test' created.", 'stdout_lines': ["Group 'group_test' created."]} DEBUG testinfra:base.py:277 RUN CommandResult(command=b"ansible --tree /tmp/tmp8j1scwc3 -i /home/deblintrake/Escritorio/SysTests/wazuh-qa/tests/system/provisioning/enrollment_cluster/inventory.yml -m command --args '/var/ossec/bin/agent_groups -q -a -i 006 -g group_test' wazuh-master", exit_status=0, stdout=b"wazuh-master | CHANGED | rc=0 >>\nGroup '['group_test']' added to agent '['006']'.\n", stderr=None) INFO testinfra:ansible.py:58 RUN Ansible('command', '/var/ossec/bin/agent_groups -q -a -i 006 -g group_test', {'check': False, 'become': False}): {'changed': True, 'cmd': ['/var/ossec/bin/agent_groups', '-q', '-a', '-i', '006', '-g', 'group_test'], 'delta': '0:00:02.742014', 'end': '2022-03-15 15:53:04.916873', 'msg': '', 'rc': 0, 'start': '2022-03-15 15:53:02.174859', 'stderr': '', 'stderr_lines': [], 'stdout': "Group '['group_test']' added to agent '['006']'.", 'stdout_lines': ["Group '['group_test']' added to agent '['006']'."]} DEBUG testinfra:base.py:277 RUN CommandResult(command=b"ansible --tree /tmp/tmpkmjho0gy -i /home/deblintrake/Escritorio/SysTests/wazuh-qa/tests/system/provisioning/enrollment_cluster/inventory.yml -m command --args '/var/ossec/bin/agent_groups -s -i 006' wazuh-master", exit_status=0, stdout=b"wazuh-master | CHANGED | rc=0 >>\nThe agent 'Agent-1647355875' with ID '006' belongs to groups: default, group_test.\n", stderr=None) INFO testinfra:ansible.py:58 RUN Ansible('command', '/var/ossec/bin/agent_groups -s -i 006', {'check': False, 'become': False}): {'changed': True, 'cmd': ['/var/ossec/bin/agent_groups', '-s', '-i', '006'], 'delta': '0:00:03.632306', 'end': '2022-03-15 15:53:20.603161', 'msg': '', 'rc': 0, 'start': '2022-03-15 15:53:16.970855', 'stderr': '', 'stderr_lines': [], 'stdout': "The agent 'Agent-1647355875' with ID '006' belongs to groups: " 'default, group_test.', 'stdout_lines': ["The agent 'Agent-1647355875' with ID '006' belongs to " 'groups: default, group_test.']} DEBUG testinfra:base.py:277 RUN CommandResult(command=b"ansible --tree /tmp/tmphjrd_51y -i /home/deblintrake/Escritorio/SysTests/wazuh-qa/tests/system/provisioning/enrollment_cluster/inventory.yml -m command --args '/var/ossec/bin/agent_groups -s -i 006' wazuh-worker1", exit_status=0, stdout=b"wazuh-worker1 | CHANGED | rc=0 >>\nThe agent 'Agent-1647355875' with ID '006' belongs to groups: default, group_test.\n", stderr=None) INFO testinfra:ansible.py:58 RUN Ansible('command', '/var/ossec/bin/agent_groups -s -i 006', {'check': False, 'become': False}): {'changed': True, 'cmd': ['/var/ossec/bin/agent_groups', '-s', '-i', '006'], 'delta': '0:00:03.557913', 'end': '2022-03-15 15:53:26.117812', 'msg': '', 'rc': 0, 'start': '2022-03-15 15:53:22.559899', 'stderr': '', 'stderr_lines': [], 'stdout': "The agent 'Agent-1647355875' with ID '006' belongs to groups: " 'default, group_test.', 'stdout_lines': ["The agent 'Agent-1647355875' with ID '006' belongs to " 'groups: default, group_test.']} DEBUG testinfra:base.py:277 RUN CommandResult(command=b"ansible --tree /tmp/tmpwthwgs4f -i /home/deblintrake/Escritorio/SysTests/wazuh-qa/tests/system/provisioning/enrollment_cluster/inventory.yml -m command --args '/var/ossec/bin/agent_groups -s -i 006' wazuh-worker2", exit_status=0, stdout=b"wazuh-worker2 | CHANGED | rc=0 >>\nThe agent 'Agent-1647355875' with ID '006' belongs to groups: default, group_test.\n", stderr=None) INFO testinfra:ansible.py:58 RUN Ansible('command', '/var/ossec/bin/agent_groups -s -i 006', {'check': False, 'become': False}): {'changed': True, 'cmd': ['/var/ossec/bin/agent_groups', '-s', '-i', '006'], 'delta': '0:00:03.867401', 'end': '2022-03-15 15:53:31.997677', 'msg': '', 'rc': 0, 'start': '2022-03-15 15:53:28.130276', 'stderr': '', 'stderr_lines': [], 'stdout': "The agent 'Agent-1647355875' with ID '006' belongs to groups: " 'default, group_test.', 'stdout_lines': ["The agent 'Agent-1647355875' with ID '006' belongs to " 'groups: default, group_test.']} DEBUG testinfra:base.py:277 RUN CommandResult(command=b"ansible --tree /tmp/tmpyuwmfnxo -i /home/deblintrake/Escritorio/SysTests/wazuh-qa/tests/system/provisioning/enrollment_cluster/inventory.yml -m command --args '/var/ossec/bin/agent_groups -q -r -g group_test' wazuh-master", exit_status=0, stdout=b'wazuh-master | CHANGED | rc=0 >>\nGroup group_test removed.\nAffected agents: 006.\n', stderr=None) INFO testinfra:ansible.py:58 RUN Ansible('command', '/var/ossec/bin/agent_groups -q -r -g group_test', {'check': False, 'become': False}): {'changed': True, 'cmd': ['/var/ossec/bin/agent_groups', '-q', '-r', '-g', 'group_test'], 'delta': '0:00:03.409542', 'end': '2022-03-15 15:53:37.351941', 'msg': '', 'rc': 0, 'start': '2022-03-15 15:53:33.942399', 'stderr': '', 'stderr_lines': [], 'stdout': 'Group group_test removed.\nAffected agents: 006.', 'stdout_lines': ['Group group_test removed.', 'Affected agents: 006.']} -----------------------------Captured log teardown------------------------------ DEBUG testinfra:base.py:277 RUN CommandResult(command=b"ansible --tree /tmp/tmpbuoy0p9l -i /home/deblintrake/Escritorio/SysTests/wazuh-qa/tests/system/provisioning/enrollment_cluster/inventory.yml -m command --args 'cut -c 1-3 /var/ossec/etc/client.keys' wazuh-master", exit_status=0, stdout=b'wazuh-master | CHANGED | rc=0 >>\n006\n', stderr=None) INFO testinfra:ansible.py:58 RUN Ansible('command', 'cut -c 1-3 /var/ossec/etc/client.keys', {'check': False, 'become': False}): {'changed': True, 'cmd': ['cut', '-c', '1-3', '/var/ossec/etc/client.keys'], 'delta': '0:00:01.032512', 'end': '2022-03-15 15:53:40.498778', 'msg': '', 'rc': 0, 'start': '2022-03-15 15:53:39.466266', 'stderr': '', 'stderr_lines': [], 'stdout': '006', 'stdout_lines': ['006']} DEBUG testinfra:base.py:277 RUN CommandResult(command=b"ansible --tree /tmp/tmphbb487lp -i /home/deblintrake/Escritorio/SysTests/wazuh-qa/tests/system/provisioning/enrollment_cluster/inventory.yml -m command --args '/var/ossec/bin/manage_agents -r 006' wazuh-master", exit_status=0, stdout=b"wazuh-master | CHANGED | rc=0 >>\n\n\n****************************************\n* Wazuh v4.4.0 Agent manager. *\n* The following options are available: *\n****************************************\n (A)dd an agent (A).\n (E)xtract key for an agent (E).\n (L)ist already added agents (L).\n (R)emove an agent (R).\n (Q)uit.\nChoose your action: A,E,L,R or Q: \nAvailable agents: \n ID: 006, Name: Agent-1647355875, IP: 172.18.0.6\nProvide the ID of the agent to be removed (or '\\q' to quit): 006\nConfirm deleting it?(y/n): y\nAgent '006' removed.\n\nmanage_agents: Exiting.\n", stderr=None) INFO testinfra:ansible.py:58 RUN Ansible('command', '/var/ossec/bin/manage_agents -r 006', {'check': False, 'become': False}): {'changed': True, 'cmd': ['/var/ossec/bin/manage_agents', '-r', '006'], 'delta': '0:00:00.956780', 'end': '2022-03-15 15:53:43.758461', 'msg': '', 'rc': 0, 'start': '2022-03-15 15:53:42.801681', 'stderr': '', 'stderr_lines': [], 'stdout': '\n' '\n' '****************************************\n' '* Wazuh v4.4.0 Agent manager. *\n' '* The following options are available: *\n' '****************************************\n' ' (A)dd an agent (A).\n' ' (E)xtract key for an agent (E).\n' ' (L)ist already added agents (L).\n' ' (R)emove an agent (R).\n' ' (Q)uit.\n' 'Choose your action: A,E,L,R or Q: \n' 'Available agents: \n' ' ID: 006, Name: Agent-1647355875, IP: 172.18.0.6\n' "Provide the ID of the agent to be removed (or '\\q' to quit): 006\n" 'Confirm deleting it?(y/n): y\n' "Agent '006' removed.\n" '\n' 'manage_agents: Exiting.', 'stdout_lines': ['', '', '****************************************', '* Wazuh v4.4.0 Agent manager. *', '* The following options are available: *', '****************************************', ' (A)dd an agent (A).', ' (E)xtract key for an agent (E).', ' (L)ist already added agents (L).', ' (R)emove an agent (R).', ' (Q)uit.', 'Choose your action: A,E,L,R or Q: ', 'Available agents: ', ' ID: 006, Name: Agent-1647355875, IP: 172.18.0.6', "Provide the ID of the agent to be removed (or '\\q' to " 'quit): 006', 'Confirm deleting it?(y/n): y', "Agent '006' removed.", '', 'manage_agents: Exiting.']} DEBUG testinfra:base.py:277 RUN CommandResult(command=b"ansible --tree /tmp/tmpwqdt40c1 -i /home/deblintrake/Escritorio/SysTests/wazuh-qa/tests/system/provisioning/enrollment_cluster/inventory.yml -m command --args 'cut -c 1-3 /var/ossec/etc/client.keys' wazuh-master", exit_status=0, stdout=b'wazuh-master | CHANGED | rc=0 >>\n\n', stderr=None) INFO testinfra:ansible.py:58 RUN Ansible('command', 'cut -c 1-3 /var/ossec/etc/client.keys', {'check': False, 'become': False}): {'changed': True, 'cmd': ['cut', '-c', '1-3', '/var/ossec/etc/client.keys'], 'delta': '0:00:00.878111', 'end': '2022-03-15 15:53:46.616250', 'msg': '', 'rc': 0, 'start': '2022-03-15 15:53:45.738139', 'stderr': '', 'stderr_lines': [], 'stdout': '', 'stdout_lines': []} DEBUG testinfra:base.py:277 RUN CommandResult(command=b"ansible --tree /tmp/tmpnu54vbll -i /home/deblintrake/Escritorio/SysTests/wazuh-qa/tests/system/provisioning/enrollment_cluster/inventory.yml -m service --args 'name=wazuh-agent state=stopped' wazuh-agent1", exit_status=0, stdout=b'wazuh-agent1 | SUCCESS => {\n "changed": false,\n "name": "wazuh-agent",\n "state": "stopped"\n}\n', stderr=None) INFO testinfra:ansible.py:58 RUN Ansible('service', 'name=wazuh-agent state=stopped', {'check': False, 'become': False}): {'changed': False, 'name': 'wazuh-agent', 'state': 'stopped'} DEBUG testinfra:base.py:277 RUN CommandResult(command=b'ansible --tree /tmp/tmpwfjvukrp -i /home/deblintrake/Escritorio/SysTests/wazuh-qa/tests/system/provisioning/enrollment_cluster/inventory.yml -m copy --args \'dest=/var/ossec/etc/client.keys content=\'"\'"\'\'"\'"\' force=yes\' wazuh-agent1', exit_status=0, stdout=b'wazuh-agent1 | CHANGED => {\n "changed": true,\n "checksum": "da39a3ee5e6b4b0d3255bfef95601890afd80709",\n "dest": "/var/ossec/etc/client.keys",\n "gid": 999,\n "group": "wazuh",\n "md5sum": "d41d8cd98f00b204e9800998ecf8427e",\n "mode": "0640",\n "owner": "root",\n "size": 0,\n "src": "/root/.ansible/tmp/ansible-tmp-1647356034.143897-236901-107394275005091/source",\n "state": "file",\n "uid": 0\n}\n', stderr=None) INFO testinfra:ansible.py:58 RUN Ansible('copy', "dest=/var/ossec/etc/client.keys content='' force=yes", {'check': False, 'become': False}): {'changed': True, 'checksum': 'da39a3ee5e6b4b0d3255bfef95601890afd80709', 'dest': '/var/ossec/etc/client.keys', 'gid': 999, 'group': 'wazuh', 'md5sum': 'd41d8cd98f00b204e9800998ecf8427e', 'mode': '0640', 'owner': 'root', 'size': 0, 'src': '/root/.ansible/tmp/ansible-tmp-1647356034.143897-236901-107394275005091/source', 'state': 'file', 'uid': 0} | |||
Passed | test_assign_agent_to_a_group.py::test_assign_agent_to_a_group[wazuh-worker1-active-host_manager0-test_infra_agents0-test_infra_managers0] | 175.90 | |
-------------------------------Captured log setup------------------------------- DEBUG testinfra:base.py:277 RUN CommandResult(command=b'ansible --tree /tmp/tmplufszhd4 -i /home/deblintrake/Escritorio/SysTests/wazuh-qa/tests/system/provisioning/enrollment_cluster/inventory.yml -m copy --args \'dest=/var/ossec/logs/ossec.log content=\'"\'"\'\'"\'"\' force=yes\' wazuh-agent1', exit_status=0, stdout=b'wazuh-agent1 | CHANGED => {\n "changed": true,\n "checksum": "da39a3ee5e6b4b0d3255bfef95601890afd80709",\n "dest": "/var/ossec/logs/ossec.log",\n "gid": 999,\n "group": "wazuh",\n "md5sum": "d41d8cd98f00b204e9800998ecf8427e",\n "mode": "0660",\n "owner": "wazuh",\n "size": 0,\n "src": "/root/.ansible/tmp/ansible-tmp-1647356039.2106938-237308-160884065130118/source",\n "state": "file",\n "uid": 999\n}\n', stderr=None) INFO testinfra:ansible.py:58 RUN Ansible('copy', "dest=/var/ossec/logs/ossec.log content='' force=yes", {'check': False, 'become': False}): {'changed': True, 'checksum': 'da39a3ee5e6b4b0d3255bfef95601890afd80709', 'dest': '/var/ossec/logs/ossec.log', 'gid': 999, 'group': 'wazuh', 'md5sum': 'd41d8cd98f00b204e9800998ecf8427e', 'mode': '0660', 'owner': 'wazuh', 'size': 0, 'src': '/root/.ansible/tmp/ansible-tmp-1647356039.2106938-237308-160884065130118/source', 'state': 'file', 'uid': 999} DEBUG testinfra:base.py:277 RUN CommandResult(command=b'ansible --tree /tmp/tmpu022y7od -i /home/deblintrake/Escritorio/SysTests/wazuh-qa/tests/system/provisioning/enrollment_cluster/inventory.yml -m copy --args \'dest=/var/ossec/logs/ossec.log content=\'"\'"\'\'"\'"\' force=yes\' wazuh-master', exit_status=0, stdout=b'wazuh-master | CHANGED => {\n "changed": true,\n "checksum": "da39a3ee5e6b4b0d3255bfef95601890afd80709",\n "dest": "/var/ossec/logs/ossec.log",\n "gid": 999,\n "group": "wazuh",\n "md5sum": "d41d8cd98f00b204e9800998ecf8427e",\n "mode": "0660",\n "owner": "wazuh",\n "size": 0,\n "src": "/root/.ansible/tmp/ansible-tmp-1647356044.2732465-237723-255695685051531/source",\n "state": "file",\n "uid": 999\n}\n', stderr=None) INFO testinfra:ansible.py:58 RUN Ansible('copy', "dest=/var/ossec/logs/ossec.log content='' force=yes", {'check': False, 'become': False}): {'changed': True, 'checksum': 'da39a3ee5e6b4b0d3255bfef95601890afd80709', 'dest': '/var/ossec/logs/ossec.log', 'gid': 999, 'group': 'wazuh', 'md5sum': 'd41d8cd98f00b204e9800998ecf8427e', 'mode': '0660', 'owner': 'wazuh', 'size': 0, 'src': '/root/.ansible/tmp/ansible-tmp-1647356044.2732465-237723-255695685051531/source', 'state': 'file', 'uid': 999} DEBUG testinfra:base.py:277 RUN CommandResult(command=b'ansible --tree /tmp/tmpv_8lqate -i /home/deblintrake/Escritorio/SysTests/wazuh-qa/tests/system/provisioning/enrollment_cluster/inventory.yml -m copy --args \'dest=/var/ossec/logs/cluster.log content=\'"\'"\'\'"\'"\' force=yes\' wazuh-master', exit_status=0, stdout=b'wazuh-master | SUCCESS => {\n "changed": false,\n "checksum": "da39a3ee5e6b4b0d3255bfef95601890afd80709",\n "dest": "/var/ossec/logs/cluster.log",\n "gid": 999,\n "group": "wazuh",\n "mode": "0660",\n "owner": "wazuh",\n "path": "/var/ossec/logs/cluster.log",\n "size": 0,\n "state": "file",\n "uid": 999\n}\n', stderr=None) INFO testinfra:ansible.py:58 RUN Ansible('copy', "dest=/var/ossec/logs/cluster.log content='' force=yes", {'check': False, 'become': False}): {'changed': False, 'checksum': 'da39a3ee5e6b4b0d3255bfef95601890afd80709', 'dest': '/var/ossec/logs/cluster.log', 'gid': 999, 'group': 'wazuh', 'mode': '0660', 'owner': 'wazuh', 'path': '/var/ossec/logs/cluster.log', 'size': 0, 'state': 'file', 'uid': 999} DEBUG testinfra:base.py:277 RUN CommandResult(command=b'ansible --tree /tmp/tmpfyr9muud -i /home/deblintrake/Escritorio/SysTests/wazuh-qa/tests/system/provisioning/enrollment_cluster/inventory.yml -m copy --args \'dest=/var/ossec/logs/ossec.log content=\'"\'"\'\'"\'"\' force=yes\' wazuh-worker1', exit_status=0, stdout=b'wazuh-worker1 | CHANGED => {\n "changed": true,\n "checksum": "da39a3ee5e6b4b0d3255bfef95601890afd80709",\n "dest": "/var/ossec/logs/ossec.log",\n "gid": 999,\n "group": "wazuh",\n "md5sum": "d41d8cd98f00b204e9800998ecf8427e",\n "mode": "0660",\n "owner": "wazuh",\n "size": 0,\n "src": "/root/.ansible/tmp/ansible-tmp-1647356053.729691-238570-8088422908099/source",\n "state": "file",\n "uid": 999\n}\n', stderr=None) INFO testinfra:ansible.py:58 RUN Ansible('copy', "dest=/var/ossec/logs/ossec.log content='' force=yes", {'check': False, 'become': False}): {'changed': True, 'checksum': 'da39a3ee5e6b4b0d3255bfef95601890afd80709', 'dest': '/var/ossec/logs/ossec.log', 'gid': 999, 'group': 'wazuh', 'md5sum': 'd41d8cd98f00b204e9800998ecf8427e', 'mode': '0660', 'owner': 'wazuh', 'size': 0, 'src': '/root/.ansible/tmp/ansible-tmp-1647356053.729691-238570-8088422908099/source', 'state': 'file', 'uid': 999} DEBUG testinfra:base.py:277 RUN CommandResult(command=b'ansible --tree /tmp/tmp6a9tyacc -i /home/deblintrake/Escritorio/SysTests/wazuh-qa/tests/system/provisioning/enrollment_cluster/inventory.yml -m copy --args \'dest=/var/ossec/logs/cluster.log content=\'"\'"\'\'"\'"\' force=yes\' wazuh-worker1', exit_status=0, stdout=b'wazuh-worker1 | SUCCESS => {\n "changed": false,\n "checksum": "da39a3ee5e6b4b0d3255bfef95601890afd80709",\n "dest": "/var/ossec/logs/cluster.log",\n "gid": 999,\n "group": "wazuh",\n "mode": "0660",\n "owner": "wazuh",\n "path": "/var/ossec/logs/cluster.log",\n "size": 0,\n "state": "file",\n "uid": 999\n}\n', stderr=None) INFO testinfra:ansible.py:58 RUN Ansible('copy', "dest=/var/ossec/logs/cluster.log content='' force=yes", {'check': False, 'become': False}): {'changed': False, 'checksum': 'da39a3ee5e6b4b0d3255bfef95601890afd80709', 'dest': '/var/ossec/logs/cluster.log', 'gid': 999, 'group': 'wazuh', 'mode': '0660', 'owner': 'wazuh', 'path': '/var/ossec/logs/cluster.log', 'size': 0, 'state': 'file', 'uid': 999} DEBUG testinfra:base.py:277 RUN CommandResult(command=b'ansible --tree /tmp/tmp2cvf2cp8 -i /home/deblintrake/Escritorio/SysTests/wazuh-qa/tests/system/provisioning/enrollment_cluster/inventory.yml -m copy --args \'dest=/var/ossec/logs/ossec.log content=\'"\'"\'\'"\'"\' force=yes\' wazuh-worker2', exit_status=0, stdout=b'wazuh-worker2 | CHANGED => {\n "changed": true,\n "checksum": "da39a3ee5e6b4b0d3255bfef95601890afd80709",\n "dest": "/var/ossec/logs/ossec.log",\n "gid": 999,\n "group": "wazuh",\n "md5sum": "d41d8cd98f00b204e9800998ecf8427e",\n "mode": "0660",\n "owner": "wazuh",\n "size": 0,\n "src": "/root/.ansible/tmp/ansible-tmp-1647356063.6738265-239317-21900033193241/source",\n "state": "file",\n "uid": 999\n}\n', stderr=None) INFO testinfra:ansible.py:58 RUN Ansible('copy', "dest=/var/ossec/logs/ossec.log content='' force=yes", {'check': False, 'become': False}): {'changed': True, 'checksum': 'da39a3ee5e6b4b0d3255bfef95601890afd80709', 'dest': '/var/ossec/logs/ossec.log', 'gid': 999, 'group': 'wazuh', 'md5sum': 'd41d8cd98f00b204e9800998ecf8427e', 'mode': '0660', 'owner': 'wazuh', 'size': 0, 'src': '/root/.ansible/tmp/ansible-tmp-1647356063.6738265-239317-21900033193241/source', 'state': 'file', 'uid': 999} DEBUG testinfra:base.py:277 RUN CommandResult(command=b'ansible --tree /tmp/tmp8pxgtz9h -i /home/deblintrake/Escritorio/SysTests/wazuh-qa/tests/system/provisioning/enrollment_cluster/inventory.yml -m copy --args \'dest=/var/ossec/logs/cluster.log content=\'"\'"\'\'"\'"\' force=yes\' wazuh-worker2', exit_status=0, stdout=b'wazuh-worker2 | SUCCESS => {\n "changed": false,\n "checksum": "da39a3ee5e6b4b0d3255bfef95601890afd80709",\n "dest": "/var/ossec/logs/cluster.log",\n "gid": 999,\n "group": "wazuh",\n "mode": "0660",\n "owner": "wazuh",\n "path": "/var/ossec/logs/cluster.log",\n "size": 0,\n "state": "file",\n "uid": 999\n}\n', stderr=None) INFO testinfra:ansible.py:58 RUN Ansible('copy', "dest=/var/ossec/logs/cluster.log content='' force=yes", {'check': False, 'become': False}): {'changed': False, 'checksum': 'da39a3ee5e6b4b0d3255bfef95601890afd80709', 'dest': '/var/ossec/logs/cluster.log', 'gid': 999, 'group': 'wazuh', 'mode': '0660', 'owner': 'wazuh', 'path': '/var/ossec/logs/cluster.log', 'size': 0, 'state': 'file', 'uid': 999} -------------------------------Captured log call-------------------------------- DEBUG testinfra:base.py:277 RUN CommandResult(command=b"ansible --tree /tmp/tmp7qgma5_s -i /home/deblintrake/Escritorio/SysTests/wazuh-qa/tests/system/provisioning/enrollment_cluster/inventory.yml -m command --args 'hostname -i' wazuh-agent1", exit_status=0, stdout=b'wazuh-agent1 | CHANGED | rc=0 >>\n172.18.0.6\n', stderr=None) INFO testinfra:ansible.py:58 RUN Ansible('command', 'hostname -i', {'check': False, 'become': False}): {'changed': True, 'cmd': ['hostname', '-i'], 'delta': '0:00:00.796298', 'end': '2022-03-15 15:54:35.314736', 'msg': '', 'rc': 0, 'start': '2022-03-15 15:54:34.518438', 'stderr': '', 'stderr_lines': [], 'stdout': '172.18.0.6', 'stdout_lines': ['172.18.0.6']} DEBUG testinfra:base.py:277 RUN CommandResult(command=b"ansible --tree /tmp/tmpgdiov6l0 -i /home/deblintrake/Escritorio/SysTests/wazuh-qa/tests/system/provisioning/enrollment_cluster/inventory.yml -m command --args 'hostname -i' wazuh-worker1", exit_status=0, stdout=b'wazuh-worker1 | CHANGED | rc=0 >>\n172.18.0.3\n', stderr=None) INFO testinfra:ansible.py:58 RUN Ansible('command', 'hostname -i', {'check': False, 'become': False}): {'changed': True, 'cmd': ['hostname', '-i'], 'delta': '0:00:00.817046', 'end': '2022-03-15 15:54:38.360790', 'msg': '', 'rc': 0, 'start': '2022-03-15 15:54:37.543744', 'stderr': '', 'stderr_lines': [], 'stdout': '172.18.0.3', 'stdout_lines': ['172.18.0.3']} DEBUG testinfra:base.py:277 RUN CommandResult(command=b'ansible --tree /tmp/tmpxv6p6uyc -i /home/deblintrake/Escritorio/SysTests/wazuh-qa/tests/system/provisioning/enrollment_cluster/inventory.yml -m replace --args \'path=/var/ossec/etc/ossec.conf regexp=\'"\'"\'<address>[\\s\\S]+</address>\'"\'"\' replace=\'"\'"\'<address>172.18.0.3</address>\'"\'"\'\' wazuh-agent1', exit_status=0, stdout=b'wazuh-agent1 | CHANGED => {\n "changed": true,\n "msg": "1 replacements made"\n}\n', stderr=None) INFO testinfra:ansible.py:58 RUN Ansible('replace', "path=/var/ossec/etc/ossec.conf regexp='<address>[\\s\\S]+</address>' replace='<address>172.18.0.3</address>'", {'check': False, 'become': False}): {'changed': True, 'msg': '1 replacements made'} DEBUG testinfra:base.py:277 RUN CommandResult(command=b"ansible --tree /tmp/tmpc5pzzsfe -i /home/deblintrake/Escritorio/SysTests/wazuh-qa/tests/system/provisioning/enrollment_cluster/inventory.yml -m command --args '/var/ossec/bin/agent-auth -m 172.18.0.3 -A Agent-1647356076 -I 172.18.0.6' wazuh-agent1", exit_status=0, stdout=b'wazuh-agent1 | CHANGED | rc=0 >>\n2022/03/15 15:54:43 agent-auth: INFO: Started (pid: 14285).\n2022/03/15 15:54:43 agent-auth: INFO: Requesting a key from server: 172.18.0.3\n2022/03/15 15:54:43 agent-auth: INFO: No authentication password provided\n2022/03/15 15:54:43 agent-auth: INFO: Using agent name as: Agent-1647356076\n2022/03/15 15:54:43 agent-auth: INFO: Waiting for server reply\n2022/03/15 15:54:43 agent-auth: INFO: Valid key received\n', stderr=None) INFO testinfra:ansible.py:58 RUN Ansible('command', '/var/ossec/bin/agent-auth -m 172.18.0.3 -A Agent-1647356076 -I 172.18.0.6', {'check': False, 'become': False}): {'changed': True, 'cmd': ['/var/ossec/bin/agent-auth', '-m', '172.18.0.3', '-A', 'Agent-1647356076', '-I', '172.18.0.6'], 'delta': '0:00:00.931135', 'end': '2022-03-15 15:54:43.850149', 'msg': '', 'rc': 0, 'start': '2022-03-15 15:54:42.919014', 'stderr': '2022/03/15 15:54:43 agent-auth: INFO: Started (pid: 14285).\n' '2022/03/15 15:54:43 agent-auth: INFO: Requesting a key from ' 'server: 172.18.0.3\n' '2022/03/15 15:54:43 agent-auth: INFO: No authentication password ' 'provided\n' '2022/03/15 15:54:43 agent-auth: INFO: Using agent name as: ' 'Agent-1647356076\n' '2022/03/15 15:54:43 agent-auth: INFO: Waiting for server reply\n' '2022/03/15 15:54:43 agent-auth: INFO: Valid key received', 'stderr_lines': ['2022/03/15 15:54:43 agent-auth: INFO: Started (pid: 14285).', '2022/03/15 15:54:43 agent-auth: INFO: Requesting a key from ' 'server: 172.18.0.3', '2022/03/15 15:54:43 agent-auth: INFO: No authentication ' 'password provided', '2022/03/15 15:54:43 agent-auth: INFO: Using agent name as: ' 'Agent-1647356076', '2022/03/15 15:54:43 agent-auth: INFO: Waiting for server ' 'reply', '2022/03/15 15:54:43 agent-auth: INFO: Valid key received'], 'stdout': '', 'stdout_lines': []} DEBUG testinfra:base.py:277 RUN CommandResult(command=b"ansible --tree /tmp/tmpwxdm_n6g -i /home/deblintrake/Escritorio/SysTests/wazuh-qa/tests/system/provisioning/enrollment_cluster/inventory.yml -m command --args 'cut -c 1-3 /var/ossec/etc/client.keys' wazuh-agent1", exit_status=0, stdout=b'wazuh-agent1 | CHANGED | rc=0 >>\n007\n', stderr=None) INFO testinfra:ansible.py:58 RUN Ansible('command', 'cut -c 1-3 /var/ossec/etc/client.keys', {'check': False, 'become': False}): {'changed': True, 'cmd': ['cut', '-c', '1-3', '/var/ossec/etc/client.keys'], 'delta': '0:00:00.887215', 'end': '2022-03-15 15:54:47.020670', 'msg': '', 'rc': 0, 'start': '2022-03-15 15:54:46.133455', 'stderr': '', 'stderr_lines': [], 'stdout': '007', 'stdout_lines': ['007']} DEBUG testinfra:base.py:277 RUN CommandResult(command=b"ansible --tree /tmp/tmpp2ubeni7 -i /home/deblintrake/Escritorio/SysTests/wazuh-qa/tests/system/provisioning/enrollment_cluster/inventory.yml -m command --args '/var/ossec/bin/agent_groups -s -i 007' wazuh-master", exit_status=0, stdout=b"wazuh-master | CHANGED | rc=0 >>\nThe agent 'Agent-1647356076' with ID '007' belongs to groups: Null.\n", stderr=None) INFO testinfra:ansible.py:58 RUN Ansible('command', '/var/ossec/bin/agent_groups -s -i 007', {'check': False, 'become': False}): {'changed': True, 'cmd': ['/var/ossec/bin/agent_groups', '-s', '-i', '007'], 'delta': '0:00:03.257489', 'end': '2022-03-15 15:54:52.649228', 'msg': '', 'rc': 0, 'start': '2022-03-15 15:54:49.391739', 'stderr': '', 'stderr_lines': [], 'stdout': "The agent 'Agent-1647356076' with ID '007' belongs to groups: " 'Null.', 'stdout_lines': ["The agent 'Agent-1647356076' with ID '007' belongs to " 'groups: Null.']} DEBUG testinfra:base.py:277 RUN CommandResult(command=b"ansible --tree /tmp/tmpdljmfdub -i /home/deblintrake/Escritorio/SysTests/wazuh-qa/tests/system/provisioning/enrollment_cluster/inventory.yml -m command --args '/var/ossec/bin/agent_groups -s -i 007' wazuh-worker1", exit_status=0, stdout=b"wazuh-worker1 | CHANGED | rc=0 >>\nThe agent 'Agent-1647356076' with ID '007' belongs to groups: Null.\n", stderr=None) INFO testinfra:ansible.py:58 RUN Ansible('command', '/var/ossec/bin/agent_groups -s -i 007', {'check': False, 'become': False}): {'changed': True, 'cmd': ['/var/ossec/bin/agent_groups', '-s', '-i', '007'], 'delta': '0:00:03.221640', 'end': '2022-03-15 15:54:58.247155', 'msg': '', 'rc': 0, 'start': '2022-03-15 15:54:55.025515', 'stderr': '', 'stderr_lines': [], 'stdout': "The agent 'Agent-1647356076' with ID '007' belongs to groups: " 'Null.', 'stdout_lines': ["The agent 'Agent-1647356076' with ID '007' belongs to " 'groups: Null.']} DEBUG testinfra:base.py:277 RUN CommandResult(command=b"ansible --tree /tmp/tmpz8rwr3bb -i /home/deblintrake/Escritorio/SysTests/wazuh-qa/tests/system/provisioning/enrollment_cluster/inventory.yml -m command --args '/var/ossec/bin/agent_groups -s -i 007' wazuh-worker2", exit_status=0, stdout=b"wazuh-worker2 | CHANGED | rc=0 >>\nThe agent 'Agent-1647356076' with ID '007' belongs to groups: Null.\n", stderr=None) INFO testinfra:ansible.py:58 RUN Ansible('command', '/var/ossec/bin/agent_groups -s -i 007', {'check': False, 'become': False}): {'changed': True, 'cmd': ['/var/ossec/bin/agent_groups', '-s', '-i', '007'], 'delta': '0:00:03.187272', 'end': '2022-03-15 15:55:03.669914', 'msg': '', 'rc': 0, 'start': '2022-03-15 15:55:00.482642', 'stderr': '', 'stderr_lines': [], 'stdout': "The agent 'Agent-1647356076' with ID '007' belongs to groups: " 'Null.', 'stdout_lines': ["The agent 'Agent-1647356076' with ID '007' belongs to " 'groups: Null.']} DEBUG testinfra:base.py:277 RUN CommandResult(command=b"docker exec wazuh-agent1 /bin/sh -c 'cat -- /var/ossec/etc/client.keys'", exit_status=0, stdout=b'007 Agent-1647356076 172.18.0.6 bdde21cb6c4a0437afe191644ad7cad170a4e502e799508587b8528442716913\n', stderr=None) DEBUG testinfra:base.py:277 RUN CommandResult(command=b"ansible --tree /tmp/tmp7a356295 -i /home/deblintrake/Escritorio/SysTests/wazuh-qa/tests/system/provisioning/enrollment_cluster/inventory.yml -m command --args 'service wazuh-agent restart' wazuh-agent1", exit_status=0, stdout=b'wazuh-agent1 | CHANGED | rc=0 >>\nwazuh-modulesd not running...\nwazuh-logcollector not running...\nwazuh-syscheckd not running...\nwazuh-agentd not running...\nwazuh-execd not running...\nWazuh v4.4.0 Stopped\nStarting Wazuh v4.4.0...\nStarted wazuh-execd...\nStarted wazuh-agentd...\nStarted wazuh-syscheckd...\nStarted wazuh-logcollector...\nStarted wazuh-modulesd...\nCompleted.2022/03/15 15:55:06 wazuh-agentd[14445] debug_op.c:70 at _log(): DEBUG: Logging module auto-initialized\n2022/03/15 15:55:06 wazuh-agentd[14445] main.c:139 at main(): DEBUG: Wazuh home directory: /var/ossec\n2022/03/15 15:55:06 wazuh-agentd[14445] main.c:141 at main(): DEBUG: Started (pid: 14445).\n2022/03/15 15:55:06 wazuh-agentd[14445] agent_op.c:219 at os_read_agent_profile(): DEBUG: Calling os_read_agent_profile().\n2022/03/15 15:55:06 wazuh-agentd[14445] agent_op.c:238 at os_read_agent_profile(): DEBUG: os_read_agent_profile() = [debian, debian10]\n2022/03/15 15:55:06 wazuh-agentd[14445] config.c:416 at ReadConfig(): DEBUG: agent_config element does not have any attributes.\n2022/03/15 15:55:06 wazuh-agentd[14445] agent_op.c:219 at os_read_agent_profile(): DEBUG: Calling os_read_agent_profile().\n2022/03/15 15:55:06 wazuh-agentd[14445] agent_op.c:238 at os_read_agent_profile(): DEBUG: os_read_agent_profile() = [debian, debian10]\n2022/03/15 15:55:06 wazuh-agentd[14445] config.c:416 at ReadConfig(): DEBUG: agent_config element does not have any attributes.\n2022/03/15 15:55:06 wazuh-agentd[14465] debug_op.c:70 at _log(): DEBUG: Logging module auto-initialized\n2022/03/15 15:55:06 wazuh-agentd[14465] main.c:139 at main(): DEBUG: Wazuh home directory: /var/ossec\n2022/03/15 15:55:06 wazuh-agentd[14465] main.c:141 at main(): DEBUG: Started (pid: 14465).\n2022/03/15 15:55:06 wazuh-agentd[14465] agent_op.c:219 at os_read_agent_profile(): DEBUG: Calling os_read_agent_profile().\n2022/03/15 15:55:06 wazuh-agentd[14465] agent_op.c:238 at os_read_agent_profile(): DEBUG: os_read_agent_profile() = [debian, debian10]\n2022/03/15 15:55:06 wazuh-agentd[14465] config.c:416 at ReadConfig(): DEBUG: agent_config element does not have any attributes.\n2022/03/15 15:55:06 wazuh-agentd[14465] agent_op.c:219 at os_read_agent_profile(): DEBUG: Calling os_read_agent_profile().\n2022/03/15 15:55:06 wazuh-agentd[14465] agent_op.c:238 at os_read_agent_profile(): DEBUG: os_read_agent_profile() = [debian, debian10]\n2022/03/15 15:55:06 wazuh-agentd[14465] config.c:416 at ReadConfig(): DEBUG: agent_config element does not have any attributes.\n', stderr=None) INFO testinfra:ansible.py:58 RUN Ansible('command', 'service wazuh-agent restart', {'check': False, 'become': False}): {'changed': True, 'cmd': ['service', 'wazuh-agent', 'restart'], 'delta': '0:00:05.843888', 'end': '2022-03-15 15:55:11.986363', 'msg': '', 'rc': 0, 'start': '2022-03-15 15:55:06.142475', 'stderr': '2022/03/15 15:55:06 wazuh-agentd[14445] debug_op.c:70 at _log(): ' 'DEBUG: Logging module auto-initialized\n' '2022/03/15 15:55:06 wazuh-agentd[14445] main.c:139 at main(): ' 'DEBUG: Wazuh home directory: /var/ossec\n' '2022/03/15 15:55:06 wazuh-agentd[14445] main.c:141 at main(): ' 'DEBUG: Started (pid: 14445).\n' '2022/03/15 15:55:06 wazuh-agentd[14445] agent_op.c:219 at ' 'os_read_agent_profile(): DEBUG: Calling os_read_agent_profile().\n' '2022/03/15 15:55:06 wazuh-agentd[14445] agent_op.c:238 at ' 'os_read_agent_profile(): DEBUG: os_read_agent_profile() = [debian, ' 'debian10]\n' '2022/03/15 15:55:06 wazuh-agentd[14445] config.c:416 at ' 'ReadConfig(): DEBUG: agent_config element does not have any ' 'attributes.\n' '2022/03/15 15:55:06 wazuh-agentd[14445] agent_op.c:219 at ' 'os_read_agent_profile(): DEBUG: Calling os_read_agent_profile().\n' '2022/03/15 15:55:06 wazuh-agentd[14445] agent_op.c:238 at ' 'os_read_agent_profile(): DEBUG: os_read_agent_profile() = [debian, ' 'debian10]\n' '2022/03/15 15:55:06 wazuh-agentd[14445] config.c:416 at ' 'ReadConfig(): DEBUG: agent_config element does not have any ' 'attributes.\n' '2022/03/15 15:55:06 wazuh-agentd[14465] debug_op.c:70 at _log(): ' 'DEBUG: Logging module auto-initialized\n' '2022/03/15 15:55:06 wazuh-agentd[14465] main.c:139 at main(): ' 'DEBUG: Wazuh home directory: /var/ossec\n' '2022/03/15 15:55:06 wazuh-agentd[14465] main.c:141 at main(): ' 'DEBUG: Started (pid: 14465).\n' '2022/03/15 15:55:06 wazuh-agentd[14465] agent_op.c:219 at ' 'os_read_agent_profile(): DEBUG: Calling os_read_agent_profile().\n' '2022/03/15 15:55:06 wazuh-agentd[14465] agent_op.c:238 at ' 'os_read_agent_profile(): DEBUG: os_read_agent_profile() = [debian, ' 'debian10]\n' '2022/03/15 15:55:06 wazuh-agentd[14465] config.c:416 at ' 'ReadConfig(): DEBUG: agent_config element does not have any ' 'attributes.\n' '2022/03/15 15:55:06 wazuh-agentd[14465] agent_op.c:219 at ' 'os_read_agent_profile(): DEBUG: Calling os_read_agent_profile().\n' '2022/03/15 15:55:06 wazuh-agentd[14465] agent_op.c:238 at ' 'os_read_agent_profile(): DEBUG: os_read_agent_profile() = [debian, ' 'debian10]\n' '2022/03/15 15:55:06 wazuh-agentd[14465] config.c:416 at ' 'ReadConfig(): DEBUG: agent_config element does not have any ' 'attributes.', 'stderr_lines': ['2022/03/15 15:55:06 wazuh-agentd[14445] debug_op.c:70 at ' '_log(): DEBUG: Logging module auto-initialized', '2022/03/15 15:55:06 wazuh-agentd[14445] main.c:139 at ' 'main(): DEBUG: Wazuh home directory: /var/ossec', '2022/03/15 15:55:06 wazuh-agentd[14445] main.c:141 at ' 'main(): DEBUG: Started (pid: 14445).', '2022/03/15 15:55:06 wazuh-agentd[14445] agent_op.c:219 at ' 'os_read_agent_profile(): DEBUG: Calling ' 'os_read_agent_profile().', '2022/03/15 15:55:06 wazuh-agentd[14445] agent_op.c:238 at ' 'os_read_agent_profile(): DEBUG: os_read_agent_profile() = ' '[debian, debian10]', '2022/03/15 15:55:06 wazuh-agentd[14445] config.c:416 at ' 'ReadConfig(): DEBUG: agent_config element does not have any ' 'attributes.', '2022/03/15 15:55:06 wazuh-agentd[14445] agent_op.c:219 at ' 'os_read_agent_profile(): DEBUG: Calling ' 'os_read_agent_profile().', '2022/03/15 15:55:06 wazuh-agentd[14445] agent_op.c:238 at ' 'os_read_agent_profile(): DEBUG: os_read_agent_profile() = ' '[debian, debian10]', '2022/03/15 15:55:06 wazuh-agentd[14445] config.c:416 at ' 'ReadConfig(): DEBUG: agent_config element does not have any ' 'attributes.', '2022/03/15 15:55:06 wazuh-agentd[14465] debug_op.c:70 at ' '_log(): DEBUG: Logging module auto-initialized', '2022/03/15 15:55:06 wazuh-agentd[14465] main.c:139 at ' 'main(): DEBUG: Wazuh home directory: /var/ossec', '2022/03/15 15:55:06 wazuh-agentd[14465] main.c:141 at ' 'main(): DEBUG: Started (pid: 14465).', '2022/03/15 15:55:06 wazuh-agentd[14465] agent_op.c:219 at ' 'os_read_agent_profile(): DEBUG: Calling ' 'os_read_agent_profile().', '2022/03/15 15:55:06 wazuh-agentd[14465] agent_op.c:238 at ' 'os_read_agent_profile(): DEBUG: os_read_agent_profile() = ' '[debian, debian10]', '2022/03/15 15:55:06 wazuh-agentd[14465] config.c:416 at ' 'ReadConfig(): DEBUG: agent_config element does not have any ' 'attributes.', '2022/03/15 15:55:06 wazuh-agentd[14465] agent_op.c:219 at ' 'os_read_agent_profile(): DEBUG: Calling ' 'os_read_agent_profile().', '2022/03/15 15:55:06 wazuh-agentd[14465] agent_op.c:238 at ' 'os_read_agent_profile(): DEBUG: os_read_agent_profile() = ' '[debian, debian10]', '2022/03/15 15:55:06 wazuh-agentd[14465] config.c:416 at ' 'ReadConfig(): DEBUG: agent_config element does not have any ' 'attributes.'], 'stdout': 'wazuh-modulesd not running...\n' 'wazuh-logcollector not running...\n' 'wazuh-syscheckd not running...\n' 'wazuh-agentd not running...\n' 'wazuh-execd not running...\n' 'Wazuh v4.4.0 Stopped\n' 'Starting Wazuh v4.4.0...\n' 'Started wazuh-execd...\n' 'Started wazuh-agentd...\n' 'Started wazuh-syscheckd...\n' 'Started wazuh-logcollector...\n' 'Started wazuh-modulesd...\n' 'Completed.', 'stdout_lines': ['wazuh-modulesd not running...', 'wazuh-logcollector not running...', 'wazuh-syscheckd not running...', 'wazuh-agentd not running...', 'wazuh-execd not running...', 'Wazuh v4.4.0 Stopped', 'Starting Wazuh v4.4.0...', 'Started wazuh-execd...', 'Started wazuh-agentd...', 'Started wazuh-syscheckd...', 'Started wazuh-logcollector...', 'Started wazuh-modulesd...', 'Completed.']} DEBUG testinfra:base.py:277 RUN CommandResult(command=b"ansible --tree /tmp/tmpu9o1auxk -i /home/deblintrake/Escritorio/SysTests/wazuh-qa/tests/system/provisioning/enrollment_cluster/inventory.yml -m service --args 'name=wazuh-agent state=restarted' wazuh-agent1", exit_status=0, stdout=b'wazuh-agent1 | CHANGED => {\n "changed": true,\n "name": "wazuh-agent",\n "state": "started"\n}\n', stderr=None) INFO testinfra:ansible.py:58 RUN Ansible('service', 'name=wazuh-agent state=restarted', {'check': False, 'become': False}): {'changed': True, 'name': 'wazuh-agent', 'state': 'started'} DEBUG testinfra:base.py:277 RUN CommandResult(command=b"ansible --tree /tmp/tmp_ff8hdv6 -i /home/deblintrake/Escritorio/SysTests/wazuh-qa/tests/system/provisioning/enrollment_cluster/inventory.yml -m command --args '/var/ossec/bin/cluster_control -a' wazuh-master", exit_status=0, stdout=b'wazuh-master | CHANGED | rc=0 >>\nID NAME IP STATUS VERSION NODE NAME \n000 wazuh-master 127.0.0.1 active Wazuh v4.4.0 wazuh-master \n007 Agent-1647356076 172.18.0.6 active Wazuh v4.4.0 wazuh-worker1 \n', stderr=None) INFO testinfra:ansible.py:58 RUN Ansible('command', '/var/ossec/bin/cluster_control -a', {'check': False, 'become': False}): {'changed': True, 'cmd': ['/var/ossec/bin/cluster_control', '-a'], 'delta': '0:00:01.574402', 'end': '2022-03-15 15:55:40.675587', 'msg': '', 'rc': 0, 'start': '2022-03-15 15:55:39.101185', 'stderr': '', 'stderr_lines': [], 'stdout': 'ID NAME IP STATUS VERSION NODE ' 'NAME \n' '000 wazuh-master 127.0.0.1 active Wazuh v4.4.0 ' 'wazuh-master \n' '007 Agent-1647356076 172.18.0.6 active Wazuh v4.4.0 ' 'wazuh-worker1 ', 'stdout_lines': ['ID NAME IP STATUS VERSION ' 'NODE NAME ', '000 wazuh-master 127.0.0.1 active Wazuh v4.4.0 ' 'wazuh-master ', '007 Agent-1647356076 172.18.0.6 active Wazuh v4.4.0 ' 'wazuh-worker1 ']} DEBUG testinfra:base.py:277 RUN CommandResult(command=b"ansible --tree /tmp/tmp8oj3a2z3 -i /home/deblintrake/Escritorio/SysTests/wazuh-qa/tests/system/provisioning/enrollment_cluster/inventory.yml -m command --args '/var/ossec/bin/cluster_control -a' wazuh-worker1", exit_status=0, stdout=b'wazuh-worker1 | CHANGED | rc=0 >>\nID NAME IP STATUS VERSION NODE NAME \n000 wazuh-master 127.0.0.1 active Wazuh v4.4.0 wazuh-master \n007 Agent-1647356076 172.18.0.6 active Wazuh v4.4.0 wazuh-worker1 \n', stderr=None) INFO testinfra:ansible.py:58 RUN Ansible('command', '/var/ossec/bin/cluster_control -a', {'check': False, 'become': False}): {'changed': True, 'cmd': ['/var/ossec/bin/cluster_control', '-a'], 'delta': '0:00:01.526005', 'end': '2022-03-15 15:55:44.481302', 'msg': '', 'rc': 0, 'start': '2022-03-15 15:55:42.955297', 'stderr': '', 'stderr_lines': [], 'stdout': 'ID NAME IP STATUS VERSION NODE ' 'NAME \n' '000 wazuh-master 127.0.0.1 active Wazuh v4.4.0 ' 'wazuh-master \n' '007 Agent-1647356076 172.18.0.6 active Wazuh v4.4.0 ' 'wazuh-worker1 ', 'stdout_lines': ['ID NAME IP STATUS VERSION ' 'NODE NAME ', '000 wazuh-master 127.0.0.1 active Wazuh v4.4.0 ' 'wazuh-master ', '007 Agent-1647356076 172.18.0.6 active Wazuh v4.4.0 ' 'wazuh-worker1 ']} DEBUG testinfra:base.py:277 RUN CommandResult(command=b"ansible --tree /tmp/tmpjo9_l3dt -i /home/deblintrake/Escritorio/SysTests/wazuh-qa/tests/system/provisioning/enrollment_cluster/inventory.yml -m command --args '/var/ossec/bin/cluster_control -a' wazuh-worker2", exit_status=0, stdout=b'wazuh-worker2 | CHANGED | rc=0 >>\nID NAME IP STATUS VERSION NODE NAME \n000 wazuh-master 127.0.0.1 active Wazuh v4.4.0 wazuh-master \n007 Agent-1647356076 172.18.0.6 active Wazuh v4.4.0 wazuh-worker1 \n', stderr=None) INFO testinfra:ansible.py:58 RUN Ansible('command', '/var/ossec/bin/cluster_control -a', {'check': False, 'become': False}): {'changed': True, 'cmd': ['/var/ossec/bin/cluster_control', '-a'], 'delta': '0:00:01.334670', 'end': '2022-03-15 15:55:48.033006', 'msg': '', 'rc': 0, 'start': '2022-03-15 15:55:46.698336', 'stderr': '', 'stderr_lines': [], 'stdout': 'ID NAME IP STATUS VERSION NODE ' 'NAME \n' '000 wazuh-master 127.0.0.1 active Wazuh v4.4.0 ' 'wazuh-master \n' '007 Agent-1647356076 172.18.0.6 active Wazuh v4.4.0 ' 'wazuh-worker1 ', 'stdout_lines': ['ID NAME IP STATUS VERSION ' 'NODE NAME ', '000 wazuh-master 127.0.0.1 active Wazuh v4.4.0 ' 'wazuh-master ', '007 Agent-1647356076 172.18.0.6 active Wazuh v4.4.0 ' 'wazuh-worker1 ']} DEBUG testinfra:base.py:277 RUN CommandResult(command=b"ansible --tree /tmp/tmp3c527jy3 -i /home/deblintrake/Escritorio/SysTests/wazuh-qa/tests/system/provisioning/enrollment_cluster/inventory.yml -m command --args '/var/ossec/bin/agent_groups -q -a -g group_test' wazuh-master", exit_status=0, stdout=b"wazuh-master | CHANGED | rc=0 >>\nGroup 'group_test' created.\n", stderr=None) INFO testinfra:ansible.py:58 RUN Ansible('command', '/var/ossec/bin/agent_groups -q -a -g group_test', {'check': False, 'become': False}): {'changed': True, 'cmd': ['/var/ossec/bin/agent_groups', '-q', '-a', '-g', 'group_test'], 'delta': '0:00:03.421838', 'end': '2022-03-15 15:55:54.033983', 'msg': '', 'rc': 0, 'start': '2022-03-15 15:55:50.612145', 'stderr': '', 'stderr_lines': [], 'stdout': "Group 'group_test' created.", 'stdout_lines': ["Group 'group_test' created."]} DEBUG testinfra:base.py:277 RUN CommandResult(command=b"ansible --tree /tmp/tmp4bkuzf_r -i /home/deblintrake/Escritorio/SysTests/wazuh-qa/tests/system/provisioning/enrollment_cluster/inventory.yml -m command --args '/var/ossec/bin/agent_groups -q -a -i 007 -g group_test' wazuh-master", exit_status=0, stdout=b"wazuh-master | CHANGED | rc=0 >>\nGroup '['group_test']' added to agent '['007']'.\n", stderr=None) INFO testinfra:ansible.py:58 RUN Ansible('command', '/var/ossec/bin/agent_groups -q -a -i 007 -g group_test', {'check': False, 'become': False}): {'changed': True, 'cmd': ['/var/ossec/bin/agent_groups', '-q', '-a', '-i', '007', '-g', 'group_test'], 'delta': '0:00:03.433089', 'end': '2022-03-15 15:55:59.521194', 'msg': '', 'rc': 0, 'start': '2022-03-15 15:55:56.088105', 'stderr': '', 'stderr_lines': [], 'stdout': "Group '['group_test']' added to agent '['007']'.", 'stdout_lines': ["Group '['group_test']' added to agent '['007']'."]} DEBUG testinfra:base.py:277 RUN CommandResult(command=b"ansible --tree /tmp/tmpq6bg_pjt -i /home/deblintrake/Escritorio/SysTests/wazuh-qa/tests/system/provisioning/enrollment_cluster/inventory.yml -m command --args '/var/ossec/bin/agent_groups -s -i 007' wazuh-master", exit_status=0, stdout=b"wazuh-master | CHANGED | rc=0 >>\nThe agent 'Agent-1647356076' with ID '007' belongs to groups: default, group_test.\n", stderr=None) INFO testinfra:ansible.py:58 RUN Ansible('command', '/var/ossec/bin/agent_groups -s -i 007', {'check': False, 'become': False}): {'changed': True, 'cmd': ['/var/ossec/bin/agent_groups', '-s', '-i', '007'], 'delta': '0:00:03.714228', 'end': '2022-03-15 15:56:15.207410', 'msg': '', 'rc': 0, 'start': '2022-03-15 15:56:11.493182', 'stderr': '', 'stderr_lines': [], 'stdout': "The agent 'Agent-1647356076' with ID '007' belongs to groups: " 'default, group_test.', 'stdout_lines': ["The agent 'Agent-1647356076' with ID '007' belongs to " 'groups: default, group_test.']} DEBUG testinfra:base.py:277 RUN CommandResult(command=b"ansible --tree /tmp/tmphvgwluhh -i /home/deblintrake/Escritorio/SysTests/wazuh-qa/tests/system/provisioning/enrollment_cluster/inventory.yml -m command --args '/var/ossec/bin/agent_groups -s -i 007' wazuh-worker1", exit_status=0, stdout=b"wazuh-worker1 | CHANGED | rc=0 >>\nThe agent 'Agent-1647356076' with ID '007' belongs to groups: default, group_test.\n", stderr=None) INFO testinfra:ansible.py:58 RUN Ansible('command', '/var/ossec/bin/agent_groups -s -i 007', {'check': False, 'become': False}): {'changed': True, 'cmd': ['/var/ossec/bin/agent_groups', '-s', '-i', '007'], 'delta': '0:00:01.939302', 'end': '2022-03-15 15:56:19.799214', 'msg': '', 'rc': 0, 'start': '2022-03-15 15:56:17.859912', 'stderr': '', 'stderr_lines': [], 'stdout': "The agent 'Agent-1647356076' with ID '007' belongs to groups: " 'default, group_test.', 'stdout_lines': ["The agent 'Agent-1647356076' with ID '007' belongs to " 'groups: default, group_test.']} DEBUG testinfra:base.py:277 RUN CommandResult(command=b"ansible --tree /tmp/tmpu7e7a07n -i /home/deblintrake/Escritorio/SysTests/wazuh-qa/tests/system/provisioning/enrollment_cluster/inventory.yml -m command --args '/var/ossec/bin/agent_groups -s -i 007' wazuh-worker2", exit_status=0, stdout=b"wazuh-worker2 | CHANGED | rc=0 >>\nThe agent 'Agent-1647356076' with ID '007' belongs to groups: default, group_test.\n", stderr=None) INFO testinfra:ansible.py:58 RUN Ansible('command', '/var/ossec/bin/agent_groups -s -i 007', {'check': False, 'become': False}): {'changed': True, 'cmd': ['/var/ossec/bin/agent_groups', '-s', '-i', '007'], 'delta': '0:00:01.703041', 'end': '2022-03-15 15:56:23.354075', 'msg': '', 'rc': 0, 'start': '2022-03-15 15:56:21.651034', 'stderr': '', 'stderr_lines': [], 'stdout': "The agent 'Agent-1647356076' with ID '007' belongs to groups: " 'default, group_test.', 'stdout_lines': ["The agent 'Agent-1647356076' with ID '007' belongs to " 'groups: default, group_test.']} DEBUG testinfra:base.py:277 RUN CommandResult(command=b"ansible --tree /tmp/tmpnzp49x_c -i /home/deblintrake/Escritorio/SysTests/wazuh-qa/tests/system/provisioning/enrollment_cluster/inventory.yml -m command --args '/var/ossec/bin/agent_groups -q -r -g group_test' wazuh-master", exit_status=0, stdout=b'wazuh-master | CHANGED | rc=0 >>\nGroup group_test removed.\nAffected agents: 007.\n', stderr=None) INFO testinfra:ansible.py:58 RUN Ansible('command', '/var/ossec/bin/agent_groups -q -r -g group_test', {'check': False, 'become': False}): {'changed': True, 'cmd': ['/var/ossec/bin/agent_groups', '-q', '-r', '-g', 'group_test'], 'delta': '0:00:03.418217', 'end': '2022-03-15 15:56:28.871178', 'msg': '', 'rc': 0, 'start': '2022-03-15 15:56:25.452961', 'stderr': '', 'stderr_lines': [], 'stdout': 'Group group_test removed.\nAffected agents: 007.', 'stdout_lines': ['Group group_test removed.', 'Affected agents: 007.']} -----------------------------Captured log teardown------------------------------ DEBUG testinfra:base.py:277 RUN CommandResult(command=b"ansible --tree /tmp/tmpdrk8qlk1 -i /home/deblintrake/Escritorio/SysTests/wazuh-qa/tests/system/provisioning/enrollment_cluster/inventory.yml -m command --args 'cut -c 1-3 /var/ossec/etc/client.keys' wazuh-master", exit_status=0, stdout=b'wazuh-master | CHANGED | rc=0 >>\n007\n', stderr=None) INFO testinfra:ansible.py:58 RUN Ansible('command', 'cut -c 1-3 /var/ossec/etc/client.keys', {'check': False, 'become': False}): {'changed': True, 'cmd': ['cut', '-c', '1-3', '/var/ossec/etc/client.keys'], 'delta': '0:00:01.062883', 'end': '2022-03-15 15:56:32.106364', 'msg': '', 'rc': 0, 'start': '2022-03-15 15:56:31.043481', 'stderr': '', 'stderr_lines': [], 'stdout': '007', 'stdout_lines': ['007']} DEBUG testinfra:base.py:277 RUN CommandResult(command=b"ansible --tree /tmp/tmpb7eypytc -i /home/deblintrake/Escritorio/SysTests/wazuh-qa/tests/system/provisioning/enrollment_cluster/inventory.yml -m command --args '/var/ossec/bin/manage_agents -r 007' wazuh-master", exit_status=0, stdout=b"wazuh-master | CHANGED | rc=0 >>\n\n\n****************************************\n* Wazuh v4.4.0 Agent manager. *\n* The following options are available: *\n****************************************\n (A)dd an agent (A).\n (E)xtract key for an agent (E).\n (L)ist already added agents (L).\n (R)emove an agent (R).\n (Q)uit.\nChoose your action: A,E,L,R or Q: \nAvailable agents: \n ID: 007, Name: Agent-1647356076, IP: 172.18.0.6\nProvide the ID of the agent to be removed (or '\\q' to quit): 007\nConfirm deleting it?(y/n): y\nAgent '007' removed.\n\nmanage_agents: Exiting.\n", stderr=None) INFO testinfra:ansible.py:58 RUN Ansible('command', '/var/ossec/bin/manage_agents -r 007', {'check': False, 'become': False}): {'changed': True, 'cmd': ['/var/ossec/bin/manage_agents', '-r', '007'], 'delta': '0:00:01.020812', 'end': '2022-03-15 15:56:35.029506', 'msg': '', 'rc': 0, 'start': '2022-03-15 15:56:34.008694', 'stderr': '', 'stderr_lines': [], 'stdout': '\n' '\n' '****************************************\n' '* Wazuh v4.4.0 Agent manager. *\n' '* The following options are available: *\n' '****************************************\n' ' (A)dd an agent (A).\n' ' (E)xtract key for an agent (E).\n' ' (L)ist already added agents (L).\n' ' (R)emove an agent (R).\n' ' (Q)uit.\n' 'Choose your action: A,E,L,R or Q: \n' 'Available agents: \n' ' ID: 007, Name: Agent-1647356076, IP: 172.18.0.6\n' "Provide the ID of the agent to be removed (or '\\q' to quit): 007\n" 'Confirm deleting it?(y/n): y\n' "Agent '007' removed.\n" '\n' 'manage_agents: Exiting.', 'stdout_lines': ['', '', '****************************************', '* Wazuh v4.4.0 Agent manager. *', '* The following options are available: *', '****************************************', ' (A)dd an agent (A).', ' (E)xtract key for an agent (E).', ' (L)ist already added agents (L).', ' (R)emove an agent (R).', ' (Q)uit.', 'Choose your action: A,E,L,R or Q: ', 'Available agents: ', ' ID: 007, Name: Agent-1647356076, IP: 172.18.0.6', "Provide the ID of the agent to be removed (or '\\q' to " 'quit): 007', 'Confirm deleting it?(y/n): y', "Agent '007' removed.", '', 'manage_agents: Exiting.']} DEBUG testinfra:base.py:277 RUN CommandResult(command=b"ansible --tree /tmp/tmpasgcydnr -i /home/deblintrake/Escritorio/SysTests/wazuh-qa/tests/system/provisioning/enrollment_cluster/inventory.yml -m command --args 'cut -c 1-3 /var/ossec/etc/client.keys' wazuh-master", exit_status=0, stdout=b'wazuh-master | CHANGED | rc=0 >>\n\n', stderr=None) INFO testinfra:ansible.py:58 RUN Ansible('command', 'cut -c 1-3 /var/ossec/etc/client.keys', {'check': False, 'become': False}): {'changed': True, 'cmd': ['cut', '-c', '1-3', '/var/ossec/etc/client.keys'], 'delta': '0:00:01.970683', 'end': '2022-03-15 15:56:39.475653', 'msg': '', 'rc': 0, 'start': '2022-03-15 15:56:37.504970', 'stderr': '', 'stderr_lines': [], 'stdout': '', 'stdout_lines': []} DEBUG testinfra:base.py:277 RUN CommandResult(command=b"ansible --tree /tmp/tmp76bl2e1h -i /home/deblintrake/Escritorio/SysTests/wazuh-qa/tests/system/provisioning/enrollment_cluster/inventory.yml -m service --args 'name=wazuh-agent state=stopped' wazuh-agent1", exit_status=0, stdout=b'wazuh-agent1 | CHANGED => {\n "changed": true,\n "name": "wazuh-agent",\n "state": "stopped"\n}\n', stderr=None) INFO testinfra:ansible.py:58 RUN Ansible('service', 'name=wazuh-agent state=stopped', {'check': False, 'become': False}): {'changed': True, 'name': 'wazuh-agent', 'state': 'stopped'} DEBUG testinfra:base.py:277 RUN CommandResult(command=b'ansible --tree /tmp/tmpuwa1c5yx -i /home/deblintrake/Escritorio/SysTests/wazuh-qa/tests/system/provisioning/enrollment_cluster/inventory.yml -m copy --args \'dest=/var/ossec/etc/client.keys content=\'"\'"\'\'"\'"\' force=yes\' wazuh-agent1', exit_status=0, stdout=b'wazuh-agent1 | CHANGED => {\n "changed": true,\n "checksum": "da39a3ee5e6b4b0d3255bfef95601890afd80709",\n "dest": "/var/ossec/etc/client.keys",\n "gid": 999,\n "group": "wazuh",\n "md5sum": "d41d8cd98f00b204e9800998ecf8427e",\n "mode": "0640",\n "owner": "root",\n "size": 0,\n "src": "/root/.ansible/tmp/ansible-tmp-1647356209.848435-248881-229920700883210/source",\n "state": "file",\n "uid": 0\n}\n', stderr=None) INFO testinfra:ansible.py:58 RUN Ansible('copy', "dest=/var/ossec/etc/client.keys content='' force=yes", {'check': False, 'become': False}): {'changed': True, 'checksum': 'da39a3ee5e6b4b0d3255bfef95601890afd80709', 'dest': '/var/ossec/etc/client.keys', 'gid': 999, 'group': 'wazuh', 'md5sum': 'd41d8cd98f00b204e9800998ecf8427e', 'mode': '0640', 'owner': 'root', 'size': 0, 'src': '/root/.ansible/tmp/ansible-tmp-1647356209.848435-248881-229920700883210/source', 'state': 'file', 'uid': 0} | |||
Passed | test_assign_agent_to_a_group.py::test_assign_agent_to_a_group[wazuh-worker1-disconnected-host_manager0-test_infra_agents0-test_infra_managers0] | 199.97 | |
-------------------------------Captured log setup------------------------------- DEBUG testinfra:base.py:277 RUN CommandResult(command=b'ansible --tree /tmp/tmp818x6zgi -i /home/deblintrake/Escritorio/SysTests/wazuh-qa/tests/system/provisioning/enrollment_cluster/inventory.yml -m copy --args \'dest=/var/ossec/logs/ossec.log content=\'"\'"\'\'"\'"\' force=yes\' wazuh-agent1', exit_status=0, stdout=b'wazuh-agent1 | CHANGED => {\n "changed": true,\n "checksum": "da39a3ee5e6b4b0d3255bfef95601890afd80709",\n "dest": "/var/ossec/logs/ossec.log",\n "gid": 999,\n "group": "wazuh",\n "md5sum": "d41d8cd98f00b204e9800998ecf8427e",\n "mode": "0660",\n "owner": "wazuh",\n "size": 0,\n "src": "/root/.ansible/tmp/ansible-tmp-1647356214.9688993-249289-159056310013942/source",\n "state": "file",\n "uid": 999\n}\n', stderr=None) INFO testinfra:ansible.py:58 RUN Ansible('copy', "dest=/var/ossec/logs/ossec.log content='' force=yes", {'check': False, 'become': False}): {'changed': True, 'checksum': 'da39a3ee5e6b4b0d3255bfef95601890afd80709', 'dest': '/var/ossec/logs/ossec.log', 'gid': 999, 'group': 'wazuh', 'md5sum': 'd41d8cd98f00b204e9800998ecf8427e', 'mode': '0660', 'owner': 'wazuh', 'size': 0, 'src': '/root/.ansible/tmp/ansible-tmp-1647356214.9688993-249289-159056310013942/source', 'state': 'file', 'uid': 999} DEBUG testinfra:base.py:277 RUN CommandResult(command=b'ansible --tree /tmp/tmpsmvcmk4q -i /home/deblintrake/Escritorio/SysTests/wazuh-qa/tests/system/provisioning/enrollment_cluster/inventory.yml -m copy --args \'dest=/var/ossec/logs/ossec.log content=\'"\'"\'\'"\'"\' force=yes\' wazuh-master', exit_status=0, stdout=b'wazuh-master | CHANGED => {\n "changed": true,\n "checksum": "da39a3ee5e6b4b0d3255bfef95601890afd80709",\n "dest": "/var/ossec/logs/ossec.log",\n "gid": 999,\n "group": "wazuh",\n "md5sum": "d41d8cd98f00b204e9800998ecf8427e",\n "mode": "0660",\n "owner": "wazuh",\n "size": 0,\n "src": "/root/.ansible/tmp/ansible-tmp-1647356220.1796818-249721-32612230009761/source",\n "state": "file",\n "uid": 999\n}\n', stderr=None) INFO testinfra:ansible.py:58 RUN Ansible('copy', "dest=/var/ossec/logs/ossec.log content='' force=yes", {'check': False, 'become': False}): {'changed': True, 'checksum': 'da39a3ee5e6b4b0d3255bfef95601890afd80709', 'dest': '/var/ossec/logs/ossec.log', 'gid': 999, 'group': 'wazuh', 'md5sum': 'd41d8cd98f00b204e9800998ecf8427e', 'mode': '0660', 'owner': 'wazuh', 'size': 0, 'src': '/root/.ansible/tmp/ansible-tmp-1647356220.1796818-249721-32612230009761/source', 'state': 'file', 'uid': 999} DEBUG testinfra:base.py:277 RUN CommandResult(command=b'ansible --tree /tmp/tmp4tsejtl5 -i /home/deblintrake/Escritorio/SysTests/wazuh-qa/tests/system/provisioning/enrollment_cluster/inventory.yml -m copy --args \'dest=/var/ossec/logs/cluster.log content=\'"\'"\'\'"\'"\' force=yes\' wazuh-master', exit_status=0, stdout=b'wazuh-master | SUCCESS => {\n "changed": false,\n "checksum": "da39a3ee5e6b4b0d3255bfef95601890afd80709",\n "dest": "/var/ossec/logs/cluster.log",\n "gid": 999,\n "group": "wazuh",\n "mode": "0660",\n "owner": "wazuh",\n "path": "/var/ossec/logs/cluster.log",\n "size": 0,\n "state": "file",\n "uid": 999\n}\n', stderr=None) INFO testinfra:ansible.py:58 RUN Ansible('copy', "dest=/var/ossec/logs/cluster.log content='' force=yes", {'check': False, 'become': False}): {'changed': False, 'checksum': 'da39a3ee5e6b4b0d3255bfef95601890afd80709', 'dest': '/var/ossec/logs/cluster.log', 'gid': 999, 'group': 'wazuh', 'mode': '0660', 'owner': 'wazuh', 'path': '/var/ossec/logs/cluster.log', 'size': 0, 'state': 'file', 'uid': 999} DEBUG testinfra:base.py:277 RUN CommandResult(command=b'ansible --tree /tmp/tmp7t585w_2 -i /home/deblintrake/Escritorio/SysTests/wazuh-qa/tests/system/provisioning/enrollment_cluster/inventory.yml -m copy --args \'dest=/var/ossec/logs/ossec.log content=\'"\'"\'\'"\'"\' force=yes\' wazuh-worker1', exit_status=0, stdout=b'wazuh-worker1 | CHANGED => {\n "changed": true,\n "checksum": "da39a3ee5e6b4b0d3255bfef95601890afd80709",\n "dest": "/var/ossec/logs/ossec.log",\n "gid": 999,\n "group": "wazuh",\n "md5sum": "d41d8cd98f00b204e9800998ecf8427e",\n "mode": "0660",\n "owner": "wazuh",\n "size": 0,\n "src": "/root/.ansible/tmp/ansible-tmp-1647356229.4854198-250479-54564424136463/source",\n "state": "file",\n "uid": 999\n}\n', stderr=None) INFO testinfra:ansible.py:58 RUN Ansible('copy', "dest=/var/ossec/logs/ossec.log content='' force=yes", {'check': False, 'become': False}): {'changed': True, 'checksum': 'da39a3ee5e6b4b0d3255bfef95601890afd80709', 'dest': '/var/ossec/logs/ossec.log', 'gid': 999, 'group': 'wazuh', 'md5sum': 'd41d8cd98f00b204e9800998ecf8427e', 'mode': '0660', 'owner': 'wazuh', 'size': 0, 'src': '/root/.ansible/tmp/ansible-tmp-1647356229.4854198-250479-54564424136463/source', 'state': 'file', 'uid': 999} DEBUG testinfra:base.py:277 RUN CommandResult(command=b'ansible --tree /tmp/tmpg4s_z26f -i /home/deblintrake/Escritorio/SysTests/wazuh-qa/tests/system/provisioning/enrollment_cluster/inventory.yml -m copy --args \'dest=/var/ossec/logs/cluster.log content=\'"\'"\'\'"\'"\' force=yes\' wazuh-worker1', exit_status=0, stdout=b'wazuh-worker1 | SUCCESS => {\n "changed": false,\n "checksum": "da39a3ee5e6b4b0d3255bfef95601890afd80709",\n "dest": "/var/ossec/logs/cluster.log",\n "gid": 999,\n "group": "wazuh",\n "mode": "0660",\n "owner": "wazuh",\n "path": "/var/ossec/logs/cluster.log",\n "size": 0,\n "state": "file",\n "uid": 999\n}\n', stderr=None) INFO testinfra:ansible.py:58 RUN Ansible('copy', "dest=/var/ossec/logs/cluster.log content='' force=yes", {'check': False, 'become': False}): {'changed': False, 'checksum': 'da39a3ee5e6b4b0d3255bfef95601890afd80709', 'dest': '/var/ossec/logs/cluster.log', 'gid': 999, 'group': 'wazuh', 'mode': '0660', 'owner': 'wazuh', 'path': '/var/ossec/logs/cluster.log', 'size': 0, 'state': 'file', 'uid': 999} DEBUG testinfra:base.py:277 RUN CommandResult(command=b'ansible --tree /tmp/tmpkvadqywx -i /home/deblintrake/Escritorio/SysTests/wazuh-qa/tests/system/provisioning/enrollment_cluster/inventory.yml -m copy --args \'dest=/var/ossec/logs/ossec.log content=\'"\'"\'\'"\'"\' force=yes\' wazuh-worker2', exit_status=0, stdout=b'wazuh-worker2 | CHANGED => {\n "changed": true,\n "checksum": "da39a3ee5e6b4b0d3255bfef95601890afd80709",\n "dest": "/var/ossec/logs/ossec.log",\n "gid": 999,\n "group": "wazuh",\n "md5sum": "d41d8cd98f00b204e9800998ecf8427e",\n "mode": "0660",\n "owner": "wazuh",\n "size": 0,\n "src": "/root/.ansible/tmp/ansible-tmp-1647356239.4797542-251237-241145074934008/source",\n "state": "file",\n "uid": 999\n}\n', stderr=None) INFO testinfra:ansible.py:58 RUN Ansible('copy', "dest=/var/ossec/logs/ossec.log content='' force=yes", {'check': False, 'become': False}): {'changed': True, 'checksum': 'da39a3ee5e6b4b0d3255bfef95601890afd80709', 'dest': '/var/ossec/logs/ossec.log', 'gid': 999, 'group': 'wazuh', 'md5sum': 'd41d8cd98f00b204e9800998ecf8427e', 'mode': '0660', 'owner': 'wazuh', 'size': 0, 'src': '/root/.ansible/tmp/ansible-tmp-1647356239.4797542-251237-241145074934008/source', 'state': 'file', 'uid': 999} DEBUG testinfra:base.py:277 RUN CommandResult(command=b'ansible --tree /tmp/tmpq1sgfun8 -i /home/deblintrake/Escritorio/SysTests/wazuh-qa/tests/system/provisioning/enrollment_cluster/inventory.yml -m copy --args \'dest=/var/ossec/logs/cluster.log content=\'"\'"\'\'"\'"\' force=yes\' wazuh-worker2', exit_status=0, stdout=b'wazuh-worker2 | SUCCESS => {\n "changed": false,\n "checksum": "da39a3ee5e6b4b0d3255bfef95601890afd80709",\n "dest": "/var/ossec/logs/cluster.log",\n "gid": 999,\n "group": "wazuh",\n "mode": "0660",\n "owner": "wazuh",\n "path": "/var/ossec/logs/cluster.log",\n "size": 0,\n "state": "file",\n "uid": 999\n}\n', stderr=None) INFO testinfra:ansible.py:58 RUN Ansible('copy', "dest=/var/ossec/logs/cluster.log content='' force=yes", {'check': False, 'become': False}): {'changed': False, 'checksum': 'da39a3ee5e6b4b0d3255bfef95601890afd80709', 'dest': '/var/ossec/logs/cluster.log', 'gid': 999, 'group': 'wazuh', 'mode': '0660', 'owner': 'wazuh', 'path': '/var/ossec/logs/cluster.log', 'size': 0, 'state': 'file', 'uid': 999} -------------------------------Captured log call-------------------------------- DEBUG testinfra:base.py:277 RUN CommandResult(command=b"ansible --tree /tmp/tmpti17oruq -i /home/deblintrake/Escritorio/SysTests/wazuh-qa/tests/system/provisioning/enrollment_cluster/inventory.yml -m command --args 'hostname -i' wazuh-agent1", exit_status=0, stdout=b'wazuh-agent1 | CHANGED | rc=0 >>\n172.18.0.6\n', stderr=None) INFO testinfra:ansible.py:58 RUN Ansible('command', 'hostname -i', {'check': False, 'become': False}): {'changed': True, 'cmd': ['hostname', '-i'], 'delta': '0:00:01.126726', 'end': '2022-03-15 15:57:31.052932', 'msg': '', 'rc': 0, 'start': '2022-03-15 15:57:29.926206', 'stderr': '', 'stderr_lines': [], 'stdout': '172.18.0.6', 'stdout_lines': ['172.18.0.6']} DEBUG testinfra:base.py:277 RUN CommandResult(command=b"ansible --tree /tmp/tmpo4o1a8rf -i /home/deblintrake/Escritorio/SysTests/wazuh-qa/tests/system/provisioning/enrollment_cluster/inventory.yml -m command --args 'hostname -i' wazuh-worker1", exit_status=0, stdout=b'wazuh-worker1 | CHANGED | rc=0 >>\n172.18.0.3\n', stderr=None) INFO testinfra:ansible.py:58 RUN Ansible('command', 'hostname -i', {'check': False, 'become': False}): {'changed': True, 'cmd': ['hostname', '-i'], 'delta': '0:00:01.121475', 'end': '2022-03-15 15:57:34.181426', 'msg': '', 'rc': 0, 'start': '2022-03-15 15:57:33.059951', 'stderr': '', 'stderr_lines': [], 'stdout': '172.18.0.3', 'stdout_lines': ['172.18.0.3']} DEBUG testinfra:base.py:277 RUN CommandResult(command=b'ansible --tree /tmp/tmpxeyxl041 -i /home/deblintrake/Escritorio/SysTests/wazuh-qa/tests/system/provisioning/enrollment_cluster/inventory.yml -m replace --args \'path=/var/ossec/etc/ossec.conf regexp=\'"\'"\'<address>[\\s\\S]+</address>\'"\'"\' replace=\'"\'"\'<address>172.18.0.3</address>\'"\'"\'\' wazuh-agent1', exit_status=0, stdout=b'wazuh-agent1 | SUCCESS => {\n "changed": false,\n "msg": ""\n}\n', stderr=None) INFO testinfra:ansible.py:58 RUN Ansible('replace', "path=/var/ossec/etc/ossec.conf regexp='<address>[\\s\\S]+</address>' replace='<address>172.18.0.3</address>'", {'check': False, 'become': False}): {'changed': False, 'msg': ''} DEBUG testinfra:base.py:277 RUN CommandResult(command=b"ansible --tree /tmp/tmpghjbzype -i /home/deblintrake/Escritorio/SysTests/wazuh-qa/tests/system/provisioning/enrollment_cluster/inventory.yml -m command --args '/var/ossec/bin/agent-auth -m 172.18.0.3 -A Agent-1647356251 -I 172.18.0.6' wazuh-agent1", exit_status=0, stdout=b'wazuh-agent1 | CHANGED | rc=0 >>\n2022/03/15 15:57:39 agent-auth: INFO: Started (pid: 17603).\n2022/03/15 15:57:39 agent-auth: INFO: Requesting a key from server: 172.18.0.3\n2022/03/15 15:57:39 agent-auth: INFO: No authentication password provided\n2022/03/15 15:57:39 agent-auth: INFO: Using agent name as: Agent-1647356251\n2022/03/15 15:57:39 agent-auth: INFO: Waiting for server reply\n2022/03/15 15:57:39 agent-auth: INFO: Valid key received\n', stderr=None) INFO testinfra:ansible.py:58 RUN Ansible('command', '/var/ossec/bin/agent-auth -m 172.18.0.3 -A Agent-1647356251 -I 172.18.0.6', {'check': False, 'become': False}): {'changed': True, 'cmd': ['/var/ossec/bin/agent-auth', '-m', '172.18.0.3', '-A', 'Agent-1647356251', '-I', '172.18.0.6'], 'delta': '0:00:01.036050', 'end': '2022-03-15 15:57:39.274693', 'msg': '', 'rc': 0, 'start': '2022-03-15 15:57:38.238643', 'stderr': '2022/03/15 15:57:39 agent-auth: INFO: Started (pid: 17603).\n' '2022/03/15 15:57:39 agent-auth: INFO: Requesting a key from ' 'server: 172.18.0.3\n' '2022/03/15 15:57:39 agent-auth: INFO: No authentication password ' 'provided\n' '2022/03/15 15:57:39 agent-auth: INFO: Using agent name as: ' 'Agent-1647356251\n' '2022/03/15 15:57:39 agent-auth: INFO: Waiting for server reply\n' '2022/03/15 15:57:39 agent-auth: INFO: Valid key received', 'stderr_lines': ['2022/03/15 15:57:39 agent-auth: INFO: Started (pid: 17603).', '2022/03/15 15:57:39 agent-auth: INFO: Requesting a key from ' 'server: 172.18.0.3', '2022/03/15 15:57:39 agent-auth: INFO: No authentication ' 'password provided', '2022/03/15 15:57:39 agent-auth: INFO: Using agent name as: ' 'Agent-1647356251', '2022/03/15 15:57:39 agent-auth: INFO: Waiting for server ' 'reply', '2022/03/15 15:57:39 agent-auth: INFO: Valid key received'], 'stdout': '', 'stdout_lines': []} DEBUG testinfra:base.py:277 RUN CommandResult(command=b"ansible --tree /tmp/tmppstmxqco -i /home/deblintrake/Escritorio/SysTests/wazuh-qa/tests/system/provisioning/enrollment_cluster/inventory.yml -m command --args 'cut -c 1-3 /var/ossec/etc/client.keys' wazuh-agent1", exit_status=0, stdout=b'wazuh-agent1 | CHANGED | rc=0 >>\n008\n', stderr=None) INFO testinfra:ansible.py:58 RUN Ansible('command', 'cut -c 1-3 /var/ossec/etc/client.keys', {'check': False, 'become': False}): {'changed': True, 'cmd': ['cut', '-c', '1-3', '/var/ossec/etc/client.keys'], 'delta': '0:00:00.891959', 'end': '2022-03-15 15:57:42.198503', 'msg': '', 'rc': 0, 'start': '2022-03-15 15:57:41.306544', 'stderr': '', 'stderr_lines': [], 'stdout': '008', 'stdout_lines': ['008']} DEBUG testinfra:base.py:277 RUN CommandResult(command=b"ansible --tree /tmp/tmpt8eivwe5 -i /home/deblintrake/Escritorio/SysTests/wazuh-qa/tests/system/provisioning/enrollment_cluster/inventory.yml -m command --args '/var/ossec/bin/agent_groups -s -i 008' wazuh-master", exit_status=0, stdout=b"wazuh-master | CHANGED | rc=0 >>\nThe agent 'Agent-1647356251' with ID '008' belongs to groups: Null.\n", stderr=None) INFO testinfra:ansible.py:58 RUN Ansible('command', '/var/ossec/bin/agent_groups -s -i 008', {'check': False, 'become': False}): {'changed': True, 'cmd': ['/var/ossec/bin/agent_groups', '-s', '-i', '008'], 'delta': '0:00:02.488817', 'end': '2022-03-15 15:57:46.973017', 'msg': '', 'rc': 0, 'start': '2022-03-15 15:57:44.484200', 'stderr': '', 'stderr_lines': [], 'stdout': "The agent 'Agent-1647356251' with ID '008' belongs to groups: " 'Null.', 'stdout_lines': ["The agent 'Agent-1647356251' with ID '008' belongs to " 'groups: Null.']} DEBUG testinfra:base.py:277 RUN CommandResult(command=b"ansible --tree /tmp/tmp1b1naijf -i /home/deblintrake/Escritorio/SysTests/wazuh-qa/tests/system/provisioning/enrollment_cluster/inventory.yml -m command --args '/var/ossec/bin/agent_groups -s -i 008' wazuh-worker1", exit_status=0, stdout=b"wazuh-worker1 | CHANGED | rc=0 >>\nThe agent 'Agent-1647356251' with ID '008' belongs to groups: Null.\n", stderr=None) INFO testinfra:ansible.py:58 RUN Ansible('command', '/var/ossec/bin/agent_groups -s -i 008', {'check': False, 'become': False}): {'changed': True, 'cmd': ['/var/ossec/bin/agent_groups', '-s', '-i', '008'], 'delta': '0:00:03.618109', 'end': '2022-03-15 15:57:52.889061', 'msg': '', 'rc': 0, 'start': '2022-03-15 15:57:49.270952', 'stderr': '', 'stderr_lines': [], 'stdout': "The agent 'Agent-1647356251' with ID '008' belongs to groups: " 'Null.', 'stdout_lines': ["The agent 'Agent-1647356251' with ID '008' belongs to " 'groups: Null.']} DEBUG testinfra:base.py:277 RUN CommandResult(command=b"ansible --tree /tmp/tmpetvwkpdg -i /home/deblintrake/Escritorio/SysTests/wazuh-qa/tests/system/provisioning/enrollment_cluster/inventory.yml -m command --args '/var/ossec/bin/agent_groups -s -i 008' wazuh-worker2", exit_status=0, stdout=b"wazuh-worker2 | CHANGED | rc=0 >>\nThe agent 'Agent-1647356251' with ID '008' belongs to groups: Null.\n", stderr=None) INFO testinfra:ansible.py:58 RUN Ansible('command', '/var/ossec/bin/agent_groups -s -i 008', {'check': False, 'become': False}): {'changed': True, 'cmd': ['/var/ossec/bin/agent_groups', '-s', '-i', '008'], 'delta': '0:00:03.089729', 'end': '2022-03-15 15:57:57.981319', 'msg': '', 'rc': 0, 'start': '2022-03-15 15:57:54.891590', 'stderr': '', 'stderr_lines': [], 'stdout': "The agent 'Agent-1647356251' with ID '008' belongs to groups: " 'Null.', 'stdout_lines': ["The agent 'Agent-1647356251' with ID '008' belongs to " 'groups: Null.']} DEBUG testinfra:base.py:277 RUN CommandResult(command=b"docker exec wazuh-agent1 /bin/sh -c 'cat -- /var/ossec/etc/client.keys'", exit_status=0, stdout=b'008 Agent-1647356251 172.18.0.6 c764a4259df289ee5f0b68e4de5c19b2f5d2a31b20808c571c37a740b900e069\n', stderr=None) DEBUG testinfra:base.py:277 RUN CommandResult(command=b"ansible --tree /tmp/tmpu55pa66b -i /home/deblintrake/Escritorio/SysTests/wazuh-qa/tests/system/provisioning/enrollment_cluster/inventory.yml -m command --args 'service wazuh-agent restart' wazuh-agent1", exit_status=0, stdout=b'wazuh-agent1 | CHANGED | rc=0 >>\nwazuh-modulesd not running...\nwazuh-logcollector not running...\nwazuh-syscheckd not running...\nwazuh-agentd not running...\nwazuh-execd not running...\nWazuh v4.4.0 Stopped\nStarting Wazuh v4.4.0...\nStarted wazuh-execd...\nStarted wazuh-agentd...\nStarted wazuh-syscheckd...\nStarted wazuh-logcollector...\nStarted wazuh-modulesd...\nCompleted.2022/03/15 15:58:01 wazuh-agentd[17760] debug_op.c:70 at _log(): DEBUG: Logging module auto-initialized\n2022/03/15 15:58:01 wazuh-agentd[17760] main.c:139 at main(): DEBUG: Wazuh home directory: /var/ossec\n2022/03/15 15:58:01 wazuh-agentd[17760] main.c:141 at main(): DEBUG: Started (pid: 17760).\n2022/03/15 15:58:01 wazuh-agentd[17760] agent_op.c:219 at os_read_agent_profile(): DEBUG: Calling os_read_agent_profile().\n2022/03/15 15:58:01 wazuh-agentd[17760] agent_op.c:238 at os_read_agent_profile(): DEBUG: os_read_agent_profile() = [debian, debian10]\n2022/03/15 15:58:01 wazuh-agentd[17760] config.c:416 at ReadConfig(): DEBUG: agent_config element does not have any attributes.\n2022/03/15 15:58:01 wazuh-agentd[17760] agent_op.c:219 at os_read_agent_profile(): DEBUG: Calling os_read_agent_profile().\n2022/03/15 15:58:01 wazuh-agentd[17760] agent_op.c:238 at os_read_agent_profile(): DEBUG: os_read_agent_profile() = [debian, debian10]\n2022/03/15 15:58:01 wazuh-agentd[17760] config.c:416 at ReadConfig(): DEBUG: agent_config element does not have any attributes.\n2022/03/15 15:58:02 wazuh-agentd[17783] debug_op.c:70 at _log(): DEBUG: Logging module auto-initialized\n2022/03/15 15:58:02 wazuh-agentd[17783] main.c:139 at main(): DEBUG: Wazuh home directory: /var/ossec\n2022/03/15 15:58:02 wazuh-agentd[17783] main.c:141 at main(): DEBUG: Started (pid: 17783).\n2022/03/15 15:58:02 wazuh-agentd[17783] agent_op.c:219 at os_read_agent_profile(): DEBUG: Calling os_read_agent_profile().\n2022/03/15 15:58:02 wazuh-agentd[17783] agent_op.c:238 at os_read_agent_profile(): DEBUG: os_read_agent_profile() = [debian, debian10]\n2022/03/15 15:58:02 wazuh-agentd[17783] config.c:416 at ReadConfig(): DEBUG: agent_config element does not have any attributes.\n2022/03/15 15:58:02 wazuh-agentd[17783] agent_op.c:219 at os_read_agent_profile(): DEBUG: Calling os_read_agent_profile().\n2022/03/15 15:58:02 wazuh-agentd[17783] agent_op.c:238 at os_read_agent_profile(): DEBUG: os_read_agent_profile() = [debian, debian10]\n2022/03/15 15:58:02 wazuh-agentd[17783] config.c:416 at ReadConfig(): DEBUG: agent_config element does not have any attributes.\n', stderr=None) INFO testinfra:ansible.py:58 RUN Ansible('command', 'service wazuh-agent restart', {'check': False, 'become': False}): {'changed': True, 'cmd': ['service', 'wazuh-agent', 'restart'], 'delta': '0:00:08.370110', 'end': '2022-03-15 15:58:08.479721', 'msg': '', 'rc': 0, 'start': '2022-03-15 15:58:00.109611', 'stderr': '2022/03/15 15:58:01 wazuh-agentd[17760] debug_op.c:70 at _log(): ' 'DEBUG: Logging module auto-initialized\n' '2022/03/15 15:58:01 wazuh-agentd[17760] main.c:139 at main(): ' 'DEBUG: Wazuh home directory: /var/ossec\n' '2022/03/15 15:58:01 wazuh-agentd[17760] main.c:141 at main(): ' 'DEBUG: Started (pid: 17760).\n' '2022/03/15 15:58:01 wazuh-agentd[17760] agent_op.c:219 at ' 'os_read_agent_profile(): DEBUG: Calling os_read_agent_profile().\n' '2022/03/15 15:58:01 wazuh-agentd[17760] agent_op.c:238 at ' 'os_read_agent_profile(): DEBUG: os_read_agent_profile() = [debian, ' 'debian10]\n' '2022/03/15 15:58:01 wazuh-agentd[17760] config.c:416 at ' 'ReadConfig(): DEBUG: agent_config element does not have any ' 'attributes.\n' '2022/03/15 15:58:01 wazuh-agentd[17760] agent_op.c:219 at ' 'os_read_agent_profile(): DEBUG: Calling os_read_agent_profile().\n' '2022/03/15 15:58:01 wazuh-agentd[17760] agent_op.c:238 at ' 'os_read_agent_profile(): DEBUG: os_read_agent_profile() = [debian, ' 'debian10]\n' '2022/03/15 15:58:01 wazuh-agentd[17760] config.c:416 at ' 'ReadConfig(): DEBUG: agent_config element does not have any ' 'attributes.\n' '2022/03/15 15:58:02 wazuh-agentd[17783] debug_op.c:70 at _log(): ' 'DEBUG: Logging module auto-initialized\n' '2022/03/15 15:58:02 wazuh-agentd[17783] main.c:139 at main(): ' 'DEBUG: Wazuh home directory: /var/ossec\n' '2022/03/15 15:58:02 wazuh-agentd[17783] main.c:141 at main(): ' 'DEBUG: Started (pid: 17783).\n' '2022/03/15 15:58:02 wazuh-agentd[17783] agent_op.c:219 at ' 'os_read_agent_profile(): DEBUG: Calling os_read_agent_profile().\n' '2022/03/15 15:58:02 wazuh-agentd[17783] agent_op.c:238 at ' 'os_read_agent_profile(): DEBUG: os_read_agent_profile() = [debian, ' 'debian10]\n' '2022/03/15 15:58:02 wazuh-agentd[17783] config.c:416 at ' 'ReadConfig(): DEBUG: agent_config element does not have any ' 'attributes.\n' '2022/03/15 15:58:02 wazuh-agentd[17783] agent_op.c:219 at ' 'os_read_agent_profile(): DEBUG: Calling os_read_agent_profile().\n' '2022/03/15 15:58:02 wazuh-agentd[17783] agent_op.c:238 at ' 'os_read_agent_profile(): DEBUG: os_read_agent_profile() = [debian, ' 'debian10]\n' '2022/03/15 15:58:02 wazuh-agentd[17783] config.c:416 at ' 'ReadConfig(): DEBUG: agent_config element does not have any ' 'attributes.', 'stderr_lines': ['2022/03/15 15:58:01 wazuh-agentd[17760] debug_op.c:70 at ' '_log(): DEBUG: Logging module auto-initialized', '2022/03/15 15:58:01 wazuh-agentd[17760] main.c:139 at ' 'main(): DEBUG: Wazuh home directory: /var/ossec', '2022/03/15 15:58:01 wazuh-agentd[17760] main.c:141 at ' 'main(): DEBUG: Started (pid: 17760).', '2022/03/15 15:58:01 wazuh-agentd[17760] agent_op.c:219 at ' 'os_read_agent_profile(): DEBUG: Calling ' 'os_read_agent_profile().', '2022/03/15 15:58:01 wazuh-agentd[17760] agent_op.c:238 at ' 'os_read_agent_profile(): DEBUG: os_read_agent_profile() = ' '[debian, debian10]', '2022/03/15 15:58:01 wazuh-agentd[17760] config.c:416 at ' 'ReadConfig(): DEBUG: agent_config element does not have any ' 'attributes.', '2022/03/15 15:58:01 wazuh-agentd[17760] agent_op.c:219 at ' 'os_read_agent_profile(): DEBUG: Calling ' 'os_read_agent_profile().', '2022/03/15 15:58:01 wazuh-agentd[17760] agent_op.c:238 at ' 'os_read_agent_profile(): DEBUG: os_read_agent_profile() = ' '[debian, debian10]', '2022/03/15 15:58:01 wazuh-agentd[17760] config.c:416 at ' 'ReadConfig(): DEBUG: agent_config element does not have any ' 'attributes.', '2022/03/15 15:58:02 wazuh-agentd[17783] debug_op.c:70 at ' '_log(): DEBUG: Logging module auto-initialized', '2022/03/15 15:58:02 wazuh-agentd[17783] main.c:139 at ' 'main(): DEBUG: Wazuh home directory: /var/ossec', '2022/03/15 15:58:02 wazuh-agentd[17783] main.c:141 at ' 'main(): DEBUG: Started (pid: 17783).', '2022/03/15 15:58:02 wazuh-agentd[17783] agent_op.c:219 at ' 'os_read_agent_profile(): DEBUG: Calling ' 'os_read_agent_profile().', '2022/03/15 15:58:02 wazuh-agentd[17783] agent_op.c:238 at ' 'os_read_agent_profile(): DEBUG: os_read_agent_profile() = ' '[debian, debian10]', '2022/03/15 15:58:02 wazuh-agentd[17783] config.c:416 at ' 'ReadConfig(): DEBUG: agent_config element does not have any ' 'attributes.', '2022/03/15 15:58:02 wazuh-agentd[17783] agent_op.c:219 at ' 'os_read_agent_profile(): DEBUG: Calling ' 'os_read_agent_profile().', '2022/03/15 15:58:02 wazuh-agentd[17783] agent_op.c:238 at ' 'os_read_agent_profile(): DEBUG: os_read_agent_profile() = ' '[debian, debian10]', '2022/03/15 15:58:02 wazuh-agentd[17783] config.c:416 at ' 'ReadConfig(): DEBUG: agent_config element does not have any ' 'attributes.'], 'stdout': 'wazuh-modulesd not running...\n' 'wazuh-logcollector not running...\n' 'wazuh-syscheckd not running...\n' 'wazuh-agentd not running...\n' 'wazuh-execd not running...\n' 'Wazuh v4.4.0 Stopped\n' 'Starting Wazuh v4.4.0...\n' 'Started wazuh-execd...\n' 'Started wazuh-agentd...\n' 'Started wazuh-syscheckd...\n' 'Started wazuh-logcollector...\n' 'Started wazuh-modulesd...\n' 'Completed.', 'stdout_lines': ['wazuh-modulesd not running...', 'wazuh-logcollector not running...', 'wazuh-syscheckd not running...', 'wazuh-agentd not running...', 'wazuh-execd not running...', 'Wazuh v4.4.0 Stopped', 'Starting Wazuh v4.4.0...', 'Started wazuh-execd...', 'Started wazuh-agentd...', 'Started wazuh-syscheckd...', 'Started wazuh-logcollector...', 'Started wazuh-modulesd...', 'Completed.']} DEBUG testinfra:base.py:277 RUN CommandResult(command=b"ansible --tree /tmp/tmpicu86vyd -i /home/deblintrake/Escritorio/SysTests/wazuh-qa/tests/system/provisioning/enrollment_cluster/inventory.yml -m service --args 'name=wazuh-agent state=restarted' wazuh-agent1", exit_status=0, stdout=b'wazuh-agent1 | CHANGED => {\n "changed": true,\n "name": "wazuh-agent",\n "state": "started"\n}\n', stderr=None) INFO testinfra:ansible.py:58 RUN Ansible('service', 'name=wazuh-agent state=restarted', {'check': False, 'become': False}): {'changed': True, 'name': 'wazuh-agent', 'state': 'started'} DEBUG testinfra:base.py:277 RUN CommandResult(command=b"ansible --tree /tmp/tmp26bqi0be -i /home/deblintrake/Escritorio/SysTests/wazuh-qa/tests/system/provisioning/enrollment_cluster/inventory.yml -m command --args '/var/ossec/bin/cluster_control -a' wazuh-master", exit_status=0, stdout=b'wazuh-master | CHANGED | rc=0 >>\nID NAME IP STATUS VERSION NODE NAME \n000 wazuh-master 127.0.0.1 active Wazuh v4.4.0 wazuh-master \n008 Agent-1647356251 172.18.0.6 active Wazuh v4.4.0 wazuh-worker1 \n', stderr=None) INFO testinfra:ansible.py:58 RUN Ansible('command', '/var/ossec/bin/cluster_control -a', {'check': False, 'become': False}): {'changed': True, 'cmd': ['/var/ossec/bin/cluster_control', '-a'], 'delta': '0:00:01.495053', 'end': '2022-03-15 15:58:38.781919', 'msg': '', 'rc': 0, 'start': '2022-03-15 15:58:37.286866', 'stderr': '', 'stderr_lines': [], 'stdout': 'ID NAME IP STATUS VERSION NODE ' 'NAME \n' '000 wazuh-master 127.0.0.1 active Wazuh v4.4.0 ' 'wazuh-master \n' '008 Agent-1647356251 172.18.0.6 active Wazuh v4.4.0 ' 'wazuh-worker1 ', 'stdout_lines': ['ID NAME IP STATUS VERSION ' 'NODE NAME ', '000 wazuh-master 127.0.0.1 active Wazuh v4.4.0 ' 'wazuh-master ', '008 Agent-1647356251 172.18.0.6 active Wazuh v4.4.0 ' 'wazuh-worker1 ']} DEBUG testinfra:base.py:277 RUN CommandResult(command=b"ansible --tree /tmp/tmplw_4x18c -i /home/deblintrake/Escritorio/SysTests/wazuh-qa/tests/system/provisioning/enrollment_cluster/inventory.yml -m command --args '/var/ossec/bin/cluster_control -a' wazuh-worker1", exit_status=0, stdout=b'wazuh-worker1 | CHANGED | rc=0 >>\nID NAME IP STATUS VERSION NODE NAME \n000 wazuh-master 127.0.0.1 active Wazuh v4.4.0 wazuh-master \n008 Agent-1647356251 172.18.0.6 active Wazuh v4.4.0 wazuh-worker1 \n', stderr=None) INFO testinfra:ansible.py:58 RUN Ansible('command', '/var/ossec/bin/cluster_control -a', {'check': False, 'become': False}): {'changed': True, 'cmd': ['/var/ossec/bin/cluster_control', '-a'], 'delta': '0:00:00.901204', 'end': '2022-03-15 15:58:41.668196', 'msg': '', 'rc': 0, 'start': '2022-03-15 15:58:40.766992', 'stderr': '', 'stderr_lines': [], 'stdout': 'ID NAME IP STATUS VERSION NODE ' 'NAME \n' '000 wazuh-master 127.0.0.1 active Wazuh v4.4.0 ' 'wazuh-master \n' '008 Agent-1647356251 172.18.0.6 active Wazuh v4.4.0 ' 'wazuh-worker1 ', 'stdout_lines': ['ID NAME IP STATUS VERSION ' 'NODE NAME ', '000 wazuh-master 127.0.0.1 active Wazuh v4.4.0 ' 'wazuh-master ', '008 Agent-1647356251 172.18.0.6 active Wazuh v4.4.0 ' 'wazuh-worker1 ']} DEBUG testinfra:base.py:277 RUN CommandResult(command=b"ansible --tree /tmp/tmpj38vbt_w -i /home/deblintrake/Escritorio/SysTests/wazuh-qa/tests/system/provisioning/enrollment_cluster/inventory.yml -m command --args '/var/ossec/bin/cluster_control -a' wazuh-worker2", exit_status=0, stdout=b'wazuh-worker2 | CHANGED | rc=0 >>\nID NAME IP STATUS VERSION NODE NAME \n000 wazuh-master 127.0.0.1 active Wazuh v4.4.0 wazuh-master \n008 Agent-1647356251 172.18.0.6 active Wazuh v4.4.0 wazuh-worker1 \n', stderr=None) INFO testinfra:ansible.py:58 RUN Ansible('command', '/var/ossec/bin/cluster_control -a', {'check': False, 'become': False}): {'changed': True, 'cmd': ['/var/ossec/bin/cluster_control', '-a'], 'delta': '0:00:00.920131', 'end': '2022-03-15 15:58:44.800624', 'msg': '', 'rc': 0, 'start': '2022-03-15 15:58:43.880493', 'stderr': '', 'stderr_lines': [], 'stdout': 'ID NAME IP STATUS VERSION NODE ' 'NAME \n' '000 wazuh-master 127.0.0.1 active Wazuh v4.4.0 ' 'wazuh-master \n' '008 Agent-1647356251 172.18.0.6 active Wazuh v4.4.0 ' 'wazuh-worker1 ', 'stdout_lines': ['ID NAME IP STATUS VERSION ' 'NODE NAME ', '000 wazuh-master 127.0.0.1 active Wazuh v4.4.0 ' 'wazuh-master ', '008 Agent-1647356251 172.18.0.6 active Wazuh v4.4.0 ' 'wazuh-worker1 ']} DEBUG testinfra:base.py:277 RUN CommandResult(command=b"ansible --tree /tmp/tmpc4wbluj7 -i /home/deblintrake/Escritorio/SysTests/wazuh-qa/tests/system/provisioning/enrollment_cluster/inventory.yml -m service --args 'name=wazuh-agent state=stopped' wazuh-agent1", exit_status=0, stdout=b'wazuh-agent1 | CHANGED => {\n "changed": true,\n "name": "wazuh-agent",\n "state": "stopped"\n}\n', stderr=None) INFO testinfra:ansible.py:58 RUN Ansible('service', 'name=wazuh-agent state=stopped', {'check': False, 'become': False}): {'changed': True, 'name': 'wazuh-agent', 'state': 'stopped'} DEBUG testinfra:base.py:277 RUN CommandResult(command=b"ansible --tree /tmp/tmpt0fz1y8b -i /home/deblintrake/Escritorio/SysTests/wazuh-qa/tests/system/provisioning/enrollment_cluster/inventory.yml -m command --args '/var/ossec/bin/cluster_control -a' wazuh-master", exit_status=0, stdout=b'wazuh-master | CHANGED | rc=0 >>\nID NAME IP STATUS VERSION NODE NAME \n000 wazuh-master 127.0.0.1 active Wazuh v4.4.0 wazuh-master \n008 Agent-1647356251 172.18.0.6 disconnected Wazuh v4.4.0 wazuh-worker1 \n', stderr=None) INFO testinfra:ansible.py:58 RUN Ansible('command', '/var/ossec/bin/cluster_control -a', {'check': False, 'become': False}): {'changed': True, 'cmd': ['/var/ossec/bin/cluster_control', '-a'], 'delta': '0:00:01.146926', 'end': '2022-03-15 15:59:06.293118', 'msg': '', 'rc': 0, 'start': '2022-03-15 15:59:05.146192', 'stderr': '', 'stderr_lines': [], 'stdout': 'ID NAME IP STATUS VERSION ' 'NODE NAME \n' '000 wazuh-master 127.0.0.1 active Wazuh v4.4.0 ' 'wazuh-master \n' '008 Agent-1647356251 172.18.0.6 disconnected Wazuh v4.4.0 ' 'wazuh-worker1 ', 'stdout_lines': ['ID NAME IP STATUS ' 'VERSION NODE NAME ', '000 wazuh-master 127.0.0.1 active Wazuh ' 'v4.4.0 wazuh-master ', '008 Agent-1647356251 172.18.0.6 disconnected Wazuh ' 'v4.4.0 wazuh-worker1 ']} DEBUG testinfra:base.py:277 RUN CommandResult(command=b"ansible --tree /tmp/tmp5epofpcb -i /home/deblintrake/Escritorio/SysTests/wazuh-qa/tests/system/provisioning/enrollment_cluster/inventory.yml -m command --args '/var/ossec/bin/cluster_control -a' wazuh-worker1", exit_status=0, stdout=b'wazuh-worker1 | CHANGED | rc=0 >>\nID NAME IP STATUS VERSION NODE NAME \n000 wazuh-master 127.0.0.1 active Wazuh v4.4.0 wazuh-master \n008 Agent-1647356251 172.18.0.6 disconnected Wazuh v4.4.0 wazuh-worker1 \n', stderr=None) INFO testinfra:ansible.py:58 RUN Ansible('command', '/var/ossec/bin/cluster_control -a', {'check': False, 'become': False}): {'changed': True, 'cmd': ['/var/ossec/bin/cluster_control', '-a'], 'delta': '0:00:00.911344', 'end': '2022-03-15 15:59:09.281026', 'msg': '', 'rc': 0, 'start': '2022-03-15 15:59:08.369682', 'stderr': '', 'stderr_lines': [], 'stdout': 'ID NAME IP STATUS VERSION ' 'NODE NAME \n' '000 wazuh-master 127.0.0.1 active Wazuh v4.4.0 ' 'wazuh-master \n' '008 Agent-1647356251 172.18.0.6 disconnected Wazuh v4.4.0 ' 'wazuh-worker1 ', 'stdout_lines': ['ID NAME IP STATUS ' 'VERSION NODE NAME ', '000 wazuh-master 127.0.0.1 active Wazuh ' 'v4.4.0 wazuh-master ', '008 Agent-1647356251 172.18.0.6 disconnected Wazuh ' 'v4.4.0 wazuh-worker1 ']} DEBUG testinfra:base.py:277 RUN CommandResult(command=b"ansible --tree /tmp/tmpzzlfyald -i /home/deblintrake/Escritorio/SysTests/wazuh-qa/tests/system/provisioning/enrollment_cluster/inventory.yml -m command --args '/var/ossec/bin/cluster_control -a' wazuh-worker2", exit_status=0, stdout=b'wazuh-worker2 | CHANGED | rc=0 >>\nID NAME IP STATUS VERSION NODE NAME \n000 wazuh-master 127.0.0.1 active Wazuh v4.4.0 wazuh-master \n008 Agent-1647356251 172.18.0.6 disconnected Wazuh v4.4.0 wazuh-worker1 \n', stderr=None) INFO testinfra:ansible.py:58 RUN Ansible('command', '/var/ossec/bin/cluster_control -a', {'check': False, 'become': False}): {'changed': True, 'cmd': ['/var/ossec/bin/cluster_control', '-a'], 'delta': '0:00:01.269036', 'end': '2022-03-15 15:59:12.987173', 'msg': '', 'rc': 0, 'start': '2022-03-15 15:59:11.718137', 'stderr': '', 'stderr_lines': [], 'stdout': 'ID NAME IP STATUS VERSION ' 'NODE NAME \n' '000 wazuh-master 127.0.0.1 active Wazuh v4.4.0 ' 'wazuh-master \n' '008 Agent-1647356251 172.18.0.6 disconnected Wazuh v4.4.0 ' 'wazuh-worker1 ', 'stdout_lines': ['ID NAME IP STATUS ' 'VERSION NODE NAME ', '000 wazuh-master 127.0.0.1 active Wazuh ' 'v4.4.0 wazuh-master ', '008 Agent-1647356251 172.18.0.6 disconnected Wazuh ' 'v4.4.0 wazuh-worker1 ']} DEBUG testinfra:base.py:277 RUN CommandResult(command=b"ansible --tree /tmp/tmp3o05vblx -i /home/deblintrake/Escritorio/SysTests/wazuh-qa/tests/system/provisioning/enrollment_cluster/inventory.yml -m command --args '/var/ossec/bin/agent_groups -q -a -g group_test' wazuh-master", exit_status=0, stdout=b"wazuh-master | CHANGED | rc=0 >>\nGroup 'group_test' created.\n", stderr=None) INFO testinfra:ansible.py:58 RUN Ansible('command', '/var/ossec/bin/agent_groups -q -a -g group_test', {'check': False, 'become': False}): {'changed': True, 'cmd': ['/var/ossec/bin/agent_groups', '-q', '-a', '-g', 'group_test'], 'delta': '0:00:02.517747', 'end': '2022-03-15 15:59:17.575843', 'msg': '', 'rc': 0, 'start': '2022-03-15 15:59:15.058096', 'stderr': '', 'stderr_lines': [], 'stdout': "Group 'group_test' created.", 'stdout_lines': ["Group 'group_test' created."]} DEBUG testinfra:base.py:277 RUN CommandResult(command=b"ansible --tree /tmp/tmpghbs1r7u -i /home/deblintrake/Escritorio/SysTests/wazuh-qa/tests/system/provisioning/enrollment_cluster/inventory.yml -m command --args '/var/ossec/bin/agent_groups -q -a -i 008 -g group_test' wazuh-master", exit_status=0, stdout=b"wazuh-master | CHANGED | rc=0 >>\nGroup '['group_test']' added to agent '['008']'.\n", stderr=None) INFO testinfra:ansible.py:58 RUN Ansible('command', '/var/ossec/bin/agent_groups -q -a -i 008 -g group_test', {'check': False, 'become': False}): {'changed': True, 'cmd': ['/var/ossec/bin/agent_groups', '-q', '-a', '-i', '008', '-g', 'group_test'], 'delta': '0:00:02.307028', 'end': '2022-03-15 15:59:22.259452', 'msg': '', 'rc': 0, 'start': '2022-03-15 15:59:19.952424', 'stderr': '', 'stderr_lines': [], 'stdout': "Group '['group_test']' added to agent '['008']'.", 'stdout_lines': ["Group '['group_test']' added to agent '['008']'."]} DEBUG testinfra:base.py:277 RUN CommandResult(command=b"ansible --tree /tmp/tmpxcnoggd6 -i /home/deblintrake/Escritorio/SysTests/wazuh-qa/tests/system/provisioning/enrollment_cluster/inventory.yml -m command --args '/var/ossec/bin/agent_groups -s -i 008' wazuh-master", exit_status=0, stdout=b"wazuh-master | CHANGED | rc=0 >>\nThe agent 'Agent-1647356251' with ID '008' belongs to groups: default, group_test.\n", stderr=None) INFO testinfra:ansible.py:58 RUN Ansible('command', '/var/ossec/bin/agent_groups -s -i 008', {'check': False, 'become': False}): {'changed': True, 'cmd': ['/var/ossec/bin/agent_groups', '-s', '-i', '008'], 'delta': '0:00:02.737751', 'end': '2022-03-15 15:59:37.482832', 'msg': '', 'rc': 0, 'start': '2022-03-15 15:59:34.745081', 'stderr': '', 'stderr_lines': [], 'stdout': "The agent 'Agent-1647356251' with ID '008' belongs to groups: " 'default, group_test.', 'stdout_lines': ["The agent 'Agent-1647356251' with ID '008' belongs to " 'groups: default, group_test.']} DEBUG testinfra:base.py:277 RUN CommandResult(command=b"ansible --tree /tmp/tmp7ouibn__ -i /home/deblintrake/Escritorio/SysTests/wazuh-qa/tests/system/provisioning/enrollment_cluster/inventory.yml -m command --args '/var/ossec/bin/agent_groups -s -i 008' wazuh-worker1", exit_status=0, stdout=b"wazuh-worker1 | CHANGED | rc=0 >>\nThe agent 'Agent-1647356251' with ID '008' belongs to groups: default, group_test.\n", stderr=None) INFO testinfra:ansible.py:58 RUN Ansible('command', '/var/ossec/bin/agent_groups -s -i 008', {'check': False, 'become': False}): {'changed': True, 'cmd': ['/var/ossec/bin/agent_groups', '-s', '-i', '008'], 'delta': '0:00:03.117921', 'end': '2022-03-15 15:59:42.688857', 'msg': '', 'rc': 0, 'start': '2022-03-15 15:59:39.570936', 'stderr': '', 'stderr_lines': [], 'stdout': "The agent 'Agent-1647356251' with ID '008' belongs to groups: " 'default, group_test.', 'stdout_lines': ["The agent 'Agent-1647356251' with ID '008' belongs to " 'groups: default, group_test.']} DEBUG testinfra:base.py:277 RUN CommandResult(command=b"ansible --tree /tmp/tmpxv2vu6ux -i /home/deblintrake/Escritorio/SysTests/wazuh-qa/tests/system/provisioning/enrollment_cluster/inventory.yml -m command --args '/var/ossec/bin/agent_groups -s -i 008' wazuh-worker2", exit_status=0, stdout=b"wazuh-worker2 | CHANGED | rc=0 >>\nThe agent 'Agent-1647356251' with ID '008' belongs to groups: default, group_test.\n", stderr=None) INFO testinfra:ansible.py:58 RUN Ansible('command', '/var/ossec/bin/agent_groups -s -i 008', {'check': False, 'become': False}): {'changed': True, 'cmd': ['/var/ossec/bin/agent_groups', '-s', '-i', '008'], 'delta': '0:00:03.314817', 'end': '2022-03-15 15:59:48.146104', 'msg': '', 'rc': 0, 'start': '2022-03-15 15:59:44.831287', 'stderr': '', 'stderr_lines': [], 'stdout': "The agent 'Agent-1647356251' with ID '008' belongs to groups: " 'default, group_test.', 'stdout_lines': ["The agent 'Agent-1647356251' with ID '008' belongs to " 'groups: default, group_test.']} DEBUG testinfra:base.py:277 RUN CommandResult(command=b"ansible --tree /tmp/tmp9nj0lnd6 -i /home/deblintrake/Escritorio/SysTests/wazuh-qa/tests/system/provisioning/enrollment_cluster/inventory.yml -m command --args '/var/ossec/bin/agent_groups -q -r -g group_test' wazuh-master", exit_status=0, stdout=b'wazuh-master | CHANGED | rc=0 >>\nGroup group_test removed.\nAffected agents: 008.\n', stderr=None) INFO testinfra:ansible.py:58 RUN Ansible('command', '/var/ossec/bin/agent_groups -q -r -g group_test', {'check': False, 'become': False}): {'changed': True, 'cmd': ['/var/ossec/bin/agent_groups', '-q', '-r', '-g', 'group_test'], 'delta': '0:00:03.569198', 'end': '2022-03-15 15:59:53.898948', 'msg': '', 'rc': 0, 'start': '2022-03-15 15:59:50.329750', 'stderr': '', 'stderr_lines': [], 'stdout': 'Group group_test removed.\nAffected agents: 008.', 'stdout_lines': ['Group group_test removed.', 'Affected agents: 008.']} -----------------------------Captured log teardown------------------------------ DEBUG testinfra:base.py:277 RUN CommandResult(command=b"ansible --tree /tmp/tmpvz5fe6p4 -i /home/deblintrake/Escritorio/SysTests/wazuh-qa/tests/system/provisioning/enrollment_cluster/inventory.yml -m command --args 'cut -c 1-3 /var/ossec/etc/client.keys' wazuh-master", exit_status=0, stdout=b'wazuh-master | CHANGED | rc=0 >>\n008\n', stderr=None) INFO testinfra:ansible.py:58 RUN Ansible('command', 'cut -c 1-3 /var/ossec/etc/client.keys', {'check': False, 'become': False}): {'changed': True, 'cmd': ['cut', '-c', '1-3', '/var/ossec/etc/client.keys'], 'delta': '0:00:00.653367', 'end': '2022-03-15 15:59:56.601925', 'msg': '', 'rc': 0, 'start': '2022-03-15 15:59:55.948558', 'stderr': '', 'stderr_lines': [], 'stdout': '008', 'stdout_lines': ['008']} DEBUG testinfra:base.py:277 RUN CommandResult(command=b"ansible --tree /tmp/tmp7l2da1ue -i /home/deblintrake/Escritorio/SysTests/wazuh-qa/tests/system/provisioning/enrollment_cluster/inventory.yml -m command --args '/var/ossec/bin/manage_agents -r 008' wazuh-master", exit_status=0, stdout=b"wazuh-master | CHANGED | rc=0 >>\n\n\n****************************************\n* Wazuh v4.4.0 Agent manager. *\n* The following options are available: *\n****************************************\n (A)dd an agent (A).\n (E)xtract key for an agent (E).\n (L)ist already added agents (L).\n (R)emove an agent (R).\n (Q)uit.\nChoose your action: A,E,L,R or Q: \nAvailable agents: \n ID: 008, Name: Agent-1647356251, IP: 172.18.0.6\nProvide the ID of the agent to be removed (or '\\q' to quit): 008\nConfirm deleting it?(y/n): y\nAgent '008' removed.\n\nmanage_agents: Exiting.\n", stderr=None) INFO testinfra:ansible.py:58 RUN Ansible('command', '/var/ossec/bin/manage_agents -r 008', {'check': False, 'become': False}): {'changed': True, 'cmd': ['/var/ossec/bin/manage_agents', '-r', '008'], 'delta': '0:00:00.477963', 'end': '2022-03-15 15:59:59.396981', 'msg': '', 'rc': 0, 'start': '2022-03-15 15:59:58.919018', 'stderr': '', 'stderr_lines': [], 'stdout': '\n' '\n' '****************************************\n' '* Wazuh v4.4.0 Agent manager. *\n' '* The following options are available: *\n' '****************************************\n' ' (A)dd an agent (A).\n' ' (E)xtract key for an agent (E).\n' ' (L)ist already added agents (L).\n' ' (R)emove an agent (R).\n' ' (Q)uit.\n' 'Choose your action: A,E,L,R or Q: \n' 'Available agents: \n' ' ID: 008, Name: Agent-1647356251, IP: 172.18.0.6\n' "Provide the ID of the agent to be removed (or '\\q' to quit): 008\n" 'Confirm deleting it?(y/n): y\n' "Agent '008' removed.\n" '\n' 'manage_agents: Exiting.', 'stdout_lines': ['', '', '****************************************', '* Wazuh v4.4.0 Agent manager. *', '* The following options are available: *', '****************************************', ' (A)dd an agent (A).', ' (E)xtract key for an agent (E).', ' (L)ist already added agents (L).', ' (R)emove an agent (R).', ' (Q)uit.', 'Choose your action: A,E,L,R or Q: ', 'Available agents: ', ' ID: 008, Name: Agent-1647356251, IP: 172.18.0.6', "Provide the ID of the agent to be removed (or '\\q' to " 'quit): 008', 'Confirm deleting it?(y/n): y', "Agent '008' removed.", '', 'manage_agents: Exiting.']} DEBUG testinfra:base.py:277 RUN CommandResult(command=b"ansible --tree /tmp/tmpbp1xg2mk -i /home/deblintrake/Escritorio/SysTests/wazuh-qa/tests/system/provisioning/enrollment_cluster/inventory.yml -m command --args 'cut -c 1-3 /var/ossec/etc/client.keys' wazuh-master", exit_status=0, stdout=b'wazuh-master | CHANGED | rc=0 >>\n\n', stderr=None) INFO testinfra:ansible.py:58 RUN Ansible('command', 'cut -c 1-3 /var/ossec/etc/client.keys', {'check': False, 'become': False}): {'changed': True, 'cmd': ['cut', '-c', '1-3', '/var/ossec/etc/client.keys'], 'delta': '0:00:01.100434', 'end': '2022-03-15 16:00:02.762777', 'msg': '', 'rc': 0, 'start': '2022-03-15 16:00:01.662343', 'stderr': '', 'stderr_lines': [], 'stdout': '', 'stdout_lines': []} DEBUG testinfra:base.py:277 RUN CommandResult(command=b"ansible --tree /tmp/tmp3qcqk9t3 -i /home/deblintrake/Escritorio/SysTests/wazuh-qa/tests/system/provisioning/enrollment_cluster/inventory.yml -m service --args 'name=wazuh-agent state=stopped' wazuh-agent1", exit_status=0, stdout=b'wazuh-agent1 | SUCCESS => {\n "changed": false,\n "name": "wazuh-agent",\n "state": "stopped"\n}\n', stderr=None) INFO testinfra:ansible.py:58 RUN Ansible('service', 'name=wazuh-agent state=stopped', {'check': False, 'become': False}): {'changed': False, 'name': 'wazuh-agent', 'state': 'stopped'} DEBUG testinfra:base.py:277 RUN CommandResult(command=b'ansible --tree /tmp/tmp3ir7n_3d -i /home/deblintrake/Escritorio/SysTests/wazuh-qa/tests/system/provisioning/enrollment_cluster/inventory.yml -m copy --args \'dest=/var/ossec/etc/client.keys content=\'"\'"\'\'"\'"\' force=yes\' wazuh-agent1', exit_status=0, stdout=b'wazuh-agent1 | CHANGED => {\n "changed": true,\n "checksum": "da39a3ee5e6b4b0d3255bfef95601890afd80709",\n "dest": "/var/ossec/etc/client.keys",\n "gid": 999,\n "group": "wazuh",\n "md5sum": "d41d8cd98f00b204e9800998ecf8427e",\n "mode": "0640",\n "owner": "root",\n "size": 0,\n "src": "/root/.ansible/tmp/ansible-tmp-1647356409.5997229-260862-261474623281150/source",\n "state": "file",\n "uid": 0\n}\n', stderr=None) INFO testinfra:ansible.py:58 RUN Ansible('copy', "dest=/var/ossec/etc/client.keys content='' force=yes", {'check': False, 'become': False}): {'changed': True, 'checksum': 'da39a3ee5e6b4b0d3255bfef95601890afd80709', 'dest': '/var/ossec/etc/client.keys', 'gid': 999, 'group': 'wazuh', 'md5sum': 'd41d8cd98f00b204e9800998ecf8427e', 'mode': '0640', 'owner': 'root', 'size': 0, 'src': '/root/.ansible/tmp/ansible-tmp-1647356409.5997229-260862-261474623281150/source', 'state': 'file', 'uid': 0} |