-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
[Agent] Fix installers #17077
[Agent] Fix installers #17077
Conversation
Pinging @elastic/ingest-management (Project:fleet) |
|
||
installCmd := exec.Command("powershell", "-command", powershellCmd) | ||
return installCmd.Run() | ||
} | ||
|
||
func alignInstallPath(installPath, version string) string { |
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.
this i dont like i will rewrite this part
Jenkins test this |
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.
LGTM, but I haven't tested the artifacts.
failures doesn't seem related to this PR? |
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.
LGTM, testing with agent run.
[Agent] Fix installers for snapshots (elastic#17077)
backported in #17574 to have a working build |
… enable building the agent. (#17574) * Fix issue when building Agent snapshot and enable building the agent. (#16927) An extension in the generated files ("SNAPSHOT") was preventing us to correctly generate the agent artifact with the packaged metricbeat/filebeat. Fixes: #16908 (cherry picked from commit 62d3683) * [Agent] Fix installers (#17077) [Agent] Fix installers for snapshots (#17077) * [Agent] fixed mage package for agent (#17368) [Agent] fixed mage package for agent (#17368) * [Agent] Make default config OS agnostic (#17016) [Agent] Make default config OS agnostic (#17016) * [Agent] Docker image for integration tests (#16898) [Agent] Docker image for integration tests (#16898) Co-authored-by: Michal Pristas <[email protected]>
[Agent] Fix installers for snapshots (elastic#17077)
[Agent] Fix installers for snapshots (elastic#17077)
What does this PR do?
This PR changes installers in two ways
SNAPSHOT handling
for now turned on by default, if we want to enable it only for snapshot agent we need to modify build to set flag at build time and then enable snapshot installer afterwards
windows refactor
install step on windows was not working properly, while we were unzipping we were creating one additional directory layer, this is now removed.
Small config change
Default configs are not using 9300 endpoint for ES from now on
Why is it important?
To simplify use case when running from snapshot and entire windows flow
Checklist
How to test this PR locally
Scenario 1
run
SNAPSHOT=true mage package
to build snapshot packageunpack it somewhere locally and try if it runs with no changes to config
Scenario 2
Same as 1 but on windows, windows was broken even for non SNAPSHOT packages.