Runtime created objects don't get synced #10012
Labels
area/distributed
Distributed monitoring (master, satellites, clients)
area/runtime
Downtimes, comments, dependencies, events
bug
Something isn't working
Describe the bug
008fcd1 changed the creation process for runtime objects and retains their config in a temporary file. After the object has been successfully created and activated, the temporary file is moved to the actual config file (which is known by the config compiler), otherwise it is simply discarded. However, since the object activation triggers an
OnActiveChanged
event, it tries to sync the configuration with the other endpoint. Doing this works well if the endpoints are connecting after the object has been created, but not if they are already connected. This is because when sending the config update, it is going to access the configuration file of the recently created object, but as its config is still in the temporary file, it won't find it, thus it won't be able to sync it.icinga2/lib/remote/apilistener-configsync.cpp
Lines 354 to 356 in d551eae
The text was updated successfully, but these errors were encountered: