-
Notifications
You must be signed in to change notification settings - Fork 148
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
[8.16](backport #6273) Log warning on same version upgrade to prevent failed status #6472
base: 8.16
Are you sure you want to change the base?
Conversation
Log warning on same version upgrade and filter error to prevent upgrade status reporting. If a user attempts to upgrade to the same version, the elastic-agent upgrade call will exit with an error, but the agent's status will be cleared of any upgrade markers. Include an earlier check for same-version upgrades before artifacts are downloaded to prevent unnecessary downloads --------- Co-authored-by: Paolo Chilà <[email protected]> (cherry picked from commit d354d9f)
buildkite test this |
This pull request has not been merged yet. Could you please review and merge it @michel-laterman? 🙏 |
It looks like it fails on windows systems.
However If I run the same command on the system I get:
|
This pull request has not been merged yet. Could you please review and merge it @michel-laterman? 🙏 |
Quality Gate passedIssues Measures |
What does this PR do?
Log warning on same version upgrade and filter error to prevent upgrade status reporting.
If a user attempts to upgrade to the same version, the
elastic-agent upgrade
call will exit with an error, but the agent's status will be cleared of any upgrade markers.Include an earlier check for same-version upgrades before artifacts are downloaded to prevent unnecessary downloads
Why is it important?
Currently upgrading to the same version results in the agent reporting a failed state until a successful upgrade can be done.
Testing instructions
Install a stand-alone agent and use
elastic-agent upgrade 9.0.0-SNAPSHOT --source-uri file://path/to/dir --skip-verification
to upgrade the agentFor example:
Checklist
I have made corresponding changes to the documentationI have made corresponding change to the default configuration files./changelog/fragments
using the changelog toolDisruptive User Impact
N/A
Related issues
This is an automatic backport of pull request Log warning on same version upgrade to prevent failed status #6273 done by Mergify.