Project

General

Profile

Actions

Bug #22664

open

audit_from_command doesn't correclty define outcome class on the second call

Added by Nicolas CHARLES over 1 year ago. Updated 6 months ago.

Status:
New
Priority:
N/A
Assignee:
-
Category:
Generic methods
Target version:
Severity:
UX impact:
User visibility:
Effort required:
Small
Priority:
0
Name check:
To do
Fix check:
To do
Regression:
No

Description

the defined class don't have any ink with actual expected class, but is it the previous one
attached is relevant part of the verbose output, and below is the extract with the wrong values

ESC[0mESC[34mrudder  verbose: P: BEGIN promise 'promise_audit_from_command_cf_59' of type "commands" (pass 2)
ESC[0mESC[34mrudder  verbose: P:    Promiser/affected object: '[[ -z $(lastb -aFx | head -n -2) ]] && e'
ESC[0mESC[34mrudder  verbose: P:    Part of bundle: audit_from_command
ESC[0mESC[34mrudder  verbose: P:    Base context class: pass2.!pass3
ESC[0mESC[34mrudder  verbose: P:    Stack path: /default/rudder_directives/methods/'Demo - Check User Presence on system/No connexion fails'/default/run_06721ec0_52ef_414a_b065_65ebff64fb3d/methods/'Demo - Check User Presence on system/No connexion fails'/default/no_connexion_fails/methods/'20abc8c2-c900-48a4-8a04-6df08780c1ee_06721ec0-52ef-414a-b065-65ebff64fb3d'/default/no_connexion_fails_gm_0/methods/'20abc8c2-c900-48a4-8a04-6df08780c1ee_06721ec0-52ef-414a-b065-65ebff64fb3d'/default/audit_from_command/commands/'[[ -z $(lastb -aFx | head -n -2) ]] && exit 1'[1]
ESC[0mESC[32mrudder     info: Executing 'no timeout' ... '[[ -z $(lastb -aFx | head -n -2) ]] && exit 1'
ESC[0mESC[34mrudder  verbose: Setting umask to 77
ESC[0mESC[32mrudder     info: Command related to promiser '[[ -z $(lastb -aFx | head -n -2) ]] && exit 1' returned code '1' not defined as promise kept, not kept or repaired; setting to failed
ESC[0mESC[34mrudder  verbose: C:    + promise outcome class 'repair_failed_20abc8c2_c900_48a4_8a04_6df08780c1ee_06721ec0_52ef_414a_b065_65ebff64fb3d'
ESC[0mESC[34mrudder  verbose: C:    + promise outcome class '20abc8c2_c900_48a4_8a04_6df08780c1ee_06721ec0_52ef_414a_b065_65ebff64fb3d_failed'
ESC[0mESC[34mrudder  verbose: C:    + promise outcome class '20abc8c2_c900_48a4_8a04_6df08780c1ee_06721ec0_52ef_414a_b065_65ebff64fb3d_not_ok'
ESC[0mESC[34mrudder  verbose: C:    + promise outcome class '20abc8c2_c900_48a4_8a04_6df08780c1ee_06721ec0_52ef_414a_b065_65ebff64fb3d_error'
ESC[0mESC[34mrudder  verbose: C:    + promise outcome class '20abc8c2_c900_48a4_8a04_6df08780c1ee_06721ec0_52ef_414a_b065_65ebff64fb3d_not_kept'
ESC[0mESC[34mrudder  verbose: C:    + promise outcome class '20abc8c2_c900_48a4_8a04_6df08780c1ee_06721ec0_52ef_414a_b065_65ebff64fb3d_not_repaired'
ESC[0mESC[34mrudder  verbose: C:    + promise outcome class '20abc8c2_c900_48a4_8a04_6df08780c1ee_06721ec0_52ef_414a_b065_65ebff64fb3d_reached'
ESC[0mESC[34mrudder  verbose: C:    + promise outcome class 'repair_failed_audit_from_command_lastlog__b_90___grep__v__Never____awk___print__1_____grep__v_Usernam'
ESC[0mESC[34mrudder  verbose: C:    + promise outcome class 'audit_from_command_lastlog__b_90___grep__v__Never____awk___print__1_____grep__v_Usernam_failed'
ESC[0mESC[34mrudder  verbose: C:    + promise outcome class 'audit_from_command_lastlog__b_90___grep__v__Never____awk___print__1_____grep__v_Usernam_not_ok'
ESC[0mESC[34mrudder  verbose: C:    + promise outcome class 'audit_from_command_lastlog__b_90___grep__v__Never____awk___print__1_____grep__v_Usernam_error'
ESC[0mESC[34mrudder  verbose: C:    + promise outcome class 'audit_from_command_lastlog__b_90___grep__v__Never____awk___print__1_____grep__v_Usernam_not_kept'
ESC[0mESC[34mrudder  verbose: C:    + promise outcome class 'audit_from_command_lastlog__b_90___grep__v__Never____awk___print__1_____grep__v_Usernam_not_repaired'
ESC[0mESC[34mrudder  verbose: C:    + promise outcome class 'audit_from_command_lastlog__b_90___grep__v__Never____awk___print__1_____grep__v_Usernam_reached'
ESC[0mESC[32mrudder     info: Completed execution of '[[ -z $(lastb -aFx | head -n -2) ]] && exit 1'
ESC[0mESC[34mrudder  verbose: A: Promise NOT KEPT!
ESC[0mESC[34mrudder  verbose: P: END commands promise ([[ -z $(lastb -aFx | head -n -...)

Files

out (621 KB) out Nicolas CHARLES, 2023-04-19 23:20
Actions #1

Updated by Nicolas CHARLES over 1 year ago

it can be because there's a $() in the command

Actions #2

Updated by Vincent MEMBRÉ over 1 year ago

  • Target version changed from 7.2.6 to 7.2.7
Actions #3

Updated by Vincent MEMBRÉ over 1 year ago

  • Target version changed from 7.2.7 to 7.2.8
Actions #4

Updated by Vincent MEMBRÉ over 1 year ago

  • Target version changed from 7.2.8 to 7.2.9
Actions #5

Updated by Vincent MEMBRÉ over 1 year ago

  • Target version changed from 7.2.9 to 7.2.10
Actions #6

Updated by Alexis Mousset over 1 year ago

  • Target version changed from 7.2.10 to 7.2.11
Actions #7

Updated by Vincent MEMBRÉ over 1 year ago

  • Target version changed from 7.2.11 to 1046
Actions #8

Updated by Alexis Mousset about 1 year ago

  • Target version changed from 1046 to 7.3.8
Actions #9

Updated by Vincent MEMBRÉ about 1 year ago

  • Target version changed from 7.3.8 to 7.3.9
Actions #10

Updated by Vincent MEMBRÉ about 1 year ago

  • Target version changed from 7.3.9 to 7.3.10
Actions #11

Updated by Vincent MEMBRÉ about 1 year ago

  • Target version changed from 7.3.10 to 7.3.11
Actions #12

Updated by Vincent MEMBRÉ 11 months ago

  • Target version changed from 7.3.11 to 7.3.12
Actions #13

Updated by Vincent MEMBRÉ 10 months ago

  • Target version changed from 7.3.12 to 7.3.13
Actions #14

Updated by Vincent MEMBRÉ 10 months ago

  • Target version changed from 7.3.13 to 7.3.14
Actions #15

Updated by Vincent MEMBRÉ 8 months ago

  • Target version changed from 7.3.14 to 7.3.15
Actions #16

Updated by Vincent MEMBRÉ 7 months ago

  • Target version changed from 7.3.15 to 7.3.16
Actions #17

Updated by Vincent MEMBRÉ 6 months ago

  • Target version changed from 7.3.16 to 7.3.17
Actions

Also available in: Atom PDF