Closed damn42 closed 1 month ago
Can you show the compliance detail view, by hitting the "NTP" link in your screen shot? As an example: https://demo.nautobot.com/plugins/golden-config/config-compliance/66c18f78-cd3e-4c1b-a6c7-e237daa800bf/?tab=main
Sure:
It's not in the same state as the screenshot above, does that matter for you?
Yes, it does.
Ok, fair enough. I'll get back to you with that screenshot tomorrow, I can't access the environment until then, sorry.
But what I can tell you now: whenever I delete the Compliance Rule, recreate it and rerun all jobs, the Feature on the device is correct, no matter if the current state is compliant or not. Then, say it's compliant and I add an unwanted line and rerun all jobs, the state stays Compliant (which is incorrect) but the extra line is shown. When I delete and recreate the Rule an rerun all jobs it's good again (in this case non-compliant with the extra line).
Hope this helps for now and I'll get you the screenshot and whatever else you need tomorrow.
Thanks for your help!
Here's the screenshot with the state I described in the beginning. What I just noticed now, "Ordered" is activated. It is not in the rule though: Do you need anything else?
I think that should be good, I think you likely hit the point that matters with ordered.
It seems i hitted the same issue:
The issue is likely from: https://docs.djangoproject.com/en/5.1/releases/4.2/#setting-update-fields-in-model-save-may-now-be-required will get something out soon.
@itdependsnetworks Issue is fixed with that updates. Thank you!
Looking good.. do you want me to do something with the GitHub issue or is that something you do on your side? Sorry, this is the first issue I created.. :)
Environment
General description
A feature that is compliant does not go into "Non-Compliant" state when the configuration on the device changes.
The screenshot shows the issue. A line of extra configuration is found but does not change the feature to "Non-Compliant". The same happens if I restore a compliant state, the Feature stays non-compliant.
If I delete the Compliance Rule a recreate it exactly as it was and run the jobs again, it works correctly again (for one time only).
The Remediation part of a Rule also behaves incorrectly, please let me know if I should provide more details on that side.
Steps to Reproduce