Bug #22058
open
Iterator reports are interdependent
Added by Félix DALLIDET about 2 years ago.
Updated 5 months ago.
Status:
Pending technical review
Severity:
Minor - inconvenience | misleading | easy workaround
User visibility:
Infrequent - complex configurations | third party integrations
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
Related issues
1 (1 open — 0 closed)
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.
- Status changed from New to In progress
- Assignee set to Vincent MEMBRÉ
- 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
- Target version changed from 7.2.2 to 7.2.3
- Target version changed from 7.2.3 to 7.3.0~beta1
- Target version changed from 7.3.0~beta1 to 7.3.0~rc1
- Target version changed from 7.3.0~rc1 to 7.3.0
- Target version changed from 7.3.0 to 7.3.1
- Target version changed from 7.3.1 to 7.3.2
- Target version changed from 7.3.2 to 7.3.3
- Target version changed from 7.3.3 to 7.3.4
- Target version changed from 7.3.4 to 7.3.5
- Target version changed from 7.3.5 to 7.3.6
- Target version changed from 7.3.6 to 7.3.7
- Target version changed from 7.3.7 to 7.3.8
- Target version changed from 7.3.8 to 7.3.9
- Target version changed from 7.3.9 to 7.3.10
- Target version changed from 7.3.10 to 7.3.11
- Target version changed from 7.3.11 to 7.3.12
- Target version changed from 7.3.12 to 7.3.13
- Target version changed from 7.3.13 to 7.3.14
- Target version changed from 7.3.14 to 7.3.15
- Target version changed from 7.3.15 to 7.3.16
- Target version changed from 7.3.16 to 7.3.17
- Related to Bug #25776: Create a global method call counter to help provide more unicity added
Also available in: Atom
PDF