-
Notifications
You must be signed in to change notification settings - Fork 122
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
Clean up UPG_SCHEDULED state when action expires #3902
Clean up UPG_SCHEDULED state when action expires #3902
Conversation
This pull request does not have a backport label. Could you fix it @AndersonQ? 🙏
NOTE: |
9df1c2c
to
3e26450
Compare
Pinging @elastic/elastic-agent (Team:Elastic-Agent) |
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.
Looks good and is well tested!
buildkite test this |
…elastic-agent into 3817-fix-UPG_SCHEDULED-report
Quality Gate passedKudos, no new issues were introduced! 0 New issues |
) (cherry picked from commit 4856600)
What does this PR do?
Fixes how the upgrade handles the
UPG_SCHEDULED
status and its eventual clean up.Now the agent:
UPG_SCHEDULED
if a scheduled upgrade action is receivedUPG_FAILED
if the upgrade action expiresUPG_SCHEDULED
Why is it important?
The upgrade state was reporting
UPG_SCHEDULED
even after the upgrade action had expiredChecklist
[ ] I have made corresponding changes to the documentation[ ] I have made corresponding change to the default configuration files./changelog/fragments
using the changelog tool[ ] I have added an integration test or an E2E testHow to test this PR locally
./elastic-agent-8.12.0-SNAPSHOT-linux-x86_64/data/elastic-agent-[hash]/package.version
to set the version to any previous one..fleet-actions
:GET .fleet-actions/_search
. The upgrade action should be the first oneexpiration
to 5 min past the start time. You will need to use the new user andcurl
(perhaps login in with the new user works as well, I haven't tested it)the catch here is it the agent don't really set the action as
Related issues
Questions to ask yourself