Bug #17990
open
Vault and consul plugins should not try to open config file if it doesn't exist
Added by Alexis Mousset almost 5 years ago.
Updated 16 days ago.
Severity:
Trivial - no functional impact | cosmetic
UX impact:
I bothers me each time
User visibility:
Operational - other Techniques | Rudder settings | Plugins
Effort required:
Very Small
Description
It displays annoying error message on nodes that are not configured to use it:
2020-07-16T12:55:56+00:00 error: readjson: data error parsing JSON file '/var/rudder/plugin-resources/vault.json': No data
- Project changed from Rudder to Rudder plugins
- Category set to Refactoring
- Target version changed from 6.0.8 to 6.0
- Severity set to Trivial - no functional impact | cosmetic
- UX impact set to I bothers me each time
- User visibility set to Operational - other Techniques | Rudder settings | Plugins
- Effort required set to Very Small
- Priority changed from 0 to 48
- Priority changed from N/A to To review
- Target version changed from 6.0 to 8.2
- Priority changed from 48 to 0
- Regression set to No
If the plugins are not used and removed, the error message is still spamming syslog, to resolve this problem, we should remove (and committing):
- /var/rudder/configuration-repository/ncf/20_cfe_basics/consul_lib.cf
- /var/rudder/configuration-repository/ncf/20_cfe_basics/vault_lib.cf
- /var/rudder/configuration-repository/ncf/30_generic_methods/variable_from_consul.cf
- /var/rudder/configuration-repository/ncf/30_generic_methods/variable_from_vault.cf
Afterward, delete /var/rudder/ncf/local/generic_methods.json
it will be regenerated
- Assignee set to Benoît PECCATTE
- Priority changed from To review to 2
- Status changed from New to In progress
- Status changed from In progress to Pending technical review
- Assignee changed from Benoît PECCATTE to Alexis Mousset
- Pull Request set to https://github.com/Normation/rudder-plugins/pull/849
- Status changed from Pending technical review to Pending release
Also available in: Atom
PDF