{"action":"created","comment":{"url":"https://api.github.com/repos/crowbar/crowbar-openstack/pulls/comments/235757695","pull_request_review_id":177697702,"id":235757695,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIzNTc1NzY5NQ==","diff_hunk":"@@ -0,0 +1,18 @@\n+#!/bin/sh\n+\n+# check that we are getting a rabbitmq monitor OK alert\n+[ \"${CRM_notify_rsc}\" = \"rabbitmq\" -a \"${CRM_notify_task}\" = \"monitor\" -a \"${CRM_notify_desc}\" = \"OK\" ] || exit 0\n+\n+# if the return code was 8 we know it was a master\n+if [ \"${CRM_notify_rc}\" = 8 ]; then\n+  node_type=\"master\"\n+else\n+  node_type=\"slave\"\n+fi\n+\n+logger -t \"yarb-alert-pacemaker\" \"A rabbit ${node_type} node is back: ${CRM_notify_node}. Launching yarb...\"\n+\n+# lock in case there is 2 node recoveries really close\n+# we dont care on launching yarb multiple times, because everytime we get that alert it\n+# means there is a new node up so the queues should be rebalanced\n+flock /var/lock/yarb /usr/bin/yarb","path":"chef/cookbooks/rabbitmq/templates/default/yarb-alert-pacemaker.sh.erb","position":18,"original_position":18,"commit_id":"4ce76dea98c42e67dbc30d49f846e35172900cd7","original_commit_id":"4ce76dea98c42e67dbc30d49f846e35172900cd7","user":{"login":"dirkmueller","id":1029152,"node_id":"MDQ6VXNlcjEwMjkxNTI=","avatar_url":"https://avatars1.githubusercontent.com/u/1029152?v=4","gravatar_id":"","url":"https://api.github.com/users/dirkmueller","html_url":"https://github.com/dirkmueller","followers_url":"https://api.github.com/users/dirkmueller/followers","following_url":"https://api.github.com/users/dirkmueller/following{/other_user}","gists_url":"https://api.github.com/users/dirkmueller/gists{/gist_id}","starred_url":"https://api.github.com/users/dirkmueller/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dirkmueller/subscriptions","organizations_url":"https://api.github.com/users/dirkmueller/orgs","repos_url":"https://api.github.com/users/dirkmueller/repos","events_url":"https://api.github.com/users/dirkmueller/events{/privacy}","received_events_url":"https://api.github.com/users/dirkmueller/received_events","type":"User","site_admin":false},"body":"so this directory doesn't exist by default? and how does that lock across nodes?","created_at":"2018-11-22T15:12:01Z","updated_at":"2018-11-22T15:12:02Z","html_url":"https://github.com/crowbar/crowbar-openstack/pull/1673#discussion_r235757695","pull_request_url":"https://api.github.com/repos/crowbar/crowbar-openstack/pulls/1673","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/crowbar/crowbar-openstack/pulls/comments/235757695"},"html":{"href":"https://github.com/crowbar/crowbar-openstack/pull/1673#discussion_r235757695"},"pull_request":{"href":"https://api.github.com/repos/crowbar/crowbar-openstack/pulls/1673"}}},"pull_request":{"url":"https://api.github.com/repos/crowbar/crowbar-openstack/pulls/1673","id":190265535,"node_id":"MDExOlB1bGxSZXF1ZXN0MTkwMjY1NTM1","html_url":"https://github.com/crowbar/crowbar-openstack/pull/1673","diff_url":"https://github.com/crowbar/crowbar-openstack/pull/1673.diff","patch_url":"https://github.com/crowbar/crowbar-openstack/pull/1673.patch","issue_url":"https://api.github.com/repos/crowbar/crowbar-openstack/issues/1673","number":1673,"state":"open","locked":false,"title":"rabbitmq: install and configure yarb to launch automatically","user":{"login":"Itxaka","id":1447686,"node_id":"MDQ6VXNlcjE0NDc2ODY=","avatar_url":"https://avatars3.githubusercontent.com/u/1447686?v=4","gravatar_id":"","url":"https://api.github.com/users/Itxaka","html_url":"https://github.com/Itxaka","followers_url":"https://api.github.com/users/Itxaka/followers","following_url":"https://api.github.com/users/Itxaka/following{/other_user}","gists_url":"https://api.github.com/users/Itxaka/gists{/gist_id}","starred_url":"https://api.github.com/users/Itxaka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Itxaka/subscriptions","organizations_url":"https://api.github.com/users/Itxaka/orgs","repos_url":"https://api.github.com/users/Itxaka/repos","events_url":"https://api.github.com/users/Itxaka/events{/privacy}","received_events_url":"https://api.github.com/users/Itxaka/received_events","type":"User","site_admin":false},"body":"Installs and configures yarb to balance the rabbit queues\r\nautomagically, by using ClusterMon to catch cluster actions and\r\nreact to any rabbitmq coming back from a restart or promotion to\r\nlunach yarb and balance the queues.","created_at":"2018-05-24T12:05:33Z","updated_at":"2018-11-22T15:12:02Z","closed_at":null,"merged_at":null,"merge_commit_sha":"99c707402015996b8a212a4e97e1b228d123f7c6","assignee":null,"assignees":[],"requested_reviewers":[{"login":"vuntz","id":1758783,"node_id":"MDQ6VXNlcjE3NTg3ODM=","avatar_url":"https://avatars3.githubusercontent.com/u/1758783?v=4","gravatar_id":"","url":"https://api.github.com/users/vuntz","html_url":"https://github.com/vuntz","followers_url":"https://api.github.com/users/vuntz/followers","following_url":"https://api.github.com/users/vuntz/following{/other_user}","gists_url":"https://api.github.com/users/vuntz/gists{/gist_id}","starred_url":"https://api.github.com/users/vuntz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vuntz/subscriptions","organizations_url":"https://api.github.com/users/vuntz/orgs","repos_url":"https://api.github.com/users/vuntz/repos","events_url":"https://api.github.com/users/vuntz/events{/privacy}","received_events_url":"https://api.github.com/users/vuntz/received_events","type":"User","site_admin":false},{"login":"bbobrov","id":33933950,"node_id":"MDQ6VXNlcjMzOTMzOTUw","avatar_url":"https://avatars1.githubusercontent.com/u/33933950?v=4","gravatar_id":"","url":"https://api.github.com/users/bbobrov","html_url":"https://github.com/bbobrov","followers_url":"https://api.github.com/users/bbobrov/followers","following_url":"https://api.github.com/users/bbobrov/following{/other_user}","gists_url":"https://api.github.com/users/bbobrov/gists{/gist_id}","starred_url":"https://api.github.com/users/bbobrov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bbobrov/subscriptions","organizations_url":"https://api.github.com/users/bbobrov/orgs","repos_url":"https://api.github.com/users/bbobrov/repos","events_url":"https://api.github.com/users/bbobrov/events{/privacy}","received_events_url":"https://api.github.com/users/bbobrov/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[{"id":711258318,"node_id":"MDU6TGFiZWw3MTEyNTgzMTg=","url":"https://api.github.com/repos/crowbar/crowbar-openstack/labels/needs%20backport%20to%20SOC7","name":"needs backport to SOC7","color":"0052cc","default":false},{"id":998466110,"node_id":"MDU6TGFiZWw5OTg0NjYxMTA=","url":"https://api.github.com/repos/crowbar/crowbar-openstack/labels/needs%20backport%20to%20SOC8","name":"needs backport to SOC8","color":"0052cc","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/crowbar/crowbar-openstack/pulls/1673/commits","review_comments_url":"https://api.github.com/repos/crowbar/crowbar-openstack/pulls/1673/comments","review_comment_url":"https://api.github.com/repos/crowbar/crowbar-openstack/pulls/comments{/number}","comments_url":"https://api.github.com/repos/crowbar/crowbar-openstack/issues/1673/comments","statuses_url":"https://api.github.com/repos/crowbar/crowbar-openstack/statuses/4ce76dea98c42e67dbc30d49f846e35172900cd7","head":{"label":"Itxaka:auto_run_yarb","ref":"auto_run_yarb","sha":"4ce76dea98c42e67dbc30d49f846e35172900cd7","user":{"login":"Itxaka","id":1447686,"node_id":"MDQ6VXNlcjE0NDc2ODY=","avatar_url":"https://avatars3.githubusercontent.com/u/1447686?v=4","gravatar_id":"","url":"https://api.github.com/users/Itxaka","html_url":"https://github.com/Itxaka","followers_url":"https://api.github.com/users/Itxaka/followers","following_url":"https://api.github.com/users/Itxaka/following{/other_user}","gists_url":"https://api.github.com/users/Itxaka/gists{/gist_id}","starred_url":"https://api.github.com/users/Itxaka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Itxaka/subscriptions","organizations_url":"https://api.github.com/users/Itxaka/orgs","repos_url":"https://api.github.com/users/Itxaka/repos","events_url":"https://api.github.com/users/Itxaka/events{/privacy}","received_events_url":"https://api.github.com/users/Itxaka/received_events","type":"User","site_admin":false},"repo":{"id":63080757,"node_id":"MDEwOlJlcG9zaXRvcnk2MzA4MDc1Nw==","name":"crowbar-openstack","full_name":"Itxaka/crowbar-openstack","private":false,"owner":{"login":"Itxaka","id":1447686,"node_id":"MDQ6VXNlcjE0NDc2ODY=","avatar_url":"https://avatars3.githubusercontent.com/u/1447686?v=4","gravatar_id":"","url":"https://api.github.com/users/Itxaka","html_url":"https://github.com/Itxaka","followers_url":"https://api.github.com/users/Itxaka/followers","following_url":"https://api.github.com/users/Itxaka/following{/other_user}","gists_url":"https://api.github.com/users/Itxaka/gists{/gist_id}","starred_url":"https://api.github.com/users/Itxaka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Itxaka/subscriptions","organizations_url":"https://api.github.com/users/Itxaka/orgs","repos_url":"https://api.github.com/users/Itxaka/repos","events_url":"https://api.github.com/users/Itxaka/events{/privacy}","received_events_url":"https://api.github.com/users/Itxaka/received_events","type":"User","site_admin":false},"html_url":"https://github.com/Itxaka/crowbar-openstack","description":"Openstack deployment for Crowbar","fork":true,"url":"https://api.github.com/repos/Itxaka/crowbar-openstack","forks_url":"https://api.github.com/repos/Itxaka/crowbar-openstack/forks","keys_url":"https://api.github.com/repos/Itxaka/crowbar-openstack/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Itxaka/crowbar-openstack/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Itxaka/crowbar-openstack/teams","hooks_url":"https://api.github.com/repos/Itxaka/crowbar-openstack/hooks","issue_events_url":"https://api.github.com/repos/Itxaka/crowbar-openstack/issues/events{/number}","events_url":"https://api.github.com/repos/Itxaka/crowbar-openstack/events","assignees_url":"https://api.github.com/repos/Itxaka/crowbar-openstack/assignees{/user}","branches_url":"https://api.github.com/repos/Itxaka/crowbar-openstack/branches{/branch}","tags_url":"https://api.github.com/repos/Itxaka/crowbar-openstack/tags","blobs_url":"https://api.github.com/repos/Itxaka/crowbar-openstack/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Itxaka/crowbar-openstack/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Itxaka/crowbar-openstack/git/refs{/sha}","trees_url":"https://api.github.com/repos/Itxaka/crowbar-openstack/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Itxaka/crowbar-openstack/statuses/{sha}","languages_url":"https://api.github.com/repos/Itxaka/crowbar-openstack/languages","stargazers_url":"https://api.github.com/repos/Itxaka/crowbar-openstack/stargazers","contributors_url":"https://api.github.com/repos/Itxaka/crowbar-openstack/contributors","subscribers_url":"https://api.github.com/repos/Itxaka/crowbar-openstack/subscribers","subscription_url":"https://api.github.com/repos/Itxaka/crowbar-openstack/subscription","commits_url":"https://api.github.com/repos/Itxaka/crowbar-openstack/commits{/sha}","git_commits_url":"https://api.github.com/repos/Itxaka/crowbar-openstack/git/commits{/sha}","comments_url":"https://api.github.com/repos/Itxaka/crowbar-openstack/comments{/number}","issue_comment_url":"https://api.github.com/repos/Itxaka/crowbar-openstack/issues/comments{/number}","contents_url":"https://api.github.com/repos/Itxaka/crowbar-openstack/contents/{+path}","compare_url":"https://api.github.com/repos/Itxaka/crowbar-openstack/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Itxaka/crowbar-openstack/merges","archive_url":"https://api.github.com/repos/Itxaka/crowbar-openstack/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Itxaka/crowbar-openstack/downloads","issues_url":"https://api.github.com/repos/Itxaka/crowbar-openstack/issues{/number}","pulls_url":"https://api.github.com/repos/Itxaka/crowbar-openstack/pulls{/number}","milestones_url":"https://api.github.com/repos/Itxaka/crowbar-openstack/milestones{/number}","notifications_url":"https://api.github.com/repos/Itxaka/crowbar-openstack/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Itxaka/crowbar-openstack/labels{/name}","releases_url":"https://api.github.com/repos/Itxaka/crowbar-openstack/releases{/id}","deployments_url":"https://api.github.com/repos/Itxaka/crowbar-openstack/deployments","created_at":"2016-07-11T15:42:53Z","updated_at":"2018-11-12T12:44:15Z","pushed_at":"2018-11-22T11:06:37Z","git_url":"git://github.com/Itxaka/crowbar-openstack.git","ssh_url":"git@github.com:Itxaka/crowbar-openstack.git","clone_url":"https://github.com/Itxaka/crowbar-openstack.git","svn_url":"https://github.com/Itxaka/crowbar-openstack","homepage":null,"size":34587,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":null,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"crowbar:master","ref":"master","sha":"87272d66ba14771dadab0d4434f7b8968dfaac38","user":{"login":"crowbar","id":2910205,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI5MTAyMDU=","avatar_url":"https://avatars2.githubusercontent.com/u/2910205?v=4","gravatar_id":"","url":"https://api.github.com/users/crowbar","html_url":"https://github.com/crowbar","followers_url":"https://api.github.com/users/crowbar/followers","following_url":"https://api.github.com/users/crowbar/following{/other_user}","gists_url":"https://api.github.com/users/crowbar/gists{/gist_id}","starred_url":"https://api.github.com/users/crowbar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/crowbar/subscriptions","organizations_url":"https://api.github.com/users/crowbar/orgs","repos_url":"https://api.github.com/users/crowbar/repos","events_url":"https://api.github.com/users/crowbar/events{/privacy}","received_events_url":"https://api.github.com/users/crowbar/received_events","type":"Organization","site_admin":false},"repo":{"id":39006903,"node_id":"MDEwOlJlcG9zaXRvcnkzOTAwNjkwMw==","name":"crowbar-openstack","full_name":"crowbar/crowbar-openstack","private":false,"owner":{"login":"crowbar","id":2910205,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI5MTAyMDU=","avatar_url":"https://avatars2.githubusercontent.com/u/2910205?v=4","gravatar_id":"","url":"https://api.github.com/users/crowbar","html_url":"https://github.com/crowbar","followers_url":"https://api.github.com/users/crowbar/followers","following_url":"https://api.github.com/users/crowbar/following{/other_user}","gists_url":"https://api.github.com/users/crowbar/gists{/gist_id}","starred_url":"https://api.github.com/users/crowbar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/crowbar/subscriptions","organizations_url":"https://api.github.com/users/crowbar/orgs","repos_url":"https://api.github.com/users/crowbar/repos","events_url":"https://api.github.com/users/crowbar/events{/privacy}","received_events_url":"https://api.github.com/users/crowbar/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/crowbar/crowbar-openstack","description":"Openstack deployment for Crowbar","fork":false,"url":"https://api.github.com/repos/crowbar/crowbar-openstack","forks_url":"https://api.github.com/repos/crowbar/crowbar-openstack/forks","keys_url":"https://api.github.com/repos/crowbar/crowbar-openstack/keys{/key_id}","collaborators_url":"https://api.github.com/repos/crowbar/crowbar-openstack/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/crowbar/crowbar-openstack/teams","hooks_url":"https://api.github.com/repos/crowbar/crowbar-openstack/hooks","issue_events_url":"https://api.github.com/repos/crowbar/crowbar-openstack/issues/events{/number}","events_url":"https://api.github.com/repos/crowbar/crowbar-openstack/events","assignees_url":"https://api.github.com/repos/crowbar/crowbar-openstack/assignees{/user}","branches_url":"https://api.github.com/repos/crowbar/crowbar-openstack/branches{/branch}","tags_url":"https://api.github.com/repos/crowbar/crowbar-openstack/tags","blobs_url":"https://api.github.com/repos/crowbar/crowbar-openstack/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/crowbar/crowbar-openstack/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/crowbar/crowbar-openstack/git/refs{/sha}","trees_url":"https://api.github.com/repos/crowbar/crowbar-openstack/git/trees{/sha}","statuses_url":"https://api.github.com/repos/crowbar/crowbar-openstack/statuses/{sha}","languages_url":"https://api.github.com/repos/crowbar/crowbar-openstack/languages","stargazers_url":"https://api.github.com/repos/crowbar/crowbar-openstack/stargazers","contributors_url":"https://api.github.com/repos/crowbar/crowbar-openstack/contributors","subscribers_url":"https://api.github.com/repos/crowbar/crowbar-openstack/subscribers","subscription_url":"https://api.github.com/repos/crowbar/crowbar-openstack/subscription","commits_url":"https://api.github.com/repos/crowbar/crowbar-openstack/commits{/sha}","git_commits_url":"https://api.github.com/repos/crowbar/crowbar-openstack/git/commits{/sha}","comments_url":"https://api.github.com/repos/crowbar/crowbar-openstack/comments{/number}","issue_comment_url":"https://api.github.com/repos/crowbar/crowbar-openstack/issues/comments{/number}","contents_url":"https://api.github.com/repos/crowbar/crowbar-openstack/contents/{+path}","compare_url":"https://api.github.com/repos/crowbar/crowbar-openstack/compare/{base}...{head}","merges_url":"https://api.github.com/repos/crowbar/crowbar-openstack/merges","archive_url":"https://api.github.com/repos/crowbar/crowbar-openstack/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/crowbar/crowbar-openstack/downloads","issues_url":"https://api.github.com/repos/crowbar/crowbar-openstack/issues{/number}","pulls_url":"https://api.github.com/repos/crowbar/crowbar-openstack/pulls{/number}","milestones_url":"https://api.github.com/repos/crowbar/crowbar-openstack/milestones{/number}","notifications_url":"https://api.github.com/repos/crowbar/crowbar-openstack/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/crowbar/crowbar-openstack/labels{/name}","releases_url":"https://api.github.com/repos/crowbar/crowbar-openstack/releases{/id}","deployments_url":"https://api.github.com/repos/crowbar/crowbar-openstack/deployments","created_at":"2015-07-13T10:55:33Z","updated_at":"2018-11-20T17:24:34Z","pushed_at":"2018-11-22T14:51:07Z","git_url":"git://github.com/crowbar/crowbar-openstack.git","ssh_url":"git@github.com:crowbar/crowbar-openstack.git","clone_url":"https://github.com/crowbar/crowbar-openstack.git","svn_url":"https://github.com/crowbar/crowbar-openstack","homepage":null,"size":21661,"stargazers_count":18,"watchers_count":18,"language":"Ruby","has_issues":false,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":87,"mirror_url":null,"archived":false,"open_issues_count":73,"license":null,"forks":87,"open_issues":73,"watchers":18,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/crowbar/crowbar-openstack/pulls/1673"},"html":{"href":"https://github.com/crowbar/crowbar-openstack/pull/1673"},"issue":{"href":"https://api.github.com/repos/crowbar/crowbar-openstack/issues/1673"},"comments":{"href":"https://api.github.com/repos/crowbar/crowbar-openstack/issues/1673/comments"},"review_comments":{"href":"https://api.github.com/repos/crowbar/crowbar-openstack/pulls/1673/comments"},"review_comment":{"href":"https://api.github.com/repos/crowbar/crowbar-openstack/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/crowbar/crowbar-openstack/pulls/1673/commits"},"statuses":{"href":"https://api.github.com/repos/crowbar/crowbar-openstack/statuses/4ce76dea98c42e67dbc30d49f846e35172900cd7"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"dirkmueller"}}