-
Notifications
You must be signed in to change notification settings - Fork 197
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
Centralized restart service #5085
Closed
yenienserrano
wants to merge
84
commits into
4.6.0
from
4277-centralized-restart-service-4.3-1.2-wzd
Closed
Centralized restart service #5085
yenienserrano
wants to merge
84
commits into
4.6.0
from
4277-centralized-restart-service-4.3-1.2-wzd
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
* file to be added with the restart functions * restart calls were changed to service calls * the restarting on time sign appears * modal while restarting added * countDown change of location * cleaning * modal redesign * model and code update * modified delays and designs * change text Synchronizing cluster * Update restart-cluster-manager-callout.tsx * Code improvements * suggestions implemented * polling sync add * Code improvements * add endpoint * add comment * add close button * suggestions implemented * add modal wazuh restarted * delete unnecessary toast * Set clearState on restart error * disabled unneeded console.log Co-authored-by: Alex Ruiz Becerra <[email protected]> Co-authored-by: Federico Rodriguez <[email protected]> Co-authored-by: chantal.kelm <[email protected]> (cherry picked from commit 6598df9)
* Create service to restart wazuh (#4365) * file to be added with the restart functions * restart calls were changed to service calls * the restarting on time sign appears * modal while restarting added * countDown change of location * cleaning * modal redesign * model and code update * modified delays and designs * change text Synchronizing cluster * Update restart-cluster-manager-callout.tsx * Code improvements * suggestions implemented * polling sync add * Code improvements * add endpoint * add comment * add close button * suggestions implemented * add modal wazuh restarted * delete unnecessary toast * Set clearState on restart error * disabled unneeded console.log Co-authored-by: Alex Ruiz Becerra <[email protected]> Co-authored-by: Federico Rodriguez <[email protected]> Co-authored-by: chantal.kelm <[email protected]> (cherry picked from commit 6598df9) * Updated Changelog Co-authored-by: Ian Yenien Serrano <[email protected]> Co-authored-by: Chantal Belén kelm <[email protected]>
* fix: Fixed a routes loop when reinstalling Wazuh indexer * fix: replaced the display error in the plugin loop * changelog: add PR entry * fix import variable Co-authored-by: Matias Ezequiel Moreno <[email protected]>
…4401) Moved the file config-equivalences to common (#4399) * common/config-equivalences * add changelog (cherry picked from commit a40a2ae) Co-authored-by: Ian Yenien Serrano <[email protected]>
This reverts commit eb89062.
Signed-off-by: yenienserrano <[email protected]>
* file to be added with the restart functions * restart calls were changed to service calls * the restarting on time sign appears * modal while restarting added * countDown change of location * cleaning * modal redesign * model and code update * modified delays and designs * change text Synchronizing cluster * Update restart-cluster-manager-callout.tsx * Code improvements * suggestions implemented * polling sync add * Code improvements * add endpoint * add comment * add close button * suggestions implemented * add modal wazuh restarted * delete unnecessary toast * Set clearState on restart error * disabled unneeded console.log Co-authored-by: Alex Ruiz Becerra <[email protected]> Co-authored-by: Federico Rodriguez <[email protected]> Co-authored-by: chantal.kelm <[email protected]> (cherry picked from commit 6598df9)
Signed-off-by: yenienserrano <[email protected]>
* Use POST method when requesting the API login endpoint * changelog: add PR entry Co-authored-by: Matias Ezequiel Moreno <[email protected]> Co-authored-by: Álex <[email protected]> Co-authored-by: Antonio David Gutiérrez <[email protected]> (cherry picked from commit 3977e45) Co-authored-by: Manuel Carmona Pérez <[email protected]>
…rvice config (#4322) Added new key request block in Registration service config (#3956) * Added new key request block * Removed failed snapshots * Updated some test snapshots * Updated descriptions registration-service (cherry picked from commit 2b6ecf3) Co-authored-by: Maximiliano Ibarra <[email protected]>
Sorting by agents in the table groups (#4323) * Added sortable by agent count option to the groups table * Added changelog entry Co-authored-by: Álex <[email protected]> (cherry picked from commit 9079f07) Co-authored-by: Ian Yenien Serrano <[email protected]>
…uh/wazuh-kibana-app into backport-4365-to-4.3-1.2-wzd
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description:
The way to restart the manager or cluster was centralized in a service since each view that had the option to restart did it differently.
In order to allow the cluster to synchronize ruleset changes, a delay was applied before restarting Wazuh. This delay has been removed as it's been replaced by a polling system, so it's no longer required. The app will ping the Wazuh API and wait until it's back up again. If this does not happen, the app will show an error message, as the API did not come back online.
Due to the changes of this development, code has been removed as it was no longer used.
PR above with more information (a revert was made):
Issue:
Test:
To test it you have to go to any page that has the restart option and try doing the restart, when it tells you that it has restarted try navigating between pages that make requests to the API.
Successful restart
Restart failure
Screenshot:
Ongoing restart:
Successfully restarted:
Restart error:
Cluster synchronization:
Cluster synchronization error: