)]}'
{"deployment/puppet/galera/files/ocf/mysql-wss":[{"author":{"_account_id":8797,"name":"Andrew Woodward","email":"xarses@gmail.com","username":"xarses"},"change_message_id":"51418f4bff04b9073dd9ec1e7987f9b0d0fbf620","unresolved":false,"context_lines":[{"line_number":883,"context_line":""},{"line_number":884,"context_line":"mysql_status() {"},{"line_number":885,"context_line":"    i\u003d5"},{"line_number":886,"context_line":"    sleeptime\u003d5"},{"line_number":887,"context_line":"    while [ $i -gt 0 ]"},{"line_number":888,"context_line":"    do"},{"line_number":889,"context_line":"      if [ ! -e $OCF_RESKEY_pid ]; then"}],"source_content_type":"application/x-shellscript","patch_set":1,"id":"AAAAUX%2F%2B1go%3D","line":886,"updated":"2014-02-18 18:18:53.000000000","message":"This adds waits to monitor, start, stop, promote, and demote.","commit_id":"9205461eda5e86410dd3791afa1d22d84b89ebdc"},{"author":{"_account_id":8786,"name":"Vladimir Kuklin","email":"aglarendil@gmail.com","username":"aglarendil"},"change_message_id":"ff8d74177742d3f8538159d6207d825c399704e3","unresolved":false,"context_lines":[{"line_number":883,"context_line":""},{"line_number":884,"context_line":"mysql_status() {"},{"line_number":885,"context_line":"    i\u003d5"},{"line_number":886,"context_line":"    sleeptime\u003d5"},{"line_number":887,"context_line":"    while [ $i -gt 0 ]"},{"line_number":888,"context_line":"    do"},{"line_number":889,"context_line":"      if [ ! -e $OCF_RESKEY_pid ]; then"}],"source_content_type":"application/x-shellscript","patch_set":1,"id":"AAAAUX%2F%2BvLA%3D","line":886,"in_reply_to":"AAAAUX%2F%2B1go%3D","updated":"2014-02-19 19:15:14.000000000","message":"Timeouts can be altered by setting in CRM. No need to fix them here.","commit_id":"9205461eda5e86410dd3791afa1d22d84b89ebdc"},{"author":{"_account_id":8786,"name":"Vladimir Kuklin","email":"aglarendil@gmail.com","username":"aglarendil"},"change_message_id":"1a5686d9526deab57a701669d35c1de93ebe897a","unresolved":false,"context_lines":[{"line_number":883,"context_line":""},{"line_number":884,"context_line":"mysql_status() {"},{"line_number":885,"context_line":"    i\u003d5"},{"line_number":886,"context_line":"    sleeptime\u003d5"},{"line_number":887,"context_line":"    while [ $i -gt 0 ]"},{"line_number":888,"context_line":"    do"},{"line_number":889,"context_line":"      if [ ! -e $OCF_RESKEY_pid ]; then"}],"source_content_type":"application/x-shellscript","patch_set":1,"id":"AAAAUX%2F%2BmRQ%3D","line":886,"in_reply_to":"AAAAUX%2F%2BmXc%3D","updated":"2014-02-20 09:31:49.000000000","message":"default start timeout is 120 seconds. status and monitor timeout do not affect commands executed in the context of other OCF script commands. they exist only for pacemaker Local Resource Manager. Thus, this retry should no lead to monitor/status commands timeout. Our galera start timeout is 450 seconds. Moreover, this sleep/retry cycle normally should end on the first iteration as it is enough for mysqld_safe to fork mysqld process and create a PID file. I added 5 iterations only to be sure, we do not ever face this problem again.","commit_id":"9205461eda5e86410dd3791afa1d22d84b89ebdc"},{"author":{"_account_id":6926,"name":"Bogdan Dobrelya","email":"bdobreli@redhat.com","username":"bogdando"},"change_message_id":"741d99310e516292d64550aadbb51de8c9aa4639","unresolved":false,"context_lines":[{"line_number":883,"context_line":""},{"line_number":884,"context_line":"mysql_status() {"},{"line_number":885,"context_line":"    i\u003d5"},{"line_number":886,"context_line":"    sleeptime\u003d5"},{"line_number":887,"context_line":"    while [ $i -gt 0 ]"},{"line_number":888,"context_line":"    do"},{"line_number":889,"context_line":"      if [ ! -e $OCF_RESKEY_pid ]; then"}],"source_content_type":"application/x-shellscript","patch_set":1,"id":"AAAAUX%2F%2BmXc%3D","line":886,"in_reply_to":"AAAAUX%2F%2BvLA%3D","updated":"2014-02-20 09:22:28.000000000","message":"That introduces 5*5 potential delay time for execution of the status(monitor) action, thus make sure all timeouts for actions involving mysql_status will be adjusted at least to +25, see lines 364+\n\nOtherwise pacemaker could consider some actions to be failed by the timeout expiration.","commit_id":"9205461eda5e86410dd3791afa1d22d84b89ebdc"},{"author":{"_account_id":8797,"name":"Andrew Woodward","email":"xarses@gmail.com","username":"xarses"},"change_message_id":"51418f4bff04b9073dd9ec1e7987f9b0d0fbf620","unresolved":false,"context_lines":[{"line_number":890,"context_line":"\tocf_log info \"PIDFile ${OCF_RESKEY_pid} of MySQL server not found. Sleeping for $sleeptime seconds. $(( i-1 )) retries left\""},{"line_number":891,"context_line":"\tsleep $sleeptime"},{"line_number":892,"context_line":"      else"},{"line_number":893,"context_line":"\tbreak"},{"line_number":894,"context_line":"      fi"},{"line_number":895,"context_line":"      let i\u003d$i-1"},{"line_number":896,"context_line":"    done"}],"source_content_type":"application/x-shellscript","patch_set":1,"id":"AAAAUX%2F%2B1rs%3D","line":893,"updated":"2014-02-18 18:18:53.000000000","message":"this should probably emit a message on whatever level $1 was passed with like before","commit_id":"9205461eda5e86410dd3791afa1d22d84b89ebdc"},{"author":{"_account_id":8786,"name":"Vladimir Kuklin","email":"aglarendil@gmail.com","username":"aglarendil"},"change_message_id":"ff8d74177742d3f8538159d6207d825c399704e3","unresolved":false,"context_lines":[{"line_number":890,"context_line":"\tocf_log info \"PIDFile ${OCF_RESKEY_pid} of MySQL server not found. Sleeping for $sleeptime seconds. $(( i-1 )) retries left\""},{"line_number":891,"context_line":"\tsleep $sleeptime"},{"line_number":892,"context_line":"      else"},{"line_number":893,"context_line":"\tbreak"},{"line_number":894,"context_line":"      fi"},{"line_number":895,"context_line":"      let i\u003d$i-1"},{"line_number":896,"context_line":"    done"}],"source_content_type":"application/x-shellscript","patch_set":1,"id":"AAAAUX%2F%2BvK0%3D","line":893,"in_reply_to":"AAAAUX%2F%2B1rs%3D","updated":"2014-02-19 19:15:14.000000000","message":"Nope. This is what we actually should expect on the INFO level as this information is useful all the time.","commit_id":"9205461eda5e86410dd3791afa1d22d84b89ebdc"},{"author":{"_account_id":7468,"name":"Sergey Vasilenko","email":"svasilenko@mirantis.com","username":"xenolog"},"change_message_id":"311293fba408536e795c8a39fdbb77ab83767444","unresolved":false,"context_lines":[{"line_number":895,"context_line":"      let i\u003d$i-1"},{"line_number":896,"context_line":"    done"},{"line_number":897,"context_line":""},{"line_number":898,"context_line":"    if [ $i -eq 0 ]"},{"line_number":899,"context_line":"      ocf_log $1 \"MySQL is not running\""},{"line_number":900,"context_line":"      return $OCF_NOT_RUNNING;"},{"line_number":901,"context_line":"    fi"}],"source_content_type":"application/x-shellscript","patch_set":2,"id":"AAAAUX%2F%2Bgmc%3D","line":898,"updated":"2014-02-20 19:49:46.000000000","message":"I think, you lost \"; then\" at end of line","commit_id":"1956884051b8da984f059920f7502de773527252"}]}
