-
Notifications
You must be signed in to change notification settings - Fork 291
[Bug]: Configuration files overwritten when updating .rpm package #4084
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
Comments
Weird, I updated another single-node cluster today and this time did not hit this issue. Both nodes are supposed to have been configured the same way with the same configuration management system, so this non-reproducible behavior is highly unexpected. I will investigate the issue and report my findings here. |
Hi @smortex, you can re-open the issue to post you findings. Thanks |
We did a manual update from 2.9.0 to 2.10.0 and have not experienced this issue (we where prompted to decide what to do with file with local changes). The 2.11.0 release will allow us to try another update the usual way through configuration management and non-interactively. If we have some trouble, I will re-open to troubleshoot. Thanks! |
Re-opening as this issue do exist but I reported it against the wrong packages: upgrading .deb packages is fine, but updating the rpm packages overwrite the configuration files. Updating from 2.10.0 to 2.11.0 on a CentOS node showed the issue again. I will edit the issue title and description accordingly. Edit: this has been done |
For what is worth, the issue was still present in the following updates:
|
Hi @smortex I will take a look sometime before 2.14.0 and hopefully can find the cause. |
Also, have you ever try to upgrade from 2.8.0 to 2.9.0? Thanks. |
After making multiple attempts I finally able to observe a override on a changed config even when it should not. This is observed clearly on 2.10 to 2.11 upgrade. Will research more. |
Identified issues, will PR at some point for the fix. Thanks. |
Seems working:
|
The above is due to I use newly created 2.9.0 which include noreplace for all three, but released 2.10.0 which only has noreplace for jvm and opensearch yml, therefore according to the behavior the non-tracked one will use rpmsave instead of rpmnew. This behavior will go back to normal after two releases with the same configs: Thanks. |
Remove all manually defined config files in config_dir, and treat everything in config dir as config. |
Describe the bug
OpenSearch 2.10.0 was released today. After updating from 2.9.0, our configuration files with customization where lost and replaced by the default configuration files.
According to our configuration management tools, changes to these files where unexpectedly lost:
To reproduce
Debian packagerpm package on CentOSExpected behavior
Configuration files should be kept unchanged when they have local modifications.
Screenshots
No response
Host / Environment
Debian 11CentOSAdditional context
No response
Relevant log output
No response
The text was updated successfully, but these errors were encountered: