{"action":"created","comment":{"url":"https://api.github.com/repos/Metaswitch/memento/pulls/comments/30022905","id":30022905,"diff_hunk":"@@ -0,0 +1,77 @@\n+# Project Clearwater - IMS in the Cloud\n+# Copyright (C) 2015  Metaswitch Networks Ltd\n+#\n+# This program is free software: you can redistribute it and/or modify it\n+# under the terms of the GNU General Public License as published by the\n+# Free Software Foundation, either version 3 of the License, or (at your\n+# option) any later version, along with the \"Special Exception\" for use of\n+# the program along with SSL, set forth below. This program is distributed\n+# in the hope that it will be useful, but WITHOUT ANY WARRANTY;\n+# without even the implied warranty of MERCHANTABILITY or FITNESS FOR\n+# A PARTICULAR PURPOSE.  See the GNU General Public License for more\n+# details. You should have received a copy of the GNU General Public\n+# License along with this program.  If not, see\n+# <http://www.gnu.org/licenses/>.\n+#\n+# The author can be reached by email at clearwater@metaswitch.com or by\n+# post at Metaswitch Networks Ltd, 100 Church St, Enfield EN2 6BQ, UK\n+#\n+# Special Exception\n+# Metaswitch Networks Ltd  grants you permission to copy, modify,\n+# propagate, and distribute a work formed by combining OpenSSL with The\n+# Software, or a work derivative of such a combination, even if such\n+# copying, modification, propagation, or distribution would otherwise\n+# violate the terms of the GPL. You must comply with the GPL in all\n+# respects for all of the code used other than OpenSSL.\n+# \"OpenSSL\" means OpenSSL toolkit software distributed by the OpenSSL\n+# Project and licensed under the OpenSSL Licenses, or a work based on such\n+# software and licensed under the OpenSSL Licenses.\n+# \"OpenSSL Licenses\" means the OpenSSL License and Original SSLeay License\n+# under which the OpenSSL Project distributes the OpenSSL toolkit software,\n+# as those licenses appear in the file LICENSE-OPENSSL.\n+\n+\n+from metaswitch.clearwater.cluster_manager.plugin_base import \\\n+    SynchroniserPluginBase\n+from metaswitch.clearwater.cluster_manager.plugin_utils import \\\n+    run_command, write_memcached_cluster_settings\n+from metaswitch.clearwater.cluster_manager.alarms import issue_alarm\n+from metaswitch.clearwater.cluster_manager import constants\n+import logging\n+import os\n+\n+_log = logging.getLogger(\"memento_memcached_plugin\")\n+\n+\n+class MementoMemcachedPlugin(SynchroniserPluginBase):\n+    def __init__(self, _ip):\n+        issue_alarm(constants.RAISE_MEMCACHED_NOT_YET_CLUSTERED)\n+\n+    def key(self):\n+        return \"/memento/clustering/memcached\"\n+\n+    def files(self):","path":"memento.root/usr/share/clearwater/clearwater-cluster-manager/plugins/memento_memcached_plugin.py","position":53,"original_position":53,"commit_id":"2eb63f157f8db05a85a6ab598b7a01f723c0179d","original_commit_id":"2eb63f157f8db05a85a6ab598b7a01f723c0179d","user":{"login":"eleanor-merry","id":5425325,"avatar_url":"https://avatars.githubusercontent.com/u/5425325?v=3","gravatar_id":"","url":"https://api.github.com/users/eleanor-merry","html_url":"https://github.com/eleanor-merry","followers_url":"https://api.github.com/users/eleanor-merry/followers","following_url":"https://api.github.com/users/eleanor-merry/following{/other_user}","gists_url":"https://api.github.com/users/eleanor-merry/gists{/gist_id}","starred_url":"https://api.github.com/users/eleanor-merry/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eleanor-merry/subscriptions","organizations_url":"https://api.github.com/users/eleanor-merry/orgs","repos_url":"https://api.github.com/users/eleanor-merry/repos","events_url":"https://api.github.com/users/eleanor-merry/events{/privacy}","received_events_url":"https://api.github.com/users/eleanor-merry/received_events","type":"User","site_admin":false},"body":"This is new. Do I need to update the Chronos plugins with this as well?","created_at":"2015-05-11T09:09:47Z","updated_at":"2015-05-11T09:09:47Z","html_url":"https://github.com/Metaswitch/memento/pull/65#discussion_r30022905","pull_request_url":"https://api.github.com/repos/Metaswitch/memento/pulls/65","_links":{"self":{"href":"https://api.github.com/repos/Metaswitch/memento/pulls/comments/30022905"},"html":{"href":"https://github.com/Metaswitch/memento/pull/65#discussion_r30022905"},"pull_request":{"href":"https://api.github.com/repos/Metaswitch/memento/pulls/65"}}},"pull_request":{"url":"https://api.github.com/repos/Metaswitch/memento/pulls/65","id":35020544,"html_url":"https://github.com/Metaswitch/memento/pull/65","diff_url":"https://github.com/Metaswitch/memento/pull/65.diff","patch_url":"https://github.com/Metaswitch/memento/pull/65.patch","issue_url":"https://api.github.com/repos/Metaswitch/memento/issues/65","number":65,"state":"open","locked":false,"title":"[Reviewer: Ellie] Add Memcached plugin","user":{"login":"rkd-msw","id":4363492,"avatar_url":"https://avatars.githubusercontent.com/u/4363492?v=3","gravatar_id":"","url":"https://api.github.com/users/rkd-msw","html_url":"https://github.com/rkd-msw","followers_url":"https://api.github.com/users/rkd-msw/followers","following_url":"https://api.github.com/users/rkd-msw/following{/other_user}","gists_url":"https://api.github.com/users/rkd-msw/gists{/gist_id}","starred_url":"https://api.github.com/users/rkd-msw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rkd-msw/subscriptions","organizations_url":"https://api.github.com/users/rkd-msw/orgs","repos_url":"https://api.github.com/users/rkd-msw/repos","events_url":"https://api.github.com/users/rkd-msw/events{/privacy}","received_events_url":"https://api.github.com/users/rkd-msw/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-05-08T15:43:40Z","updated_at":"2015-05-11T09:09:47Z","closed_at":null,"merged_at":null,"merge_commit_sha":"74133b983825ddbb62aed950c960d7055607f020","assignee":{"login":"eleanor-merry","id":5425325,"avatar_url":"https://avatars.githubusercontent.com/u/5425325?v=3","gravatar_id":"","url":"https://api.github.com/users/eleanor-merry","html_url":"https://github.com/eleanor-merry","followers_url":"https://api.github.com/users/eleanor-merry/followers","following_url":"https://api.github.com/users/eleanor-merry/following{/other_user}","gists_url":"https://api.github.com/users/eleanor-merry/gists{/gist_id}","starred_url":"https://api.github.com/users/eleanor-merry/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eleanor-merry/subscriptions","organizations_url":"https://api.github.com/users/eleanor-merry/orgs","repos_url":"https://api.github.com/users/eleanor-merry/repos","events_url":"https://api.github.com/users/eleanor-merry/events{/privacy}","received_events_url":"https://api.github.com/users/eleanor-merry/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/Metaswitch/memento/pulls/65/commits","review_comments_url":"https://api.github.com/repos/Metaswitch/memento/pulls/65/comments","review_comment_url":"https://api.github.com/repos/Metaswitch/memento/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Metaswitch/memento/issues/65/comments","statuses_url":"https://api.github.com/repos/Metaswitch/memento/statuses/2eb63f157f8db05a85a6ab598b7a01f723c0179d","head":{"label":"Metaswitch:memcached_plugin","ref":"memcached_plugin","sha":"2eb63f157f8db05a85a6ab598b7a01f723c0179d","user":{"login":"Metaswitch","id":453759,"avatar_url":"https://avatars.githubusercontent.com/u/453759?v=3","gravatar_id":"","url":"https://api.github.com/users/Metaswitch","html_url":"https://github.com/Metaswitch","followers_url":"https://api.github.com/users/Metaswitch/followers","following_url":"https://api.github.com/users/Metaswitch/following{/other_user}","gists_url":"https://api.github.com/users/Metaswitch/gists{/gist_id}","starred_url":"https://api.github.com/users/Metaswitch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Metaswitch/subscriptions","organizations_url":"https://api.github.com/users/Metaswitch/orgs","repos_url":"https://api.github.com/users/Metaswitch/repos","events_url":"https://api.github.com/users/Metaswitch/events{/privacy}","received_events_url":"https://api.github.com/users/Metaswitch/received_events","type":"Organization","site_admin":false},"repo":{"id":23147355,"name":"memento","full_name":"Metaswitch/memento","owner":{"login":"Metaswitch","id":453759,"avatar_url":"https://avatars.githubusercontent.com/u/453759?v=3","gravatar_id":"","url":"https://api.github.com/users/Metaswitch","html_url":"https://github.com/Metaswitch","followers_url":"https://api.github.com/users/Metaswitch/followers","following_url":"https://api.github.com/users/Metaswitch/following{/other_user}","gists_url":"https://api.github.com/users/Metaswitch/gists{/gist_id}","starred_url":"https://api.github.com/users/Metaswitch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Metaswitch/subscriptions","organizations_url":"https://api.github.com/users/Metaswitch/orgs","repos_url":"https://api.github.com/users/Metaswitch/repos","events_url":"https://api.github.com/users/Metaswitch/events{/privacy}","received_events_url":"https://api.github.com/users/Metaswitch/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Metaswitch/memento","description":"Project Clearwater call list application server","fork":false,"url":"https://api.github.com/repos/Metaswitch/memento","forks_url":"https://api.github.com/repos/Metaswitch/memento/forks","keys_url":"https://api.github.com/repos/Metaswitch/memento/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Metaswitch/memento/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Metaswitch/memento/teams","hooks_url":"https://api.github.com/repos/Metaswitch/memento/hooks","issue_events_url":"https://api.github.com/repos/Metaswitch/memento/issues/events{/number}","events_url":"https://api.github.com/repos/Metaswitch/memento/events","assignees_url":"https://api.github.com/repos/Metaswitch/memento/assignees{/user}","branches_url":"https://api.github.com/repos/Metaswitch/memento/branches{/branch}","tags_url":"https://api.github.com/repos/Metaswitch/memento/tags","blobs_url":"https://api.github.com/repos/Metaswitch/memento/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Metaswitch/memento/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Metaswitch/memento/git/refs{/sha}","trees_url":"https://api.github.com/repos/Metaswitch/memento/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Metaswitch/memento/statuses/{sha}","languages_url":"https://api.github.com/repos/Metaswitch/memento/languages","stargazers_url":"https://api.github.com/repos/Metaswitch/memento/stargazers","contributors_url":"https://api.github.com/repos/Metaswitch/memento/contributors","subscribers_url":"https://api.github.com/repos/Metaswitch/memento/subscribers","subscription_url":"https://api.github.com/repos/Metaswitch/memento/subscription","commits_url":"https://api.github.com/repos/Metaswitch/memento/commits{/sha}","git_commits_url":"https://api.github.com/repos/Metaswitch/memento/git/commits{/sha}","comments_url":"https://api.github.com/repos/Metaswitch/memento/comments{/number}","issue_comment_url":"https://api.github.com/repos/Metaswitch/memento/issues/comments{/number}","contents_url":"https://api.github.com/repos/Metaswitch/memento/contents/{+path}","compare_url":"https://api.github.com/repos/Metaswitch/memento/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Metaswitch/memento/merges","archive_url":"https://api.github.com/repos/Metaswitch/memento/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Metaswitch/memento/downloads","issues_url":"https://api.github.com/repos/Metaswitch/memento/issues{/number}","pulls_url":"https://api.github.com/repos/Metaswitch/memento/pulls{/number}","milestones_url":"https://api.github.com/repos/Metaswitch/memento/milestones{/number}","notifications_url":"https://api.github.com/repos/Metaswitch/memento/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Metaswitch/memento/labels{/name}","releases_url":"https://api.github.com/repos/Metaswitch/memento/releases{/id}","created_at":"2014-08-20T12:12:30Z","updated_at":"2015-05-07T12:09:23Z","pushed_at":"2015-05-08T15:43:41Z","git_url":"git://github.com/Metaswitch/memento.git","ssh_url":"git@github.com:Metaswitch/memento.git","clone_url":"https://github.com/Metaswitch/memento.git","svn_url":"https://github.com/Metaswitch/memento","homepage":"http://www.projectclearwater.org","size":1799,"stargazers_count":0,"watchers_count":0,"language":"C++","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":5,"forks":1,"open_issues":5,"watchers":0,"default_branch":"dev"}},"base":{"label":"Metaswitch:dev","ref":"dev","sha":"39b68f0444e64d70d5ba64ea06ca50c65708fac1","user":{"login":"Metaswitch","id":453759,"avatar_url":"https://avatars.githubusercontent.com/u/453759?v=3","gravatar_id":"","url":"https://api.github.com/users/Metaswitch","html_url":"https://github.com/Metaswitch","followers_url":"https://api.github.com/users/Metaswitch/followers","following_url":"https://api.github.com/users/Metaswitch/following{/other_user}","gists_url":"https://api.github.com/users/Metaswitch/gists{/gist_id}","starred_url":"https://api.github.com/users/Metaswitch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Metaswitch/subscriptions","organizations_url":"https://api.github.com/users/Metaswitch/orgs","repos_url":"https://api.github.com/users/Metaswitch/repos","events_url":"https://api.github.com/users/Metaswitch/events{/privacy}","received_events_url":"https://api.github.com/users/Metaswitch/received_events","type":"Organization","site_admin":false},"repo":{"id":23147355,"name":"memento","full_name":"Metaswitch/memento","owner":{"login":"Metaswitch","id":453759,"avatar_url":"https://avatars.githubusercontent.com/u/453759?v=3","gravatar_id":"","url":"https://api.github.com/users/Metaswitch","html_url":"https://github.com/Metaswitch","followers_url":"https://api.github.com/users/Metaswitch/followers","following_url":"https://api.github.com/users/Metaswitch/following{/other_user}","gists_url":"https://api.github.com/users/Metaswitch/gists{/gist_id}","starred_url":"https://api.github.com/users/Metaswitch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Metaswitch/subscriptions","organizations_url":"https://api.github.com/users/Metaswitch/orgs","repos_url":"https://api.github.com/users/Metaswitch/repos","events_url":"https://api.github.com/users/Metaswitch/events{/privacy}","received_events_url":"https://api.github.com/users/Metaswitch/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Metaswitch/memento","description":"Project Clearwater call list application server","fork":false,"url":"https://api.github.com/repos/Metaswitch/memento","forks_url":"https://api.github.com/repos/Metaswitch/memento/forks","keys_url":"https://api.github.com/repos/Metaswitch/memento/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Metaswitch/memento/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Metaswitch/memento/teams","hooks_url":"https://api.github.com/repos/Metaswitch/memento/hooks","issue_events_url":"https://api.github.com/repos/Metaswitch/memento/issues/events{/number}","events_url":"https://api.github.com/repos/Metaswitch/memento/events","assignees_url":"https://api.github.com/repos/Metaswitch/memento/assignees{/user}","branches_url":"https://api.github.com/repos/Metaswitch/memento/branches{/branch}","tags_url":"https://api.github.com/repos/Metaswitch/memento/tags","blobs_url":"https://api.github.com/repos/Metaswitch/memento/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Metaswitch/memento/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Metaswitch/memento/git/refs{/sha}","trees_url":"https://api.github.com/repos/Metaswitch/memento/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Metaswitch/memento/statuses/{sha}","languages_url":"https://api.github.com/repos/Metaswitch/memento/languages","stargazers_url":"https://api.github.com/repos/Metaswitch/memento/stargazers","contributors_url":"https://api.github.com/repos/Metaswitch/memento/contributors","subscribers_url":"https://api.github.com/repos/Metaswitch/memento/subscribers","subscription_url":"https://api.github.com/repos/Metaswitch/memento/subscription","commits_url":"https://api.github.com/repos/Metaswitch/memento/commits{/sha}","git_commits_url":"https://api.github.com/repos/Metaswitch/memento/git/commits{/sha}","comments_url":"https://api.github.com/repos/Metaswitch/memento/comments{/number}","issue_comment_url":"https://api.github.com/repos/Metaswitch/memento/issues/comments{/number}","contents_url":"https://api.github.com/repos/Metaswitch/memento/contents/{+path}","compare_url":"https://api.github.com/repos/Metaswitch/memento/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Metaswitch/memento/merges","archive_url":"https://api.github.com/repos/Metaswitch/memento/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Metaswitch/memento/downloads","issues_url":"https://api.github.com/repos/Metaswitch/memento/issues{/number}","pulls_url":"https://api.github.com/repos/Metaswitch/memento/pulls{/number}","milestones_url":"https://api.github.com/repos/Metaswitch/memento/milestones{/number}","notifications_url":"https://api.github.com/repos/Metaswitch/memento/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Metaswitch/memento/labels{/name}","releases_url":"https://api.github.com/repos/Metaswitch/memento/releases{/id}","created_at":"2014-08-20T12:12:30Z","updated_at":"2015-05-07T12:09:23Z","pushed_at":"2015-05-08T15:43:41Z","git_url":"git://github.com/Metaswitch/memento.git","ssh_url":"git@github.com:Metaswitch/memento.git","clone_url":"https://github.com/Metaswitch/memento.git","svn_url":"https://github.com/Metaswitch/memento","homepage":"http://www.projectclearwater.org","size":1799,"stargazers_count":0,"watchers_count":0,"language":"C++","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":5,"forks":1,"open_issues":5,"watchers":0,"default_branch":"dev"}},"_links":{"self":{"href":"https://api.github.com/repos/Metaswitch/memento/pulls/65"},"html":{"href":"https://github.com/Metaswitch/memento/pull/65"},"issue":{"href":"https://api.github.com/repos/Metaswitch/memento/issues/65"},"comments":{"href":"https://api.github.com/repos/Metaswitch/memento/issues/65/comments"},"review_comments":{"href":"https://api.github.com/repos/Metaswitch/memento/pulls/65/comments"},"review_comment":{"href":"https://api.github.com/repos/Metaswitch/memento/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Metaswitch/memento/pulls/65/commits"},"statuses":{"href":"https://api.github.com/repos/Metaswitch/memento/statuses/2eb63f157f8db05a85a6ab598b7a01f723c0179d"}}}}