Actions
Bug #18942
openNon understandable policy generation error with dependant groups when a static depends on a dynamic and are out of sync
Pull Request:
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
Actions