-
Notifications
You must be signed in to change notification settings - Fork 187
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 #4365
Conversation
Added a modal so that the user cannot navigate during Wazuh restart restart.mp4 |
This comment was marked as outdated.
This comment was marked as outdated.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Test OK
public/controllers/management/components/management/status/actions-buttons-main.js
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
|
The backport to
To backport manually, run these commands in your terminal: # Fetch latest updates from GitHub
git fetch
# Create a new working tree
git worktree add .worktrees/backport-4.3-7.16 4.3-7.16
# Navigate to the new working tree
cd .worktrees/backport-4.3-7.16
# Create a new branch
git switch --create backport-4365-to-4.3-7.16
# Cherry-pick the merged commit of this pull request and resolve the conflicts
git cherry-pick -x --mainline 1 6598df94983af1117e3c9bb04f9e2045ca348f0a
# Push it to GitHub
git push --set-upstream origin backport-4365-to-4.3-7.16
# Go back to the original working tree
cd ../..
# Delete the working tree
git worktree remove .worktrees/backport-4.3-7.16 Then, create a pull request where the |
* 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]>
This reverts commit 6598df9.
* 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)
* 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]>
* 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)
* 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)
Description:
The way to restart the manager/cluster was centralized in a service, since each view that had the option to restart the manager/cluster did it in a different way,
The delay of the
/cluster/restart
request was removed and the delay was added before the request to wait for all the nodes to synchronize.Removed code that is no longer used
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 no complite
Screenshot:
Updated screenshots in comments
restart.mp4