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

puppet agent generates error when used with --logdest

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Normal
    • Resolution: Duplicate
    • PUP 4.3.2
    • None
    • None
    • None
    • RHEL 7.2
      puppet 4.3.2 (puppet-agent-1.3.5)
      AND
      puppet 4.4.2 (puppet-agent-1.4.2)

      no puppet user or group on managed nodes.

    • Hide

      No attempt to chown the logdest file to puppet:puppet

      Show
      No attempt to chown the logdest file to puppet:puppet

    Description

      # id
      uid=0(root) gid=0(root) groups=0(root) context=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023
       
      # puppet apply --logdest /tmp/foo.json -e 'notify {"jenny I got your number":}'
      # cat /tmp/foo.json
      [
      {"level":"err","message":"Unable to set ownership to puppet:puppet for log file: /tmp/foo.json","source":"Puppet","tags":["err"],"time":"2016-04-29T16:13:00.254637529+01:00"},
      {"level":"notice","message":"Compiled catalog for t-wel-vl001.aspectcapital.com in environment production in 0.04 seconds","source":"Puppet","tags":["notice"],"time":"2016-04-29T16:13:02.423493192+01:00"},
      {"level":"notice","message":"jenny I got your number","source":"Puppet","tags":["notice"],"time":"2016-04-29T16:13:03.205586495+01:00"},
      {"level":"notice","message":"defined 'message' as 'jenny I got your number'","source":"/Stage[main]/Main/Notify[jenny I got your number]/message","tags":["notice","notify","class"],"time":"2016-04-29T16:13:03.205786747+01:00","file":"","line":1},
      {"level":"notice","message":"Applied catalog in 0.68 seconds","source":"Puppet","tags":["notice"],"time":"2016-04-29T16:13:03.536464238+01:00"}[Lab-wel] root@t-wel-vl001:/tmp
       
      # ls -l /tmp/foo.json
      -rw-r--r--. 1 root root 1169 Apr 29 16:21 /tmp/foo.json
      

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              senax Frank Ederveen
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Zendesk Support