-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Use broadcast system in agent-groups sync #13848
Comments
Status updateMany of the variables and functions related to sending info to all agents have been removed: wazuh/framework/wazuh/core/cluster/master.py Lines 1070 to 1091 in 8dfd770
Also, this function will be called repeatedly instead of having an infinite loop as before. Therefore, the objects must be declared in a different place (probably in hello): wazuh/framework/wazuh/core/cluster/master.py Lines 711 to 722 in 8dfd770
The development is not complete yet but everything worked fine in tests done during #13124. To do
|
Status updateThe development is finished. As you can see below, the
Everything worked fine in my manual tests. I updated unit tests and API integration tests are also passing. However, there is a problem unrelated to these changes in the system tests, which fail since the agents do not connect to the cluster in the test environments. Said error happens also in To do
|
Description
It is requested to replace the current mechanism for obtaining and sending
agent-groups
data from master to the workers. Instead, it is intended to use the broadcast system that was developed here:In the previous PR there are some useful examples for the implementation.
Checks
wazuh/wazuh
framework/wazuh/core/cluster/tests/
&framework/wazuh/core/cluster/dapi/tests/
)framework/wazuh/core/tests/
)framework/wazuh/tests/
)framework/wazuh/rbac/tests/
)api/api/tests/
)api/test/integration/
):api/test/integration/mapping/integration_test_api_endpoints.json
)api/api/spec/spec.yaml
)framework/wazuh/core/exception.py
)CHANGELOG.md
)wazuh/wazuh-documentation
source/user-manual/api/equivalence.rst
)source/user-manual/api/rbac/reference.rst
)The text was updated successfully, but these errors were encountered: