-
Notifications
You must be signed in to change notification settings - Fork 582
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
More recent changes in the configuration are overwritten by the modified-attributes.conf #8717
Comments
Sounds like #8036. |
…ersistModAttrHelper() as well refs #8717
…ersistModAttrHelper() as well refs #8717
While "more recent changes in the configuration [file]" sounds trivial/obvious from a user perspective, for Icinga 2, these config files are just there containing objects/values without any context or history information. Therefore, it would be really hard to deduce the user's intention from a config file and an attempt to implement this under these circumstances would probably introduce undesired behavior in other situations. When updating file-created objects via the API, this should probably be treated as a way to manage overrides on that object that shadow values from the config files (including those deployed from Director) and clear them using something like #8036. |
Describe the bug
The
modified-attributes.conf
, written after an API call, has precedence over the other config files even if they werechanged and deployed more recently from the icingaweb2 module director.
To Reproduce
1 host with address
192.168.1.1
inpackage director
.192.168.1.20
.192.168.1.30
.192.168.1.20
.Expected behavior
The IP address after the deployment should be
192.168.1.30
Your Environment
icinga2 --version
):2.8.2
1.8.0
Additional context
This relates to the hot deployment feature discussed in the following issue:
#8639
The text was updated successfully, but these errors were encountered: