Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

System Test - Wazuh DB (T1): Agent never_connected is added to a group with tool after the sync completes #2513

Closed
Tracked by #2504
damarisg opened this issue Jan 31, 2022 · 2 comments · Fixed by #2658

Comments

@damarisg
Copy link
Member

damarisg commented Jan 31, 2022

Description

In this test, we want to validate that when an agent in status never_connect is assigned to a group with agent_groups all the node has the changes

Test Details

Case 1:

Given a configured master
And a configured worker worker1
And a configured worker worker2
And the status of agent agent1 is never_connected
When agent agent1 is added to group Y by agent_groups CLI.
Then each node has agent agent1 with its group 'Y' after X seconds.

Note:

  • X: Estimated time for complete information synchronization, minimum 2*Z --- worker1 -> master -> worker1/2
  • Z: Cluster synchronization period (default 10 seconds)
@CamiRomero
Copy link
Contributor

CamiRomero commented Feb 16, 2022

Currently, agent_groups are not allowed to add groups when the status of the agent is never_connected. We talk about this with core team and they will be analyzed the case.

The error when we try to add agent is:
Error 1753 - Could not assign group. Agent status is never connected.

Update: 17/02/2020
This implementation will be work by the core team on Issue 12334

@damarisg
Copy link
Member Author

It was merged on qa-10771-agent-groups-files-to-wazuh-db branch and closed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants