Project

General

Profile

Actions

Bug #22058

open

Iterator reports are interdependent

Added by Félix DALLIDET 3 months ago. Updated about 2 months ago.

Status:
Pending technical review
Priority:
N/A
Category:
Generic methods
Target version:
Severity:
Minor - inconvenience | misleading | easy workaround
UX impact:
User visibility:
Infrequent - complex configurations | third party integrations
Effort required:
Priority:
0
Regression:
No

Description

When using an iterator the report status from a value is inherited to the next one and only overridden if the next report is worst.

Meaning that when the first item produces an error, the whole iterator reporting will be in error for each individual values, even if they succeeded.


Files

unix_tools.json (1.48 KB) unix_tools.json Félix DALLIDET, 2022-11-08 11:41

Subtasks 1 (1 open0 closed)

Bug #22088: make iterator report more independantPending technical reviewAlexis MoussetActions
Actions #1

Updated by Félix DALLIDET 3 months ago

Tested in 7.2.2-nightly. To reproduce, import the exported technique, define a property like such on your node:

{ "apt": [ "vim", "sed", "grep", "curl" ] }

Use it in the directive param with "${node.properties[<name>][apt]}" and run your agent.
Now, add an element in the array that does not match with an existing package, like "lkjgkjhgkjhgkjh". Try to place it first, then in the middle or at the end and observe how
the reporting status is propagated to values in the array.

Actions #2

Updated by Vincent MEMBRÉ 3 months ago

  • Status changed from New to In progress
  • Assignee set to Vincent MEMBRÉ
Actions #3

Updated by Vincent MEMBRÉ 3 months ago

  • Status changed from In progress to Pending technical review
  • Assignee changed from Vincent MEMBRÉ to François ARMAND
  • Pull Request set to https://github.com/Normation/rudder/pull/4562
Actions #4

Updated by Vincent MEMBRÉ 2 months ago

  • Subtask #22088 added
Actions #5

Updated by Vincent MEMBRÉ 2 months ago

  • Target version changed from 7.2.2 to 7.2.3
Actions #6

Updated by Vincent MEMBRÉ about 2 months ago

  • Target version changed from 7.2.3 to 7.3.0~alpha1
Actions

Also available in: Atom PDF