Actions
Bug #21202
openreporting is broken when using iterator
Pull Request:
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
Actions