Uploaded image for project: 'Puppet'
  1. Puppet
  2. PUP-10407

"Unable to set ownership" error with logdest on agents running as root

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: PUP 6.14.0
    • Fix Version/s: PUP 6.16.0, PUP 5.5.21
    • Component/s: None
    • Labels:
    • Environment:

      Puppet masterless, agent 6.14.0 running as root on CentOS 8.

    • Template:
      PUP Bug Template
    • Team:
      Coremunity
    • Sprint:
      Platform Core KANBAN
    • Method Found:
      Needs Assessment
    • Release Notes:
      Bug Fix
    • Release Notes Summary:
      Puppet no longer generates an error when using a log file destination.
    • QA Risk Assessment:
      Needs Assessment

      Description

      As described in the attached issue, a puppet agent run raises the following error: "Puppet (err): Unable to set ownership to puppet:puppet for log file".
      Caused by trying to change the owner to puppet:puppet which doesn't exist and shouldn't happen when run as root.

      This happens if the file doesn't exist but also when it does, since it writes to a temporary file and tries to set owner on this one too.

      Also the command line parameter "--no-manage_internal_file_permissions" dosen't help.

      Although this should have been fixed, it's not.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              josh Josh Cooper
              Reporter:
              the_evil Fabian Eichenberger
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Zendesk Support