Open mikkorantalainen opened 4 months ago
Pinging @elastic/es-delivery (Team:Delivery)
Pinging @elastic/es-core-infra (Team:Core/Infra)
Presumably this is problem with all packaging types but it's probably a bit easier to automate this with the deb/rpm packages since we can script this stuff.
Another option here would be to expand the capability of declarative plugins to packaging types other than Docker.
Description
Example case:
System had Elasticseach 7.x (package
elasticsearch
) installed from official Elasticsearch repository and it had pluginanalysis-icu
installed. When the Debian/Ubuntu package was upgraded to Elasticsearch 8.x the plugin stopped working and the official tools couldn't even uninstall the plugin because of version mismatch.The only way to workaround the issue was to downgrade the package again, uninstall the plugin, reinstall the upgraded package and reinstall the plugin.
Sensible options to improve the behavior would be as follows:
prerm
script that aborts the uninstall of previous package if any versioned plugins are currently installed. This may cause some side-effects with package manager but it would prevent removing anything from the system without the adminstrator being aware of it.