Report generated on 15-Mar-2022 at 12:15:36 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 763.67 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] | 172.01 | |
-------------------------------Captured log setup------------------------------- DEBUG testinfra:base.py:277 RUN CommandResult(command=b'ansible --tree /tmp/tmp2_t5hph8 -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-1647356573.7196653-261518-58271788754897/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-1647356573.7196653-261518-58271788754897/source', 'state': 'file', 'uid': 999} DEBUG testinfra:base.py:277 RUN CommandResult(command=b'ansible --tree /tmp/tmprdi8j98u -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-1647356579.1369653-261970-26550853342476/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-1647356579.1369653-261970-26550853342476/source', 'state': 'file', 'uid': 999} DEBUG testinfra:base.py:277 RUN CommandResult(command=b'ansible --tree /tmp/tmpib5nn4kp -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/tmp4mmwh6uy -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-1647356588.7435212-262742-42898365705612/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-1647356588.7435212-262742-42898365705612/source', 'state': 'file', 'uid': 999} DEBUG testinfra:base.py:277 RUN CommandResult(command=b'ansible --tree /tmp/tmph86cdbv7 -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/tmpvuy0shuc -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-1647356598.0434458-263494-276207846650490/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-1647356598.0434458-263494-276207846650490/source', 'state': 'file', 'uid': 999} DEBUG testinfra:base.py:277 RUN CommandResult(command=b'ansible --tree /tmp/tmp_d7fnse1 -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/tmpkj_cmjkf -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.500135', 'end': '2022-03-15 16:03:29.508737', 'msg': '', 'rc': 0, 'start': '2022-03-15 16:03:29.008602', '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/tmp43kn55h1 -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.988389', 'end': '2022-03-15 16:03:32.501202', 'msg': '', 'rc': 0, 'start': '2022-03-15 16:03:31.512813', '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/tmp9swqwtva -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/tmpkbnh_oen -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-1647356610 -I 172.18.0.6' wazuh-agent1", exit_status=0, stdout=b'wazuh-agent1 | CHANGED | rc=0 >>\n2022/03/15 16:03:37 agent-auth: INFO: Started (pid: 19894).\n2022/03/15 16:03:37 agent-auth: INFO: Requesting a key from server: 172.18.0.2\n2022/03/15 16:03:37 agent-auth: INFO: No authentication password provided\n2022/03/15 16:03:37 agent-auth: INFO: Using agent name as: Agent-1647356610\n2022/03/15 16:03:37 agent-auth: INFO: Waiting for server reply\n2022/03/15 16:03:37 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-1647356610 -I 172.18.0.6', {'check': False, 'become': False}): {'changed': True, 'cmd': ['/var/ossec/bin/agent-auth', '-m', '172.18.0.2', '-A', 'Agent-1647356610', '-I', '172.18.0.6'], 'delta': '0:00:01.022931', 'end': '2022-03-15 16:03:37.745560', 'msg': '', 'rc': 0, 'start': '2022-03-15 16:03:36.722629', 'stderr': '2022/03/15 16:03:37 agent-auth: INFO: Started (pid: 19894).\n' '2022/03/15 16:03:37 agent-auth: INFO: Requesting a key from ' 'server: 172.18.0.2\n' '2022/03/15 16:03:37 agent-auth: INFO: No authentication password ' 'provided\n' '2022/03/15 16:03:37 agent-auth: INFO: Using agent name as: ' 'Agent-1647356610\n' '2022/03/15 16:03:37 agent-auth: INFO: Waiting for server reply\n' '2022/03/15 16:03:37 agent-auth: INFO: Valid key received', 'stderr_lines': ['2022/03/15 16:03:37 agent-auth: INFO: Started (pid: 19894).', '2022/03/15 16:03:37 agent-auth: INFO: Requesting a key from ' 'server: 172.18.0.2', '2022/03/15 16:03:37 agent-auth: INFO: No authentication ' 'password provided', '2022/03/15 16:03:37 agent-auth: INFO: Using agent name as: ' 'Agent-1647356610', '2022/03/15 16:03:37 agent-auth: INFO: Waiting for server ' 'reply', '2022/03/15 16:03:37 agent-auth: INFO: Valid key received'], 'stdout': '', 'stdout_lines': []} DEBUG testinfra:base.py:277 RUN CommandResult(command=b"ansible --tree /tmp/tmpjy_t1hzm -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 >>\n009\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.468825', 'end': '2022-03-15 16:03:40.334279', 'msg': '', 'rc': 0, 'start': '2022-03-15 16:03:39.865454', 'stderr': '', 'stderr_lines': [], 'stdout': '009', 'stdout_lines': ['009']} DEBUG testinfra:base.py:277 RUN CommandResult(command=b"ansible --tree /tmp/tmp25vzzzdb -i /home/deblintrake/Escritorio/SysTests/wazuh-qa/tests/system/provisioning/enrollment_cluster/inventory.yml -m command --args '/var/ossec/bin/agent_groups -s -i 009' wazuh-master", exit_status=0, stdout=b"wazuh-master | CHANGED | rc=0 >>\nThe agent 'Agent-1647356610' with ID '009' belongs to groups: Null.\n", stderr=None) INFO testinfra:ansible.py:58 RUN Ansible('command', '/var/ossec/bin/agent_groups -s -i 009', {'check': False, 'become': False}): {'changed': True, 'cmd': ['/var/ossec/bin/agent_groups', '-s', '-i', '009'], 'delta': '0:00:03.144584', 'end': '2022-03-15 16:03:45.868216', 'msg': '', 'rc': 0, 'start': '2022-03-15 16:03:42.723632', 'stderr': '', 'stderr_lines': [], 'stdout': "The agent 'Agent-1647356610' with ID '009' belongs to groups: " 'Null.', 'stdout_lines': ["The agent 'Agent-1647356610' with ID '009' belongs to " 'groups: Null.']} DEBUG testinfra:base.py:277 RUN CommandResult(command=b"ansible --tree /tmp/tmpl9vw2skh -i /home/deblintrake/Escritorio/SysTests/wazuh-qa/tests/system/provisioning/enrollment_cluster/inventory.yml -m command --args '/var/ossec/bin/agent_groups -s -i 009' wazuh-worker1", exit_status=0, stdout=b"wazuh-worker1 | CHANGED | rc=0 >>\nThe agent 'Agent-1647356610' with ID '009' belongs to groups: Null.\n", stderr=None) INFO testinfra:ansible.py:58 RUN Ansible('command', '/var/ossec/bin/agent_groups -s -i 009', {'check': False, 'become': False}): {'changed': True, 'cmd': ['/var/ossec/bin/agent_groups', '-s', '-i', '009'], 'delta': '0:00:02.023643', 'end': '2022-03-15 16:03:49.960252', 'msg': '', 'rc': 0, 'start': '2022-03-15 16:03:47.936609', 'stderr': '', 'stderr_lines': [], 'stdout': "The agent 'Agent-1647356610' with ID '009' belongs to groups: " 'Null.', 'stdout_lines': ["The agent 'Agent-1647356610' with ID '009' belongs to " 'groups: Null.']} DEBUG testinfra:base.py:277 RUN CommandResult(command=b"ansible --tree /tmp/tmpb9f4159h -i /home/deblintrake/Escritorio/SysTests/wazuh-qa/tests/system/provisioning/enrollment_cluster/inventory.yml -m command --args '/var/ossec/bin/agent_groups -s -i 009' wazuh-worker2", exit_status=0, stdout=b"wazuh-worker2 | CHANGED | rc=0 >>\nThe agent 'Agent-1647356610' with ID '009' belongs to groups: Null.\n", stderr=None) INFO testinfra:ansible.py:58 RUN Ansible('command', '/var/ossec/bin/agent_groups -s -i 009', {'check': False, 'become': False}): {'changed': True, 'cmd': ['/var/ossec/bin/agent_groups', '-s', '-i', '009'], 'delta': '0:00:02.155074', 'end': '2022-03-15 16:03:54.475273', 'msg': '', 'rc': 0, 'start': '2022-03-15 16:03:52.320199', 'stderr': '', 'stderr_lines': [], 'stdout': "The agent 'Agent-1647356610' with ID '009' belongs to groups: " 'Null.', 'stdout_lines': ["The agent 'Agent-1647356610' with ID '009' 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'009 Agent-1647356610 172.18.0.6 f3ba549a8c293639e3f4c48547b1ef35a6e378d7bb14b65882c251a59b09a61b\n', stderr=None) DEBUG testinfra:base.py:277 RUN CommandResult(command=b"ansible --tree /tmp/tmpvw2dkva8 -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 16:03:58 wazuh-agentd[20065] debug_op.c:70 at _log(): DEBUG: Logging module auto-initialized\n2022/03/15 16:03:58 wazuh-agentd[20065] main.c:139 at main(): DEBUG: Wazuh home directory: /var/ossec\n2022/03/15 16:03:58 wazuh-agentd[20065] main.c:141 at main(): DEBUG: Started (pid: 20065).\n2022/03/15 16:03:58 wazuh-agentd[20065] agent_op.c:219 at os_read_agent_profile(): DEBUG: Calling os_read_agent_profile().\n2022/03/15 16:03:58 wazuh-agentd[20065] agent_op.c:238 at os_read_agent_profile(): DEBUG: os_read_agent_profile() = [debian, debian10]\n2022/03/15 16:03:58 wazuh-agentd[20065] config.c:416 at ReadConfig(): DEBUG: agent_config element does not have any attributes.\n2022/03/15 16:03:58 wazuh-agentd[20065] agent_op.c:219 at os_read_agent_profile(): DEBUG: Calling os_read_agent_profile().\n2022/03/15 16:03:58 wazuh-agentd[20065] agent_op.c:238 at os_read_agent_profile(): DEBUG: os_read_agent_profile() = [debian, debian10]\n2022/03/15 16:03:58 wazuh-agentd[20065] config.c:416 at ReadConfig(): DEBUG: agent_config element does not have any attributes.\n2022/03/15 16:03:59 wazuh-agentd[20088] debug_op.c:70 at _log(): DEBUG: Logging module auto-initialized\n2022/03/15 16:03:59 wazuh-agentd[20088] main.c:139 at main(): DEBUG: Wazuh home directory: /var/ossec\n2022/03/15 16:03:59 wazuh-agentd[20088] main.c:141 at main(): DEBUG: Started (pid: 20088).\n2022/03/15 16:03:59 wazuh-agentd[20088] agent_op.c:219 at os_read_agent_profile(): DEBUG: Calling os_read_agent_profile().\n2022/03/15 16:03:59 wazuh-agentd[20088] agent_op.c:238 at os_read_agent_profile(): DEBUG: os_read_agent_profile() = [debian, debian10]\n2022/03/15 16:03:59 wazuh-agentd[20088] config.c:416 at ReadConfig(): DEBUG: agent_config element does not have any attributes.\n2022/03/15 16:03:59 wazuh-agentd[20088] agent_op.c:219 at os_read_agent_profile(): DEBUG: Calling os_read_agent_profile().\n2022/03/15 16:03:59 wazuh-agentd[20088] agent_op.c:238 at os_read_agent_profile(): DEBUG: os_read_agent_profile() = [debian, debian10]\n2022/03/15 16:03:59 wazuh-agentd[20088] 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:07.257982', 'end': '2022-03-15 16:04:04.655050', 'msg': '', 'rc': 0, 'start': '2022-03-15 16:03:57.397068', 'stderr': '2022/03/15 16:03:58 wazuh-agentd[20065] debug_op.c:70 at _log(): ' 'DEBUG: Logging module auto-initialized\n' '2022/03/15 16:03:58 wazuh-agentd[20065] main.c:139 at main(): ' 'DEBUG: Wazuh home directory: /var/ossec\n' '2022/03/15 16:03:58 wazuh-agentd[20065] main.c:141 at main(): ' 'DEBUG: Started (pid: 20065).\n' '2022/03/15 16:03:58 wazuh-agentd[20065] agent_op.c:219 at ' 'os_read_agent_profile(): DEBUG: Calling os_read_agent_profile().\n' '2022/03/15 16:03:58 wazuh-agentd[20065] agent_op.c:238 at ' 'os_read_agent_profile(): DEBUG: os_read_agent_profile() = [debian, ' 'debian10]\n' '2022/03/15 16:03:58 wazuh-agentd[20065] config.c:416 at ' 'ReadConfig(): DEBUG: agent_config element does not have any ' 'attributes.\n' '2022/03/15 16:03:58 wazuh-agentd[20065] agent_op.c:219 at ' 'os_read_agent_profile(): DEBUG: Calling os_read_agent_profile().\n' '2022/03/15 16:03:58 wazuh-agentd[20065] agent_op.c:238 at ' 'os_read_agent_profile(): DEBUG: os_read_agent_profile() = [debian, ' 'debian10]\n' '2022/03/15 16:03:58 wazuh-agentd[20065] config.c:416 at ' 'ReadConfig(): DEBUG: agent_config element does not have any ' 'attributes.\n' '2022/03/15 16:03:59 wazuh-agentd[20088] debug_op.c:70 at _log(): ' 'DEBUG: Logging module auto-initialized\n' '2022/03/15 16:03:59 wazuh-agentd[20088] main.c:139 at main(): ' 'DEBUG: Wazuh home directory: /var/ossec\n' '2022/03/15 16:03:59 wazuh-agentd[20088] main.c:141 at main(): ' 'DEBUG: Started (pid: 20088).\n' '2022/03/15 16:03:59 wazuh-agentd[20088] agent_op.c:219 at ' 'os_read_agent_profile(): DEBUG: Calling os_read_agent_profile().\n' '2022/03/15 16:03:59 wazuh-agentd[20088] agent_op.c:238 at ' 'os_read_agent_profile(): DEBUG: os_read_agent_profile() = [debian, ' 'debian10]\n' '2022/03/15 16:03:59 wazuh-agentd[20088] config.c:416 at ' 'ReadConfig(): DEBUG: agent_config element does not have any ' 'attributes.\n' '2022/03/15 16:03:59 wazuh-agentd[20088] agent_op.c:219 at ' 'os_read_agent_profile(): DEBUG: Calling os_read_agent_profile().\n' '2022/03/15 16:03:59 wazuh-agentd[20088] agent_op.c:238 at ' 'os_read_agent_profile(): DEBUG: os_read_agent_profile() = [debian, ' 'debian10]\n' '2022/03/15 16:03:59 wazuh-agentd[20088] config.c:416 at ' 'ReadConfig(): DEBUG: agent_config element does not have any ' 'attributes.', 'stderr_lines': ['2022/03/15 16:03:58 wazuh-agentd[20065] debug_op.c:70 at ' '_log(): DEBUG: Logging module auto-initialized', '2022/03/15 16:03:58 wazuh-agentd[20065] main.c:139 at ' 'main(): DEBUG: Wazuh home directory: /var/ossec', '2022/03/15 16:03:58 wazuh-agentd[20065] main.c:141 at ' 'main(): DEBUG: Started (pid: 20065).', '2022/03/15 16:03:58 wazuh-agentd[20065] agent_op.c:219 at ' 'os_read_agent_profile(): DEBUG: Calling ' 'os_read_agent_profile().', '2022/03/15 16:03:58 wazuh-agentd[20065] agent_op.c:238 at ' 'os_read_agent_profile(): DEBUG: os_read_agent_profile() = ' '[debian, debian10]', '2022/03/15 16:03:58 wazuh-agentd[20065] config.c:416 at ' 'ReadConfig(): DEBUG: agent_config element does not have any ' 'attributes.', '2022/03/15 16:03:58 wazuh-agentd[20065] agent_op.c:219 at ' 'os_read_agent_profile(): DEBUG: Calling ' 'os_read_agent_profile().', '2022/03/15 16:03:58 wazuh-agentd[20065] agent_op.c:238 at ' 'os_read_agent_profile(): DEBUG: os_read_agent_profile() = ' '[debian, debian10]', '2022/03/15 16:03:58 wazuh-agentd[20065] config.c:416 at ' 'ReadConfig(): DEBUG: agent_config element does not have any ' 'attributes.', '2022/03/15 16:03:59 wazuh-agentd[20088] debug_op.c:70 at ' '_log(): DEBUG: Logging module auto-initialized', '2022/03/15 16:03:59 wazuh-agentd[20088] main.c:139 at ' 'main(): DEBUG: Wazuh home directory: /var/ossec', '2022/03/15 16:03:59 wazuh-agentd[20088] main.c:141 at ' 'main(): DEBUG: Started (pid: 20088).', '2022/03/15 16:03:59 wazuh-agentd[20088] agent_op.c:219 at ' 'os_read_agent_profile(): DEBUG: Calling ' 'os_read_agent_profile().', '2022/03/15 16:03:59 wazuh-agentd[20088] agent_op.c:238 at ' 'os_read_agent_profile(): DEBUG: os_read_agent_profile() = ' '[debian, debian10]', '2022/03/15 16:03:59 wazuh-agentd[20088] config.c:416 at ' 'ReadConfig(): DEBUG: agent_config element does not have any ' 'attributes.', '2022/03/15 16:03:59 wazuh-agentd[20088] agent_op.c:219 at ' 'os_read_agent_profile(): DEBUG: Calling ' 'os_read_agent_profile().', '2022/03/15 16:03:59 wazuh-agentd[20088] agent_op.c:238 at ' 'os_read_agent_profile(): DEBUG: os_read_agent_profile() = ' '[debian, debian10]', '2022/03/15 16:03:59 wazuh-agentd[20088] 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/tmp_p7d3r14 -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/tmp9vm8h0qz -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 \n009 Agent-1647356610 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.606866', 'end': '2022-03-15 16:04:34.412684', 'msg': '', 'rc': 0, 'start': '2022-03-15 16:04:32.805818', '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' '009 Agent-1647356610 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 ', '009 Agent-1647356610 172.18.0.6 active Wazuh v4.4.0 ' 'wazuh-master ']} DEBUG testinfra:base.py:277 RUN CommandResult(command=b"ansible --tree /tmp/tmps_k005ue -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 \n009 Agent-1647356610 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.468331', 'end': '2022-03-15 16:04:37.828358', 'msg': '', 'rc': 0, 'start': '2022-03-15 16:04:36.360027', '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' '009 Agent-1647356610 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 ', '009 Agent-1647356610 172.18.0.6 active Wazuh v4.4.0 ' 'wazuh-master ']} DEBUG testinfra:base.py:277 RUN CommandResult(command=b"ansible --tree /tmp/tmplm28onyy -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 \n009 Agent-1647356610 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.417428', 'end': '2022-03-15 16:04:41.635469', 'msg': '', 'rc': 0, 'start': '2022-03-15 16:04:40.218041', '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' '009 Agent-1647356610 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 ', '009 Agent-1647356610 172.18.0.6 active Wazuh v4.4.0 ' 'wazuh-master ']} DEBUG testinfra:base.py:277 RUN CommandResult(command=b"ansible --tree /tmp/tmpz4mecnxt -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.807889', 'end': '2022-03-15 16:04:46.798560', 'msg': '', 'rc': 0, 'start': '2022-03-15 16:04:43.990671', '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/tmpawb2uavt -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 009 -g group_test' wazuh-master", exit_status=0, stdout=b"wazuh-master | CHANGED | rc=0 >>\nGroup '['group_test']' added to agent '['009']'.\n", stderr=None) INFO testinfra:ansible.py:58 RUN Ansible('command', '/var/ossec/bin/agent_groups -q -a -i 009 -g group_test', {'check': False, 'become': False}): {'changed': True, 'cmd': ['/var/ossec/bin/agent_groups', '-q', '-a', '-i', '009', '-g', 'group_test'], 'delta': '0:00:02.542245', 'end': '2022-03-15 16:04:51.283186', 'msg': '', 'rc': 0, 'start': '2022-03-15 16:04:48.740941', 'stderr': '', 'stderr_lines': [], 'stdout': "Group '['group_test']' added to agent '['009']'.", 'stdout_lines': ["Group '['group_test']' added to agent '['009']'."]} DEBUG testinfra:base.py:277 RUN CommandResult(command=b"ansible --tree /tmp/tmp3stieqbw -i /home/deblintrake/Escritorio/SysTests/wazuh-qa/tests/system/provisioning/enrollment_cluster/inventory.yml -m command --args '/var/ossec/bin/agent_groups -s -i 009' wazuh-master", exit_status=0, stdout=b"wazuh-master | CHANGED | rc=0 >>\nThe agent 'Agent-1647356610' with ID '009' belongs to groups: default, group_test.\n", stderr=None) INFO testinfra:ansible.py:58 RUN Ansible('command', '/var/ossec/bin/agent_groups -s -i 009', {'check': False, 'become': False}): {'changed': True, 'cmd': ['/var/ossec/bin/agent_groups', '-s', '-i', '009'], 'delta': '0:00:03.026422', 'end': '2022-03-15 16:05:06.445908', 'msg': '', 'rc': 0, 'start': '2022-03-15 16:05:03.419486', 'stderr': '', 'stderr_lines': [], 'stdout': "The agent 'Agent-1647356610' with ID '009' belongs to groups: " 'default, group_test.', 'stdout_lines': ["The agent 'Agent-1647356610' with ID '009' belongs to " 'groups: default, group_test.']} DEBUG testinfra:base.py:277 RUN CommandResult(command=b"ansible --tree /tmp/tmpxedduagl -i /home/deblintrake/Escritorio/SysTests/wazuh-qa/tests/system/provisioning/enrollment_cluster/inventory.yml -m command --args '/var/ossec/bin/agent_groups -s -i 009' wazuh-worker1", exit_status=0, stdout=b"wazuh-worker1 | CHANGED | rc=0 >>\nThe agent 'Agent-1647356610' with ID '009' belongs to groups: default, group_test.\n", stderr=None) INFO testinfra:ansible.py:58 RUN Ansible('command', '/var/ossec/bin/agent_groups -s -i 009', {'check': False, 'become': False}): {'changed': True, 'cmd': ['/var/ossec/bin/agent_groups', '-s', '-i', '009'], 'delta': '0:00:02.866852', 'end': '2022-03-15 16:05:11.502580', 'msg': '', 'rc': 0, 'start': '2022-03-15 16:05:08.635728', 'stderr': '', 'stderr_lines': [], 'stdout': "The agent 'Agent-1647356610' with ID '009' belongs to groups: " 'default, group_test.', 'stdout_lines': ["The agent 'Agent-1647356610' with ID '009' belongs to " 'groups: default, group_test.']} DEBUG testinfra:base.py:277 RUN CommandResult(command=b"ansible --tree /tmp/tmppc80hxcv -i /home/deblintrake/Escritorio/SysTests/wazuh-qa/tests/system/provisioning/enrollment_cluster/inventory.yml -m command --args '/var/ossec/bin/agent_groups -s -i 009' wazuh-worker2", exit_status=0, stdout=b"wazuh-worker2 | CHANGED | rc=0 >>\nThe agent 'Agent-1647356610' with ID '009' belongs to groups: default, group_test.\n", stderr=None) INFO testinfra:ansible.py:58 RUN Ansible('command', '/var/ossec/bin/agent_groups -s -i 009', {'check': False, 'become': False}): {'changed': True, 'cmd': ['/var/ossec/bin/agent_groups', '-s', '-i', '009'], 'delta': '0:00:03.036273', 'end': '2022-03-15 16:05:16.881866', 'msg': '', 'rc': 0, 'start': '2022-03-15 16:05:13.845593', 'stderr': '', 'stderr_lines': [], 'stdout': "The agent 'Agent-1647356610' with ID '009' belongs to groups: " 'default, group_test.', 'stdout_lines': ["The agent 'Agent-1647356610' with ID '009' belongs to " 'groups: default, group_test.']} DEBUG testinfra:base.py:277 RUN CommandResult(command=b"ansible --tree /tmp/tmp85shgdtv -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: 009.\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.700828', 'end': '2022-03-15 16:05:21.918655', 'msg': '', 'rc': 0, 'start': '2022-03-15 16:05:19.217827', 'stderr': '', 'stderr_lines': [], 'stdout': 'Group group_test removed.\nAffected agents: 009.', 'stdout_lines': ['Group group_test removed.', 'Affected agents: 009.']} -----------------------------Captured log teardown------------------------------ DEBUG testinfra:base.py:277 RUN CommandResult(command=b"ansible --tree /tmp/tmpk1brc_jk -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 >>\n009\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.941409', 'end': '2022-03-15 16:05:25.094900', 'msg': '', 'rc': 0, 'start': '2022-03-15 16:05:24.153491', 'stderr': '', 'stderr_lines': [], 'stdout': '009', 'stdout_lines': ['009']} DEBUG testinfra:base.py:277 RUN CommandResult(command=b"ansible --tree /tmp/tmpkts9g4dx -i /home/deblintrake/Escritorio/SysTests/wazuh-qa/tests/system/provisioning/enrollment_cluster/inventory.yml -m command --args '/var/ossec/bin/manage_agents -r 009' 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: 009, Name: Agent-1647356610, IP: 172.18.0.6\nProvide the ID of the agent to be removed (or '\\q' to quit): 009\nConfirm deleting it?(y/n): y\nAgent '009' removed.\n\nmanage_agents: Exiting.\n", stderr=None) INFO testinfra:ansible.py:58 RUN Ansible('command', '/var/ossec/bin/manage_agents -r 009', {'check': False, 'become': False}): {'changed': True, 'cmd': ['/var/ossec/bin/manage_agents', '-r', '009'], 'delta': '0:00:01.032409', 'end': '2022-03-15 16:05:28.403327', 'msg': '', 'rc': 0, 'start': '2022-03-15 16:05:27.370918', '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: 009, Name: Agent-1647356610, IP: 172.18.0.6\n' "Provide the ID of the agent to be removed (or '\\q' to quit): 009\n" 'Confirm deleting it?(y/n): y\n' "Agent '009' 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: 009, Name: Agent-1647356610, IP: 172.18.0.6', "Provide the ID of the agent to be removed (or '\\q' to " 'quit): 009', 'Confirm deleting it?(y/n): y', "Agent '009' removed.", '', 'manage_agents: Exiting.']} DEBUG testinfra:base.py:277 RUN CommandResult(command=b"ansible --tree /tmp/tmpn_b34vj5 -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.856660', 'end': '2022-03-15 16:05:31.503616', 'msg': '', 'rc': 0, 'start': '2022-03-15 16:05:30.646956', 'stderr': '', 'stderr_lines': [], 'stdout': '', 'stdout_lines': []} DEBUG testinfra:base.py:277 RUN CommandResult(command=b"ansible --tree /tmp/tmpphiozcls -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/tmpuym1duxe -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-1647356740.7185726-273372-150667437418777/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-1647356740.7185726-273372-150667437418777/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] | 207.48 | |
-------------------------------Captured log setup------------------------------- DEBUG testinfra:base.py:277 RUN CommandResult(command=b'ansible --tree /tmp/tmp5e_wkroe -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-1647356745.926377-273777-10733837060460/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-1647356745.926377-273777-10733837060460/source', 'state': 'file', 'uid': 999} DEBUG testinfra:base.py:277 RUN CommandResult(command=b'ansible --tree /tmp/tmp4pbaisid -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-1647356750.8773074-274211-95873561959490/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-1647356750.8773074-274211-95873561959490/source', 'state': 'file', 'uid': 999} DEBUG testinfra:base.py:277 RUN CommandResult(command=b'ansible --tree /tmp/tmpbw48riri -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/tmp4hs6vs19 -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-1647356760.7291412-274961-127835480255842/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-1647356760.7291412-274961-127835480255842/source', 'state': 'file', 'uid': 999} DEBUG testinfra:base.py:277 RUN CommandResult(command=b'ansible --tree /tmp/tmpbxt0ptib -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/tmpe2xauf3u -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-1647356770.726845-275718-104877194675108/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-1647356770.726845-275718-104877194675108/source', 'state': 'file', 'uid': 999} DEBUG testinfra:base.py:277 RUN CommandResult(command=b'ansible --tree /tmp/tmp7kkyw0e0 -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/tmpyzrf4sva -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.859583', 'end': '2022-03-15 16:06:23.232492', 'msg': '', 'rc': 0, 'start': '2022-03-15 16:06:22.372909', '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/tmpzhhz3nmo -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.938760', 'end': '2022-03-15 16:06:26.143025', 'msg': '', 'rc': 0, 'start': '2022-03-15 16:06:25.204265', '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/tmp75lawdp3 -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/tmpv5x2j05q -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-1647356784 -I 172.18.0.6' wazuh-agent1", exit_status=0, stdout=b'wazuh-agent1 | CHANGED | rc=0 >>\n2022/03/15 16:06:31 agent-auth: INFO: Started (pid: 23476).\n2022/03/15 16:06:31 agent-auth: INFO: Requesting a key from server: 172.18.0.2\n2022/03/15 16:06:31 agent-auth: INFO: No authentication password provided\n2022/03/15 16:06:31 agent-auth: INFO: Using agent name as: Agent-1647356784\n2022/03/15 16:06:31 agent-auth: INFO: Waiting for server reply\n2022/03/15 16:06:31 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-1647356784 -I 172.18.0.6', {'check': False, 'become': False}): {'changed': True, 'cmd': ['/var/ossec/bin/agent-auth', '-m', '172.18.0.2', '-A', 'Agent-1647356784', '-I', '172.18.0.6'], 'delta': '0:00:01.079210', 'end': '2022-03-15 16:06:31.519052', 'msg': '', 'rc': 0, 'start': '2022-03-15 16:06:30.439842', 'stderr': '2022/03/15 16:06:31 agent-auth: INFO: Started (pid: 23476).\n' '2022/03/15 16:06:31 agent-auth: INFO: Requesting a key from ' 'server: 172.18.0.2\n' '2022/03/15 16:06:31 agent-auth: INFO: No authentication password ' 'provided\n' '2022/03/15 16:06:31 agent-auth: INFO: Using agent name as: ' 'Agent-1647356784\n' '2022/03/15 16:06:31 agent-auth: INFO: Waiting for server reply\n' '2022/03/15 16:06:31 agent-auth: INFO: Valid key received', 'stderr_lines': ['2022/03/15 16:06:31 agent-auth: INFO: Started (pid: 23476).', '2022/03/15 16:06:31 agent-auth: INFO: Requesting a key from ' 'server: 172.18.0.2', '2022/03/15 16:06:31 agent-auth: INFO: No authentication ' 'password provided', '2022/03/15 16:06:31 agent-auth: INFO: Using agent name as: ' 'Agent-1647356784', '2022/03/15 16:06:31 agent-auth: INFO: Waiting for server ' 'reply', '2022/03/15 16:06:31 agent-auth: INFO: Valid key received'], 'stdout': '', 'stdout_lines': []} DEBUG testinfra:base.py:277 RUN CommandResult(command=b"ansible --tree /tmp/tmpvi195u19 -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 >>\n010\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.913524', 'end': '2022-03-15 16:06:34.586942', 'msg': '', 'rc': 0, 'start': '2022-03-15 16:06:33.673418', 'stderr': '', 'stderr_lines': [], 'stdout': '010', 'stdout_lines': ['010']} DEBUG testinfra:base.py:277 RUN CommandResult(command=b"ansible --tree /tmp/tmpkgs14k1l -i /home/deblintrake/Escritorio/SysTests/wazuh-qa/tests/system/provisioning/enrollment_cluster/inventory.yml -m command --args '/var/ossec/bin/agent_groups -s -i 010' wazuh-master", exit_status=0, stdout=b"wazuh-master | CHANGED | rc=0 >>\nThe agent 'Agent-1647356784' with ID '010' belongs to groups: Null.\n", stderr=None) INFO testinfra:ansible.py:58 RUN Ansible('command', '/var/ossec/bin/agent_groups -s -i 010', {'check': False, 'become': False}): {'changed': True, 'cmd': ['/var/ossec/bin/agent_groups', '-s', '-i', '010'], 'delta': '0:00:03.031611', 'end': '2022-03-15 16:06:39.800496', 'msg': '', 'rc': 0, 'start': '2022-03-15 16:06:36.768885', 'stderr': '', 'stderr_lines': [], 'stdout': "The agent 'Agent-1647356784' with ID '010' belongs to groups: " 'Null.', 'stdout_lines': ["The agent 'Agent-1647356784' with ID '010' belongs to " 'groups: Null.']} DEBUG testinfra:base.py:277 RUN CommandResult(command=b"ansible --tree /tmp/tmpp6b014r6 -i /home/deblintrake/Escritorio/SysTests/wazuh-qa/tests/system/provisioning/enrollment_cluster/inventory.yml -m command --args '/var/ossec/bin/agent_groups -s -i 010' wazuh-worker1", exit_status=0, stdout=b"wazuh-worker1 | CHANGED | rc=0 >>\nThe agent 'Agent-1647356784' with ID '010' belongs to groups: Null.\n", stderr=None) INFO testinfra:ansible.py:58 RUN Ansible('command', '/var/ossec/bin/agent_groups -s -i 010', {'check': False, 'become': False}): {'changed': True, 'cmd': ['/var/ossec/bin/agent_groups', '-s', '-i', '010'], 'delta': '0:00:02.831417', 'end': '2022-03-15 16:06:44.922791', 'msg': '', 'rc': 0, 'start': '2022-03-15 16:06:42.091374', 'stderr': '', 'stderr_lines': [], 'stdout': "The agent 'Agent-1647356784' with ID '010' belongs to groups: " 'Null.', 'stdout_lines': ["The agent 'Agent-1647356784' with ID '010' belongs to " 'groups: Null.']} DEBUG testinfra:base.py:277 RUN CommandResult(command=b"ansible --tree /tmp/tmp3l3d0i_k -i /home/deblintrake/Escritorio/SysTests/wazuh-qa/tests/system/provisioning/enrollment_cluster/inventory.yml -m command --args '/var/ossec/bin/agent_groups -s -i 010' wazuh-worker2", exit_status=0, stdout=b"wazuh-worker2 | CHANGED | rc=0 >>\nThe agent 'Agent-1647356784' with ID '010' belongs to groups: Null.\n", stderr=None) INFO testinfra:ansible.py:58 RUN Ansible('command', '/var/ossec/bin/agent_groups -s -i 010', {'check': False, 'become': False}): {'changed': True, 'cmd': ['/var/ossec/bin/agent_groups', '-s', '-i', '010'], 'delta': '0:00:02.759351', 'end': '2022-03-15 16:06:49.938896', 'msg': '', 'rc': 0, 'start': '2022-03-15 16:06:47.179545', 'stderr': '', 'stderr_lines': [], 'stdout': "The agent 'Agent-1647356784' with ID '010' belongs to groups: " 'Null.', 'stdout_lines': ["The agent 'Agent-1647356784' with ID '010' 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'010 Agent-1647356784 172.18.0.6 349feedf1dada66420e4ff1aa6adb70b3fc7268f70d5f6f19f01ca99712ab4fe\n', stderr=None) DEBUG testinfra:base.py:277 RUN CommandResult(command=b"ansible --tree /tmp/tmpdfmtx_45 -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 16:06:53 wazuh-agentd[23633] debug_op.c:70 at _log(): DEBUG: Logging module auto-initialized\n2022/03/15 16:06:53 wazuh-agentd[23633] main.c:139 at main(): DEBUG: Wazuh home directory: /var/ossec\n2022/03/15 16:06:53 wazuh-agentd[23633] main.c:141 at main(): DEBUG: Started (pid: 23633).\n2022/03/15 16:06:53 wazuh-agentd[23633] agent_op.c:219 at os_read_agent_profile(): DEBUG: Calling os_read_agent_profile().\n2022/03/15 16:06:53 wazuh-agentd[23633] agent_op.c:238 at os_read_agent_profile(): DEBUG: os_read_agent_profile() = [debian, debian10]\n2022/03/15 16:06:53 wazuh-agentd[23633] config.c:416 at ReadConfig(): DEBUG: agent_config element does not have any attributes.\n2022/03/15 16:06:53 wazuh-agentd[23633] agent_op.c:219 at os_read_agent_profile(): DEBUG: Calling os_read_agent_profile().\n2022/03/15 16:06:53 wazuh-agentd[23633] agent_op.c:238 at os_read_agent_profile(): DEBUG: os_read_agent_profile() = [debian, debian10]\n2022/03/15 16:06:53 wazuh-agentd[23633] config.c:416 at ReadConfig(): DEBUG: agent_config element does not have any attributes.\n2022/03/15 16:06:54 wazuh-agentd[23656] debug_op.c:70 at _log(): DEBUG: Logging module auto-initialized\n2022/03/15 16:06:54 wazuh-agentd[23656] main.c:139 at main(): DEBUG: Wazuh home directory: /var/ossec\n2022/03/15 16:06:54 wazuh-agentd[23656] main.c:141 at main(): DEBUG: Started (pid: 23656).\n2022/03/15 16:06:54 wazuh-agentd[23656] agent_op.c:219 at os_read_agent_profile(): DEBUG: Calling os_read_agent_profile().\n2022/03/15 16:06:54 wazuh-agentd[23656] agent_op.c:238 at os_read_agent_profile(): DEBUG: os_read_agent_profile() = [debian, debian10]\n2022/03/15 16:06:54 wazuh-agentd[23656] config.c:416 at ReadConfig(): DEBUG: agent_config element does not have any attributes.\n2022/03/15 16:06:54 wazuh-agentd[23656] agent_op.c:219 at os_read_agent_profile(): DEBUG: Calling os_read_agent_profile().\n2022/03/15 16:06:54 wazuh-agentd[23656] agent_op.c:238 at os_read_agent_profile(): DEBUG: os_read_agent_profile() = [debian, debian10]\n2022/03/15 16:06:54 wazuh-agentd[23656] 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:07.988532', 'end': '2022-03-15 16:07:00.368757', 'msg': '', 'rc': 0, 'start': '2022-03-15 16:06:52.380225', 'stderr': '2022/03/15 16:06:53 wazuh-agentd[23633] debug_op.c:70 at _log(): ' 'DEBUG: Logging module auto-initialized\n' '2022/03/15 16:06:53 wazuh-agentd[23633] main.c:139 at main(): ' 'DEBUG: Wazuh home directory: /var/ossec\n' '2022/03/15 16:06:53 wazuh-agentd[23633] main.c:141 at main(): ' 'DEBUG: Started (pid: 23633).\n' '2022/03/15 16:06:53 wazuh-agentd[23633] agent_op.c:219 at ' 'os_read_agent_profile(): DEBUG: Calling os_read_agent_profile().\n' '2022/03/15 16:06:53 wazuh-agentd[23633] agent_op.c:238 at ' 'os_read_agent_profile(): DEBUG: os_read_agent_profile() = [debian, ' 'debian10]\n' '2022/03/15 16:06:53 wazuh-agentd[23633] config.c:416 at ' 'ReadConfig(): DEBUG: agent_config element does not have any ' 'attributes.\n' '2022/03/15 16:06:53 wazuh-agentd[23633] agent_op.c:219 at ' 'os_read_agent_profile(): DEBUG: Calling os_read_agent_profile().\n' '2022/03/15 16:06:53 wazuh-agentd[23633] agent_op.c:238 at ' 'os_read_agent_profile(): DEBUG: os_read_agent_profile() = [debian, ' 'debian10]\n' '2022/03/15 16:06:53 wazuh-agentd[23633] config.c:416 at ' 'ReadConfig(): DEBUG: agent_config element does not have any ' 'attributes.\n' '2022/03/15 16:06:54 wazuh-agentd[23656] debug_op.c:70 at _log(): ' 'DEBUG: Logging module auto-initialized\n' '2022/03/15 16:06:54 wazuh-agentd[23656] main.c:139 at main(): ' 'DEBUG: Wazuh home directory: /var/ossec\n' '2022/03/15 16:06:54 wazuh-agentd[23656] main.c:141 at main(): ' 'DEBUG: Started (pid: 23656).\n' '2022/03/15 16:06:54 wazuh-agentd[23656] agent_op.c:219 at ' 'os_read_agent_profile(): DEBUG: Calling os_read_agent_profile().\n' '2022/03/15 16:06:54 wazuh-agentd[23656] agent_op.c:238 at ' 'os_read_agent_profile(): DEBUG: os_read_agent_profile() = [debian, ' 'debian10]\n' '2022/03/15 16:06:54 wazuh-agentd[23656] config.c:416 at ' 'ReadConfig(): DEBUG: agent_config element does not have any ' 'attributes.\n' '2022/03/15 16:06:54 wazuh-agentd[23656] agent_op.c:219 at ' 'os_read_agent_profile(): DEBUG: Calling os_read_agent_profile().\n' '2022/03/15 16:06:54 wazuh-agentd[23656] agent_op.c:238 at ' 'os_read_agent_profile(): DEBUG: os_read_agent_profile() = [debian, ' 'debian10]\n' '2022/03/15 16:06:54 wazuh-agentd[23656] config.c:416 at ' 'ReadConfig(): DEBUG: agent_config element does not have any ' 'attributes.', 'stderr_lines': ['2022/03/15 16:06:53 wazuh-agentd[23633] debug_op.c:70 at ' '_log(): DEBUG: Logging module auto-initialized', '2022/03/15 16:06:53 wazuh-agentd[23633] main.c:139 at ' 'main(): DEBUG: Wazuh home directory: /var/ossec', '2022/03/15 16:06:53 wazuh-agentd[23633] main.c:141 at ' 'main(): DEBUG: Started (pid: 23633).', '2022/03/15 16:06:53 wazuh-agentd[23633] agent_op.c:219 at ' 'os_read_agent_profile(): DEBUG: Calling ' 'os_read_agent_profile().', '2022/03/15 16:06:53 wazuh-agentd[23633] agent_op.c:238 at ' 'os_read_agent_profile(): DEBUG: os_read_agent_profile() = ' '[debian, debian10]', '2022/03/15 16:06:53 wazuh-agentd[23633] config.c:416 at ' 'ReadConfig(): DEBUG: agent_config element does not have any ' 'attributes.', '2022/03/15 16:06:53 wazuh-agentd[23633] agent_op.c:219 at ' 'os_read_agent_profile(): DEBUG: Calling ' 'os_read_agent_profile().', '2022/03/15 16:06:53 wazuh-agentd[23633] agent_op.c:238 at ' 'os_read_agent_profile(): DEBUG: os_read_agent_profile() = ' '[debian, debian10]', '2022/03/15 16:06:53 wazuh-agentd[23633] config.c:416 at ' 'ReadConfig(): DEBUG: agent_config element does not have any ' 'attributes.', '2022/03/15 16:06:54 wazuh-agentd[23656] debug_op.c:70 at ' '_log(): DEBUG: Logging module auto-initialized', '2022/03/15 16:06:54 wazuh-agentd[23656] main.c:139 at ' 'main(): DEBUG: Wazuh home directory: /var/ossec', '2022/03/15 16:06:54 wazuh-agentd[23656] main.c:141 at ' 'main(): DEBUG: Started (pid: 23656).', '2022/03/15 16:06:54 wazuh-agentd[23656] agent_op.c:219 at ' 'os_read_agent_profile(): DEBUG: Calling ' 'os_read_agent_profile().', '2022/03/15 16:06:54 wazuh-agentd[23656] agent_op.c:238 at ' 'os_read_agent_profile(): DEBUG: os_read_agent_profile() = ' '[debian, debian10]', '2022/03/15 16:06:54 wazuh-agentd[23656] config.c:416 at ' 'ReadConfig(): DEBUG: agent_config element does not have any ' 'attributes.', '2022/03/15 16:06:54 wazuh-agentd[23656] agent_op.c:219 at ' 'os_read_agent_profile(): DEBUG: Calling ' 'os_read_agent_profile().', '2022/03/15 16:06:54 wazuh-agentd[23656] agent_op.c:238 at ' 'os_read_agent_profile(): DEBUG: os_read_agent_profile() = ' '[debian, debian10]', '2022/03/15 16:06:54 wazuh-agentd[23656] 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/tmpp23oi_0m -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/tmpl5w59vwg -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 \n010 Agent-1647356784 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.786915', 'end': '2022-03-15 16:07:30.389134', 'msg': '', 'rc': 0, 'start': '2022-03-15 16:07:28.602219', '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' '010 Agent-1647356784 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 ', '010 Agent-1647356784 172.18.0.6 active Wazuh v4.4.0 ' 'wazuh-master ']} DEBUG testinfra:base.py:277 RUN CommandResult(command=b"ansible --tree /tmp/tmph8h3fjl_ -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 \n010 Agent-1647356784 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.875718', 'end': '2022-03-15 16:07:34.520040', 'msg': '', 'rc': 0, 'start': '2022-03-15 16:07:32.644322', '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' '010 Agent-1647356784 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 ', '010 Agent-1647356784 172.18.0.6 active Wazuh v4.4.0 ' 'wazuh-master ']} DEBUG testinfra:base.py:277 RUN CommandResult(command=b"ansible --tree /tmp/tmp9x7xra8o -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 \n010 Agent-1647356784 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.538431', 'end': '2022-03-15 16:07:38.521931', 'msg': '', 'rc': 0, 'start': '2022-03-15 16:07:36.983500', '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' '010 Agent-1647356784 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 ', '010 Agent-1647356784 172.18.0.6 active Wazuh v4.4.0 ' 'wazuh-master ']} DEBUG testinfra:base.py:277 RUN CommandResult(command=b"ansible --tree /tmp/tmphfp6avzh -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/tmpultu7o_6 -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 \n010 Agent-1647356784 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.600321', 'end': '2022-03-15 16:08:00.895855', 'msg': '', 'rc': 0, 'start': '2022-03-15 16:07:59.295534', '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' '010 Agent-1647356784 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 ', '010 Agent-1647356784 172.18.0.6 disconnected Wazuh ' 'v4.4.0 wazuh-master ']} DEBUG testinfra:base.py:277 RUN CommandResult(command=b"ansible --tree /tmp/tmp2edva6s3 -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 \n010 Agent-1647356784 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.477987', 'end': '2022-03-15 16:08:04.465160', 'msg': '', 'rc': 0, 'start': '2022-03-15 16:08:02.987173', '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' '010 Agent-1647356784 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 ', '010 Agent-1647356784 172.18.0.6 disconnected Wazuh ' 'v4.4.0 wazuh-master ']} DEBUG testinfra:base.py:277 RUN CommandResult(command=b"ansible --tree /tmp/tmpelrqk9rk -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 \n010 Agent-1647356784 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.504063', 'end': '2022-03-15 16:08:08.108476', 'msg': '', 'rc': 0, 'start': '2022-03-15 16:08:06.604413', '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' '010 Agent-1647356784 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 ', '010 Agent-1647356784 172.18.0.6 disconnected Wazuh ' 'v4.4.0 wazuh-master ']} DEBUG testinfra:base.py:277 RUN CommandResult(command=b"ansible --tree /tmp/tmp22g1_7ul -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.043249', 'end': '2022-03-15 16:08:13.357227', 'msg': '', 'rc': 0, 'start': '2022-03-15 16:08:10.313978', '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/tmpoztrn640 -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 010 -g group_test' wazuh-master", exit_status=0, stdout=b"wazuh-master | CHANGED | rc=0 >>\nGroup '['group_test']' added to agent '['010']'.\n", stderr=None) INFO testinfra:ansible.py:58 RUN Ansible('command', '/var/ossec/bin/agent_groups -q -a -i 010 -g group_test', {'check': False, 'become': False}): {'changed': True, 'cmd': ['/var/ossec/bin/agent_groups', '-q', '-a', '-i', '010', '-g', 'group_test'], 'delta': '0:00:03.066788', 'end': '2022-03-15 16:08:18.572734', 'msg': '', 'rc': 0, 'start': '2022-03-15 16:08:15.505946', 'stderr': '', 'stderr_lines': [], 'stdout': "Group '['group_test']' added to agent '['010']'.", 'stdout_lines': ["Group '['group_test']' added to agent '['010']'."]} DEBUG testinfra:base.py:277 RUN CommandResult(command=b"ansible --tree /tmp/tmpq6ikzeqx -i /home/deblintrake/Escritorio/SysTests/wazuh-qa/tests/system/provisioning/enrollment_cluster/inventory.yml -m command --args '/var/ossec/bin/agent_groups -s -i 010' wazuh-master", exit_status=0, stdout=b"wazuh-master | CHANGED | rc=0 >>\nThe agent 'Agent-1647356784' with ID '010' belongs to groups: default, group_test.\n", stderr=None) INFO testinfra:ansible.py:58 RUN Ansible('command', '/var/ossec/bin/agent_groups -s -i 010', {'check': False, 'become': False}): {'changed': True, 'cmd': ['/var/ossec/bin/agent_groups', '-s', '-i', '010'], 'delta': '0:00:03.402453', 'end': '2022-03-15 16:08:34.177900', 'msg': '', 'rc': 0, 'start': '2022-03-15 16:08:30.775447', 'stderr': '', 'stderr_lines': [], 'stdout': "The agent 'Agent-1647356784' with ID '010' belongs to groups: " 'default, group_test.', 'stdout_lines': ["The agent 'Agent-1647356784' with ID '010' belongs to " 'groups: default, group_test.']} DEBUG testinfra:base.py:277 RUN CommandResult(command=b"ansible --tree /tmp/tmptve43yhm -i /home/deblintrake/Escritorio/SysTests/wazuh-qa/tests/system/provisioning/enrollment_cluster/inventory.yml -m command --args '/var/ossec/bin/agent_groups -s -i 010' wazuh-worker1", exit_status=0, stdout=b"wazuh-worker1 | CHANGED | rc=0 >>\nThe agent 'Agent-1647356784' with ID '010' belongs to groups: default, group_test.\n", stderr=None) INFO testinfra:ansible.py:58 RUN Ansible('command', '/var/ossec/bin/agent_groups -s -i 010', {'check': False, 'become': False}): {'changed': True, 'cmd': ['/var/ossec/bin/agent_groups', '-s', '-i', '010'], 'delta': '0:00:03.155752', 'end': '2022-03-15 16:08:39.850617', 'msg': '', 'rc': 0, 'start': '2022-03-15 16:08:36.694865', 'stderr': '', 'stderr_lines': [], 'stdout': "The agent 'Agent-1647356784' with ID '010' belongs to groups: " 'default, group_test.', 'stdout_lines': ["The agent 'Agent-1647356784' with ID '010' belongs to " 'groups: default, group_test.']} DEBUG testinfra:base.py:277 RUN CommandResult(command=b"ansible --tree /tmp/tmp1_rd4dpw -i /home/deblintrake/Escritorio/SysTests/wazuh-qa/tests/system/provisioning/enrollment_cluster/inventory.yml -m command --args '/var/ossec/bin/agent_groups -s -i 010' wazuh-worker2", exit_status=0, stdout=b"wazuh-worker2 | CHANGED | rc=0 >>\nThe agent 'Agent-1647356784' with ID '010' belongs to groups: default, group_test.\n", stderr=None) INFO testinfra:ansible.py:58 RUN Ansible('command', '/var/ossec/bin/agent_groups -s -i 010', {'check': False, 'become': False}): {'changed': True, 'cmd': ['/var/ossec/bin/agent_groups', '-s', '-i', '010'], 'delta': '0:00:02.895961', 'end': '2022-03-15 16:08:44.897633', 'msg': '', 'rc': 0, 'start': '2022-03-15 16:08:42.001672', 'stderr': '', 'stderr_lines': [], 'stdout': "The agent 'Agent-1647356784' with ID '010' belongs to groups: " 'default, group_test.', 'stdout_lines': ["The agent 'Agent-1647356784' with ID '010' belongs to " 'groups: default, group_test.']} DEBUG testinfra:base.py:277 RUN CommandResult(command=b"ansible --tree /tmp/tmphvg2p1i3 -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: 010.\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.540111', 'end': '2022-03-15 16:08:50.852764', 'msg': '', 'rc': 0, 'start': '2022-03-15 16:08:47.312653', 'stderr': '', 'stderr_lines': [], 'stdout': 'Group group_test removed.\nAffected agents: 010.', 'stdout_lines': ['Group group_test removed.', 'Affected agents: 010.']} -----------------------------Captured log teardown------------------------------ DEBUG testinfra:base.py:277 RUN CommandResult(command=b"ansible --tree /tmp/tmpcwgpo6fh -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 >>\n010\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.055442', 'end': '2022-03-15 16:08:53.936397', 'msg': '', 'rc': 0, 'start': '2022-03-15 16:08:52.880955', 'stderr': '', 'stderr_lines': [], 'stdout': '010', 'stdout_lines': ['010']} DEBUG testinfra:base.py:277 RUN CommandResult(command=b"ansible --tree /tmp/tmplrhdqck4 -i /home/deblintrake/Escritorio/SysTests/wazuh-qa/tests/system/provisioning/enrollment_cluster/inventory.yml -m command --args '/var/ossec/bin/manage_agents -r 010' 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: 010, Name: Agent-1647356784, IP: 172.18.0.6\nProvide the ID of the agent to be removed (or '\\q' to quit): 010\nConfirm deleting it?(y/n): y\nAgent '010' removed.\n\nmanage_agents: Exiting.\n", stderr=None) INFO testinfra:ansible.py:58 RUN Ansible('command', '/var/ossec/bin/manage_agents -r 010', {'check': False, 'become': False}): {'changed': True, 'cmd': ['/var/ossec/bin/manage_agents', '-r', '010'], 'delta': '0:00:01.094103', 'end': '2022-03-15 16:08:57.054504', 'msg': '', 'rc': 0, 'start': '2022-03-15 16:08:55.960401', '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: 010, Name: Agent-1647356784, IP: 172.18.0.6\n' "Provide the ID of the agent to be removed (or '\\q' to quit): 010\n" 'Confirm deleting it?(y/n): y\n' "Agent '010' 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: 010, Name: Agent-1647356784, IP: 172.18.0.6', "Provide the ID of the agent to be removed (or '\\q' to " 'quit): 010', 'Confirm deleting it?(y/n): y', "Agent '010' removed.", '', 'manage_agents: Exiting.']} DEBUG testinfra:base.py:277 RUN CommandResult(command=b"ansible --tree /tmp/tmp3e4nv5_4 -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.090625', 'end': '2022-03-15 16:09:00.154074', 'msg': '', 'rc': 0, 'start': '2022-03-15 16:08:59.063449', 'stderr': '', 'stderr_lines': [], 'stdout': '', 'stdout_lines': []} DEBUG testinfra:base.py:277 RUN CommandResult(command=b"ansible --tree /tmp/tmppmi53pfv -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/tmp7h4h4rxj -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-1647356948.503624-285406-245305664168920/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-1647356948.503624-285406-245305664168920/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] | 184.41 | |
-------------------------------Captured log setup------------------------------- DEBUG testinfra:base.py:277 RUN CommandResult(command=b'ansible --tree /tmp/tmprrcw2cd2 -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-1647356953.1129377-285816-28018920622549/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-1647356953.1129377-285816-28018920622549/source', 'state': 'file', 'uid': 999} DEBUG testinfra:base.py:277 RUN CommandResult(command=b'ansible --tree /tmp/tmppsrcfjfm -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-1647356958.9143314-286249-178509689130430/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-1647356958.9143314-286249-178509689130430/source', 'state': 'file', 'uid': 999} DEBUG testinfra:base.py:277 RUN CommandResult(command=b'ansible --tree /tmp/tmppkdp9vgj -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/tmp3u73ti9b -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-1647356969.4458199-287010-60130865877567/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-1647356969.4458199-287010-60130865877567/source', 'state': 'file', 'uid': 999} DEBUG testinfra:base.py:277 RUN CommandResult(command=b'ansible --tree /tmp/tmp8622nuki -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/tmppsrcnhei -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-1647356980.1858163-287775-70164823267532/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-1647356980.1858163-287775-70164823267532/source', 'state': 'file', 'uid': 999} DEBUG testinfra:base.py:277 RUN CommandResult(command=b'ansible --tree /tmp/tmp6ohqogj5 -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/tmp4auy5pjm -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.029773', 'end': '2022-03-15 16:09:51.845189', 'msg': '', 'rc': 0, 'start': '2022-03-15 16:09:50.815416', '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/tmptpw64hs5 -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.079338', 'end': '2022-03-15 16:09:55.090944', 'msg': '', 'rc': 0, 'start': '2022-03-15 16:09:54.011606', '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/tmpqkzezy12 -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/tmp198h3ap6 -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-1647356992 -I 172.18.0.6' wazuh-agent1", exit_status=0, stdout=b'wazuh-agent1 | CHANGED | rc=0 >>\n2022/03/15 16:10:00 agent-auth: INFO: Started (pid: 25735).\n2022/03/15 16:10:00 agent-auth: INFO: Requesting a key from server: 172.18.0.3\n2022/03/15 16:10:00 agent-auth: INFO: No authentication password provided\n2022/03/15 16:10:00 agent-auth: INFO: Using agent name as: Agent-1647356992\n2022/03/15 16:10:00 agent-auth: INFO: Waiting for server reply\n2022/03/15 16:10:00 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-1647356992 -I 172.18.0.6', {'check': False, 'become': False}): {'changed': True, 'cmd': ['/var/ossec/bin/agent-auth', '-m', '172.18.0.3', '-A', 'Agent-1647356992', '-I', '172.18.0.6'], 'delta': '0:00:00.928067', 'end': '2022-03-15 16:10:00.739469', 'msg': '', 'rc': 0, 'start': '2022-03-15 16:09:59.811402', 'stderr': '2022/03/15 16:10:00 agent-auth: INFO: Started (pid: 25735).\n' '2022/03/15 16:10:00 agent-auth: INFO: Requesting a key from ' 'server: 172.18.0.3\n' '2022/03/15 16:10:00 agent-auth: INFO: No authentication password ' 'provided\n' '2022/03/15 16:10:00 agent-auth: INFO: Using agent name as: ' 'Agent-1647356992\n' '2022/03/15 16:10:00 agent-auth: INFO: Waiting for server reply\n' '2022/03/15 16:10:00 agent-auth: INFO: Valid key received', 'stderr_lines': ['2022/03/15 16:10:00 agent-auth: INFO: Started (pid: 25735).', '2022/03/15 16:10:00 agent-auth: INFO: Requesting a key from ' 'server: 172.18.0.3', '2022/03/15 16:10:00 agent-auth: INFO: No authentication ' 'password provided', '2022/03/15 16:10:00 agent-auth: INFO: Using agent name as: ' 'Agent-1647356992', '2022/03/15 16:10:00 agent-auth: INFO: Waiting for server ' 'reply', '2022/03/15 16:10:00 agent-auth: INFO: Valid key received'], 'stdout': '', 'stdout_lines': []} DEBUG testinfra:base.py:277 RUN CommandResult(command=b"ansible --tree /tmp/tmpbnlb_8q1 -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 >>\n011\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.977168', 'end': '2022-03-15 16:10:03.898132', 'msg': '', 'rc': 0, 'start': '2022-03-15 16:10:02.920964', 'stderr': '', 'stderr_lines': [], 'stdout': '011', 'stdout_lines': ['011']} DEBUG testinfra:base.py:277 RUN CommandResult(command=b"ansible --tree /tmp/tmpcbx4f9xt -i /home/deblintrake/Escritorio/SysTests/wazuh-qa/tests/system/provisioning/enrollment_cluster/inventory.yml -m command --args '/var/ossec/bin/agent_groups -s -i 011' wazuh-master", exit_status=0, stdout=b"wazuh-master | CHANGED | rc=0 >>\nThe agent 'Agent-1647356992' with ID '011' belongs to groups: Null.\n", stderr=None) INFO testinfra:ansible.py:58 RUN Ansible('command', '/var/ossec/bin/agent_groups -s -i 011', {'check': False, 'become': False}): {'changed': True, 'cmd': ['/var/ossec/bin/agent_groups', '-s', '-i', '011'], 'delta': '0:00:03.089835', 'end': '2022-03-15 16:10:09.106935', 'msg': '', 'rc': 0, 'start': '2022-03-15 16:10:06.017100', 'stderr': '', 'stderr_lines': [], 'stdout': "The agent 'Agent-1647356992' with ID '011' belongs to groups: " 'Null.', 'stdout_lines': ["The agent 'Agent-1647356992' with ID '011' belongs to " 'groups: Null.']} DEBUG testinfra:base.py:277 RUN CommandResult(command=b"ansible --tree /tmp/tmp4fcs36qa -i /home/deblintrake/Escritorio/SysTests/wazuh-qa/tests/system/provisioning/enrollment_cluster/inventory.yml -m command --args '/var/ossec/bin/agent_groups -s -i 011' wazuh-worker1", exit_status=0, stdout=b"wazuh-worker1 | CHANGED | rc=0 >>\nThe agent 'Agent-1647356992' with ID '011' belongs to groups: Null.\n", stderr=None) INFO testinfra:ansible.py:58 RUN Ansible('command', '/var/ossec/bin/agent_groups -s -i 011', {'check': False, 'become': False}): {'changed': True, 'cmd': ['/var/ossec/bin/agent_groups', '-s', '-i', '011'], 'delta': '0:00:03.515566', 'end': '2022-03-15 16:10:14.883315', 'msg': '', 'rc': 0, 'start': '2022-03-15 16:10:11.367749', 'stderr': '', 'stderr_lines': [], 'stdout': "The agent 'Agent-1647356992' with ID '011' belongs to groups: " 'Null.', 'stdout_lines': ["The agent 'Agent-1647356992' with ID '011' belongs to " 'groups: Null.']} DEBUG testinfra:base.py:277 RUN CommandResult(command=b"ansible --tree /tmp/tmpb3dbdljj -i /home/deblintrake/Escritorio/SysTests/wazuh-qa/tests/system/provisioning/enrollment_cluster/inventory.yml -m command --args '/var/ossec/bin/agent_groups -s -i 011' wazuh-worker2", exit_status=0, stdout=b"wazuh-worker2 | CHANGED | rc=0 >>\nThe agent 'Agent-1647356992' with ID '011' belongs to groups: Null.\n", stderr=None) INFO testinfra:ansible.py:58 RUN Ansible('command', '/var/ossec/bin/agent_groups -s -i 011', {'check': False, 'become': False}): {'changed': True, 'cmd': ['/var/ossec/bin/agent_groups', '-s', '-i', '011'], 'delta': '0:00:03.831798', 'end': '2022-03-15 16:10:20.686556', 'msg': '', 'rc': 0, 'start': '2022-03-15 16:10:16.854758', 'stderr': '', 'stderr_lines': [], 'stdout': "The agent 'Agent-1647356992' with ID '011' belongs to groups: " 'Null.', 'stdout_lines': ["The agent 'Agent-1647356992' with ID '011' 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'011 Agent-1647356992 172.18.0.6 484a864fe63c30508ad26569f9a3fa30089b63448a99384d26e8ca12d90794b6\n', stderr=None) DEBUG testinfra:base.py:277 RUN CommandResult(command=b"ansible --tree /tmp/tmpl07psymh -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 16:10:24 wazuh-agentd[25893] debug_op.c:70 at _log(): DEBUG: Logging module auto-initialized\n2022/03/15 16:10:24 wazuh-agentd[25893] main.c:139 at main(): DEBUG: Wazuh home directory: /var/ossec\n2022/03/15 16:10:24 wazuh-agentd[25893] main.c:141 at main(): DEBUG: Started (pid: 25893).\n2022/03/15 16:10:24 wazuh-agentd[25893] agent_op.c:219 at os_read_agent_profile(): DEBUG: Calling os_read_agent_profile().\n2022/03/15 16:10:24 wazuh-agentd[25893] agent_op.c:238 at os_read_agent_profile(): DEBUG: os_read_agent_profile() = [debian, debian10]\n2022/03/15 16:10:24 wazuh-agentd[25893] config.c:416 at ReadConfig(): DEBUG: agent_config element does not have any attributes.\n2022/03/15 16:10:24 wazuh-agentd[25893] agent_op.c:219 at os_read_agent_profile(): DEBUG: Calling os_read_agent_profile().\n2022/03/15 16:10:24 wazuh-agentd[25893] agent_op.c:238 at os_read_agent_profile(): DEBUG: os_read_agent_profile() = [debian, debian10]\n2022/03/15 16:10:24 wazuh-agentd[25893] config.c:416 at ReadConfig(): DEBUG: agent_config element does not have any attributes.\n2022/03/15 16:10:25 wazuh-agentd[25916] debug_op.c:70 at _log(): DEBUG: Logging module auto-initialized\n2022/03/15 16:10:25 wazuh-agentd[25916] main.c:139 at main(): DEBUG: Wazuh home directory: /var/ossec\n2022/03/15 16:10:25 wazuh-agentd[25916] main.c:141 at main(): DEBUG: Started (pid: 25916).\n2022/03/15 16:10:25 wazuh-agentd[25916] agent_op.c:219 at os_read_agent_profile(): DEBUG: Calling os_read_agent_profile().\n2022/03/15 16:10:25 wazuh-agentd[25916] agent_op.c:238 at os_read_agent_profile(): DEBUG: os_read_agent_profile() = [debian, debian10]\n2022/03/15 16:10:25 wazuh-agentd[25916] config.c:416 at ReadConfig(): DEBUG: agent_config element does not have any attributes.\n2022/03/15 16:10:25 wazuh-agentd[25916] agent_op.c:219 at os_read_agent_profile(): DEBUG: Calling os_read_agent_profile().\n2022/03/15 16:10:25 wazuh-agentd[25916] agent_op.c:238 at os_read_agent_profile(): DEBUG: os_read_agent_profile() = [debian, debian10]\n2022/03/15 16:10:25 wazuh-agentd[25916] 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.267195', 'end': '2022-03-15 16:10:31.687439', 'msg': '', 'rc': 0, 'start': '2022-03-15 16:10:23.420244', 'stderr': '2022/03/15 16:10:24 wazuh-agentd[25893] debug_op.c:70 at _log(): ' 'DEBUG: Logging module auto-initialized\n' '2022/03/15 16:10:24 wazuh-agentd[25893] main.c:139 at main(): ' 'DEBUG: Wazuh home directory: /var/ossec\n' '2022/03/15 16:10:24 wazuh-agentd[25893] main.c:141 at main(): ' 'DEBUG: Started (pid: 25893).\n' '2022/03/15 16:10:24 wazuh-agentd[25893] agent_op.c:219 at ' 'os_read_agent_profile(): DEBUG: Calling os_read_agent_profile().\n' '2022/03/15 16:10:24 wazuh-agentd[25893] agent_op.c:238 at ' 'os_read_agent_profile(): DEBUG: os_read_agent_profile() = [debian, ' 'debian10]\n' '2022/03/15 16:10:24 wazuh-agentd[25893] config.c:416 at ' 'ReadConfig(): DEBUG: agent_config element does not have any ' 'attributes.\n' '2022/03/15 16:10:24 wazuh-agentd[25893] agent_op.c:219 at ' 'os_read_agent_profile(): DEBUG: Calling os_read_agent_profile().\n' '2022/03/15 16:10:24 wazuh-agentd[25893] agent_op.c:238 at ' 'os_read_agent_profile(): DEBUG: os_read_agent_profile() = [debian, ' 'debian10]\n' '2022/03/15 16:10:24 wazuh-agentd[25893] config.c:416 at ' 'ReadConfig(): DEBUG: agent_config element does not have any ' 'attributes.\n' '2022/03/15 16:10:25 wazuh-agentd[25916] debug_op.c:70 at _log(): ' 'DEBUG: Logging module auto-initialized\n' '2022/03/15 16:10:25 wazuh-agentd[25916] main.c:139 at main(): ' 'DEBUG: Wazuh home directory: /var/ossec\n' '2022/03/15 16:10:25 wazuh-agentd[25916] main.c:141 at main(): ' 'DEBUG: Started (pid: 25916).\n' '2022/03/15 16:10:25 wazuh-agentd[25916] agent_op.c:219 at ' 'os_read_agent_profile(): DEBUG: Calling os_read_agent_profile().\n' '2022/03/15 16:10:25 wazuh-agentd[25916] agent_op.c:238 at ' 'os_read_agent_profile(): DEBUG: os_read_agent_profile() = [debian, ' 'debian10]\n' '2022/03/15 16:10:25 wazuh-agentd[25916] config.c:416 at ' 'ReadConfig(): DEBUG: agent_config element does not have any ' 'attributes.\n' '2022/03/15 16:10:25 wazuh-agentd[25916] agent_op.c:219 at ' 'os_read_agent_profile(): DEBUG: Calling os_read_agent_profile().\n' '2022/03/15 16:10:25 wazuh-agentd[25916] agent_op.c:238 at ' 'os_read_agent_profile(): DEBUG: os_read_agent_profile() = [debian, ' 'debian10]\n' '2022/03/15 16:10:25 wazuh-agentd[25916] config.c:416 at ' 'ReadConfig(): DEBUG: agent_config element does not have any ' 'attributes.', 'stderr_lines': ['2022/03/15 16:10:24 wazuh-agentd[25893] debug_op.c:70 at ' '_log(): DEBUG: Logging module auto-initialized', '2022/03/15 16:10:24 wazuh-agentd[25893] main.c:139 at ' 'main(): DEBUG: Wazuh home directory: /var/ossec', '2022/03/15 16:10:24 wazuh-agentd[25893] main.c:141 at ' 'main(): DEBUG: Started (pid: 25893).', '2022/03/15 16:10:24 wazuh-agentd[25893] agent_op.c:219 at ' 'os_read_agent_profile(): DEBUG: Calling ' 'os_read_agent_profile().', '2022/03/15 16:10:24 wazuh-agentd[25893] agent_op.c:238 at ' 'os_read_agent_profile(): DEBUG: os_read_agent_profile() = ' '[debian, debian10]', '2022/03/15 16:10:24 wazuh-agentd[25893] config.c:416 at ' 'ReadConfig(): DEBUG: agent_config element does not have any ' 'attributes.', '2022/03/15 16:10:24 wazuh-agentd[25893] agent_op.c:219 at ' 'os_read_agent_profile(): DEBUG: Calling ' 'os_read_agent_profile().', '2022/03/15 16:10:24 wazuh-agentd[25893] agent_op.c:238 at ' 'os_read_agent_profile(): DEBUG: os_read_agent_profile() = ' '[debian, debian10]', '2022/03/15 16:10:24 wazuh-agentd[25893] config.c:416 at ' 'ReadConfig(): DEBUG: agent_config element does not have any ' 'attributes.', '2022/03/15 16:10:25 wazuh-agentd[25916] debug_op.c:70 at ' '_log(): DEBUG: Logging module auto-initialized', '2022/03/15 16:10:25 wazuh-agentd[25916] main.c:139 at ' 'main(): DEBUG: Wazuh home directory: /var/ossec', '2022/03/15 16:10:25 wazuh-agentd[25916] main.c:141 at ' 'main(): DEBUG: Started (pid: 25916).', '2022/03/15 16:10:25 wazuh-agentd[25916] agent_op.c:219 at ' 'os_read_agent_profile(): DEBUG: Calling ' 'os_read_agent_profile().', '2022/03/15 16:10:25 wazuh-agentd[25916] agent_op.c:238 at ' 'os_read_agent_profile(): DEBUG: os_read_agent_profile() = ' '[debian, debian10]', '2022/03/15 16:10:25 wazuh-agentd[25916] config.c:416 at ' 'ReadConfig(): DEBUG: agent_config element does not have any ' 'attributes.', '2022/03/15 16:10:25 wazuh-agentd[25916] agent_op.c:219 at ' 'os_read_agent_profile(): DEBUG: Calling ' 'os_read_agent_profile().', '2022/03/15 16:10:25 wazuh-agentd[25916] agent_op.c:238 at ' 'os_read_agent_profile(): DEBUG: os_read_agent_profile() = ' '[debian, debian10]', '2022/03/15 16:10:25 wazuh-agentd[25916] 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/tmp_bmk8cnb -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/tmpr43lf9w1 -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 \n011 Agent-1647356992 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.721824', 'end': '2022-03-15 16:10:59.425481', 'msg': '', 'rc': 0, 'start': '2022-03-15 16:10:57.703657', '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' '011 Agent-1647356992 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 ', '011 Agent-1647356992 172.18.0.6 active Wazuh v4.4.0 ' 'wazuh-worker1 ']} DEBUG testinfra:base.py:277 RUN CommandResult(command=b"ansible --tree /tmp/tmpuwfxa7xi -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 \n011 Agent-1647356992 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.228938', 'end': '2022-03-15 16:11:02.995355', 'msg': '', 'rc': 0, 'start': '2022-03-15 16:11:01.766417', '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' '011 Agent-1647356992 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 ', '011 Agent-1647356992 172.18.0.6 active Wazuh v4.4.0 ' 'wazuh-worker1 ']} DEBUG testinfra:base.py:277 RUN CommandResult(command=b"ansible --tree /tmp/tmp9bnm71xm -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 \n011 Agent-1647356992 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.492022', 'end': '2022-03-15 16:11:06.563574', 'msg': '', 'rc': 0, 'start': '2022-03-15 16:11:05.071552', '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' '011 Agent-1647356992 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 ', '011 Agent-1647356992 172.18.0.6 active Wazuh v4.4.0 ' 'wazuh-worker1 ']} DEBUG testinfra:base.py:277 RUN CommandResult(command=b"ansible --tree /tmp/tmpwduqo7vo -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.931061', 'end': '2022-03-15 16:11:11.682503', 'msg': '', 'rc': 0, 'start': '2022-03-15 16:11:08.751442', '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/tmpb63mhx74 -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 011 -g group_test' wazuh-master", exit_status=0, stdout=b"wazuh-master | CHANGED | rc=0 >>\nGroup '['group_test']' added to agent '['011']'.\n", stderr=None) INFO testinfra:ansible.py:58 RUN Ansible('command', '/var/ossec/bin/agent_groups -q -a -i 011 -g group_test', {'check': False, 'become': False}): {'changed': True, 'cmd': ['/var/ossec/bin/agent_groups', '-q', '-a', '-i', '011', '-g', 'group_test'], 'delta': '0:00:02.813827', 'end': '2022-03-15 16:11:16.659003', 'msg': '', 'rc': 0, 'start': '2022-03-15 16:11:13.845176', 'stderr': '', 'stderr_lines': [], 'stdout': "Group '['group_test']' added to agent '['011']'.", 'stdout_lines': ["Group '['group_test']' added to agent '['011']'."]} DEBUG testinfra:base.py:277 RUN CommandResult(command=b"ansible --tree /tmp/tmphmivsozk -i /home/deblintrake/Escritorio/SysTests/wazuh-qa/tests/system/provisioning/enrollment_cluster/inventory.yml -m command --args '/var/ossec/bin/agent_groups -s -i 011' wazuh-master", exit_status=0, stdout=b"wazuh-master | CHANGED | rc=0 >>\nThe agent 'Agent-1647356992' with ID '011' belongs to groups: default, group_test.\n", stderr=None) INFO testinfra:ansible.py:58 RUN Ansible('command', '/var/ossec/bin/agent_groups -s -i 011', {'check': False, 'become': False}): {'changed': True, 'cmd': ['/var/ossec/bin/agent_groups', '-s', '-i', '011'], 'delta': '0:00:03.569577', 'end': '2022-03-15 16:11:32.583712', 'msg': '', 'rc': 0, 'start': '2022-03-15 16:11:29.014135', 'stderr': '', 'stderr_lines': [], 'stdout': "The agent 'Agent-1647356992' with ID '011' belongs to groups: " 'default, group_test.', 'stdout_lines': ["The agent 'Agent-1647356992' with ID '011' belongs to " 'groups: default, group_test.']} DEBUG testinfra:base.py:277 RUN CommandResult(command=b"ansible --tree /tmp/tmphkcb7bcb -i /home/deblintrake/Escritorio/SysTests/wazuh-qa/tests/system/provisioning/enrollment_cluster/inventory.yml -m command --args '/var/ossec/bin/agent_groups -s -i 011' wazuh-worker1", exit_status=0, stdout=b"wazuh-worker1 | CHANGED | rc=0 >>\nThe agent 'Agent-1647356992' with ID '011' belongs to groups: default, group_test.\n", stderr=None) INFO testinfra:ansible.py:58 RUN Ansible('command', '/var/ossec/bin/agent_groups -s -i 011', {'check': False, 'become': False}): {'changed': True, 'cmd': ['/var/ossec/bin/agent_groups', '-s', '-i', '011'], 'delta': '0:00:03.452734', 'end': '2022-03-15 16:11:38.364601', 'msg': '', 'rc': 0, 'start': '2022-03-15 16:11:34.911867', 'stderr': '', 'stderr_lines': [], 'stdout': "The agent 'Agent-1647356992' with ID '011' belongs to groups: " 'default, group_test.', 'stdout_lines': ["The agent 'Agent-1647356992' with ID '011' belongs to " 'groups: default, group_test.']} DEBUG testinfra:base.py:277 RUN CommandResult(command=b"ansible --tree /tmp/tmpthp4wr6n -i /home/deblintrake/Escritorio/SysTests/wazuh-qa/tests/system/provisioning/enrollment_cluster/inventory.yml -m command --args '/var/ossec/bin/agent_groups -s -i 011' wazuh-worker2", exit_status=0, stdout=b"wazuh-worker2 | CHANGED | rc=0 >>\nThe agent 'Agent-1647356992' with ID '011' belongs to groups: default, group_test.\n", stderr=None) INFO testinfra:ansible.py:58 RUN Ansible('command', '/var/ossec/bin/agent_groups -s -i 011', {'check': False, 'become': False}): {'changed': True, 'cmd': ['/var/ossec/bin/agent_groups', '-s', '-i', '011'], 'delta': '0:00:03.144146', 'end': '2022-03-15 16:11:43.713235', 'msg': '', 'rc': 0, 'start': '2022-03-15 16:11:40.569089', 'stderr': '', 'stderr_lines': [], 'stdout': "The agent 'Agent-1647356992' with ID '011' belongs to groups: " 'default, group_test.', 'stdout_lines': ["The agent 'Agent-1647356992' with ID '011' belongs to " 'groups: default, group_test.']} DEBUG testinfra:base.py:277 RUN CommandResult(command=b"ansible --tree /tmp/tmp1uzlo5q0 -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: 011.\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.272139', 'end': '2022-03-15 16:11:49.073456', 'msg': '', 'rc': 0, 'start': '2022-03-15 16:11:45.801317', 'stderr': '', 'stderr_lines': [], 'stdout': 'Group group_test removed.\nAffected agents: 011.', 'stdout_lines': ['Group group_test removed.', 'Affected agents: 011.']} -----------------------------Captured log teardown------------------------------ DEBUG testinfra:base.py:277 RUN CommandResult(command=b"ansible --tree /tmp/tmphnxr9ng5 -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 >>\n011\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.052212', 'end': '2022-03-15 16:11:52.288524', 'msg': '', 'rc': 0, 'start': '2022-03-15 16:11:51.236312', 'stderr': '', 'stderr_lines': [], 'stdout': '011', 'stdout_lines': ['011']} DEBUG testinfra:base.py:277 RUN CommandResult(command=b"ansible --tree /tmp/tmppuw9_7po -i /home/deblintrake/Escritorio/SysTests/wazuh-qa/tests/system/provisioning/enrollment_cluster/inventory.yml -m command --args '/var/ossec/bin/manage_agents -r 011' 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: 011, Name: Agent-1647356992, IP: 172.18.0.6\nProvide the ID of the agent to be removed (or '\\q' to quit): 011\nConfirm deleting it?(y/n): y\nAgent '011' removed.\n\nmanage_agents: Exiting.\n", stderr=None) INFO testinfra:ansible.py:58 RUN Ansible('command', '/var/ossec/bin/manage_agents -r 011', {'check': False, 'become': False}): {'changed': True, 'cmd': ['/var/ossec/bin/manage_agents', '-r', '011'], 'delta': '0:00:00.563044', 'end': '2022-03-15 16:11:54.808013', 'msg': '', 'rc': 0, 'start': '2022-03-15 16:11:54.244969', '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: 011, Name: Agent-1647356992, IP: 172.18.0.6\n' "Provide the ID of the agent to be removed (or '\\q' to quit): 011\n" 'Confirm deleting it?(y/n): y\n' "Agent '011' 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: 011, Name: Agent-1647356992, IP: 172.18.0.6', "Provide the ID of the agent to be removed (or '\\q' to " 'quit): 011', 'Confirm deleting it?(y/n): y', "Agent '011' removed.", '', 'manage_agents: Exiting.']} DEBUG testinfra:base.py:277 RUN CommandResult(command=b"ansible --tree /tmp/tmp513kg7k9 -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.749636', 'end': '2022-03-15 16:11:57.717199', 'msg': '', 'rc': 0, 'start': '2022-03-15 16:11:56.967563', 'stderr': '', 'stderr_lines': [], 'stdout': '', 'stdout_lines': []} DEBUG testinfra:base.py:277 RUN CommandResult(command=b"ansible --tree /tmp/tmptzvcxix0 -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/tmpnws07fx9 -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-1647357132.8585598-297655-96017022383158/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-1647357132.8585598-297655-96017022383158/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.71 | |
-------------------------------Captured log setup------------------------------- DEBUG testinfra:base.py:277 RUN CommandResult(command=b'ansible --tree /tmp/tmpwefmhfsz -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-1647357137.7673106-298111-190105008501219/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-1647357137.7673106-298111-190105008501219/source', 'state': 'file', 'uid': 999} DEBUG testinfra:base.py:277 RUN CommandResult(command=b'ansible --tree /tmp/tmpyqiv39do -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-1647357142.7751968-298677-66971848821324/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-1647357142.7751968-298677-66971848821324/source', 'state': 'file', 'uid': 999} DEBUG testinfra:base.py:277 RUN CommandResult(command=b'ansible --tree /tmp/tmpq2s20w8t -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/tmp_knk2qlh -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-1647357153.1586046-299440-3334112526199/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-1647357153.1586046-299440-3334112526199/source', 'state': 'file', 'uid': 999} DEBUG testinfra:base.py:277 RUN CommandResult(command=b'ansible --tree /tmp/tmpp8l04gyl -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/tmp9gwzkbqf -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-1647357163.0856774-300190-245042246869778/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-1647357163.0856774-300190-245042246869778/source', 'state': 'file', 'uid': 999} DEBUG testinfra:base.py:277 RUN CommandResult(command=b'ansible --tree /tmp/tmpxl7oawpt -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/tmpcdsws6a6 -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.807521', 'end': '2022-03-15 16:12:55.301539', 'msg': '', 'rc': 0, 'start': '2022-03-15 16:12:54.494018', '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/tmplonsnwef -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.836552', 'end': '2022-03-15 16:12:58.542719', 'msg': '', 'rc': 0, 'start': '2022-03-15 16:12:57.706167', '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/tmpfjfposkl -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/tmplkk2z_a0 -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-1647357176 -I 172.18.0.6' wazuh-agent1", exit_status=0, stdout=b'wazuh-agent1 | CHANGED | rc=0 >>\n2022/03/15 16:13:03 agent-auth: INFO: Started (pid: 29310).\n2022/03/15 16:13:03 agent-auth: INFO: Requesting a key from server: 172.18.0.3\n2022/03/15 16:13:03 agent-auth: INFO: No authentication password provided\n2022/03/15 16:13:03 agent-auth: INFO: Using agent name as: Agent-1647357176\n2022/03/15 16:13:03 agent-auth: INFO: Waiting for server reply\n2022/03/15 16:13:03 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-1647357176 -I 172.18.0.6', {'check': False, 'become': False}): {'changed': True, 'cmd': ['/var/ossec/bin/agent-auth', '-m', '172.18.0.3', '-A', 'Agent-1647357176', '-I', '172.18.0.6'], 'delta': '0:00:00.888343', 'end': '2022-03-15 16:13:03.993872', 'msg': '', 'rc': 0, 'start': '2022-03-15 16:13:03.105529', 'stderr': '2022/03/15 16:13:03 agent-auth: INFO: Started (pid: 29310).\n' '2022/03/15 16:13:03 agent-auth: INFO: Requesting a key from ' 'server: 172.18.0.3\n' '2022/03/15 16:13:03 agent-auth: INFO: No authentication password ' 'provided\n' '2022/03/15 16:13:03 agent-auth: INFO: Using agent name as: ' 'Agent-1647357176\n' '2022/03/15 16:13:03 agent-auth: INFO: Waiting for server reply\n' '2022/03/15 16:13:03 agent-auth: INFO: Valid key received', 'stderr_lines': ['2022/03/15 16:13:03 agent-auth: INFO: Started (pid: 29310).', '2022/03/15 16:13:03 agent-auth: INFO: Requesting a key from ' 'server: 172.18.0.3', '2022/03/15 16:13:03 agent-auth: INFO: No authentication ' 'password provided', '2022/03/15 16:13:03 agent-auth: INFO: Using agent name as: ' 'Agent-1647357176', '2022/03/15 16:13:03 agent-auth: INFO: Waiting for server ' 'reply', '2022/03/15 16:13:03 agent-auth: INFO: Valid key received'], 'stdout': '', 'stdout_lines': []} DEBUG testinfra:base.py:277 RUN CommandResult(command=b"ansible --tree /tmp/tmplye6wy1f -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 >>\n012\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.972264', 'end': '2022-03-15 16:13:07.453298', 'msg': '', 'rc': 0, 'start': '2022-03-15 16:13:06.481034', 'stderr': '', 'stderr_lines': [], 'stdout': '012', 'stdout_lines': ['012']} DEBUG testinfra:base.py:277 RUN CommandResult(command=b"ansible --tree /tmp/tmpg_8tkk7h -i /home/deblintrake/Escritorio/SysTests/wazuh-qa/tests/system/provisioning/enrollment_cluster/inventory.yml -m command --args '/var/ossec/bin/agent_groups -s -i 012' wazuh-master", exit_status=0, stdout=b"wazuh-master | CHANGED | rc=0 >>\nThe agent 'Agent-1647357176' with ID '012' belongs to groups: Null.\n", stderr=None) INFO testinfra:ansible.py:58 RUN Ansible('command', '/var/ossec/bin/agent_groups -s -i 012', {'check': False, 'become': False}): {'changed': True, 'cmd': ['/var/ossec/bin/agent_groups', '-s', '-i', '012'], 'delta': '0:00:03.217769', 'end': '2022-03-15 16:13:12.799644', 'msg': '', 'rc': 0, 'start': '2022-03-15 16:13:09.581875', 'stderr': '', 'stderr_lines': [], 'stdout': "The agent 'Agent-1647357176' with ID '012' belongs to groups: " 'Null.', 'stdout_lines': ["The agent 'Agent-1647357176' with ID '012' belongs to " 'groups: Null.']} DEBUG testinfra:base.py:277 RUN CommandResult(command=b"ansible --tree /tmp/tmpdcnoofx0 -i /home/deblintrake/Escritorio/SysTests/wazuh-qa/tests/system/provisioning/enrollment_cluster/inventory.yml -m command --args '/var/ossec/bin/agent_groups -s -i 012' wazuh-worker1", exit_status=0, stdout=b"wazuh-worker1 | CHANGED | rc=0 >>\nThe agent 'Agent-1647357176' with ID '012' belongs to groups: Null.\n", stderr=None) INFO testinfra:ansible.py:58 RUN Ansible('command', '/var/ossec/bin/agent_groups -s -i 012', {'check': False, 'become': False}): {'changed': True, 'cmd': ['/var/ossec/bin/agent_groups', '-s', '-i', '012'], 'delta': '0:00:02.656668', 'end': '2022-03-15 16:13:17.704086', 'msg': '', 'rc': 0, 'start': '2022-03-15 16:13:15.047418', 'stderr': '', 'stderr_lines': [], 'stdout': "The agent 'Agent-1647357176' with ID '012' belongs to groups: " 'Null.', 'stdout_lines': ["The agent 'Agent-1647357176' with ID '012' belongs to " 'groups: Null.']} DEBUG testinfra:base.py:277 RUN CommandResult(command=b"ansible --tree /tmp/tmp13tcmtjb -i /home/deblintrake/Escritorio/SysTests/wazuh-qa/tests/system/provisioning/enrollment_cluster/inventory.yml -m command --args '/var/ossec/bin/agent_groups -s -i 012' wazuh-worker2", exit_status=0, stdout=b"wazuh-worker2 | CHANGED | rc=0 >>\nThe agent 'Agent-1647357176' with ID '012' belongs to groups: Null.\n", stderr=None) INFO testinfra:ansible.py:58 RUN Ansible('command', '/var/ossec/bin/agent_groups -s -i 012', {'check': False, 'become': False}): {'changed': True, 'cmd': ['/var/ossec/bin/agent_groups', '-s', '-i', '012'], 'delta': '0:00:03.221945', 'end': '2022-03-15 16:13:23.154161', 'msg': '', 'rc': 0, 'start': '2022-03-15 16:13:19.932216', 'stderr': '', 'stderr_lines': [], 'stdout': "The agent 'Agent-1647357176' with ID '012' belongs to groups: " 'Null.', 'stdout_lines': ["The agent 'Agent-1647357176' with ID '012' 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'012 Agent-1647357176 172.18.0.6 a0905cf1ca8858a3fc507ed546701951156dca2d50c72f6ec5d5eac11ded02c9\n', stderr=None) DEBUG testinfra:base.py:277 RUN CommandResult(command=b"ansible --tree /tmp/tmphdoaqp8k -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 16:13:26 wazuh-agentd[29469] debug_op.c:70 at _log(): DEBUG: Logging module auto-initialized\n2022/03/15 16:13:26 wazuh-agentd[29469] main.c:139 at main(): DEBUG: Wazuh home directory: /var/ossec\n2022/03/15 16:13:26 wazuh-agentd[29469] main.c:141 at main(): DEBUG: Started (pid: 29469).\n2022/03/15 16:13:26 wazuh-agentd[29469] agent_op.c:219 at os_read_agent_profile(): DEBUG: Calling os_read_agent_profile().\n2022/03/15 16:13:26 wazuh-agentd[29469] agent_op.c:238 at os_read_agent_profile(): DEBUG: os_read_agent_profile() = [debian, debian10]\n2022/03/15 16:13:26 wazuh-agentd[29469] config.c:416 at ReadConfig(): DEBUG: agent_config element does not have any attributes.\n2022/03/15 16:13:26 wazuh-agentd[29469] agent_op.c:219 at os_read_agent_profile(): DEBUG: Calling os_read_agent_profile().\n2022/03/15 16:13:26 wazuh-agentd[29469] agent_op.c:238 at os_read_agent_profile(): DEBUG: os_read_agent_profile() = [debian, debian10]\n2022/03/15 16:13:26 wazuh-agentd[29469] config.c:416 at ReadConfig(): DEBUG: agent_config element does not have any attributes.\n2022/03/15 16:13:27 wazuh-agentd[29492] debug_op.c:70 at _log(): DEBUG: Logging module auto-initialized\n2022/03/15 16:13:27 wazuh-agentd[29492] main.c:139 at main(): DEBUG: Wazuh home directory: /var/ossec\n2022/03/15 16:13:27 wazuh-agentd[29492] main.c:141 at main(): DEBUG: Started (pid: 29492).\n2022/03/15 16:13:27 wazuh-agentd[29492] agent_op.c:219 at os_read_agent_profile(): DEBUG: Calling os_read_agent_profile().\n2022/03/15 16:13:27 wazuh-agentd[29492] agent_op.c:238 at os_read_agent_profile(): DEBUG: os_read_agent_profile() = [debian, debian10]\n2022/03/15 16:13:27 wazuh-agentd[29492] config.c:416 at ReadConfig(): DEBUG: agent_config element does not have any attributes.\n2022/03/15 16:13:27 wazuh-agentd[29492] agent_op.c:219 at os_read_agent_profile(): DEBUG: Calling os_read_agent_profile().\n2022/03/15 16:13:27 wazuh-agentd[29492] agent_op.c:238 at os_read_agent_profile(): DEBUG: os_read_agent_profile() = [debian, debian10]\n2022/03/15 16:13:27 wazuh-agentd[29492] 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:07.199278', 'end': '2022-03-15 16:13:32.477423', 'msg': '', 'rc': 0, 'start': '2022-03-15 16:13:25.278145', 'stderr': '2022/03/15 16:13:26 wazuh-agentd[29469] debug_op.c:70 at _log(): ' 'DEBUG: Logging module auto-initialized\n' '2022/03/15 16:13:26 wazuh-agentd[29469] main.c:139 at main(): ' 'DEBUG: Wazuh home directory: /var/ossec\n' '2022/03/15 16:13:26 wazuh-agentd[29469] main.c:141 at main(): ' 'DEBUG: Started (pid: 29469).\n' '2022/03/15 16:13:26 wazuh-agentd[29469] agent_op.c:219 at ' 'os_read_agent_profile(): DEBUG: Calling os_read_agent_profile().\n' '2022/03/15 16:13:26 wazuh-agentd[29469] agent_op.c:238 at ' 'os_read_agent_profile(): DEBUG: os_read_agent_profile() = [debian, ' 'debian10]\n' '2022/03/15 16:13:26 wazuh-agentd[29469] config.c:416 at ' 'ReadConfig(): DEBUG: agent_config element does not have any ' 'attributes.\n' '2022/03/15 16:13:26 wazuh-agentd[29469] agent_op.c:219 at ' 'os_read_agent_profile(): DEBUG: Calling os_read_agent_profile().\n' '2022/03/15 16:13:26 wazuh-agentd[29469] agent_op.c:238 at ' 'os_read_agent_profile(): DEBUG: os_read_agent_profile() = [debian, ' 'debian10]\n' '2022/03/15 16:13:26 wazuh-agentd[29469] config.c:416 at ' 'ReadConfig(): DEBUG: agent_config element does not have any ' 'attributes.\n' '2022/03/15 16:13:27 wazuh-agentd[29492] debug_op.c:70 at _log(): ' 'DEBUG: Logging module auto-initialized\n' '2022/03/15 16:13:27 wazuh-agentd[29492] main.c:139 at main(): ' 'DEBUG: Wazuh home directory: /var/ossec\n' '2022/03/15 16:13:27 wazuh-agentd[29492] main.c:141 at main(): ' 'DEBUG: Started (pid: 29492).\n' '2022/03/15 16:13:27 wazuh-agentd[29492] agent_op.c:219 at ' 'os_read_agent_profile(): DEBUG: Calling os_read_agent_profile().\n' '2022/03/15 16:13:27 wazuh-agentd[29492] agent_op.c:238 at ' 'os_read_agent_profile(): DEBUG: os_read_agent_profile() = [debian, ' 'debian10]\n' '2022/03/15 16:13:27 wazuh-agentd[29492] config.c:416 at ' 'ReadConfig(): DEBUG: agent_config element does not have any ' 'attributes.\n' '2022/03/15 16:13:27 wazuh-agentd[29492] agent_op.c:219 at ' 'os_read_agent_profile(): DEBUG: Calling os_read_agent_profile().\n' '2022/03/15 16:13:27 wazuh-agentd[29492] agent_op.c:238 at ' 'os_read_agent_profile(): DEBUG: os_read_agent_profile() = [debian, ' 'debian10]\n' '2022/03/15 16:13:27 wazuh-agentd[29492] config.c:416 at ' 'ReadConfig(): DEBUG: agent_config element does not have any ' 'attributes.', 'stderr_lines': ['2022/03/15 16:13:26 wazuh-agentd[29469] debug_op.c:70 at ' '_log(): DEBUG: Logging module auto-initialized', '2022/03/15 16:13:26 wazuh-agentd[29469] main.c:139 at ' 'main(): DEBUG: Wazuh home directory: /var/ossec', '2022/03/15 16:13:26 wazuh-agentd[29469] main.c:141 at ' 'main(): DEBUG: Started (pid: 29469).', '2022/03/15 16:13:26 wazuh-agentd[29469] agent_op.c:219 at ' 'os_read_agent_profile(): DEBUG: Calling ' 'os_read_agent_profile().', '2022/03/15 16:13:26 wazuh-agentd[29469] agent_op.c:238 at ' 'os_read_agent_profile(): DEBUG: os_read_agent_profile() = ' '[debian, debian10]', '2022/03/15 16:13:26 wazuh-agentd[29469] config.c:416 at ' 'ReadConfig(): DEBUG: agent_config element does not have any ' 'attributes.', '2022/03/15 16:13:26 wazuh-agentd[29469] agent_op.c:219 at ' 'os_read_agent_profile(): DEBUG: Calling ' 'os_read_agent_profile().', '2022/03/15 16:13:26 wazuh-agentd[29469] agent_op.c:238 at ' 'os_read_agent_profile(): DEBUG: os_read_agent_profile() = ' '[debian, debian10]', '2022/03/15 16:13:26 wazuh-agentd[29469] config.c:416 at ' 'ReadConfig(): DEBUG: agent_config element does not have any ' 'attributes.', '2022/03/15 16:13:27 wazuh-agentd[29492] debug_op.c:70 at ' '_log(): DEBUG: Logging module auto-initialized', '2022/03/15 16:13:27 wazuh-agentd[29492] main.c:139 at ' 'main(): DEBUG: Wazuh home directory: /var/ossec', '2022/03/15 16:13:27 wazuh-agentd[29492] main.c:141 at ' 'main(): DEBUG: Started (pid: 29492).', '2022/03/15 16:13:27 wazuh-agentd[29492] agent_op.c:219 at ' 'os_read_agent_profile(): DEBUG: Calling ' 'os_read_agent_profile().', '2022/03/15 16:13:27 wazuh-agentd[29492] agent_op.c:238 at ' 'os_read_agent_profile(): DEBUG: os_read_agent_profile() = ' '[debian, debian10]', '2022/03/15 16:13:27 wazuh-agentd[29492] config.c:416 at ' 'ReadConfig(): DEBUG: agent_config element does not have any ' 'attributes.', '2022/03/15 16:13:27 wazuh-agentd[29492] agent_op.c:219 at ' 'os_read_agent_profile(): DEBUG: Calling ' 'os_read_agent_profile().', '2022/03/15 16:13:27 wazuh-agentd[29492] agent_op.c:238 at ' 'os_read_agent_profile(): DEBUG: os_read_agent_profile() = ' '[debian, debian10]', '2022/03/15 16:13:27 wazuh-agentd[29492] 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/tmprjeltfhl -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/tmpqv87th_9 -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 \n012 Agent-1647357176 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.711637', 'end': '2022-03-15 16:14:00.438142', 'msg': '', 'rc': 0, 'start': '2022-03-15 16:13:58.726505', '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' '012 Agent-1647357176 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 ', '012 Agent-1647357176 172.18.0.6 active Wazuh v4.4.0 ' 'wazuh-worker1 ']} DEBUG testinfra:base.py:277 RUN CommandResult(command=b"ansible --tree /tmp/tmp6smcywep -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 \n012 Agent-1647357176 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.360795', 'end': '2022-03-15 16:14:04.257322', 'msg': '', 'rc': 0, 'start': '2022-03-15 16:14:02.896527', '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' '012 Agent-1647357176 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 ', '012 Agent-1647357176 172.18.0.6 active Wazuh v4.4.0 ' 'wazuh-worker1 ']} DEBUG testinfra:base.py:277 RUN CommandResult(command=b"ansible --tree /tmp/tmprmrh8s8r -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 \n012 Agent-1647357176 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.541201', 'end': '2022-03-15 16:14:08.023499', 'msg': '', 'rc': 0, 'start': '2022-03-15 16:14:06.482298', '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' '012 Agent-1647357176 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 ', '012 Agent-1647357176 172.18.0.6 active Wazuh v4.4.0 ' 'wazuh-worker1 ']} DEBUG testinfra:base.py:277 RUN CommandResult(command=b"ansible --tree /tmp/tmpp3s7vc3v -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/tmp1tldgnz5 -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 \n012 Agent-1647357176 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.818448', 'end': '2022-03-15 16:14:28.882175', 'msg': '', 'rc': 0, 'start': '2022-03-15 16:14:28.063727', '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' '012 Agent-1647357176 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 ', '012 Agent-1647357176 172.18.0.6 disconnected Wazuh ' 'v4.4.0 wazuh-worker1 ']} DEBUG testinfra:base.py:277 RUN CommandResult(command=b"ansible --tree /tmp/tmp4s10c4u3 -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 \n012 Agent-1647357176 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.949046', 'end': '2022-03-15 16:14:31.718738', 'msg': '', 'rc': 0, 'start': '2022-03-15 16:14:30.769692', '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' '012 Agent-1647357176 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 ', '012 Agent-1647357176 172.18.0.6 disconnected Wazuh ' 'v4.4.0 wazuh-worker1 ']} DEBUG testinfra:base.py:277 RUN CommandResult(command=b"ansible --tree /tmp/tmpd3y5ksa7 -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 \n012 Agent-1647357176 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.594645', 'end': '2022-03-15 16:14:35.265447', 'msg': '', 'rc': 0, 'start': '2022-03-15 16:14:33.670802', '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' '012 Agent-1647357176 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 ', '012 Agent-1647357176 172.18.0.6 disconnected Wazuh ' 'v4.4.0 wazuh-worker1 ']} DEBUG testinfra:base.py:277 RUN CommandResult(command=b"ansible --tree /tmp/tmpx135euks -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.101678', 'end': '2022-03-15 16:14:40.262926', 'msg': '', 'rc': 0, 'start': '2022-03-15 16:14:37.161248', '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/tmpr3lsaa7r -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 012 -g group_test' wazuh-master", exit_status=0, stdout=b"wazuh-master | CHANGED | rc=0 >>\nGroup '['group_test']' added to agent '['012']'.\n", stderr=None) INFO testinfra:ansible.py:58 RUN Ansible('command', '/var/ossec/bin/agent_groups -q -a -i 012 -g group_test', {'check': False, 'become': False}): {'changed': True, 'cmd': ['/var/ossec/bin/agent_groups', '-q', '-a', '-i', '012', '-g', 'group_test'], 'delta': '0:00:02.503793', 'end': '2022-03-15 16:14:44.845514', 'msg': '', 'rc': 0, 'start': '2022-03-15 16:14:42.341721', 'stderr': '', 'stderr_lines': [], 'stdout': "Group '['group_test']' added to agent '['012']'.", 'stdout_lines': ["Group '['group_test']' added to agent '['012']'."]} DEBUG testinfra:base.py:277 RUN CommandResult(command=b"ansible --tree /tmp/tmpxj1ey2wi -i /home/deblintrake/Escritorio/SysTests/wazuh-qa/tests/system/provisioning/enrollment_cluster/inventory.yml -m command --args '/var/ossec/bin/agent_groups -s -i 012' wazuh-master", exit_status=0, stdout=b"wazuh-master | CHANGED | rc=0 >>\nThe agent 'Agent-1647357176' with ID '012' belongs to groups: default, group_test.\n", stderr=None) INFO testinfra:ansible.py:58 RUN Ansible('command', '/var/ossec/bin/agent_groups -s -i 012', {'check': False, 'become': False}): {'changed': True, 'cmd': ['/var/ossec/bin/agent_groups', '-s', '-i', '012'], 'delta': '0:00:02.947443', 'end': '2022-03-15 16:14:59.817515', 'msg': '', 'rc': 0, 'start': '2022-03-15 16:14:56.870072', 'stderr': '', 'stderr_lines': [], 'stdout': "The agent 'Agent-1647357176' with ID '012' belongs to groups: " 'default, group_test.', 'stdout_lines': ["The agent 'Agent-1647357176' with ID '012' belongs to " 'groups: default, group_test.']} DEBUG testinfra:base.py:277 RUN CommandResult(command=b"ansible --tree /tmp/tmpeo5yr2nk -i /home/deblintrake/Escritorio/SysTests/wazuh-qa/tests/system/provisioning/enrollment_cluster/inventory.yml -m command --args '/var/ossec/bin/agent_groups -s -i 012' wazuh-worker1", exit_status=0, stdout=b"wazuh-worker1 | CHANGED | rc=0 >>\nThe agent 'Agent-1647357176' with ID '012' belongs to groups: default, group_test.\n", stderr=None) INFO testinfra:ansible.py:58 RUN Ansible('command', '/var/ossec/bin/agent_groups -s -i 012', {'check': False, 'become': False}): {'changed': True, 'cmd': ['/var/ossec/bin/agent_groups', '-s', '-i', '012'], 'delta': '0:00:02.582502', 'end': '2022-03-15 16:15:04.696024', 'msg': '', 'rc': 0, 'start': '2022-03-15 16:15:02.113522', 'stderr': '', 'stderr_lines': [], 'stdout': "The agent 'Agent-1647357176' with ID '012' belongs to groups: " 'default, group_test.', 'stdout_lines': ["The agent 'Agent-1647357176' with ID '012' belongs to " 'groups: default, group_test.']} DEBUG testinfra:base.py:277 RUN CommandResult(command=b"ansible --tree /tmp/tmpadzrwign -i /home/deblintrake/Escritorio/SysTests/wazuh-qa/tests/system/provisioning/enrollment_cluster/inventory.yml -m command --args '/var/ossec/bin/agent_groups -s -i 012' wazuh-worker2", exit_status=0, stdout=b"wazuh-worker2 | CHANGED | rc=0 >>\nThe agent 'Agent-1647357176' with ID '012' belongs to groups: default, group_test.\n", stderr=None) INFO testinfra:ansible.py:58 RUN Ansible('command', '/var/ossec/bin/agent_groups -s -i 012', {'check': False, 'become': False}): {'changed': True, 'cmd': ['/var/ossec/bin/agent_groups', '-s', '-i', '012'], 'delta': '0:00:03.145287', 'end': '2022-03-15 16:15:10.112952', 'msg': '', 'rc': 0, 'start': '2022-03-15 16:15:06.967665', 'stderr': '', 'stderr_lines': [], 'stdout': "The agent 'Agent-1647357176' with ID '012' belongs to groups: " 'default, group_test.', 'stdout_lines': ["The agent 'Agent-1647357176' with ID '012' belongs to " 'groups: default, group_test.']} DEBUG testinfra:base.py:277 RUN CommandResult(command=b"ansible --tree /tmp/tmpsf7j3xmo -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: 012.\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.604629', 'end': '2022-03-15 16:15:14.717335', 'msg': '', 'rc': 0, 'start': '2022-03-15 16:15:12.112706', 'stderr': '', 'stderr_lines': [], 'stdout': 'Group group_test removed.\nAffected agents: 012.', 'stdout_lines': ['Group group_test removed.', 'Affected agents: 012.']} -----------------------------Captured log teardown------------------------------ DEBUG testinfra:base.py:277 RUN CommandResult(command=b"ansible --tree /tmp/tmpsk10upp2 -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 >>\n012\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.183004', 'end': '2022-03-15 16:15:18.107686', 'msg': '', 'rc': 0, 'start': '2022-03-15 16:15:16.924682', 'stderr': '', 'stderr_lines': [], 'stdout': '012', 'stdout_lines': ['012']} DEBUG testinfra:base.py:277 RUN CommandResult(command=b"ansible --tree /tmp/tmphogetvw_ -i /home/deblintrake/Escritorio/SysTests/wazuh-qa/tests/system/provisioning/enrollment_cluster/inventory.yml -m command --args '/var/ossec/bin/manage_agents -r 012' 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: 012, Name: Agent-1647357176, IP: 172.18.0.6\nProvide the ID of the agent to be removed (or '\\q' to quit): 012\nConfirm deleting it?(y/n): y\nAgent '012' removed.\n\nmanage_agents: Exiting.\n", stderr=None) INFO testinfra:ansible.py:58 RUN Ansible('command', '/var/ossec/bin/manage_agents -r 012', {'check': False, 'become': False}): {'changed': True, 'cmd': ['/var/ossec/bin/manage_agents', '-r', '012'], 'delta': '0:00:00.989244', 'end': '2022-03-15 16:15:21.179489', 'msg': '', 'rc': 0, 'start': '2022-03-15 16:15:20.190245', '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: 012, Name: Agent-1647357176, IP: 172.18.0.6\n' "Provide the ID of the agent to be removed (or '\\q' to quit): 012\n" 'Confirm deleting it?(y/n): y\n' "Agent '012' 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: 012, Name: Agent-1647357176, IP: 172.18.0.6', "Provide the ID of the agent to be removed (or '\\q' to " 'quit): 012', 'Confirm deleting it?(y/n): y', "Agent '012' removed.", '', 'manage_agents: Exiting.']} DEBUG testinfra:base.py:277 RUN CommandResult(command=b"ansible --tree /tmp/tmpnbxow3vq -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.098815', 'end': '2022-03-15 16:15:24.455350', 'msg': '', 'rc': 0, 'start': '2022-03-15 16:15:23.356535', 'stderr': '', 'stderr_lines': [], 'stdout': '', 'stdout_lines': []} DEBUG testinfra:base.py:277 RUN CommandResult(command=b"ansible --tree /tmp/tmpd8tp5tpm -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/tmpad3itlfq -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-1647357332.465358-309962-82288153456678/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-1647357332.465358-309962-82288153456678/source', 'state': 'file', 'uid': 0} |