Uploaded image for project: 'Puppet Server'
  1. Puppet Server
  2. SERVER-2246

No puppet compiler logs with STDOUT logback logging

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Cannot Reproduce
    • Affects Version/s: SERVER 5.3.3
    • Fix Version/s: None
    • Component/s: Puppet Server
    • Labels:
      None
    • Environment:

      RHEL 7 with Systemd

    • Template:
      PUP Bug Template
    • Acceptance Criteria:
      Hide

      Configuring logback to with ConsoleAppender (STDOUT) shows the same messages as logging with RollingFileAppender (/var/log/pupetlabs/puppetserver/puppetserver.log)

      Show
      Configuring logback to with ConsoleAppender (STDOUT) shows the same messages as logging with RollingFileAppender (/var/log/pupetlabs/puppetserver/puppetserver.log)
    • Method Found:
      Needs Assessment
    • QA Risk Assessment:
      Needs Assessment

      Description

      Puppet Version: 5.5.3
      Puppet Server Version: 5.3.3
      OS Name/Version: RHEL 7

      Steps to reproduce:

      • Add STDOUT appender-ref to logback.xml:

      <configuration>
      ...
      <root level="info">
        ...
        <appender-ref ref="STDOUT" />
      </root>
      </configuration>
      

      • restart puppetserver systemd service
      • watch puppetserver STDOUT output with journalctl -u puppetserver.service
      • compare with /var/log/puppetlabs/puppetserver/puppetserver.log

      Actual Behavior:

      all Puppet compiler messages are missing on STDOUT

      Some example messages not added to STDOUT:

      Pupppet The function 'xy' is deprecated in favor of using 'lookup' ...
      Puppet This method is deprecated, please use the ...
      Puppet Undefined variable '...' ...
      Puppet Compiled catalog for ... in environment .... in ... seconds

      Desired Behavior:
      same logs on STDOUT as in /var/log/puppetlabs/puppetserver/puppetserver.log

      solution:

      journalctl -u puppetserver.service only includes messages until puppserver service is started. The java process stdout is still captured and logged to jouranld.

      Use journalctl -t puppetserver to get the logs.

        Attachments

          Activity

            People

            • Assignee:
              Raffaello Thomas Mueller
              Reporter:
              Raffaello Thomas Mueller
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Zendesk Support