Bug #18877
closed"Skipped" Directives on Rules Screen
Description
This is a bug report related to the following conversation in gitter.
https://gitter.im/normation/rudder?at=601835cc1ed88c58d81391ec
Rudder Version is 6.2.1
When i look at the details of a rule in the Rule Screen, several directives are shown as "skipped" under "Compliance by Directive". The problem is that these directives were not added to the rule.
This happens not only with one rule but with several.
For example, I have a rule that has only two directives "d1" and "d2". This rule is applied to the group of all VMs. When I then look at the "Compliance by Directive" section, Rudder shows me 31 other skipped directives "d3" - "d33" that I never added to the rule.
What I additionally do not understand. If I then hover with the mouse over the "skipped" tag, Rudder says:
"This directive is skipped, because it is overriden by an other one on that node"
"...on that Node" Which Node? I have only added groups.
Overall, I find it strange that at this place Directives are displayed as "skipped". Is this the way it should be?
I would only expect something like this in the rules overview of a single node.
EDIT: moreover, rules with skipped directives are duplicated in node compliance (from node screen).
Files
Updated by François ARMAND almost 4 years ago
Thanks for reporting. This is indeed very strange.
Updated by François ARMAND almost 4 years ago
- Status changed from New to In progress
- Assignee set to François ARMAND
Updated by François ARMAND almost 4 years ago
- File clipboard-202102032145-sjpea.png clipboard-202102032145-sjpea.png added
- File clipboard-202102032148-bdqft.png clipboard-202102032148-bdqft.png added
- File clipboard-202102032149-y0luh.png clipboard-202102032149-y0luh.png added
OK, I can reproduce.
I have a case where it makes sense, but the wording it bad:
Here, on that rule, we have one directive skipped because of one other directive on the same rule. It should not say "on that node", but "on that rule" and skippe the end part which is redondant.
I have also a case where it doesn't make any sense. On an other rule, I have only one directive:
But the compliance part of the rule screen still displays on directive from another rule to tell us it is skipped (but one directive on that same other rule, ie it's the previous example):
So: very likely, we are looking for all possible skipped directive on all nodes (because we compute compliance by node) but when we aggregate by rule for the compliance by rule, we are not filtering the skipped one for the given rule.
Updated by François ARMAND almost 4 years ago
- Description updated (diff)
- Target version changed from 6.2.3 to 6.1.10
Updated by François ARMAND almost 4 years ago
- Status changed from In progress to Pending technical review
- Assignee changed from François ARMAND to Vincent MEMBRÉ
- Pull Request set to https://github.com/Normation/rudder/pull/3499
Updated by François ARMAND almost 4 years ago
- Status changed from Pending technical review to Pending release
Applied in changeset rudder|271ac84d0219ee29eb46b8b90b933f76239aaec6.
Updated by Nicolas CHARLES almost 4 years ago
- Fix check changed from To do to Error - Blocking
Updated by Nicolas CHARLES almost 4 years ago
It seems it does not correctly show skipped directives in Rules screen - but in Nodes it is correct, opening a sub-task
Updated by Vincent MEMBRÉ over 3 years ago
- Fix check changed from Error - Blocking to Error - Fixed
Updated by Vincent MEMBRÉ over 3 years ago
- Status changed from Pending release to Released
This bug has been fixed in Rudder 6.1.10 and 6.2.3 which were released today.