)]}'
{"/COMMIT_MSG":[{"author":{"_account_id":215,"name":"Jon-Paul Sullivan","email":"j3p0uk@hotmail.com","username":"jonpaul-sullivan"},"change_message_id":"9272ed66b1828b60eb17183a0df1e2a56d0c9b5b","unresolved":false,"context_lines":[{"line_number":7,"context_line":"Added a MySQL logrotate configuration"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"Used the standard log rotate file from percona, and changed the log"},{"line_number":10,"context_line":"directory permissions to allow to allow the standard adm log reading"},{"line_number":11,"context_line":"group access."},{"line_number":12,"context_line":""},{"line_number":13,"context_line":"Change-Id: I2b8377632faf70d5560d00b7db41baba71d627ba"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":3,"id":"fa98f980_3d7fa367","line":10,"updated":"2014-09-04 12:20:15.000000000","message":"\"to allow to allow\"","commit_id":"2b0033eb975aeb6760f5ad829e3422e1b04ea4e5"}],"elements/mysql/files/etc/logrotate.d/mysql":[{"author":{"_account_id":8688,"name":"Alexis Lee","email":"openstack@lxsli.co.uk","username":"lxsli"},"change_message_id":"15d66451e7393a36dc08a37b6f7b392b2ebb637c","unresolved":false,"context_lines":[{"line_number":3,"context_line":"        rotate 7"},{"line_number":4,"context_line":"        missingok"},{"line_number":5,"context_line":"        create 640 mysql adm"},{"line_number":6,"context_line":"        compress"},{"line_number":7,"context_line":"        sharedscripts"},{"line_number":8,"context_line":"        postrotate"},{"line_number":9,"context_line":"                if test -x /usr/local/mysql/bin/mysqladmin \u0026\u0026 \\"}],"source_content_type":"application/octet-stream","patch_set":5,"id":"5a890539_42f4f2f1","line":6,"updated":"2014-11-12 16:06:53.000000000","message":"You sure you don\u0027t want delaycompress too?","commit_id":"8ba1a818bd90e5bac16ac59fd9a55e9bc04bd206"},{"author":{"_account_id":14123,"name":"Stefano Canepa","email":"sc@linux.it","username":"sc"},"change_message_id":"dc1d5bf67d98d5f985532a77d358d694ae6be833","unresolved":false,"context_lines":[{"line_number":3,"context_line":"        rotate 7"},{"line_number":4,"context_line":"        missingok"},{"line_number":5,"context_line":"        create 640 mysql adm"},{"line_number":6,"context_line":"        compress"},{"line_number":7,"context_line":"        sharedscripts"},{"line_number":8,"context_line":"        postrotate"},{"line_number":9,"context_line":"                if test -x /usr/local/mysql/bin/mysqladmin \u0026\u0026 \\"}],"source_content_type":"application/octet-stream","patch_set":5,"id":"da86d52c_ad65651f","line":6,"updated":"2015-02-03 23:41:06.000000000","message":"delaycompress and notifempty are needed","commit_id":"8ba1a818bd90e5bac16ac59fd9a55e9bc04bd206"},{"author":{"_account_id":10035,"name":"greghaynes","email":"greg@greghaynes.net","username":"greghaynes"},"change_message_id":"fb95e3470a74ac6c59d823b379ab7d0aaea5c51f","unresolved":false,"context_lines":[{"line_number":3,"context_line":"        rotate 7"},{"line_number":4,"context_line":"        missingok"},{"line_number":5,"context_line":"        create 640 mysql adm"},{"line_number":6,"context_line":"        compress"},{"line_number":7,"context_line":"        sharedscripts"},{"line_number":8,"context_line":"        postrotate"},{"line_number":9,"context_line":"                if test -x /usr/local/mysql/bin/mysqladmin \u0026\u0026 \\"}],"source_content_type":"application/octet-stream","patch_set":5,"id":"5a890539_4a338d13","line":6,"in_reply_to":"5a890539_42f4f2f1","updated":"2014-11-26 08:52:52.000000000","message":"If we perform flush-logs is that really needed? AIUI the whole point of delaycompress is if you dont have a way to tell the daemon to open a new logfile.","commit_id":"8ba1a818bd90e5bac16ac59fd9a55e9bc04bd206"},{"author":{"_account_id":7579,"name":"jan grant","email":"jan.grant@hpe.com","username":"jang"},"change_message_id":"41efd0783dbecb67935519c8627bd7fd933a9340","unresolved":false,"context_lines":[{"line_number":3,"context_line":"        rotate 7"},{"line_number":4,"context_line":"        missingok"},{"line_number":5,"context_line":"        create 640 mysql adm"},{"line_number":6,"context_line":"        compress"},{"line_number":7,"context_line":"        sharedscripts"},{"line_number":8,"context_line":"        postrotate"},{"line_number":9,"context_line":"                if test -x /usr/local/mysql/bin/mysqladmin \u0026\u0026 \\"}],"source_content_type":"application/octet-stream","patch_set":5,"id":"5a890539_aeb21804","line":6,"in_reply_to":"5a890539_4a338d13","updated":"2014-11-27 12:38:44.000000000","message":"flush-logs is a synchronous operation, so delaycompress shouldn\u0027t be required.","commit_id":"8ba1a818bd90e5bac16ac59fd9a55e9bc04bd206"},{"author":{"_account_id":1872,"name":"therese-mchale","email":"therese.mchale@hp.com","username":"therese-mchale"},"change_message_id":"eea357d933bf9afd305649204117d0e6bb263460","unresolved":false,"context_lines":[{"line_number":3,"context_line":"        rotate 7"},{"line_number":4,"context_line":"        missingok"},{"line_number":5,"context_line":"        create 640 mysql adm"},{"line_number":6,"context_line":"        compress"},{"line_number":7,"context_line":"        sharedscripts"},{"line_number":8,"context_line":"        postrotate"},{"line_number":9,"context_line":"                if test -x /usr/local/mysql/bin/mysqladmin \u0026\u0026 \\"}],"source_content_type":"application/octet-stream","patch_set":5,"id":"da86d52c_6d6d7b32","line":6,"in_reply_to":"5a890539_aeb21804","updated":"2015-02-02 15:27:56.000000000","message":"Another thing, in the event  that flush-logs fails (in the case for example where the cluster is compromised and flush-logs gets \"unknown commonad\" like everything else...  and of course you need your logs in this case)   two rotations will cause you to lose your logs here . You also need notifempty to avoid this and maybe better with delaycompress also to deal with this case.","commit_id":"8ba1a818bd90e5bac16ac59fd9a55e9bc04bd206"},{"author":{"_account_id":1872,"name":"therese-mchale","email":"therese.mchale@hp.com","username":"therese-mchale"},"change_message_id":"1472fbfcb298d9d22658752f1c9f8a3d65157a7d","unresolved":false,"context_lines":[{"line_number":7,"context_line":"        sharedscripts"},{"line_number":8,"context_line":"        postrotate"},{"line_number":9,"context_line":"                if test -x /usr/local/mysql/bin/mysqladmin \u0026\u0026 \\"},{"line_number":10,"context_line":"                   /usr/local/mysql/bin/mysqladmin ping \u0026\u003e/dev/null"},{"line_number":11,"context_line":"                then"},{"line_number":12,"context_line":"                   /usr/local/mysql/bin/mysqladmin --defaults-file\u003d/mnt/state/root/metadata.my.cnf --socket\u003d/var/run/mysqld/mysqld.sock flush-logs"},{"line_number":13,"context_line":"                fi"}],"source_content_type":"application/octet-stream","patch_set":5,"id":"5a890539_0864e847","line":10,"updated":"2014-11-28 14:22:01.000000000","message":"mysqladmin is in /usr/bin since we changed to use percona packages","commit_id":"8ba1a818bd90e5bac16ac59fd9a55e9bc04bd206"}],"elements/mysql/install.d/10-mysql":[{"author":{"_account_id":8688,"name":"Alexis Lee","email":"openstack@lxsli.co.uk","username":"lxsli"},"change_message_id":"15d66451e7393a36dc08a37b6f7b392b2ebb637c","unresolved":false,"context_lines":[{"line_number":68,"context_line":"# Move the logrotate file into the correct place"},{"line_number":69,"context_line":"FILES\u003d\"$(dirname $0)/../files\""},{"line_number":70,"context_line":"FILE\u003d\"/etc/logrotate.d/mysql\""},{"line_number":71,"context_line":"install -D -g root -o root -m 0644 \"${FILES}${FILE}\" \"${FILE}\""}],"source_content_type":"application/x-shellscript","patch_set":5,"id":"5a890539_2230c69d","line":71,"updated":"2014-11-12 16:06:53.000000000","message":"You could use the install-static element for this","commit_id":"8ba1a818bd90e5bac16ac59fd9a55e9bc04bd206"}]}
