Project

General

Profile

Actions

Bug #18942

open

Non understandable policy generation error with dependant groups when a static depends on a dynamic and are out of sync

Added by Nicolas CHARLES almost 4 years ago. Updated 5 months ago.

Status:
New
Priority:
N/A
Assignee:
-
Category:
Web - Config management
Target version:
Severity:
UX impact:
User visibility:
Effort required:
Priority:
0
Name check:
To do
Fix check:
To do
Regression:

Description

This one is tricky: when a Group Y depends on another group Z, and Y is static while Z is dynamic, if Z changes in such a way that a node from Y is removed from Z, then policy generation will fail in non understable way
First, there is a

Error while building target node configuration for node uuid, which is one of the target of rules. Ignoring it for the rest of the process  <- Inconsistency: Error when looking for parent group 'Z' of group 'Y'. Please check criterium for that group

but if doesn't show in the error message displayed which is
=> Cannot write node configuration
=> Unexpected: Error when executing hooks
Exit code=1 for hook '10-cf-promises-check' [stdout: error: Can't stat file '/var/rudder/Share/uuid/rules.new/cfengine-community/promises.cf (stat: no such file or directory)

for every nodes in group Y and not Z

First error should bubble up in error message - i'm even qiute sure it should interrupt policy generation
And it should explain why there is an inconsistency - it was quite hard to identify the issue. Detecting that the group is static might help


Related issues 1 (0 open1 closed)

Related to Rudder - Bug #18952: Static group which depends on dynamic subgroup must be forbidenReleasedVincent MEMBRÉActions
Actions

Also available in: Atom PDF