-
Notifications
You must be signed in to change notification settings - Fork 186
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
Create service to restart wazuh #4433
Closed
Closed
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 <alejandro.ruiz.becerra@wazuh.com> Co-authored-by: Federico Rodriguez <federico.rodriguez@wazuh.com> Co-authored-by: chantal.kelm <chantal.belen.kelm@gmail.com> (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 <alejandro.ruiz.becerra@wazuh.com> Co-authored-by: Federico Rodriguez <federico.rodriguez@wazuh.com> Co-authored-by: chantal.kelm <chantal.belen.kelm@gmail.com> (cherry picked from commit 6598df9) * Updated Changelog Co-authored-by: Ian Yenien Serrano <63758389+yenienserrano@users.noreply.github.com> Co-authored-by: Chantal Belén kelm <99441266+chantal-kelm@users.noreply.github.com>
* 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 <matiasmoreno876@gmail.com>
This reverts commit eb89062.
Signed-off-by: yenienserrano <ian.serrano@wazuh.com>
* 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 <alejandro.ruiz.becerra@wazuh.com> Co-authored-by: Federico Rodriguez <federico.rodriguez@wazuh.com> Co-authored-by: chantal.kelm <chantal.belen.kelm@gmail.com> (cherry picked from commit 6598df9)
Signed-off-by: yenienserrano <ian.serrano@wazuh.com>
* Use POST method when requesting the API login endpoint * changelog: add PR entry Co-authored-by: Matias Ezequiel Moreno <matiasmoreno876@gmail.com> Co-authored-by: Álex <alex-r-b@hotmail.com> Co-authored-by: Antonio David Gutiérrez <antonio.gutierrez@wazuh.com> (cherry picked from commit 3977e45) Co-authored-by: Manuel Carmona Pérez <manuelvillarcarmona@gmail.com>
…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 <maximilianoaibarra@gmail.com>
* Use POST method when requesting the API login endpoint * changelog: add PR entry Co-authored-by: Matias Ezequiel Moreno <matiasmoreno876@gmail.com> Co-authored-by: Álex <alex-r-b@hotmail.com> Co-authored-by: Antonio David Gutiérrez <antonio.gutierrez@wazuh.com> (cherry picked from commit 3977e45) Co-authored-by: Manuel Carmona Pérez <manuelvillarcarmona@gmail.com>
…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 <maximilianoaibarra@gmail.com>
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 <alejandro.ruiz.becerra@wazuh.com> (cherry picked from commit 9079f07) Co-authored-by: Ian Yenien Serrano <63758389+yenienserrano@users.noreply.github.com>
* 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 <alejandro.ruiz.becerra@wazuh.com> Co-authored-by: Federico Rodriguez <federico.rodriguez@wazuh.com> Co-authored-by: chantal.kelm <chantal.belen.kelm@gmail.com> (cherry picked from commit 6598df9)
Signed-off-by: yenienserrano <ian.serrano@wazuh.com>
…uh/wazuh-kibana-app into backport-4365-to-4.3-1.2-wzd
…uh/wazuh-kibana-app into backport-4365-to-4.3-1.2-wzd
We need to review this PR to check it includes only the work related to this issue. @yenienserrano |
Branch renamed: 4277-centralized-restart-service-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: