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

cf-agent cant change ownerships on a named pipe. execution hangs

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Done
    • Priority: High
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.7.2
    • Component/s: Promise type: files
    • Labels:
      None

      Description

      I have these promises...

      <pre>
      range_class_cf3_promises_all_syslog.linux::
      "ingress_windows_exists" expression => fileexists("/var/log/ingress-windows");

      !ingress_windows_exists.range_class_cf3_promises_all_syslog.linux::
      "/usr/bin/mkfifo /var/log/ingress-windows"
      comment => "configure_syslog_ng_conf mkfifo ingress-windows";
      </pre>

      This creates a named pipe if it doesn't exist.

      <pre>

      1. ls -l /var/log/ingress-windows
        prw------- 1 root root 0 Jan 14 06:47 /var/log/ingress-windows
        </pre>

      I then have this promise to change ownership of the named pipe. This hangs cf-agent execution.

      <pre>
      files:
      range_class_cf3_promises_all_syslog.linux::
      "/var/log/ingress-windows"
      handle => "linux_syslog_ingress_windows",
      create => "false",
      perms => mog("0644", "root", "uucp");
      </pre>

      Executing the bundle, showing the hang. cf-exced kills the agent here. The agent is never able to "get past" this promise.

      <pre>

      1. /var/cfengine/bin/cf-agent -I -K -b configure_syslog_ng_conf
        2015-03-04T16:45:17+0000 info: Using command line specified bundlesequence
        2015-03-04T16:45:17+0000 info: /default/configure_syslog_ng_conf/files/'/var/log/ingress-windows'[0]: Group of '/var/log/ingress-windows' was 0, setting to 14
        ^C

      #
      </pre>

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                a10040 Kristian Amlie
                Reporter:
                msvoboda@linkedin.com mike svoboda
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Summary Panel