{"action":"created","comment":{"url":"https://api.github.com/repos/oneconvergence/group-based-policy/pulls/comments/52816582","id":52816582,"diff_hunk":"@@ -0,0 +1,705 @@\n+import os\n+import time\n+import sys\n+import copy\n+import threading\n+\n+import eventlet\n+eventlet.monkey_patch()\n+\n+from multiprocessing.queues import Queue\n+from Queue import Empty, Full\n+from multiprocessing import Process, Queue, Lock\n+import multiprocessing as multiprocessing\n+\n+from neutron.agent.common import config\n+from neutron.common import config as common_config\n+from neutron import context\n+from neutron.agent import rpc as agent_rpc\n+\n+from gbpservice.neutron.nsf.core import cfg as core_cfg\n+from gbpservice.neutron.nsf.core import lb as core_lb\n+from gbpservice.neutron.nsf.core import threadpool as core_tp\n+from gbpservice.neutron.nsf.core import periodic_task as core_periodic_task\n+from gbpservice.neutron.nsf.core import queue as core_queue\n+\n+from neutron.common import rpc as n_rpc\n+\n+from oslo_log import log as logging\n+from oslo_config import cfg\n+from oslo_service import periodic_task as oslo_periodic_task\n+from oslo_service import loopingcall\n+from oslo_service import service as os_service\n+\n+LOG = logging.getLogger(__name__)\n+\n+process = os.getpid()\n+\n+\n+def is_class(obj):\n+    return 'class' in str(type(obj))\n+\n+\n+def name(obj):\n+    if callable(obj):\n+        return \"{0}.{1}.{2}\".format(\n+            type(obj.im_self).__module__,\n+            type(obj.im_self).__name__,\n+            obj.__name__)","path":"gbpservice/neutron/nsf/core/main.py","position":48,"original_position":48,"commit_id":"55c699df2d1362d058613f3c4390a7040b3f2a4a","original_commit_id":"55c699df2d1362d058613f3c4390a7040b3f2a4a","user":{"login":"songole","id":6665462,"avatar_url":"https://avatars.githubusercontent.com/u/6665462?v=3","gravatar_id":"","url":"https://api.github.com/users/songole","html_url":"https://github.com/songole","followers_url":"https://api.github.com/users/songole/followers","following_url":"https://api.github.com/users/songole/following{/other_user}","gists_url":"https://api.github.com/users/songole/gists{/gist_id}","starred_url":"https://api.github.com/users/songole/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/songole/subscriptions","organizations_url":"https://api.github.com/users/songole/orgs","repos_url":"https://api.github.com/users/songole/repos","events_url":"https://api.github.com/users/songole/events{/privacy}","received_events_url":"https://api.github.com/users/songole/received_events","type":"User","site_admin":false},"body":"What is the difference between im_self.__name__ and __name__?","created_at":"2016-02-13T00:25:33Z","updated_at":"2016-02-13T00:25:33Z","html_url":"https://github.com/oneconvergence/group-based-policy/pull/48#discussion_r52816582","pull_request_url":"https://api.github.com/repos/oneconvergence/group-based-policy/pulls/48","_links":{"self":{"href":"https://api.github.com/repos/oneconvergence/group-based-policy/pulls/comments/52816582"},"html":{"href":"https://github.com/oneconvergence/group-based-policy/pull/48#discussion_r52816582"},"pull_request":{"href":"https://api.github.com/repos/oneconvergence/group-based-policy/pulls/48"}}},"pull_request":{"url":"https://api.github.com/repos/oneconvergence/group-based-policy/pulls/48","id":56609549,"html_url":"https://github.com/oneconvergence/group-based-policy/pull/48","diff_url":"https://github.com/oneconvergence/group-based-policy/pull/48.diff","patch_url":"https://github.com/oneconvergence/group-based-policy/pull/48.patch","issue_url":"https://api.github.com/repos/oneconvergence/group-based-policy/issues/48","number":48,"state":"open","locked":false,"title":"Multi process model framework - Example module in test folder","user":{"login":"mak-454","id":11626269,"avatar_url":"https://avatars.githubusercontent.com/u/11626269?v=3","gravatar_id":"","url":"https://api.github.com/users/mak-454","html_url":"https://github.com/mak-454","followers_url":"https://api.github.com/users/mak-454/followers","following_url":"https://api.github.com/users/mak-454/following{/other_user}","gists_url":"https://api.github.com/users/mak-454/gists{/gist_id}","starred_url":"https://api.github.com/users/mak-454/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mak-454/subscriptions","organizations_url":"https://api.github.com/users/mak-454/orgs","repos_url":"https://api.github.com/users/mak-454/repos","events_url":"https://api.github.com/users/mak-454/events{/privacy}","received_events_url":"https://api.github.com/users/mak-454/received_events","type":"User","site_admin":false},"body":"Multi process framework for service controller.\r\nAttached is the sample unit test case module.","created_at":"2016-01-20T13:49:17Z","updated_at":"2016-02-13T00:25:33Z","closed_at":null,"merged_at":null,"merge_commit_sha":"2ec097e3bc0a985fa9c3c21f485205f4a11b8c4c","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/oneconvergence/group-based-policy/pulls/48/commits","review_comments_url":"https://api.github.com/repos/oneconvergence/group-based-policy/pulls/48/comments","review_comment_url":"https://api.github.com/repos/oneconvergence/group-based-policy/pulls/comments{/number}","comments_url":"https://api.github.com/repos/oneconvergence/group-based-policy/issues/48/comments","statuses_url":"https://api.github.com/repos/oneconvergence/group-based-policy/statuses/55c699df2d1362d058613f3c4390a7040b3f2a4a","head":{"label":"oneconvergence:multi_process_framework","ref":"multi_process_framework","sha":"55c699df2d1362d058613f3c4390a7040b3f2a4a","user":{"login":"oneconvergence","id":8160602,"avatar_url":"https://avatars.githubusercontent.com/u/8160602?v=3","gravatar_id":"","url":"https://api.github.com/users/oneconvergence","html_url":"https://github.com/oneconvergence","followers_url":"https://api.github.com/users/oneconvergence/followers","following_url":"https://api.github.com/users/oneconvergence/following{/other_user}","gists_url":"https://api.github.com/users/oneconvergence/gists{/gist_id}","starred_url":"https://api.github.com/users/oneconvergence/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oneconvergence/subscriptions","organizations_url":"https://api.github.com/users/oneconvergence/orgs","repos_url":"https://api.github.com/users/oneconvergence/repos","events_url":"https://api.github.com/users/oneconvergence/events{/privacy}","received_events_url":"https://api.github.com/users/oneconvergence/received_events","type":"Organization","site_admin":false},"repo":{"id":34099604,"name":"group-based-policy","full_name":"oneconvergence/group-based-policy","owner":{"login":"oneconvergence","id":8160602,"avatar_url":"https://avatars.githubusercontent.com/u/8160602?v=3","gravatar_id":"","url":"https://api.github.com/users/oneconvergence","html_url":"https://github.com/oneconvergence","followers_url":"https://api.github.com/users/oneconvergence/followers","following_url":"https://api.github.com/users/oneconvergence/following{/other_user}","gists_url":"https://api.github.com/users/oneconvergence/gists{/gist_id}","starred_url":"https://api.github.com/users/oneconvergence/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oneconvergence/subscriptions","organizations_url":"https://api.github.com/users/oneconvergence/orgs","repos_url":"https://api.github.com/users/oneconvergence/repos","events_url":"https://api.github.com/users/oneconvergence/events{/privacy}","received_events_url":"https://api.github.com/users/oneconvergence/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/oneconvergence/group-based-policy","description":"Group Based Policy","fork":true,"url":"https://api.github.com/repos/oneconvergence/group-based-policy","forks_url":"https://api.github.com/repos/oneconvergence/group-based-policy/forks","keys_url":"https://api.github.com/repos/oneconvergence/group-based-policy/keys{/key_id}","collaborators_url":"https://api.github.com/repos/oneconvergence/group-based-policy/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/oneconvergence/group-based-policy/teams","hooks_url":"https://api.github.com/repos/oneconvergence/group-based-policy/hooks","issue_events_url":"https://api.github.com/repos/oneconvergence/group-based-policy/issues/events{/number}","events_url":"https://api.github.com/repos/oneconvergence/group-based-policy/events","assignees_url":"https://api.github.com/repos/oneconvergence/group-based-policy/assignees{/user}","branches_url":"https://api.github.com/repos/oneconvergence/group-based-policy/branches{/branch}","tags_url":"https://api.github.com/repos/oneconvergence/group-based-policy/tags","blobs_url":"https://api.github.com/repos/oneconvergence/group-based-policy/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/oneconvergence/group-based-policy/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/oneconvergence/group-based-policy/git/refs{/sha}","trees_url":"https://api.github.com/repos/oneconvergence/group-based-policy/git/trees{/sha}","statuses_url":"https://api.github.com/repos/oneconvergence/group-based-policy/statuses/{sha}","languages_url":"https://api.github.com/repos/oneconvergence/group-based-policy/languages","stargazers_url":"https://api.github.com/repos/oneconvergence/group-based-policy/stargazers","contributors_url":"https://api.github.com/repos/oneconvergence/group-based-policy/contributors","subscribers_url":"https://api.github.com/repos/oneconvergence/group-based-policy/subscribers","subscription_url":"https://api.github.com/repos/oneconvergence/group-based-policy/subscription","commits_url":"https://api.github.com/repos/oneconvergence/group-based-policy/commits{/sha}","git_commits_url":"https://api.github.com/repos/oneconvergence/group-based-policy/git/commits{/sha}","comments_url":"https://api.github.com/repos/oneconvergence/group-based-policy/comments{/number}","issue_comment_url":"https://api.github.com/repos/oneconvergence/group-based-policy/issues/comments{/number}","contents_url":"https://api.github.com/repos/oneconvergence/group-based-policy/contents/{+path}","compare_url":"https://api.github.com/repos/oneconvergence/group-based-policy/compare/{base}...{head}","merges_url":"https://api.github.com/repos/oneconvergence/group-based-policy/merges","archive_url":"https://api.github.com/repos/oneconvergence/group-based-policy/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/oneconvergence/group-based-policy/downloads","issues_url":"https://api.github.com/repos/oneconvergence/group-based-policy/issues{/number}","pulls_url":"https://api.github.com/repos/oneconvergence/group-based-policy/pulls{/number}","milestones_url":"https://api.github.com/repos/oneconvergence/group-based-policy/milestones{/number}","notifications_url":"https://api.github.com/repos/oneconvergence/group-based-policy/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/oneconvergence/group-based-policy/labels{/name}","releases_url":"https://api.github.com/repos/oneconvergence/group-based-policy/releases{/id}","deployments_url":"https://api.github.com/repos/oneconvergence/group-based-policy/deployments","created_at":"2015-04-17T06:06:34Z","updated_at":"2015-06-30T21:52:52Z","pushed_at":"2016-02-12T14:12:17Z","git_url":"git://github.com/oneconvergence/group-based-policy.git","ssh_url":"git@github.com:oneconvergence/group-based-policy.git","clone_url":"https://github.com/oneconvergence/group-based-policy.git","svn_url":"https://github.com/oneconvergence/group-based-policy","homepage":"http://openstack.org","size":4531,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":false,"has_wiki":false,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":11,"forks":3,"open_issues":11,"watchers":0,"default_branch":"oneconvergence_service_node_driver"}},"base":{"label":"oneconvergence:master","ref":"master","sha":"c806a88f3fa172e5fa94f3e58fb074a83e6ad966","user":{"login":"oneconvergence","id":8160602,"avatar_url":"https://avatars.githubusercontent.com/u/8160602?v=3","gravatar_id":"","url":"https://api.github.com/users/oneconvergence","html_url":"https://github.com/oneconvergence","followers_url":"https://api.github.com/users/oneconvergence/followers","following_url":"https://api.github.com/users/oneconvergence/following{/other_user}","gists_url":"https://api.github.com/users/oneconvergence/gists{/gist_id}","starred_url":"https://api.github.com/users/oneconvergence/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oneconvergence/subscriptions","organizations_url":"https://api.github.com/users/oneconvergence/orgs","repos_url":"https://api.github.com/users/oneconvergence/repos","events_url":"https://api.github.com/users/oneconvergence/events{/privacy}","received_events_url":"https://api.github.com/users/oneconvergence/received_events","type":"Organization","site_admin":false},"repo":{"id":34099604,"name":"group-based-policy","full_name":"oneconvergence/group-based-policy","owner":{"login":"oneconvergence","id":8160602,"avatar_url":"https://avatars.githubusercontent.com/u/8160602?v=3","gravatar_id":"","url":"https://api.github.com/users/oneconvergence","html_url":"https://github.com/oneconvergence","followers_url":"https://api.github.com/users/oneconvergence/followers","following_url":"https://api.github.com/users/oneconvergence/following{/other_user}","gists_url":"https://api.github.com/users/oneconvergence/gists{/gist_id}","starred_url":"https://api.github.com/users/oneconvergence/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oneconvergence/subscriptions","organizations_url":"https://api.github.com/users/oneconvergence/orgs","repos_url":"https://api.github.com/users/oneconvergence/repos","events_url":"https://api.github.com/users/oneconvergence/events{/privacy}","received_events_url":"https://api.github.com/users/oneconvergence/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/oneconvergence/group-based-policy","description":"Group Based Policy","fork":true,"url":"https://api.github.com/repos/oneconvergence/group-based-policy","forks_url":"https://api.github.com/repos/oneconvergence/group-based-policy/forks","keys_url":"https://api.github.com/repos/oneconvergence/group-based-policy/keys{/key_id}","collaborators_url":"https://api.github.com/repos/oneconvergence/group-based-policy/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/oneconvergence/group-based-policy/teams","hooks_url":"https://api.github.com/repos/oneconvergence/group-based-policy/hooks","issue_events_url":"https://api.github.com/repos/oneconvergence/group-based-policy/issues/events{/number}","events_url":"https://api.github.com/repos/oneconvergence/group-based-policy/events","assignees_url":"https://api.github.com/repos/oneconvergence/group-based-policy/assignees{/user}","branches_url":"https://api.github.com/repos/oneconvergence/group-based-policy/branches{/branch}","tags_url":"https://api.github.com/repos/oneconvergence/group-based-policy/tags","blobs_url":"https://api.github.com/repos/oneconvergence/group-based-policy/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/oneconvergence/group-based-policy/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/oneconvergence/group-based-policy/git/refs{/sha}","trees_url":"https://api.github.com/repos/oneconvergence/group-based-policy/git/trees{/sha}","statuses_url":"https://api.github.com/repos/oneconvergence/group-based-policy/statuses/{sha}","languages_url":"https://api.github.com/repos/oneconvergence/group-based-policy/languages","stargazers_url":"https://api.github.com/repos/oneconvergence/group-based-policy/stargazers","contributors_url":"https://api.github.com/repos/oneconvergence/group-based-policy/contributors","subscribers_url":"https://api.github.com/repos/oneconvergence/group-based-policy/subscribers","subscription_url":"https://api.github.com/repos/oneconvergence/group-based-policy/subscription","commits_url":"https://api.github.com/repos/oneconvergence/group-based-policy/commits{/sha}","git_commits_url":"https://api.github.com/repos/oneconvergence/group-based-policy/git/commits{/sha}","comments_url":"https://api.github.com/repos/oneconvergence/group-based-policy/comments{/number}","issue_comment_url":"https://api.github.com/repos/oneconvergence/group-based-policy/issues/comments{/number}","contents_url":"https://api.github.com/repos/oneconvergence/group-based-policy/contents/{+path}","compare_url":"https://api.github.com/repos/oneconvergence/group-based-policy/compare/{base}...{head}","merges_url":"https://api.github.com/repos/oneconvergence/group-based-policy/merges","archive_url":"https://api.github.com/repos/oneconvergence/group-based-policy/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/oneconvergence/group-based-policy/downloads","issues_url":"https://api.github.com/repos/oneconvergence/group-based-policy/issues{/number}","pulls_url":"https://api.github.com/repos/oneconvergence/group-based-policy/pulls{/number}","milestones_url":"https://api.github.com/repos/oneconvergence/group-based-policy/milestones{/number}","notifications_url":"https://api.github.com/repos/oneconvergence/group-based-policy/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/oneconvergence/group-based-policy/labels{/name}","releases_url":"https://api.github.com/repos/oneconvergence/group-based-policy/releases{/id}","deployments_url":"https://api.github.com/repos/oneconvergence/group-based-policy/deployments","created_at":"2015-04-17T06:06:34Z","updated_at":"2015-06-30T21:52:52Z","pushed_at":"2016-02-12T14:12:17Z","git_url":"git://github.com/oneconvergence/group-based-policy.git","ssh_url":"git@github.com:oneconvergence/group-based-policy.git","clone_url":"https://github.com/oneconvergence/group-based-policy.git","svn_url":"https://github.com/oneconvergence/group-based-policy","homepage":"http://openstack.org","size":4531,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":false,"has_wiki":false,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":11,"forks":3,"open_issues":11,"watchers":0,"default_branch":"oneconvergence_service_node_driver"}},"_links":{"self":{"href":"https://api.github.com/repos/oneconvergence/group-based-policy/pulls/48"},"html":{"href":"https://github.com/oneconvergence/group-based-policy/pull/48"},"issue":{"href":"https://api.github.com/repos/oneconvergence/group-based-policy/issues/48"},"comments":{"href":"https://api.github.com/repos/oneconvergence/group-based-policy/issues/48/comments"},"review_comments":{"href":"https://api.github.com/repos/oneconvergence/group-based-policy/pulls/48/comments"},"review_comment":{"href":"https://api.github.com/repos/oneconvergence/group-based-policy/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/oneconvergence/group-based-policy/pulls/48/commits"},"statuses":{"href":"https://api.github.com/repos/oneconvergence/group-based-policy/statuses/55c699df2d1362d058613f3c4390a7040b3f2a4a"}}}}