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

Files promises are noisy when an alternate allowed owner does not exist

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: (None)
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: cf-agent
    • Labels:
      None
    • Found in version (details):
      3.10.3

      Description

      When there is more than one owner specified in a files promise as being allowed for the file, if any of the owners don't exist, CFEngine generates noise.

      Example (distilled from our real code but not tested standalone, though it should work):

      bundle agent main {
        files:
          any::
            "$(sys.resolv)"
              perms => resolver;
      }
      
      body perms resolver {
        mode => "644";
        owners => { "root", "systemd-resolve" };
      }
      

      On hosts that don't have the systemd-resolve user, even though sys.resolv IS owned by root, this promise will generate noise:

          info: Unknown user 'systemd-resolve' in promise
          info: Unknown user 'systemd-resolve' in promise
          info: Unknown user 'systemd-resolve' in promise
          info: Unknown user 'systemd-resolve' in promise
          info: Unknown user 'systemd-resolve' in promise
      

      CFE-3116 is also somewhat related since on a host with systemd, /etc/resolv.conf is a symlink. However, that's not to the point of this bug report.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              mweilgart Mike Weilgart
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:

                Summary Panel