)]}'
{"files/fuel-ha-utils/ocf/rabbitmq":[{"author":{"_account_id":6926,"name":"Bogdan Dobrelya","email":"bdobreli@redhat.com","username":"bogdando"},"change_message_id":"b4a345b1e322f126196eb54e706727f56126f897","unresolved":false,"context_lines":[{"line_number":441,"context_line":"{"},{"line_number":442,"context_line":"    echo $( crm_node -l -p )"},{"line_number":443,"context_line":"    return $?"},{"line_number":444,"context_line":"}"},{"line_number":445,"context_line":""},{"line_number":446,"context_line":"check_need_join_to() {"},{"line_number":447,"context_line":"    local join_to\u003d$(rabbit_node_name $1)"}],"source_content_type":"application/x-shellscript","patch_set":3,"id":"7a016987_ed2b4480","line":444,"updated":"2015-05-25 09:47:47.000000000","message":"Removed as we want this checks to be backwards compatible with older versions of pcmk Fuel uses in the 5.1 and 6.0 releases","commit_id":"101022b974a4b59ea0b7eda575de2dd81d61bf38"},{"author":{"_account_id":6926,"name":"Bogdan Dobrelya","email":"bdobreli@redhat.com","username":"bogdando"},"change_message_id":"9a626a8dc8b523ba86df5852083cfbe5ba173417","unresolved":false,"context_lines":[{"line_number":996,"context_line":"        then"},{"line_number":997,"context_line":"            ocf_log info \"${LH} rabbit app is running. checking if we are the part of healthy cluster\""},{"line_number":998,"context_line":"            prev_rc\u003d$rc"},{"line_number":999,"context_line":"            nodelist\u003d$(get_alive_pacemaker_nodes)"},{"line_number":1000,"context_line":"            for node in $nodelist"},{"line_number":1001,"context_line":"            do"},{"line_number":1002,"context_line":"                ocf_log info \"${LH} rabbit app is running. looking for master on $node\""}],"source_content_type":"application/x-shellscript","patch_set":3,"id":"7a016987_fdde643c","line":999,"updated":"2015-05-23 08:43:47.000000000","message":"This replacement looks not  an equal.","commit_id":"101022b974a4b59ea0b7eda575de2dd81d61bf38"},{"author":{"_account_id":6926,"name":"Bogdan Dobrelya","email":"bdobreli@redhat.com","username":"bogdando"},"change_message_id":"9a626a8dc8b523ba86df5852083cfbe5ba173417","unresolved":false,"context_lines":[{"line_number":1024,"context_line":"    else"},{"line_number":1025,"context_line":"        ocf_log info \"${LH} preparing to update master score for node\""},{"line_number":1026,"context_line":"        our_uptime\u003d$(srv_uptime)"},{"line_number":1027,"context_line":"        nodelist\u003d$(get_alive_pacemaker_nodes)"},{"line_number":1028,"context_line":"        max\u003d1"},{"line_number":1029,"context_line":"        for node in $nodelist"},{"line_number":1030,"context_line":"        do"}],"source_content_type":"application/x-shellscript","patch_set":3,"id":"7a016987_bde58c09","line":1027,"updated":"2015-05-23 08:43:47.000000000","message":"ditto. Note, here we also exclude *this* hostname","commit_id":"101022b974a4b59ea0b7eda575de2dd81d61bf38"},{"author":{"_account_id":6926,"name":"Bogdan Dobrelya","email":"bdobreli@redhat.com","username":"bogdando"},"change_message_id":"9a626a8dc8b523ba86df5852083cfbe5ba173417","unresolved":false,"context_lines":[{"line_number":1228,"context_line":"                  ocf_log warn \"${LH} We are the master. No need to do anything on post-promote.\""},{"line_number":1229,"context_line":"                  return $OCF_SUCCESS"},{"line_number":1230,"context_line":"                else"},{"line_number":1231,"context_line":"                  check_need_join_to ${OCF_RESKEY_CRM_meta_notify_promote_uname}"},{"line_number":1232,"context_line":"                  rc_join\u003d$?"},{"line_number":1233,"context_line":"                  if [[ $rc_join \u003d\u003d $OCF_SUCCESS ]]; then"},{"line_number":1234,"context_line":"                    ocf_log warn \"${LH} Going to join node ${OCF_RESKEY_CRM_meta_notify_promote_uname}\""}],"source_content_type":"application/x-shellscript","patch_set":3,"id":"7a016987_1db3800b","line":1231,"updated":"2015-05-23 08:43:47.000000000","message":"This may not work as expected - OCF_RESKEY_CRM_meta_notify_promote_uname may be empty at post-promote and nodes will not join cluster! I saw this behavior at the my test lab.","commit_id":"101022b974a4b59ea0b7eda575de2dd81d61bf38"},{"author":{"_account_id":6926,"name":"Bogdan Dobrelya","email":"bdobreli@redhat.com","username":"bogdando"},"change_message_id":"9a626a8dc8b523ba86df5852083cfbe5ba173417","unresolved":false,"context_lines":[{"line_number":1235,"context_line":"                    jjj_join ${OCF_RESKEY_CRM_meta_notify_promote_uname}"},{"line_number":1236,"context_line":"                    rc\u003d$?"},{"line_number":1237,"context_line":"                  else"},{"line_number":1238,"context_line":"                    ocf_log warn \"${LH} We are already clustered with node ${OCF_RESKEY_CRM_meta_notify_promote_uname}\""},{"line_number":1239,"context_line":"                    rc\u003d$OCF_SUCCESS"},{"line_number":1240,"context_line":"                  fi"},{"line_number":1241,"context_line":"                fi"}],"source_content_type":"application/x-shellscript","patch_set":3,"id":"7a016987_fdb544ec","line":1238,"updated":"2015-05-23 08:43:47.000000000","message":"And this also may work in unexpected way: rabbitmqctl start_app reports on failed node it thinks it is \"clustered with X but X disagrees\", while this message in logs does mention that we \"already clustered with Y\". \n\nThis is why I removed this check to join from the post promote completely - simly because it does not work.","commit_id":"101022b974a4b59ea0b7eda575de2dd81d61bf38"},{"author":{"_account_id":6926,"name":"Bogdan Dobrelya","email":"bdobreli@redhat.com","username":"bogdando"},"change_message_id":"f3a800e5d91139108b73d0d12399e805cd25fa79","unresolved":false,"context_lines":[{"line_number":1221,"context_line":"                if [[ $rc \u003d\u003d $OCF_SUCCESS ]]; then"},{"line_number":1222,"context_line":"                  ocf_log warn \"${LH} We are the master. No need to do anything on post-promote.\""},{"line_number":1223,"context_line":"                else"},{"line_number":1224,"context_line":"                  check_need_join_to ${OCF_RESKEY_CRM_meta_notify_promote_uname}"},{"line_number":1225,"context_line":"                  rc_join\u003d$?"},{"line_number":1226,"context_line":"                  if [[ $rc_join \u003d\u003d $OCF_SUCCESS ]]; then"},{"line_number":1227,"context_line":"                    ocf_log warn \"${LH} Going to join node ${OCF_RESKEY_CRM_meta_notify_promote_uname}\""}],"source_content_type":"application/x-shellscript","patch_set":4,"id":"7a016987_4d4a5856","line":1224,"updated":"2015-05-25 09:47:39.000000000","message":"I tested this again, and it doesn\u0027t work:\nthe logs show \"We are already clustered with node node-1.test.domain.local\" while the mnesia remains obsolete: \"Node \u0027rabbit@node-3\u0027 thinks it\u0027s clustered with node \u0027rabbit@node-2\u0027, but \u0027rabbit@node-2\u0027 disagrees\"\n\nThe join must be unconditional. This will put the resource down, erase its inconsistent mnesia and would let it rejoin new cluster later at post-start","commit_id":"af59bb59beb84684cd60f73d33f297cffb8f1764"},{"author":{"_account_id":6926,"name":"Bogdan Dobrelya","email":"bdobreli@redhat.com","username":"bogdando"},"change_message_id":"f3a800e5d91139108b73d0d12399e805cd25fa79","unresolved":false,"context_lines":[{"line_number":1228,"context_line":"                    jjj_join ${OCF_RESKEY_CRM_meta_notify_promote_uname}"},{"line_number":1229,"context_line":"                    rc\u003d$?"},{"line_number":1230,"context_line":"                  else"},{"line_number":1231,"context_line":"                    ocf_log warn \"${LH} We are already clustered with node ${OCF_RESKEY_CRM_meta_notify_promote_uname}\""},{"line_number":1232,"context_line":"                    rc\u003d$OCF_SUCCESS"},{"line_number":1233,"context_line":"                  fi"},{"line_number":1234,"context_line":"                fi"}],"source_content_type":"application/x-shellscript","patch_set":4,"id":"7a016987_2d45dc41","line":1231,"updated":"2015-05-25 09:47:39.000000000","message":"ditto","commit_id":"af59bb59beb84684cd60f73d33f297cffb8f1764"}]}
