Bug #20540
closedUnexpected reports when using nested blocks
Description
Some specific cases of nested block are breaking the compliance computation.
I was using some complex nested block logic to organize one of my technique, and ended up with a lot (~85%) of unexpected reports. The strange thing here is that the reports seems correct,
they were the same due to the nature of the reporting, but where all marked as unexpected whenever I had more than 4 of them similar.
- A parent block
- at least 4 children blocks with the same method, with the same component key (resource parameter in rudder language).
I was working from a rudderlang source, generating a json and importing it via the API. It seems like if I export the technique after having it imported this way, then import the newly exported json, the technique is correct and does not generate any unexpected reports anymore.
To import the rd file, I used the following steps:
/opt/rudder/bin/rudderc technique read -i "technique.rd" curl --silent -k --header "X-API-Token: $(cat /var/rudder/run/api-token)" --header "Content-type: application/json" --request PUT https://localhost/rudder/api/latest/techniques --data "@technique.json"
Files
Updated by Félix DALLIDET almost 3 years ago
- File missing_report.png missing_report.png added
Updated by Vincent MEMBRÉ almost 3 years ago
- Status changed from New to In progress
- Assignee set to Vincent MEMBRÉ
Updated by Vincent MEMBRÉ almost 3 years ago
- Assignee changed from Vincent MEMBRÉ to François ARMAND
- Pull Request set to https://github.com/Normation/rudder/pull/4120
Updated by Vincent MEMBRÉ almost 3 years ago
- Status changed from In progress to Pending release
Applied in changeset rudder|25c6fb6ddeda6b1d009b76b1f32849d5dd385cb4.
Updated by Vincent MEMBRÉ almost 3 years ago
- Status changed from Pending release to Released
This bug has been fixed in Rudder 7.0.0~rc3 which was released today.