-
Notifications
You must be signed in to change notification settings - Fork 56
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
Add upgrade support and improve windows installer #447
Conversation
The installer can now also upgrade existing sidcar installations. It detects this by the presence of an existing sidecar.yml config. In upgrade mode it skip the configuration page. Additionally the installer will now also register the sidecar service automatically. Making this extra command line step obsolete. For debugging purposes, we write a installerlog.txt file now. Improve welcome message test to also show the version and mention the autmatic upgrade mode. Only replace the winlogbeat and filebeat collector binaries AFTER we stopped the sidecar. Otherwise the files might still be locked and the upgrade fails.
Also fix default node-id file location for 32-bit installs
We need to start the service AFTER we've written the final sidecar.yml Also using nsExec allows us to see the output of the service command.
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 in general and appears to work. Any idea why logging to the console under PowerShell looks off?
Would be nice if we could fix that.
Here's what happens when I install and then hit <Enter>
a couple of times:
Kapture.2022-10-04.at.11.01.48.mp4
@mpfz0r Depends on how hard it is to fix. A few hours during this cool-down seem ok to me. |
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.
Fixing that console logging behaviour is not a must, so I'm approving the PR.
The installer can now also upgrade existing sidcar installations.
It detects this by the presence of an existing sidecar.yml config.
In upgrade mode it skip the configuration page.
Additionally the installer will now also register the sidecar
service automatically. Making this extra command line step obsolete.
For debugging purposes, we write a installerlog.txt file now.
Improve welcome message test to also show the version and mention the
autmatic upgrade mode.
Only replace the winlogbeat and filebeat collector binaries AFTER
we stopped the sidecar. Otherwise the files might still be locked
and the upgrade fails.
Suppport
-NODEID param
for silent installerAlso fix default node-id file location for 32-bit installs
Fixes #365
Fixes #432