Skip to content
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.x](backport #3991) Don't fail checkin if agent has upgrade details with no action #4034

Open
wants to merge 1 commit into
base: 8.x
Choose a base branch
from

Conversation

mergify[bot]
Copy link
Contributor

@mergify mergify bot commented Oct 23, 2024

What is the problem this PR solves?

Relates https://github.com/elastic/ingest-dev/issues/4223

We're investigating an issue in a serverless project where Fleet Server keeps throwing 500 on agent checkin because the agent has upgrade details but the action id they refer to is not found.

How does this PR solve the problem?

Modify Checkin.processUpgradeDetails so that checkin does not fail in this scenario and log a warning instead.


This is an automatic backport of pull request #3991 done by Mergify.

@mergify mergify bot requested a review from a team as a code owner October 23, 2024 08:39
@mergify mergify bot added the backport label Oct 23, 2024
@mergify mergify bot requested review from kaanyalti and pchila October 23, 2024 08:39
@pierrehilbert pierrehilbert added the Team:Elastic-Agent-Control-Plane Label for the Agent Control Plane team label Oct 23, 2024
Copy link
Contributor Author

mergify bot commented Oct 28, 2024

This pull request has not been merged yet. Could you please review and merge it @jillguyonnet? 🙏

@jillguyonnet
Copy link
Contributor

buildkite test this

@jillguyonnet
Copy link
Contributor

@elastic/elastic-agent-control-plane Do you know what might be causing the e2e tests to fail? The error in the build is not very specific:

FAIL	github.com/elastic/fleet-server/testing/e2e	789.898s
--
  | ?   	github.com/elastic/fleet-server/testing/e2e/api_version	[no test files]
  | ?   	github.com/elastic/fleet-server/testing/e2e/scaffold	[no test files]
  | FAIL
  | make[1]: *** [Makefile:375: test-e2e-set] Error 1
  | make[1]: Leaving directory '/opt/buildkite-agent/builds/bk-agent-prod-gcp-1730109898485720002/elastic/fleet-server'
  | make: *** [Makefile:369: test-e2e] Error 2
  | 🚨 Error: The command exited with status 2
  | user command error: exit status 2

Also, I opened the build for the original PR and I found that the e2e tests had not actually run but the build still succeeded:

FLEET_SERVER_URL is empty, cloud e2e tests cannot be executed

Don't fail checkin if agent has upgrade details with no action

(cherry picked from commit 9dc43b0)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport Team:Elastic-Agent-Control-Plane Label for the Agent Control Plane team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants