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

Recursive copy_from failing in a file, should result in FAILed promise result

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: High
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Promise type: files
    • Labels:
      None
    • Platform:
      Other (details)

      Description

      failsafe.cf:
      <pre>
      "$(sys.inputdir)"
      copy_from => u_scp("$(masterfiles_dir_remote)"),
      depth_search => u_recurse("inf"),
      classes => repaired("got_policy");
      [...]
      body classes repaired
      {
      promise_repaired =>

      {"$(x)"}

      ;
      repair_failed =>

      {"$(x)_failed"}

      ;
      }
      </pre>

      However the class got_policy_failed is not set even when it fails in the first file, right after the OPENDIR command.

      Excerpts from debug log on the agent:
      <pre>
      verbose: P: BEGIN promise 'cfe_internal_bootstrap_update_files_sys_workdir_inputs_shortcut' of type "files" (pass 1)
      verbose: Entering directory 'masterfiles'
      debug: SendTransaction data: OPENDIR masterfiles
      [ ... SUCCESS ... ]
      debug: SendTransaction data: SYNCH 1435860806 STAT masterfiles/templates
      [ ... SUCCESS ... ]
      debug: SendTransaction data: SYNCH 1435860806 STAT masterfiles\templates
      debug: ReceiveTransaction data: BAD: Unspecified server refusal (see verbose server output)
      verbose: Server returned error: Unspecified server refusal (see verbose server output)
      verbose: Can't stat 'masterfiles\templates'. (cf_stat: The operation completed successfully.)
      [ ... STATing every other file in masterfiles, half failing in the same manner ... ]
      verbose: A: Promise was KEPT
      </pre>

        Attachments

          Activity

            People

            • Assignee:
              a10038 jimis (Dimitrios Apostolou)
              Reporter:
              a10038 jimis (Dimitrios Apostolou)
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:

                Summary Panel