Uploaded image for project: 'Puppet Communications Protocol'
  1. Puppet Communications Protocol
  2. PCP-850

pxp-agent logrotate misconfiguration

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • High
    • Resolution: Fixed
    • pxp-agent 1.9.3
    • pxp-agent 1.15.9
    • None
    • Night's Watch
    • 3
    • NW - 2020-12-09
    • Customer Feedback
    • Reviewed
    • 37891,39520,41036
    • 3
    • Bug Fix
    • This was fixed by adding delaycompress to logrotate configurations postpones compression of the previous log file to the next rotation cycle, so that the compression will not happen to the current log file.
    • Needs Assessment

    Description

      logrotate configuration in puppet agent 5.5.1 has several issues:

      /etc/cron.daily/logrotate:
      gzip: stdin: file size changed while zipping

      This comes from /etc/logrotate.d/pxp-agent 

      delaycompress option is necessary

      same pxp-agent configuration doesn't work when SELinux is enabled:

      /etc/cron.daily/logrotate:
      Failed to kill unit pxp-agent.service: Access denied
      error: error running shared postrotate script for '/var/log/puppetlabs/pxp-agent/*.log '

      Either proper policy have to be supplied or supply a pid file need to be supplied and regular kill command used

       

      Attachments

        1. icon.png
          icon.png
          1 kB
        2. icon.png
          icon.png
          1 kB
        3. icon.png
          icon.png
          1 kB
        4. icon.png
          icon.png
          1 kB
        5. icon.png
          icon.png
          1 kB
        6. icon.png
          icon.png
          1 kB
        7. icon.png
          icon.png
          1 kB
        8. icon.png
          icon.png
          1 kB
        9. icon.png
          icon.png
          1 kB
        10. icon.png
          icon.png
          1 kB
        11. icon.png
          icon.png
          1 kB
        12. icon.png
          icon.png
          1 kB
        13. icon.png
          icon.png
          1 kB

        Issue Links

          Activity

            People

              dorin.pleava Dorin Pleava
              vchepkov Vadym Chepkov
              Votes:
              2 Vote for this issue
              Watchers:
              12 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Zendesk Support