Actions
Bug #22664
openaudit_from_command doesn't correclty define outcome class on the second call
Pull Request:
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
Actions