OpenNebula / one

The open source Cloud & Edge Computing Platform bringing real freedom to your Enterprise Cloud 🚀
http://opennebula.io
Apache License 2.0
1.19k stars 473 forks source link

All OpenNebula services fail to execute gzip command #6629

Open conxuro opened 1 week ago

conxuro commented 1 week ago

Description All OpenNebula services fail to execute gzip command since wildcard is not working in the ExecStartPre statement. /usr/bin/sh: gzip -9 /var/log/one/sched.log-* &: No such file or directory

To Reproduce Restarting any service. systemctl restart opennebula*

Expected behavior Rotated logs being compressed.

Details

Additional context The sh shell should be executed with the -c parameter to parse properly the wildcard. A better solution, instead of rotating and compressing on each restart, could be to add compress/delaycompress option/s to the logrotate conf files and maybe combined with maxsize.

Progress Status