)]}'
{"/COMMIT_MSG":[{"author":{"_account_id":17068,"name":"Jean-Philippe Evrard","email":"openstack@a.spamming.party","username":"evrardjp"},"change_message_id":"abc910e7ec4eb096805a7ca4cc9b98427144e392","unresolved":false,"context_lines":[{"line_number":9,"context_line":"In order to get volume metrics sended to ceilometer,"},{"line_number":10,"context_line":"cinder-volume-usage-audit must be manually runned (or with cron/systemd timer)."},{"line_number":11,"context_line":"Similar to nova approach (volume_usage_audit_period in cinder.conf)"},{"line_number":12,"context_line":"is not working (cinder cores said, that it never worked)."},{"line_number":13,"context_line":""},{"line_number":14,"context_line":"So this change add cinder_volume_usage_audit variable,"},{"line_number":15,"context_line":"according to which cron job will be placed"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":4,"id":"3f79a3b5_433ab0e6","line":12,"range":{"start_line":12,"start_character":15,"end_line":12,"end_character":55},"updated":"2018-10-04 19:06:08.000000000","message":"could you point to a quote? Like a eavesdrop link?","commit_id":"a5959b35080c52aac3448261294390129a34537b"},{"author":{"_account_id":28619,"name":"Dmitriy Rabotyagov","email":"noonedeadpunk@gmail.com","username":"noonedeadpunk"},"change_message_id":"e670b5d7b797fb66094cf53ce6613f73c588fdab","unresolved":false,"context_lines":[{"line_number":9,"context_line":"In order to get volume metrics sended to ceilometer,"},{"line_number":10,"context_line":"cinder-volume-usage-audit must be manually runned (or with cron/systemd timer)."},{"line_number":11,"context_line":"Similar to nova approach (volume_usage_audit_period in cinder.conf)"},{"line_number":12,"context_line":"is not working (cinder cores said, that it never worked)."},{"line_number":13,"context_line":""},{"line_number":14,"context_line":"So this change add cinder_volume_usage_audit variable,"},{"line_number":15,"context_line":"according to which cron job will be placed"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":4,"id":"3f79a3b5_aeb92b17","line":12,"range":{"start_line":12,"start_character":15,"end_line":12,"end_character":55},"in_reply_to":"3f79a3b5_433ab0e6","updated":"2018-10-04 19:18:36.000000000","message":"conversation was in russian and in PM...","commit_id":"a5959b35080c52aac3448261294390129a34537b"}],"tasks/cinder_post_install.yml":[{"author":{"_account_id":7353,"name":"Kevin Carter","email":"kevin@cloudnull.com","username":"cloudnull"},"change_message_id":"d0a88136e478369788fc4324443c48e2e4cac5a0","unresolved":false,"context_lines":[{"line_number":73,"context_line":"    owner: \"root\""},{"line_number":74,"context_line":"    group: \"root\""},{"line_number":75,"context_line":""},{"line_number":76,"context_line":"- name: Setting volume usage audit cron"},{"line_number":77,"context_line":"  cron:"},{"line_number":78,"context_line":"    name: cinder-volume-usage-audit"},{"line_number":79,"context_line":"    state: present"},{"line_number":80,"context_line":"    special_time: \"{{ (cinder_volume_usage_audit \u003d\u003d \u0027day\u0027) | ternary(\u0027daily\u0027, cinder_volume_usage_audit+\u0027ly\u0027) }}\""},{"line_number":81,"context_line":"    user: \"{{ cinder_system_user_name }}\""},{"line_number":82,"context_line":"    job: \u0027{{ cinder_bin }}/cinder-volume-usage-audit --start_time \"`date +\\%Y-\\%m-\\%d\\ \\%H:00:00 -d -1{{ cinder_volume_usage_audit }}`\" --end_time \"`date +\\%Y-\\%m-\\%d\\ \\%H:00:00`\" --send_actions\u0027"},{"line_number":83,"context_line":"  when:"},{"line_number":84,"context_line":"    - \"cinder_services[\u0027cinder-volume\u0027][\u0027group\u0027] in group_names\""},{"line_number":85,"context_line":"    - \"cinder_ceilometer_enabled\""}],"source_content_type":"text/x-yaml","patch_set":2,"id":"3f79a3b5_a76c2933","line":85,"range":{"start_line":76,"start_character":0,"end_line":85,"end_character":33},"updated":"2018-10-02 18:12:55.000000000","message":"While this change looks like it\u0027ll work perfectly I\u0027d really love for us to use systemd-timers instead of cron.\n\nThe cron task can be converted to the systemd-timer with like the following snippet using `include_role`:\n\n    - name: Run the systemd service role\n    include_role:\n        name: systemd_service\n        private: true\n    vars:\n        systemd_service_enabled: \"{{ ((cinder_services[\u0027cinder-volume\u0027][\u0027group\u0027] in group_names) and (cinder_ceilometer_enabled | bool)) | ternary(true, false) }}\"\n        systemd_service_restart_changed: false\n        systemd_user_name: \"{{ cinder_system_user_name }}\"\n        systemd_group_name: \"{{ cinder_system_group_name }}\"\n        systemd_services:\n        - service_name: \"cinder-volume-usage-audit\"\n            execstarts:\n            - \u0027{{ cinder_bin }}/cinder-volume-usage-audit --start_time \"$(date +\\%Y-\\%m-\\%d\\ \\%H:00:00 -d -1{{ cinder_volume_usage_audit }})\" --end_time \"$(date +\\%Y-\\%m-\\%d\\ \\%H:00:00)\" --send_actions\u0027\n            timer:\n            state: \"started\"\n            options:\n                OnBootSec: 30min\n                OnCalendar: \"{{ (cinder_volume_usage_audit \u003d\u003d \u0027day\u0027) | ternary(\u0027daily\u0027, cinder_volume_usage_audit+\u0027ly\u0027) }}\"\n                Persistent: true","commit_id":"5bbf2e2b8a0da4041a3b5ef9ce38bc2f507b3985"}]}
