Skip to content

Conversation

@neptunian
Copy link
Contributor

Resolves #80070

When a user uses bulk actions to upgrade agents, it was not filtering out agents that were not upgradeable. This change will filter them out so the action never gets sent to the non-upgradeable agent.

@neptunian neptunian added bug Fixes for quality problems that affect the customer experience v8.0.0 v7.10.0 Team:Fleet Team label for Observability Data Collection Fleet team v7.11.0 labels Oct 13, 2020
@neptunian neptunian requested a review from a team October 13, 2020 18:03
@neptunian neptunian self-assigned this Oct 13, 2020
@elasticmachine
Copy link
Contributor

Pinging @elastic/ingest-management (Team:Ingest Management)

@neptunian neptunian added the release_note:skip Skip the PR/issue when compiling release notes label Oct 13, 2020
(agent) =>
!agent.unenrollment_started_at &&
!agent.unenrolled_at &&
isAgentUpgradeable(agent, kibanaVersion)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you think we can update isAgentUpgradeable to have this logic?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good idea. For the single agent upgrade handler I will still check it to return a descriptive error message.

@kibanamachine
Copy link
Contributor

💚 Build Succeeded

Metrics [docs]

page load bundle size

id before after diff
ingestManager 391.5KB 391.6KB +67.0B

History

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

Copy link
Member

@nchaulet nchaulet left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚀

@neptunian neptunian merged commit 9d4b7bd into elastic:master Oct 13, 2020
neptunian added a commit to neptunian/kibana that referenced this pull request Oct 13, 2020
…rades (elastic#80391)

* filter out non-upgradeable agents when user bulk upgrades

* check for unenrolled or unenrolling agents in isAgentUpgradeable
neptunian added a commit to neptunian/kibana that referenced this pull request Oct 13, 2020
…rades (elastic#80391)

* filter out non-upgradeable agents when user bulk upgrades

* check for unenrolled or unenrolling agents in isAgentUpgradeable
neptunian added a commit that referenced this pull request Oct 14, 2020
…rades (#80391) (#80421)

* filter out non-upgradeable agents when user bulk upgrades

* check for unenrolled or unenrolling agents in isAgentUpgradeable
neptunian added a commit that referenced this pull request Oct 14, 2020
…rades (#80391) (#80420)

* filter out non-upgradeable agents when user bulk upgrades

* check for unenrolled or unenrolling agents in isAgentUpgradeable

Co-authored-by: Kibana Machine <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Fixes for quality problems that affect the customer experience release_note:skip Skip the PR/issue when compiling release notes Team:Fleet Team label for Observability Data Collection Fleet team v7.10.0 v7.11.0 v8.0.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Fleet] Bulk upgrading agents not filtering out agents that are not upgradeable

4 participants