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

--simulate does not execute commands promises that are tagged with simulate_safe

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Open
    • Priority: High
    • Resolution: Unresolved
    • Affects Version/s: 3.17.0
    • Fix Version/s: None
    • Component/s: cf-agent
    • Labels:

      Description

      I expected commands promises tagged with simulate_safe to be executed, but I found they are always skipped.

      bundle agent main
      {
        commands:
          "/bin/echo Commands only run if tagged simulate_safe";
      
          "/bin/echo Commands only run if tagged simulate_safe, like this"
            meta => { "simulate_safe" };
      }
      
      [root@hub ~]# cf-agent -KIf ./simulate_commands.cf --simulate manifest
       warning: All changes in files will be made in the '/var/cfengine/state/7135.changes' chroot
          info: Executing 'no timeout' ... '/bin/echo Commands only run if tagged simulate_safe'
       warning: Would execute script '/bin/echo Commands only run if tagged simulate_safe'
          info: Executing 'no timeout' ... '/bin/echo Commands only run if tagged simulate_safe, like this'
       warning: Would execute script '/bin/echo Commands only run if tagged simulate_safe, like this'
          info: No changed files to manifest
      
      
      [root@hub ~]# cf-agent -KIf ./simulate_commands.cf --simulate diff
       warning: All changes in files will be made in the '/var/cfengine/state/7182.changes' chroot
          info: Executing 'no timeout' ... '/bin/echo Commands only run if tagged simulate_safe'
       warning: Would execute script '/bin/echo Commands only run if tagged simulate_safe'
          info: Executing 'no timeout' ... '/bin/echo Commands only run if tagged simulate_safe, like this'
       warning: Would execute script '/bin/echo Commands only run if tagged simulate_safe, like this'
          info: No changed files to show diff for
      

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              a10042 Nick Anderson
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:

                Summary Panel