Project

General

Profile

Actions

Bug #22058

open

Iterator reports are interdependent

Added by Félix DALLIDET over 1 year ago. Updated about 24 hours 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
Name check:
To do
Fix check:
To do
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 over 1 year 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É over 1 year ago

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

Updated by Vincent MEMBRÉ over 1 year 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É over 1 year ago

  • Subtask #22088 added
Actions #5

Updated by Vincent MEMBRÉ over 1 year ago

  • Target version changed from 7.2.2 to 7.2.3
Actions #6

Updated by Vincent MEMBRÉ over 1 year ago

  • Target version changed from 7.2.3 to 7.3.0~beta1
Actions #7

Updated by Vincent MEMBRÉ about 1 year ago

  • Target version changed from 7.3.0~beta1 to 7.3.0~rc1
Actions #8

Updated by Vincent MEMBRÉ about 1 year ago

  • Target version changed from 7.3.0~rc1 to 7.3.0
Actions #9

Updated by Vincent MEMBRÉ about 1 year ago

  • Target version changed from 7.3.0 to 7.3.1
Actions #10

Updated by Vincent MEMBRÉ 12 months ago

  • Target version changed from 7.3.1 to 7.3.2
Actions #11

Updated by Vincent MEMBRÉ 12 months ago

  • Target version changed from 7.3.2 to 7.3.3
Actions #12

Updated by Vincent MEMBRÉ 10 months ago

  • Target version changed from 7.3.3 to 7.3.4
Actions #13

Updated by Vincent MEMBRÉ 9 months ago

  • Target version changed from 7.3.4 to 7.3.5
Actions #14

Updated by Alexis Mousset 9 months ago

  • Target version changed from 7.3.5 to 7.3.6
Actions #15

Updated by Vincent MEMBRÉ 8 months ago

  • Target version changed from 7.3.6 to 7.3.7
Actions #16

Updated by Vincent MEMBRÉ 7 months ago

  • Target version changed from 7.3.7 to 7.3.8
Actions #17

Updated by Vincent MEMBRÉ 6 months ago

  • Target version changed from 7.3.8 to 7.3.9
Actions #18

Updated by Vincent MEMBRÉ 6 months ago

  • Target version changed from 7.3.9 to 7.3.10
Actions #19

Updated by Vincent MEMBRÉ 4 months ago

  • Target version changed from 7.3.10 to 7.3.11
Actions #20

Updated by Vincent MEMBRÉ 3 months ago

  • Target version changed from 7.3.11 to 7.3.12
Actions #21

Updated by Vincent MEMBRÉ about 2 months ago

  • Target version changed from 7.3.12 to 7.3.13
Actions #22

Updated by Vincent MEMBRÉ about 2 months ago

  • Target version changed from 7.3.13 to 7.3.14
Actions #23

Updated by Vincent MEMBRÉ about 24 hours ago

  • Target version changed from 7.3.14 to 7.3.15
Actions

Also available in: Atom PDF