-
Notifications
You must be signed in to change notification settings - Fork 8.2k
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
added restart upgrade action #166154
added restart upgrade action #166154
Conversation
🤖 GitHub commentsExpand to view the GitHub comments
Just comment with:
|
x-pack/plugins/fleet/public/applications/fleet/sections/agents/components/agent_health.tsx
Outdated
Show resolved
Hide resolved
Pinging @elastic/fleet (Team:Fleet) |
💛 Build succeeded, but was flaky
Failed CI StepsTest Failures
Metrics [docs]Async chunks
Page load bundle
History
To update your PR or re-run it, just comment with: |
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.
Code LGTM 🚀
Summary
Ready to review, tests are WIP
Resolves #135539
For agents in
Updating
state, adding aRestart upgrade
action, which uses the force flag on the API to bypass the updating check. For single agent, the action is only added if the agent has started upgrade for more than 2 hours (see discussion in issue)For bulk selection, the action appears if all selected agents are in updating state.
To verify:
Restart upgrade
action is visible, and it triggers another upgrade with force flag only on the agents stuck in updatingAgent details action:
Agent list, bulk action:
Agent list, single agent action:
Agent details callout:
Select all agents on first page, restart upgrade modal shows only those that are stuck in upgrading:
Select all agents on all pages, restart upgrade modal shows only those that are stuck upgrading, with an extra api call to get the count:
Checklist