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 #5879) Assume installed agent on upgrade #5927

Merged
merged 1 commit into from
Nov 4, 2024

Conversation

mergify[bot]
Copy link
Contributor

@mergify mergify bot commented Nov 4, 2024

What does this PR do?

This PR assumes installed agent on upgrade.
Detecting installed based on marker file does not work prior to 8.8 as marker file is not there leading to incorrect control path.
During upgrade we resolve paths to proper value assuming upgrading agent is installed (as this is requirement anyways).

Other way would be to keep runningInstalled evaluation based on paths as before OR have two ways of detecting installed agent during upgrade based on previous agent version.

Why is it important?

To make ugprade from <8.8 work

Fixes #5872


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

@mergify mergify bot requested a review from a team as a code owner November 4, 2024 13:32
@mergify mergify bot added the backport label Nov 4, 2024
@mergify mergify bot requested review from pkoutsovasilis and michel-laterman and removed request for a team November 4, 2024 13:32
@pierrehilbert pierrehilbert requested review from michalpristas and removed request for pkoutsovasilis and michel-laterman November 4, 2024 13:33
@pierrehilbert pierrehilbert added the Team:Elastic-Agent-Control-Plane Label for the Agent Control Plane team label Nov 4, 2024
@elasticmachine
Copy link
Contributor

Pinging @elastic/elastic-agent-control-plane (Team:Elastic-Agent-Control-Plane)

@pierrehilbert pierrehilbert enabled auto-merge (squash) November 4, 2024 13:33
Copy link

Quality Gate failed Quality Gate failed

Failed conditions
0.0% Coverage on New Code (required ≥ 40%)

See analysis details on SonarQube

@pierrehilbert
Copy link
Contributor

Failure should be resolved by #5902

@pierrehilbert pierrehilbert merged commit f057a3a into 8.x Nov 4, 2024
15 of 16 checks passed
@pierrehilbert pierrehilbert deleted the mergify/bp/8.x/pr-5879 branch November 4, 2024 15:36
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