You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by GitBox <gi...@apache.org> on 2019/12/09 16:54:46 UTC

[GitHub] [cloudstack] jtapsl opened a new issue #3756: dnsmasq log files are not compressed

jtapsl opened a new issue #3756: dnsmasq log files are not compressed
URL: https://github.com/apache/cloudstack/issues/3756
 
 
   <!--
   Verify first that your issue/request is not already reported on GitHub.
   Also test if the latest release and master branch are affected too.
   Always add information AFTER of these HTML comments, but no need to delete the comments.
   -->
   
   ##### ISSUE TYPE
   <!-- Pick one below and delete the rest -->
    * Bug Report
   
   ##### COMPONENT NAME
   <!--
   Categorize the issue, e.g. API, VR, VPN, UI, etc.
   -->
   ~~~
   System VM
   ~~~
   
   ##### CLOUDSTACK VERSION
   <!--
   New line separated list of affected versions, commit ID for issues on master branch.
   -->
   
   ~~~
   4.13.0
   ~~~
   
   ##### CONFIGURATION
   <!--
   Information about the configuration if relevant, e.g. basic network, advanced networking, etc.  N/A otherwise
   -->
   Advanced networking
   
   ##### OS / ENVIRONMENT
   <!--
   Information about the environment if relevant, N/A otherwise
   -->
   RHEL 7.x
   
   ##### SUMMARY
   <!-- Explain the problem/feature briefly -->
   
   
   ##### STEPS TO REPRODUCE
   <!--
   For bugs, show exactly how to reproduce the problem, using a minimal test-case. Use Screenshots if accurate.
   
   For new features, show how the feature would be used.
   -->
   
   Create a virtual router. Wait for dnsmasq.log to exceed 10M and be rotated two or more times. The rotated log files are not compressed.
   
   Contained within cloud-scripts.tgz on systemvm.iso, the file etc/logrotate.d/dnsmasq specifies the delaycompress option. Presumably this means the intention was for the logs to be compressed, but as noted in the manpage for logrotate, the delaycompress option "only has effect when used in combination with compress".
   
   <!-- Paste example playbooks or commands between quotes below -->
   
   
   <!-- You can also paste gist.github.com links for larger files -->
   
   ##### EXPECTED RESULTS
   <!-- What did you expect to happen when running the steps above? -->
   I expected logs dnsmasq.log.2 and higher to be compressed as per this hypothetical output.
   ~~~
   $ ls /var/log/dnsmasq.log*
   /var/log/dnsmasq.log
   /var/log/dnsmasq.log.1
   /var/log/dnsmasq.log.2.gz
   /var/log/dnsmasq.log.3.gz
   ~~~
   
   ##### ACTUAL RESULTS
   <!-- What actually happened? -->
   None of the log files are compressed.
   <!-- Paste verbatim command output between quotes below -->
   ~~~
   $ ls /var/log/dnsmasq.log*
   /var/log/dnsmasq.log
   /var/log/dnsmasq.log.1
   /var/log/dnsmasq.log.2
   /var/log/dnsmasq.log.3
   ~~~
   
   To fix, the "compress" option should be added to /etc/logrotate.d/dnsmasq
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services