Project

General

Profile

Actions

Bug #21202

open

reporting is broken when using iterator

Added by Nicolas CHARLES almost 2 years ago. Updated 10 days ago.

Status:
New
Priority:
N/A
Assignee:
-
Category:
Web - Compliance & node report
Target version:
Severity:
Minor - inconvenience | misleading | easy workaround
UX impact:
I hate Rudder for that
User visibility:
Infrequent - complex configurations | third party integrations
Effort required:
Priority:
58
Name check:
To do
Fix check:
To do
Regression:

Description

I'm using an iterator to check that packages are installed, and the reporting is broken.
Output of the agent shows the last element of the list for each

A| compliant     sc_nario_1                Package present           vlock              Presence of package acct in latest available version  was correct
A| compliant     sc_nario_1                Package present           vlock              Presence of package aide-common in latest available version  was correct
A| compliant     sc_nario_1                Package present           vlock              Presence of package debsums in latest available version  was correct
A| compliant     sc_nario_1                Package present           vlock              Presence of package gnupg2 in latest available version  was correct
A| compliant     sc_nario_1                Package present           vlock              Presence of package haveged in latest available version  was correct
A| compliant     sc_nario_1                Package present           vlock              Presence of package needrestart in latest available version  was correct
A| compliant     sc_nario_1                Package present           vlock              Presence of package unattended-upgrades in latest available version  was correct
2022-06-01T10:41:04+00:00  warning: Should install repo type package: update-notifier-common, but only warning promised
A| non-compliant sc_nario_1                Package present           vlock              If you tried to install a virtual package, please use in place the concrete package you want to install.
2022-06-01T10:41:04+00:00 Presence of package update-notifier-common in latest available version  was not correct
2022-06-01T10:41:04+00:00  warning: Should install repo type package: vlock, but only warning promised
A| non-compliant sc_nario_1                Package present           vlock              If you tried to install a virtual package, please use in place the concrete package you want to install.
2022-06-01T10:41:04+00:00 Presence of package vlock in latest available version  was not correct

In the rule page, the compliance by node display is broken

In the rule page, the compliance by directive display is broken

Note that in both case, the compliant percentage is correct

In the node page, the compliance display is invalid

technique is attached

The compliance of top level is ok, but not the compliance of the component itself

Compliance by api for node returns

"rules":[{"id":"d36ed31c-a697-469a-97a7-871ecb0cdc2c","name":"Test on node 1","compliance":88.24000000000001,"complianceDetails":{"auditCompliant":76.48,"auditNonCompliant":11.76,"auditNotApplicable":11.76},"directives":[{"id":"f030dec6-ba37-451b-9a04-82b45e92c88f","name":"Scénario 1","compliance":80.0,"complianceDetails":{"auditCompliant":80.0,"auditNonCompliant":20.0},"components":[{"name":"Package installation","compliance":80.0,"complianceDetails":{"auditCompliant":80.0,"auditNonCompliant":20.0},"components":[{"name":"Package present","compliance":77.78,"complianceDetails":{"auditCompliant":77.78,"auditNonCompliant":22.22},"values":[{"value":"vlock","reports":[{"status":"auditNonCompliant","message":"If you tried to install a virtual package, please use in place the concrete package you want to install.\nPresence of package vlock in latest available version  was not correct"},{"status":"auditNonCompliant","message":"If you tried to install a virtual package, please use in place the concrete package you want to install.\nPresence of package update-notifier-common in latest available version  was not correct"},{"status":"auditCompliant","message":"Presence of package unattended-upgrades in latest available version  was correct"},{"status":"auditCompliant","message":"Presence of package needrestart in latest available version  was correct"},{"status":"auditCompliant","message":"Presence of package haveged in latest available version  was correct"},{"status":"auditCompliant","message":"Presence of package gnupg2 in latest available version  was correct"},{"status":"auditCompliant","message":"Presence of package debsums in latest available version  was correct"},{"status":"auditCompliant","message":"Presence of package aide-common in latest available version  was correct"},{"status":"auditCompliant","message":"Presence of package acct in latest available version  was correct"}]}]}


Files

clipboard-202206011611-nv1dr.png (202 KB) clipboard-202206011611-nv1dr.png Nicolas CHARLES, 2022-06-01 14:23
clipboard-202206011612-k95p9.png (192 KB) clipboard-202206011612-k95p9.png Nicolas CHARLES, 2022-06-01 14:23
clipboard-202206011613-5wrai.png (231 KB) clipboard-202206011613-5wrai.png Nicolas CHARLES, 2022-06-01 14:24
sc_nario_1.json (1.93 KB) sc_nario_1.json Nicolas CHARLES, 2022-06-01 14:29
clipboard-202206011639-z2au9.png (252 KB) clipboard-202206011639-z2au9.png Nicolas CHARLES, 2022-06-01 14:53
clipboard-202206011640-tgnvk.png (267 KB) clipboard-202206011640-tgnvk.png Nicolas CHARLES, 2022-06-01 14:54

Related issues 2 (1 open1 closed)

Related to Rudder - Bug #20603: Reports on method using iterator are wrong in the cli outputReleasedFrançois ARMANDActions
Related to Rudder - Bug #16105: When we are using iterator in generic method condition only, the multiple reports are not correctly accumulated togetherNewActions
Actions

Also available in: Atom PDF