Project

General

Profile

Actions

Bug #25151

open

Iterators do no properly work with the “Service enabled at boot” method

Added by Michel BOUISSOU 5 months ago. Updated 20 days ago.

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

Description

Using an iterator withe the “Service enabled at boot” method does not work :

- It seems that the Rudder agent tries to process all of the iterator values ;
- But it reports only for one or two ;
- And repairs fail.

Examples :

- Iterator has 4 values, everything is compliant
- Info shows that the agent tries all 4 values
- But only 2 reports are produced

   info          dnf_automatic             40 - Define list of serv| auto               Set the iterator service_dnf.auto value to dnf-automatic.service,dnf-automatic-download.timer,dnf-automatic-install.timer,dnf-automatic-notifyonly.timer was correct
2024-07-16T13:24:36+00:00 R: [INFO] Executing is-enabled on dnf-automatic.service using the systemctl method
E| compliant     dnf_automatic             50 - Service dnf-automat| dnf-automatic.ser| Ensure service dnf-automatic.service is enabled at boot  was correct
2024-07-16T13:24:36+00:00 R: [INFO] Executing is-enabled on dnf-automatic-download.timer using the systemctl method
E| compliant     dnf_automatic             50 - Service dnf-automat| dnf-automatic-dow| Ensure service dnf-automatic-download.timer is enabled at boot  was correct
2024-07-16T13:24:36+00:00 R: [INFO] Executing is-enabled on dnf-automatic-install.timer using the systemctl method
2024-07-16T13:24:36+00:00 R: [INFO] Executing is-enabled on dnf-automatic-notifyonly.timer using the systemctl method

- Same test with timers disabled :
- Info shows we're trying all 4 values
- Still only 2 reports
- The non-compliant one fails in ERROR when it should get REPAIRED (and would be, if not using the iterator)

   info          dnf_automatic             40 - Define list of serv| auto               Set the iterator service_dnf.auto value to dnf-automatic.service,dnf-automatic-download.timer,dnf-automatic-install.timer,dnf-automatic-notifyonly.timer was correct
2024-07-16T13:33:49+00:00 R: [INFO] Executing is-enabled on dnf-automatic.service using the systemctl method
E| compliant     dnf_automatic             50 - Service dnf-automat| dnf-automatic.ser| Ensure service dnf-automatic.service is enabled at boot  was correct
2024-07-16T13:33:49+00:00 R: [INFO] Executing is-enabled on dnf-automatic-download.timer using the systemctl method
E| error         dnf_automatic             50 - Service dnf-automat| dnf-automatic-dow| Ensure service dnf-automatic-download.timer is enabled at boot  could not be repaired
2024-07-16T13:33:49+00:00 R: [INFO] Executing is-enabled on dnf-automatic-install.timer using the systemctl method
2024-07-16T13:33:49+00:00 R: [INFO] Executing is-enabled on dnf-automatic-notifyonly.timer using the systemctl method

Related issues 2 (2 open0 closed)

Related to Rudder - Bug #21202: reporting is broken when using iteratorNewActions
Related to Rudder - Bug #25776: Create a global method call counter to help provide more unicityPending releaseFélix DALLIDETActions
Actions #1

Updated by Alexis Mousset 5 months ago

  • Category set to Generic methods
  • Target version set to 8.1.6
Actions #2

Updated by Alexis Mousset 5 months ago

This is due to the use of the logger_v4 in the service methods. We have identified a possible solution, but it is to risky for a patch release. We are planning to fix this in 8.3.

Actions #3

Updated by Vincent MEMBRÉ 5 months ago

  • Target version changed from 8.1.6 to 8.1.7
Actions #4

Updated by Vincent MEMBRÉ 3 months ago

  • Target version changed from 8.1.7 to 8.1.8
Actions #5

Updated by Alexis Mousset about 2 months ago

  • Related to Bug #21202: reporting is broken when using iterator added
Actions #6

Updated by Alexis Mousset about 2 months ago

  • Related to Bug #25776: Create a global method call counter to help provide more unicity added
Actions #7

Updated by Vincent MEMBRÉ about 1 month ago

  • Target version changed from 8.1.8 to 8.1.9
Actions #8

Updated by Vincent MEMBRÉ 24 days ago

  • Target version changed from 8.1.9 to 8.1.10
Actions #9

Updated by Vincent MEMBRÉ 20 days ago

  • Target version changed from 8.1.10 to 8.1.11
Actions

Also available in: Atom PDF