-
Notifications
You must be signed in to change notification settings - Fork 154
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
Fix debian packaging for upgrades #5260
Conversation
Pinging @elastic/elastic-agent-control-plane (Team:Elastic-Agent-Control-Plane) |
That was fast haha |
@pierrehilbert I said I had it ready, I just need to add an integration test. I also want to test this change with RPM's as well. |
|
I am getting failures from flaky tests, no failures from DEB/RPM tests or the new upgrade tests. This is ready to be merged, but will need a force merge as the flaky tests have seem to become very consistent now. |
The failing test is the same K8s test that has been failing for a while now: #5275. As such, I'm OK to force merge this PR here. |
* Fix upgrade to not delete symlink and to restart daemon. * Fix upgrade. * Add changelog. * Add deb/rpm upgrade tests. * Fix build tags. * Fix typo in service name for systemctl enable. * Fix issue in binaryPath() to work before install. * Don't use extract for deb/rpm in tests. * RHEL for RPM. * Fix test issues. * Fix deb/rpm upgrade tests. * Fix imports. (cherry picked from commit 44528c4)
* Fix upgrade to not delete symlink and to restart daemon. * Fix upgrade. * Add changelog. * Add deb/rpm upgrade tests. * Fix build tags. * Fix typo in service name for systemctl enable. * Fix issue in binaryPath() to work before install. * Don't use extract for deb/rpm in tests. * RHEL for RPM. * Fix test issues. * Fix deb/rpm upgrade tests. * Fix imports. (cherry picked from commit 44528c4)
* Fix upgrade to not delete symlink and to restart daemon. * Fix upgrade. * Add changelog. * Add deb/rpm upgrade tests. * Fix build tags. * Fix typo in service name for systemctl enable. * Fix issue in binaryPath() to work before install. * Don't use extract for deb/rpm in tests. * RHEL for RPM. * Fix test issues. * Fix deb/rpm upgrade tests. * Fix imports. (cherry picked from commit 44528c4) Co-authored-by: Blake Rouse <blake.rouse@elastic.co>
What does this PR do?
Fixes the debian packaging to properly copy the
state.enc
andstate.yml
files to the new version of the Elastic Agent.Why is it important?
Without this upgrading to a new version of the Elastic Agent losses the
state.enc
and/orstate.yml
file.Checklist
[ ] I have made corresponding changes to the documentation[ ] I have made corresponding change to the default configuration files[ ] I have added tests that prove my fix is effective or that my feature works(cannot add unit tests for packaging)./changelog/fragments
using the changelog toolDisruptive User Impact
None
How to test this PR locally
Build the debian package:
Install older version of Elastic Agent
Enroll into Fleet
Upgrade to built version
Related issues