[dev.icinga.com #11978] Allow to revert all changes related to a single sync run
This issue has been migrated from Redmine: https://dev.icinga.com/issues/11978
Created by friesoft on 2016-06-17 17:27:23 +00:00
Assignee: (none) Status: New Target Version: (none) Last Update: 2016-07-24 23:01:07 +00:00 (in Redmine)
As there is no option to see what a sync will really produce (== preview) other than letting it run we often end up with a whole bunch of objects created (hosts, services, ...) often resulting in a broken configuration. It get's even worse if the object_name was chosen wrong and in the next run it is changed - then all objects are duplicated (and with purge enabled it purges all other services which have been created by other rules/by hand, see #11977).
Can those objects be deleted again (all at once). For example for services we need to go into each host, check if a service has been created in it - and then deleted it by hand which gets pretty tiresome with many hundreds of hosts.
Updated by friesoft on 2016-06-17 17:28:26 +00:00
We also tried deleting the sync rule in the hope that all objects created by it will be removed - but that of course didn't work either).
Updated by tgelf on 2016-06-17 19:25:40 +00:00
Would an option allowing you to revert all changes related to a single sync run help you? Please note that doing so would trigger another bunch of changes, but lead you back to the former state. In case this sounds good to you I would rename this issue to a "Allow to revert all changes related to a single sync run" feature request.
Best, Thomas
NB: Otherwise regular calls to mysqldump would also help. Just replay the .sql file through mysql to travel back in time ;-)
Updated by friesoft on 2016-06-17 19:34:56 +00:00
That would be perfectly fine for our usecase. Even better would be a Sync Preview but this would be a good Start :)
Thanks!
Updated by tgelf on 2016-06-17 19:51:44 +00:00
- Tracker changed from Bug to Feature
- Subject changed from Deleting objects from last (broken) sync run not possible to Allow to revert all changes related to a single sync run
friesoft wrote:
That would be perfectly fine for our usecase.
Perfect.
Even better would be a Sync Preview but this would be a good Start :)
In the Sync code itself I prepared most of the things needed for this. My problem is currently that a) changes are often too large to be shown at once and b) I have no idea of how to present that information in an efficient way without re-calculating sync with every click when digging through massive pending changes. But yes, I'd also like to have such feature :)
Updated by TheFlyingCorpse on 2016-07-24 23:01:08 +00:00
tgelf wrote:
friesoft wrote: > Even better would be a Sync Preview but this would be a good Start :)
In the Sync code itself I prepared most of the things needed for this. My problem is currently that a) changes are often too large to be shown at once and b) I have no idea of how to present that information in an efficient way without re-calculating sync with every click when digging through massive pending changes. But yes, I'd also like to have such feature :)
Yes please! Preview to sync rules would solve a lot of headaches and make it more likely for others to participate in the glorious monitoring configuration that Icinga Director provides :)
+1
+1
+1
+1
+1
How do I clear the pending changes in my Activity Log for my sync rule that went off and made a number of erroneous changes?
I have 89 pending changes and I seem to need to go through each one and click "Restore former object". I can re-deploy old config from the Deployments page, but then these 89 pending changes come back.
Is there no way to clear them? I cannot select multiple at the same time.
Same issue, not able to go back in time by applying an old configuration. The pending changes are still present.
+1
That this issue is still present .... You can basically multi-select everything in director, except broken activities. @nilmerg can you bring this up again? Atleast you're the one who is labeling stuff sometimes here.