-
Notifications
You must be signed in to change notification settings - Fork 578
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
"icinga2 object list" does not reflect changes made via API #10171
Comments
How long did you wait after changing the attribute before dumping the objects with |
I initially realized this after restarting Icinga 2, as the changed did not take effect during the prior runtime (as stated above). Afterwards, I played a bit with the API and so on, which should have taken longer than five minutes, but I cannot say so with certainty. To test it, I just gave it another shot.
Thus, it seem like |
Ah, you actually have to dump the objects again here with the |
Sorry, I pasted the |
Just had another idea and gave it another shot.
The Icinga 2 log honors this change:
Having a look at the
Now, Icinga 2 has dumped its state again:
Let's verify:
So.. the port is not changed after the state dump in this file. |
It seems to be a bug as the modified attributes are restored while activating the objects and not committing them and the |
|
Describe the bug
Changes performed via the Icinga 2 API on an object defined from config are not reflected in the
icinga2 object list
output.To Reproduce
I am using an
IcingaDB
object for this example, as this is were I came across this bug.Starting with a default
IcingaDB
object as:Then, perform a (questionable) change via the API. This will only affect the connection after a restart, see #10102.
Check the state…
icinga2 objects list
While the Icinga 2 API represents the changed port as well as the
original_attributes
field of the Common Runtime Attributes, the output oficinga2 object list
is outdated.Neither CLI command: Object nor Configuration Troubleshooting, List Configuration Objects document this behavior as a limitation.
Expected behavior
I would expect
icinga2 object list
to show the updatedport
attribute.Screenshots
N/A
Your Environment
Include as many relevant details about the environment you experienced the problem in
icinga2 --version
): v2.14.0-293-g4f690a6fdicinga2 feature list
): api checker icingadb notificationicinga2 daemon -C
): ☑️zones.conf
file (oricinga2 object list --type Endpoint
andicinga2 object list --type Zone
) from all affected nodes.Additional context
N/A
The text was updated successfully, but these errors were encountered: