Cherry-pick #20400 to 7.x: New agent structure (symlinks) #20960
Merged
michalpristas merged 5 commits intoelastic:7.xfrom Sep 22, 2020
Merged
Cherry-pick #20400 to 7.x: New agent structure (symlinks) #20960michalpristas merged 5 commits intoelastic:7.xfrom
michalpristas merged 5 commits intoelastic:7.xfrom
Conversation
[Ingest Manager] New agent structure (symlinks) (elastic#20400)
Contributor
|
Pinging @elastic/ingest-management (Team:Ingest Management) |
Contributor
💔 Tests FailedExpand to view the summary
Build stats
Test stats 🧪
Test errorsExpand to view the tests failures
Steps errorsExpand to view the steps failures
Log outputExpand to view the last 100 lines of log output
|
Contributor
Author
|
Cherry picking #20986 for rpm/deb fixes |
[Ingest Manager] Support for UPGRADE_ACTION (elastic#21002)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Cherry-pick of PR #21002: Support for UPGRADE_ACTION
Cherry-pick of PR #20986 which fixes DEB packages
Cherry-pick of PR #20400 to 7.x branch. Original message:
What does this PR do?
Different approach to #20307
Working with symlinks turned out to be a bit tricky due to how OSes handles Working Directory and executable names.
Windows on top of that requires that service name which is used to be registered is in Abs form and it needs to match the one used to reguiter the service (hence the magic with os.Args[0] replacements in the code,
os.Args[0]is used in lib as a service name)Due to the approach of determining WD when running a binary using a symlink
paths.ymlis either on the symlink level (windows) or on executable level (darwinandlinux).These will get regenerated during future Upgrade/Rollback.
Why is it important?
For future upgrade work
Checklist
CHANGELOG.next.asciidocorCHANGELOG-developer.next.asciidoc.Same as with previous PR this is tested on linux/darwin and windws (service and direct run)
