Uploaded image for project: 'CFEngine Community'
  1. CFEngine Community
  2. CFE-3753

Cached systemd service state in services promises

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Done
    • Priority: Higher
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.18.1, 3.19.0
    • Component/s: None
    • Labels:
      None
    • Story Points:
      2

      Description

      Due to the execresult() function (and others) results being cached, the systemd_service_info variable for a particular service is only populated once and then never refreshed in the same agent run. Thus if the state of a particular service changes during an agent run (even by actions done by the agent), promises may be marked as kept instead of repairs happening.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              vpodzime Vratislav Podzimek
              Reporter:
              olehermanse Ole Herman Schumacher Elgesem
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: