Project

General

Profile

Actions

Architecture #19127

open

Overridden directives in the same rule are missing before a full regeneration

Added by François ARMAND about 3 years ago. Updated 7 months ago.

Status:
New
Priority:
N/A
Assignee:
-
Category:
Web - Config management
Effort required:
Name check:
To do
Fix check:
To do
Regression:
No

Description

So, in #19114, we had missing directive because of a bug.
Now, we have the correct behavior, but only after a full regeneration if the added directive doesn't change actual configuration.

This is because is the added directive is skipped everywhere, the effective configuration doesn't change on any nodes, so the first step of policy generation that looks if it is necessary to compute new generation say "no, it isn't", then we don't have new expected configuration, and it's expected configuration that are used to check if directives are skipped.
That's all because we don't really apply directives to rule, we apply directives to nodes (with a lot of graphe resolution in the middle, involving rules and groups).

Correcting that one would mean that we need to change expected configuration in a case when it's actually not needed (because, well, they don't change) and would lead to poetentially long computation for nothing. I'm not sure about what to do.


Related issues 1 (0 open1 closed)

Related to Rudder - Bug #19114: Overridden directives in the same rule are missing (not even "skipped")ReleasedVincent MEMBRÉActions
Actions

Also available in: Atom PDF