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

cf-runagent exits with 0 in case of error

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Done
    • Priority: Higher
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.15.4, 3.18.0
    • Component/s: cf-runagent
    • Labels:
      None

      Description

      cf-runagent exits with code 0 even if there are (only) failures. For example, when requesting an agent run on the hub itself via the runagent.socket, the result is:

      {
      "output" : "  notice: Waiting for child processes to finish\n10.0.2.15> !!  Unspecified server refusal (see verbose server output)\n\n",
      "exit_code": 0
      }
      

      Note: cf-execd runs cf-runagent with the --background option

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                vpodzime Vratislav Podzimek
                Reporter:
                vpodzime Vratislav Podzimek
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Summary Panel