icingaweb2-module-director icon indicating copy to clipboard operation
icingaweb2-module-director copied to clipboard

director automation not removing disabled flag

Open rhld-linux opened this issue 2 years ago • 0 comments

Expected Behavior

object that were disabled by director automations purge action shall be re-activated when they appear in the import source again no matter what "Update Policy" is selected

Current Behavior

For update policy "replace" objects that were disabled are enabled again with update policy "Merge", "Ignore" or "Update only" they are not

Possible Solution

make the automation re-enable objects no matter what the update policy is. IMHO update policy should only affect the properties of the sync rule. otherwise the purge action would also not be allowed to disable a host when the update policy is set to "Ignore"

Steps to Reproduce (for bugs)

  • define import source
  • define sync rules
  • remove object from imported source
  • sync the sync rule
  • add the object to the import source again
  • voila

Your Environment

  • Director version (System - About): 1.10.2
  • Icinga Web 2 version and modules (System - About): 2.11.4
  • Icinga 2 version (icinga2 --version): r2.14.0-1

rhld-linux avatar Oct 20 '23 10:10 rhld-linux