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

cfruncommand can't execute cf-agent -K

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Done
    • Priority: High
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.9.0
    • Component/s: cf-runagent
    • Labels:
      None

      Description

      I appended "-K" to @cfruncommand@ in body server control:
      <pre>
      !(windows|hpux|aix|solaris)::
      cfruncommand => "$(def.cf_runagent_shell) -c \"$(sys.cf_agent) -f $(sys.update_policy_path)\" ; $(sys.cf_agent) -K";
      </pre>

      When I tried to execute it via cf-runagent, I got:
      <pre>
      cf-runagent -H 1.2.3.4
      1.2.3.4> cf-serverd executing cfruncommand: /bin/sh -c ""/var/cfengine/bin/cf-agent" -f /var/cfengine/inputs/update.cf" ; "/var/cfengine/bin/cf-agent" -K -I -Dcfruncommand
      1.2.3.4> -> error: Remote execution cannot ignore lock
      </pre>

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Summary Panel

                    Time Tracking

                    Estimated:
                    Original Estimate - 5 hours
                    5h
                    Remaining:
                    Not Specified
                    Logged:
                    Time Not Required
                    Not Specified