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

Add upgrade support and improve windows installer #447

Merged
merged 4 commits into from
Oct 18, 2022
Merged

Add upgrade support and improve windows installer #447

merged 4 commits into from
Oct 18, 2022

Conversation

mpfz0r
Copy link
Contributor

@mpfz0r mpfz0r commented Sep 29, 2022

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 installer
Also fix default node-id file location for 32-bit installs

Fixes #365
Fixes #432

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.
@mpfz0r mpfz0r requested a review from thll September 29, 2022 13:31
Copy link
Contributor

@thll thll left a 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
Copy link
Contributor Author

mpfz0r commented Oct 10, 2022

Would be nice if we could fix that.

@thll I agree, but I was running out of time and wasn't sure if it's worth the effort.
@boosty what do you think. should we spend more time on this?

@boosty
Copy link
Contributor

boosty commented Oct 10, 2022

@mpfz0r Depends on how hard it is to fix. A few hours during this cool-down seem ok to me.

@thll thll self-requested a review October 18, 2022 09:24
Copy link
Contributor

@thll thll left a 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.

@thll thll merged commit 6561509 into master Oct 18, 2022
@thll thll deleted the issue-365 branch October 18, 2022 09:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Upgrading sidecar from 1.1 to 1.2 Check Sidecar upgrade on windows
3 participants