-
Notifications
You must be signed in to change notification settings - Fork 8.1k
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
[Fleet] Individual agent upgrade modal forbids downgrades, but bulk upgrade modal allows them #135337
Comments
Pinging @elastic/fleet (Team:Fleet) |
I think this issue is less urgent than I originally thought. I must have been testing an older build because at one point I saw the ability to downgrade to any version as early as 7.17.0. It seems now the issue is that if you select agents with a mix of different versions the minimum the modal allows you to upgrade is not >= the highest version in the selected agents. |
@nchaulet Could you take a look at this? |
Looks like we do not validate version client side for bulk upgrade, but we do not perform downgrade server side, if the version is a downgrade we will return the agent as not upgradable. |
@joshdover I just tested again and look at the code and we validate version and only show upgrade version client side if we do not pass a |
@nchaulet Thanks for digging in here. Avoiding the perf cost makes sense. I think it'd be nice to have some sort of feedback in the UI that some agents were skipped, but I think it's lower priority. I wonder if we should at least have some feedback if all of the agents in the kuery don't pass the validation. What happens today in that case? |
@joshdover we already have some feedback of the agent that cannot be upgraded it's in toast notification like this I am closing that issue for now, but feel free to reopen it if it's not good enough. |
In the bulk upgrade modal, we show lesser versions of the agent binary even if they can't be applied to a given agent, e.g.
We show version 8.2.1 here even though we don't support downgrades from 8.3.0 -> 8.2.1.
I don't think we will actually honor the downgrade here (@nchaulet I think you can confirm this), but should we filter the list of versions down to only supported upgrades for all selected agents?
The text was updated successfully, but these errors were encountered: