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

cf-agent should stop processing servers in copy_from body after a successful connection

    XMLWordPrintable

    Details

    • Type: Story
    • Status: Open
    • Priority: Medium
    • Resolution: Unresolved
    • Affects Version/s: 3.7.3
    • Fix Version/s: None
    • Component/s: Promise type: files
    • Labels:
    • Platform:
      RHEL or CentOS

      Description

      cf-agent in 3.7.3, when passed an slist to a copy_from body, attempts to copy a given file from every server in the list, rather than stopping after the file has been copied successfully from the first server.

      I've attached an example update.cf and verbose output from cf-agent demonstrating that the inputs/ directory is copied from every server in the remote_copy() body.

      Expected behavior is that the agent stops when it successfully copies the file from one of the servers.

      For extra credit, configurable timeouts/backoff/retry logic with a circuit breaker-like algorithm should be implemented to avoid spamming the admins via email when an agent can't connect to one of the servers.

        Attachments

        1. out.txt
          415 kB
        2. update-test.cf.txt
          7 kB

          Activity

            People

            • Assignee:
              a10003 Eystein Maloy Stenberg
              Reporter:
              phalenor Andrew Cobaugh
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:

                Summary Panel