{"action":"created","comment":{"url":"https://api.github.com/repos/crowbar/crowbar-openstack/pulls/comments/64225869","id":64225869,"diff_hunk":"@@ -56,4 +49,21 @@\n   only_if { CrowbarPacemakerHelper.is_cluster_founder?(node) }\n end\n \n-crowbar_pacemaker_sync_mark \"create-ceilometer_polling_ha_resources\"\n+crowbar_pacemaker_sync_mark \"create-ceilometer_central_ha_resources\"\n+\n+# We need to check if ceilometer_polling service was configured at some time,\n+# and if so, stop and deleted it. Becuase correct setup should envolve\n+# ceilometer_polling to be executed by ceilometer-central service only.\n+polling_name = \"ceilometer-polling\"\n+ruby_block \"check if #{polling_name} is present\" do\n+  block do\n+    # Check that the service is present\n+    cmd = \"crm resource show #{polling_name} 2> /dev/null\"\n+    if ::Kernel.system(cmd)\n+      Chef::Log.info (\"Stopping obsolete service #{polling_name}...\")\n+      ::Kernel.system (\"crm --force --wait resource stop '#{polling_name}'\")","path":"chef/cookbooks/ceilometer/recipes/central_ha.rb","position":56,"original_position":56,"commit_id":"97e851c4c43c8e6592f93d0477c521552e080f78","original_commit_id":"97e851c4c43c8e6592f93d0477c521552e080f78","user":{"login":"houndci-bot","id":6697940,"avatar_url":"https://avatars.githubusercontent.com/u/6697940?v=3","gravatar_id":"","url":"https://api.github.com/users/houndci-bot","html_url":"https://github.com/houndci-bot","followers_url":"https://api.github.com/users/houndci-bot/followers","following_url":"https://api.github.com/users/houndci-bot/following{/other_user}","gists_url":"https://api.github.com/users/houndci-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/houndci-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houndci-bot/subscriptions","organizations_url":"https://api.github.com/users/houndci-bot/orgs","repos_url":"https://api.github.com/users/houndci-bot/repos","events_url":"https://api.github.com/users/houndci-bot/events{/privacy}","received_events_url":"https://api.github.com/users/houndci-bot/received_events","type":"User","site_admin":false},"body":"Lint/ParenthesesAsGroupedExpression: `(...)` interpreted as grouped expression. (https://github.com/bbatsov/ruby-style-guide#parens-no-spaces)<br>Style/RedundantParentheses: Don't use parentheses around a literal.","created_at":"2016-05-23T13:52:56Z","updated_at":"2016-05-23T13:52:56Z","html_url":"https://github.com/crowbar/crowbar-openstack/pull/376#discussion_r64225869","pull_request_url":"https://api.github.com/repos/crowbar/crowbar-openstack/pulls/376","_links":{"self":{"href":"https://api.github.com/repos/crowbar/crowbar-openstack/pulls/comments/64225869"},"html":{"href":"https://github.com/crowbar/crowbar-openstack/pull/376#discussion_r64225869"},"pull_request":{"href":"https://api.github.com/repos/crowbar/crowbar-openstack/pulls/376"}}},"pull_request":{"url":"https://api.github.com/repos/crowbar/crowbar-openstack/pulls/376","id":71019118,"html_url":"https://github.com/crowbar/crowbar-openstack/pull/376","diff_url":"https://github.com/crowbar/crowbar-openstack/pull/376.diff","patch_url":"https://github.com/crowbar/crowbar-openstack/pull/376.patch","issue_url":"https://api.github.com/repos/crowbar/crowbar-openstack/issues/376","number":376,"state":"open","locked":false,"title":"Do not use polling as a role, bring central role back.","user":{"login":"jsuchome","id":910000,"avatar_url":"https://avatars.githubusercontent.com/u/910000?v=3","gravatar_id":"","url":"https://api.github.com/users/jsuchome","html_url":"https://github.com/jsuchome","followers_url":"https://api.github.com/users/jsuchome/followers","following_url":"https://api.github.com/users/jsuchome/following{/other_user}","gists_url":"https://api.github.com/users/jsuchome/gists{/gist_id}","starred_url":"https://api.github.com/users/jsuchome/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jsuchome/subscriptions","organizations_url":"https://api.github.com/users/jsuchome/orgs","repos_url":"https://api.github.com/users/jsuchome/repos","events_url":"https://api.github.com/users/jsuchome/events{/privacy}","received_events_url":"https://api.github.com/users/jsuchome/received_events","type":"User","site_admin":false},"body":"ceilometer-polling service will be used as the one being executed\r\nby central/compute/ipmi services with different arguments.\r\n\r\nThis should also fix bsc#979410.\r\n\r\n(cherry picked from commit 95546e257123b769dff032e433b272e93d78ad9a)\r\n\r\nBackport of https://github.com/crowbar/crowbar-openstack/pull/373. As mentioned there, we need to also take care of existing polling service and pacemaker resource....","created_at":"2016-05-23T08:02:00Z","updated_at":"2016-05-23T13:52:56Z","closed_at":null,"merged_at":null,"merge_commit_sha":"eecc15ec554e68ceba27188a9ee12fafe40f3940","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/crowbar/crowbar-openstack/pulls/376/commits","review_comments_url":"https://api.github.com/repos/crowbar/crowbar-openstack/pulls/376/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/376/comments","statuses_url":"https://api.github.com/repos/crowbar/crowbar-openstack/statuses/97e851c4c43c8e6592f93d0477c521552e080f78","head":{"label":"jsuchome:use-polling-for-other-services-3.0","ref":"use-polling-for-other-services-3.0","sha":"97e851c4c43c8e6592f93d0477c521552e080f78","user":{"login":"jsuchome","id":910000,"avatar_url":"https://avatars.githubusercontent.com/u/910000?v=3","gravatar_id":"","url":"https://api.github.com/users/jsuchome","html_url":"https://github.com/jsuchome","followers_url":"https://api.github.com/users/jsuchome/followers","following_url":"https://api.github.com/users/jsuchome/following{/other_user}","gists_url":"https://api.github.com/users/jsuchome/gists{/gist_id}","starred_url":"https://api.github.com/users/jsuchome/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jsuchome/subscriptions","organizations_url":"https://api.github.com/users/jsuchome/orgs","repos_url":"https://api.github.com/users/jsuchome/repos","events_url":"https://api.github.com/users/jsuchome/events{/privacy}","received_events_url":"https://api.github.com/users/jsuchome/received_events","type":"User","site_admin":false},"repo":{"id":41029873,"name":"crowbar-openstack","full_name":"jsuchome/crowbar-openstack","owner":{"login":"jsuchome","id":910000,"avatar_url":"https://avatars.githubusercontent.com/u/910000?v=3","gravatar_id":"","url":"https://api.github.com/users/jsuchome","html_url":"https://github.com/jsuchome","followers_url":"https://api.github.com/users/jsuchome/followers","following_url":"https://api.github.com/users/jsuchome/following{/other_user}","gists_url":"https://api.github.com/users/jsuchome/gists{/gist_id}","starred_url":"https://api.github.com/users/jsuchome/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jsuchome/subscriptions","organizations_url":"https://api.github.com/users/jsuchome/orgs","repos_url":"https://api.github.com/users/jsuchome/repos","events_url":"https://api.github.com/users/jsuchome/events{/privacy}","received_events_url":"https://api.github.com/users/jsuchome/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jsuchome/crowbar-openstack","description":"Openstack deployment for Crowbar","fork":true,"url":"https://api.github.com/repos/jsuchome/crowbar-openstack","forks_url":"https://api.github.com/repos/jsuchome/crowbar-openstack/forks","keys_url":"https://api.github.com/repos/jsuchome/crowbar-openstack/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jsuchome/crowbar-openstack/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jsuchome/crowbar-openstack/teams","hooks_url":"https://api.github.com/repos/jsuchome/crowbar-openstack/hooks","issue_events_url":"https://api.github.com/repos/jsuchome/crowbar-openstack/issues/events{/number}","events_url":"https://api.github.com/repos/jsuchome/crowbar-openstack/events","assignees_url":"https://api.github.com/repos/jsuchome/crowbar-openstack/assignees{/user}","branches_url":"https://api.github.com/repos/jsuchome/crowbar-openstack/branches{/branch}","tags_url":"https://api.github.com/repos/jsuchome/crowbar-openstack/tags","blobs_url":"https://api.github.com/repos/jsuchome/crowbar-openstack/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jsuchome/crowbar-openstack/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jsuchome/crowbar-openstack/git/refs{/sha}","trees_url":"https://api.github.com/repos/jsuchome/crowbar-openstack/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jsuchome/crowbar-openstack/statuses/{sha}","languages_url":"https://api.github.com/repos/jsuchome/crowbar-openstack/languages","stargazers_url":"https://api.github.com/repos/jsuchome/crowbar-openstack/stargazers","contributors_url":"https://api.github.com/repos/jsuchome/crowbar-openstack/contributors","subscribers_url":"https://api.github.com/repos/jsuchome/crowbar-openstack/subscribers","subscription_url":"https://api.github.com/repos/jsuchome/crowbar-openstack/subscription","commits_url":"https://api.github.com/repos/jsuchome/crowbar-openstack/commits{/sha}","git_commits_url":"https://api.github.com/repos/jsuchome/crowbar-openstack/git/commits{/sha}","comments_url":"https://api.github.com/repos/jsuchome/crowbar-openstack/comments{/number}","issue_comment_url":"https://api.github.com/repos/jsuchome/crowbar-openstack/issues/comments{/number}","contents_url":"https://api.github.com/repos/jsuchome/crowbar-openstack/contents/{+path}","compare_url":"https://api.github.com/repos/jsuchome/crowbar-openstack/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jsuchome/crowbar-openstack/merges","archive_url":"https://api.github.com/repos/jsuchome/crowbar-openstack/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jsuchome/crowbar-openstack/downloads","issues_url":"https://api.github.com/repos/jsuchome/crowbar-openstack/issues{/number}","pulls_url":"https://api.github.com/repos/jsuchome/crowbar-openstack/pulls{/number}","milestones_url":"https://api.github.com/repos/jsuchome/crowbar-openstack/milestones{/number}","notifications_url":"https://api.github.com/repos/jsuchome/crowbar-openstack/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jsuchome/crowbar-openstack/labels{/name}","releases_url":"https://api.github.com/repos/jsuchome/crowbar-openstack/releases{/id}","deployments_url":"https://api.github.com/repos/jsuchome/crowbar-openstack/deployments","created_at":"2015-08-19T11:22:30Z","updated_at":"2015-08-19T11:22:32Z","pushed_at":"2016-05-23T13:52:49Z","git_url":"git://github.com/jsuchome/crowbar-openstack.git","ssh_url":"git@github.com:jsuchome/crowbar-openstack.git","clone_url":"https://github.com/jsuchome/crowbar-openstack.git","svn_url":"https://github.com/jsuchome/crowbar-openstack","homepage":null,"size":16760,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"crowbar:stable/3.0","ref":"stable/3.0","sha":"9f73e25df7f61b40f60fe11eedae5150450f8c31","user":{"login":"crowbar","id":2910205,"avatar_url":"https://avatars.githubusercontent.com/u/2910205?v=3","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,"name":"crowbar-openstack","full_name":"crowbar/crowbar-openstack","owner":{"login":"crowbar","id":2910205,"avatar_url":"https://avatars.githubusercontent.com/u/2910205?v=3","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},"private":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":"2016-01-11T12:29:07Z","pushed_at":"2016-05-23T13:52:50Z","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":16997,"stargazers_count":2,"watchers_count":2,"language":"HTML","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":26,"mirror_url":null,"open_issues_count":23,"forks":26,"open_issues":23,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/crowbar/crowbar-openstack/pulls/376"},"html":{"href":"https://github.com/crowbar/crowbar-openstack/pull/376"},"issue":{"href":"https://api.github.com/repos/crowbar/crowbar-openstack/issues/376"},"comments":{"href":"https://api.github.com/repos/crowbar/crowbar-openstack/issues/376/comments"},"review_comments":{"href":"https://api.github.com/repos/crowbar/crowbar-openstack/pulls/376/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/376/commits"},"statuses":{"href":"https://api.github.com/repos/crowbar/crowbar-openstack/statuses/97e851c4c43c8e6592f93d0477c521552e080f78"}}}}
{"actor":{"display_login":"houndci-bot"}}