elastic / elastic-agent

Elastic Agent - single, unified way to add monitoring for logs, metrics, and other types of data to a host.
Other
124 stars 134 forks source link

Support package manager update for a standalone agent #3832

Open rdner opened 9 months ago

rdner commented 9 months ago

Describe the enhancement:

Currently, we distribute Elastic Agent as a DEB and RPM package. However, we don't support upgrading the agent version using a package manager. Upgrading the agent using a package manager leads to abandoning the previous data/state folder and re-creating the whole state from scratch. Which is not the best user experience.

The only supported upgrade path for the agent at the moment is the elastic-agent upgrade command.

Describe a specific use case for the enhancement or feature:

Users running standalone agents on RPM or DEB driven OS.

What is the definition of done?

Upgrading an Elastic Agent DEB or RPM package using the suitable package manager preserves the existing state and does not lead to invalid behaviour for the agent.

elasticmachine commented 9 months ago

Pinging @elastic/elastic-agent (Team:Elastic-Agent)

cmacknz commented 9 months ago

Related https://github.com/elastic/elastic-agent/issues/3784

Maksimkovalenk commented 4 days ago

Had a Case with where customer had this issue and asked to prioritize this issue to get updates via RPM properly implemented

pierrehilbert commented 4 days ago

I will let @leehinman / @blakerouse confirm here but I think upgrades are now working for DEB/RPM.