sol1 / icingaweb2-module-netbox

Netbox importer for director, and integration with netbox
28 stars 6 forks source link

Sync rule stuck in loop of creating / deleting vars #34

Closed jseifeddine closed 3 months ago

jseifeddine commented 3 months ago

So... we a sync rule

Screenshot 2024-05-28 at 10 59 17 PM

It creates the object fine as expected, happy days.

Issue:

Subsequent syncs will remove vars.tags

image

If you sync once again director shows modifications, even though it doesn't show what changed ( perhaps a clue to root cause of the issue )

Screenshot 2024-05-28 at 10 53 31 PM

This loop continues indefinitely, every time the sync rule runs

Thank you for your contributions 🥇

sol1-matt commented 3 months ago

This is a director/config bug that occurs when when the value of icinga_var is null, it can be worked around using a filter. However the filter also has a issue (#35) when the value of icinga_var is a object which is the most likely value other than null.

There needs to be a separate var so filter can determine what the value of icinga_var is.

sol1-matt commented 3 months ago

Solution added to v3.6.1.3