{"action":"created","comment":{"url":"https://api.github.com/repos/Tendrl/commons/pulls/comments/198436244","pull_request_review_id":132364070,"id":198436244,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDE5ODQzNjI0NA==","diff_hunk":"@@ -17,23 +16,24 @@ def run(self):\n         loop_count = 0\n         while True:\n             if loop_count >= 72:\n-                raise AtomExecutionFailedError(\n-                    \"Timing out import job, Cluster data still not \"\n-                    \"fully updated (node: %s) \"\n-                    \"(integration_id: %s)\" % (\n-                        integration_id,\n-                        NS.node_context.node_id\n-                    )\n+                logger.log(\n+                    \"error\",\n+                    NS.publisher_id,\n+                    {\"message\": \"Timing out import job, Cluster data still \"\n+                                \"not fully updated (node: %s) \"\n+                                \"(integration_id: %s)\"\n+                                % (integration_id, NS.node_context.node_id)\n+                     },\n+                    job_id=self.parameters['job_id'],\n+                    flow_id=self.parameters['flow_id']\n                 )\n+                return False\n             time.sleep(5)\n-            try:\n-                _cnc = NS.tendrl.objects.ClusterNodeContext(\n-                    node_id=NS.node_context.node_id\n-                ).load()\n-                if _cnc.first_sync_done is not None and \\\n+            _cnc = NS.tendrl.objects.ClusterNodeContext(\n+                node_id=NS.node_context.node_id\n+            ).load()\n+            if _cnc.first_sync_done is not None and \\\n                     _cnc.first_sync_done.lower() == \"yes\":\n-                    break\n-            except etcd.EtcdKeyNotFound:\n-                loop_count += 1\n-                continue\n+                break\n+            loop_count += 1","path":"tendrl/commons/objects/cluster/atoms/check_sync_done/__init__.py","position":49,"original_position":49,"commit_id":"621c3abc922ca55b6cff37e8923ae19ef8930392","original_commit_id":"621c3abc922ca55b6cff37e8923ae19ef8930392","user":{"login":"GowthamShanmugam","id":15073590,"node_id":"MDQ6VXNlcjE1MDczNTkw","avatar_url":"https://avatars0.githubusercontent.com/u/15073590?v=4","gravatar_id":"","url":"https://api.github.com/users/GowthamShanmugam","html_url":"https://github.com/GowthamShanmugam","followers_url":"https://api.github.com/users/GowthamShanmugam/followers","following_url":"https://api.github.com/users/GowthamShanmugam/following{/other_user}","gists_url":"https://api.github.com/users/GowthamShanmugam/gists{/gist_id}","starred_url":"https://api.github.com/users/GowthamShanmugam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GowthamShanmugam/subscriptions","organizations_url":"https://api.github.com/users/GowthamShanmugam/orgs","repos_url":"https://api.github.com/users/GowthamShanmugam/repos","events_url":"https://api.github.com/users/GowthamShanmugam/events{/privacy}","received_events_url":"https://api.github.com/users/GowthamShanmugam/received_events","type":"User","site_admin":false},"body":"tested?","created_at":"2018-06-27T09:59:40Z","updated_at":"2018-06-27T09:59:40Z","html_url":"https://github.com/Tendrl/commons/pull/1010#discussion_r198436244","pull_request_url":"https://api.github.com/repos/Tendrl/commons/pulls/1010","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/Tendrl/commons/pulls/comments/198436244"},"html":{"href":"https://github.com/Tendrl/commons/pull/1010#discussion_r198436244"},"pull_request":{"href":"https://api.github.com/repos/Tendrl/commons/pulls/1010"}}},"pull_request":{"url":"https://api.github.com/repos/Tendrl/commons/pulls/1010","id":197417550,"node_id":"MDExOlB1bGxSZXF1ZXN0MTk3NDE3NTUw","html_url":"https://github.com/Tendrl/commons/pull/1010","diff_url":"https://github.com/Tendrl/commons/pull/1010.diff","patch_url":"https://github.com/Tendrl/commons/pull/1010.patch","issue_url":"https://api.github.com/repos/Tendrl/commons/issues/1010","number":1010,"state":"open","locked":false,"title":"Fix logging for import and unmanage flows","user":{"login":"anmolsachan","id":8753636,"node_id":"MDQ6VXNlcjg3NTM2MzY=","avatar_url":"https://avatars3.githubusercontent.com/u/8753636?v=4","gravatar_id":"","url":"https://api.github.com/users/anmolsachan","html_url":"https://github.com/anmolsachan","followers_url":"https://api.github.com/users/anmolsachan/followers","following_url":"https://api.github.com/users/anmolsachan/following{/other_user}","gists_url":"https://api.github.com/users/anmolsachan/gists{/gist_id}","starred_url":"https://api.github.com/users/anmolsachan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anmolsachan/subscriptions","organizations_url":"https://api.github.com/users/anmolsachan/orgs","repos_url":"https://api.github.com/users/anmolsachan/repos","events_url":"https://api.github.com/users/anmolsachan/events{/privacy}","received_events_url":"https://api.github.com/users/anmolsachan/received_events","type":"User","site_admin":false},"body":"tendrl-bug-id: Tendrl/commons#1009\r\nbugzilla: 1590661\r\nSigned-off-by: Anmol Sachan <anmol13694@gmail.com>","created_at":"2018-06-26T13:12:32Z","updated_at":"2018-06-27T09:59:40Z","closed_at":null,"merged_at":null,"merge_commit_sha":"15b756da16c4652762272fed6136b8ceb576cc6b","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[{"name":"admins","id":2190096,"node_id":"MDQ6VGVhbTIxOTAwOTY=","slug":"admins","description":"Tendrl org admins","privacy":"closed","url":"https://api.github.com/teams/2190096","members_url":"https://api.github.com/teams/2190096/members{/member}","repositories_url":"https://api.github.com/teams/2190096/repos","permission":"pull"}],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/Tendrl/commons/pulls/1010/commits","review_comments_url":"https://api.github.com/repos/Tendrl/commons/pulls/1010/comments","review_comment_url":"https://api.github.com/repos/Tendrl/commons/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Tendrl/commons/issues/1010/comments","statuses_url":"https://api.github.com/repos/Tendrl/commons/statuses/621c3abc922ca55b6cff37e8923ae19ef8930392","head":{"label":"anmolsachan:Fix_logging_Import_and_Unmanage","ref":"Fix_logging_Import_and_Unmanage","sha":"621c3abc922ca55b6cff37e8923ae19ef8930392","user":{"login":"anmolsachan","id":8753636,"node_id":"MDQ6VXNlcjg3NTM2MzY=","avatar_url":"https://avatars3.githubusercontent.com/u/8753636?v=4","gravatar_id":"","url":"https://api.github.com/users/anmolsachan","html_url":"https://github.com/anmolsachan","followers_url":"https://api.github.com/users/anmolsachan/followers","following_url":"https://api.github.com/users/anmolsachan/following{/other_user}","gists_url":"https://api.github.com/users/anmolsachan/gists{/gist_id}","starred_url":"https://api.github.com/users/anmolsachan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anmolsachan/subscriptions","organizations_url":"https://api.github.com/users/anmolsachan/orgs","repos_url":"https://api.github.com/users/anmolsachan/repos","events_url":"https://api.github.com/users/anmolsachan/events{/privacy}","received_events_url":"https://api.github.com/users/anmolsachan/received_events","type":"User","site_admin":false},"repo":{"id":82560007,"node_id":"MDEwOlJlcG9zaXRvcnk4MjU2MDAwNw==","name":"commons","full_name":"anmolsachan/commons","owner":{"login":"anmolsachan","id":8753636,"node_id":"MDQ6VXNlcjg3NTM2MzY=","avatar_url":"https://avatars3.githubusercontent.com/u/8753636?v=4","gravatar_id":"","url":"https://api.github.com/users/anmolsachan","html_url":"https://github.com/anmolsachan","followers_url":"https://api.github.com/users/anmolsachan/followers","following_url":"https://api.github.com/users/anmolsachan/following{/other_user}","gists_url":"https://api.github.com/users/anmolsachan/gists{/gist_id}","starred_url":"https://api.github.com/users/anmolsachan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anmolsachan/subscriptions","organizations_url":"https://api.github.com/users/anmolsachan/orgs","repos_url":"https://api.github.com/users/anmolsachan/repos","events_url":"https://api.github.com/users/anmolsachan/events{/privacy}","received_events_url":"https://api.github.com/users/anmolsachan/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/anmolsachan/commons","description":"Common code usable by all Tendrl components","fork":true,"url":"https://api.github.com/repos/anmolsachan/commons","forks_url":"https://api.github.com/repos/anmolsachan/commons/forks","keys_url":"https://api.github.com/repos/anmolsachan/commons/keys{/key_id}","collaborators_url":"https://api.github.com/repos/anmolsachan/commons/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/anmolsachan/commons/teams","hooks_url":"https://api.github.com/repos/anmolsachan/commons/hooks","issue_events_url":"https://api.github.com/repos/anmolsachan/commons/issues/events{/number}","events_url":"https://api.github.com/repos/anmolsachan/commons/events","assignees_url":"https://api.github.com/repos/anmolsachan/commons/assignees{/user}","branches_url":"https://api.github.com/repos/anmolsachan/commons/branches{/branch}","tags_url":"https://api.github.com/repos/anmolsachan/commons/tags","blobs_url":"https://api.github.com/repos/anmolsachan/commons/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/anmolsachan/commons/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/anmolsachan/commons/git/refs{/sha}","trees_url":"https://api.github.com/repos/anmolsachan/commons/git/trees{/sha}","statuses_url":"https://api.github.com/repos/anmolsachan/commons/statuses/{sha}","languages_url":"https://api.github.com/repos/anmolsachan/commons/languages","stargazers_url":"https://api.github.com/repos/anmolsachan/commons/stargazers","contributors_url":"https://api.github.com/repos/anmolsachan/commons/contributors","subscribers_url":"https://api.github.com/repos/anmolsachan/commons/subscribers","subscription_url":"https://api.github.com/repos/anmolsachan/commons/subscription","commits_url":"https://api.github.com/repos/anmolsachan/commons/commits{/sha}","git_commits_url":"https://api.github.com/repos/anmolsachan/commons/git/commits{/sha}","comments_url":"https://api.github.com/repos/anmolsachan/commons/comments{/number}","issue_comment_url":"https://api.github.com/repos/anmolsachan/commons/issues/comments{/number}","contents_url":"https://api.github.com/repos/anmolsachan/commons/contents/{+path}","compare_url":"https://api.github.com/repos/anmolsachan/commons/compare/{base}...{head}","merges_url":"https://api.github.com/repos/anmolsachan/commons/merges","archive_url":"https://api.github.com/repos/anmolsachan/commons/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/anmolsachan/commons/downloads","issues_url":"https://api.github.com/repos/anmolsachan/commons/issues{/number}","pulls_url":"https://api.github.com/repos/anmolsachan/commons/pulls{/number}","milestones_url":"https://api.github.com/repos/anmolsachan/commons/milestones{/number}","notifications_url":"https://api.github.com/repos/anmolsachan/commons/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/anmolsachan/commons/labels{/name}","releases_url":"https://api.github.com/repos/anmolsachan/commons/releases{/id}","deployments_url":"https://api.github.com/repos/anmolsachan/commons/deployments","created_at":"2017-02-20T13:19:02Z","updated_at":"2018-05-10T12:48:32Z","pushed_at":"2018-06-26T13:09:11Z","git_url":"git://github.com/anmolsachan/commons.git","ssh_url":"git@github.com:anmolsachan/commons.git","clone_url":"https://github.com/anmolsachan/commons.git","svn_url":"https://github.com/anmolsachan/commons","homepage":"http://www.tendrl.org","size":1818,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"lgpl-2.1","name":"GNU Lesser General Public License v2.1","spdx_id":"LGPL-2.1","url":"https://api.github.com/licenses/lgpl-2.1","node_id":"MDc6TGljZW5zZTEx"},"forks":0,"open_issues":0,"watchers":0,"default_branch":"develop"}},"base":{"label":"Tendrl:master","ref":"master","sha":"17510be936b26aff69a7b0fed84eb833cbc3038b","user":{"login":"Tendrl","id":19151627,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE5MTUxNjI3","avatar_url":"https://avatars0.githubusercontent.com/u/19151627?v=4","gravatar_id":"","url":"https://api.github.com/users/Tendrl","html_url":"https://github.com/Tendrl","followers_url":"https://api.github.com/users/Tendrl/followers","following_url":"https://api.github.com/users/Tendrl/following{/other_user}","gists_url":"https://api.github.com/users/Tendrl/gists{/gist_id}","starred_url":"https://api.github.com/users/Tendrl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Tendrl/subscriptions","organizations_url":"https://api.github.com/users/Tendrl/orgs","repos_url":"https://api.github.com/users/Tendrl/repos","events_url":"https://api.github.com/users/Tendrl/events{/privacy}","received_events_url":"https://api.github.com/users/Tendrl/received_events","type":"Organization","site_admin":false},"repo":{"id":64727947,"node_id":"MDEwOlJlcG9zaXRvcnk2NDcyNzk0Nw==","name":"commons","full_name":"Tendrl/commons","owner":{"login":"Tendrl","id":19151627,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE5MTUxNjI3","avatar_url":"https://avatars0.githubusercontent.com/u/19151627?v=4","gravatar_id":"","url":"https://api.github.com/users/Tendrl","html_url":"https://github.com/Tendrl","followers_url":"https://api.github.com/users/Tendrl/followers","following_url":"https://api.github.com/users/Tendrl/following{/other_user}","gists_url":"https://api.github.com/users/Tendrl/gists{/gist_id}","starred_url":"https://api.github.com/users/Tendrl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Tendrl/subscriptions","organizations_url":"https://api.github.com/users/Tendrl/orgs","repos_url":"https://api.github.com/users/Tendrl/repos","events_url":"https://api.github.com/users/Tendrl/events{/privacy}","received_events_url":"https://api.github.com/users/Tendrl/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Tendrl/commons","description":"Common code usable by all Tendrl components","fork":false,"url":"https://api.github.com/repos/Tendrl/commons","forks_url":"https://api.github.com/repos/Tendrl/commons/forks","keys_url":"https://api.github.com/repos/Tendrl/commons/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Tendrl/commons/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Tendrl/commons/teams","hooks_url":"https://api.github.com/repos/Tendrl/commons/hooks","issue_events_url":"https://api.github.com/repos/Tendrl/commons/issues/events{/number}","events_url":"https://api.github.com/repos/Tendrl/commons/events","assignees_url":"https://api.github.com/repos/Tendrl/commons/assignees{/user}","branches_url":"https://api.github.com/repos/Tendrl/commons/branches{/branch}","tags_url":"https://api.github.com/repos/Tendrl/commons/tags","blobs_url":"https://api.github.com/repos/Tendrl/commons/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Tendrl/commons/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Tendrl/commons/git/refs{/sha}","trees_url":"https://api.github.com/repos/Tendrl/commons/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Tendrl/commons/statuses/{sha}","languages_url":"https://api.github.com/repos/Tendrl/commons/languages","stargazers_url":"https://api.github.com/repos/Tendrl/commons/stargazers","contributors_url":"https://api.github.com/repos/Tendrl/commons/contributors","subscribers_url":"https://api.github.com/repos/Tendrl/commons/subscribers","subscription_url":"https://api.github.com/repos/Tendrl/commons/subscription","commits_url":"https://api.github.com/repos/Tendrl/commons/commits{/sha}","git_commits_url":"https://api.github.com/repos/Tendrl/commons/git/commits{/sha}","comments_url":"https://api.github.com/repos/Tendrl/commons/comments{/number}","issue_comment_url":"https://api.github.com/repos/Tendrl/commons/issues/comments{/number}","contents_url":"https://api.github.com/repos/Tendrl/commons/contents/{+path}","compare_url":"https://api.github.com/repos/Tendrl/commons/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Tendrl/commons/merges","archive_url":"https://api.github.com/repos/Tendrl/commons/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Tendrl/commons/downloads","issues_url":"https://api.github.com/repos/Tendrl/commons/issues{/number}","pulls_url":"https://api.github.com/repos/Tendrl/commons/pulls{/number}","milestones_url":"https://api.github.com/repos/Tendrl/commons/milestones{/number}","notifications_url":"https://api.github.com/repos/Tendrl/commons/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Tendrl/commons/labels{/name}","releases_url":"https://api.github.com/repos/Tendrl/commons/releases{/id}","deployments_url":"https://api.github.com/repos/Tendrl/commons/deployments","created_at":"2016-08-02T05:49:44Z","updated_at":"2018-06-26T09:32:00Z","pushed_at":"2018-06-26T14:44:52Z","git_url":"git://github.com/Tendrl/commons.git","ssh_url":"git@github.com:Tendrl/commons.git","clone_url":"https://github.com/Tendrl/commons.git","svn_url":"https://github.com/Tendrl/commons","homepage":"http://www.tendrl.org","size":1794,"stargazers_count":5,"watchers_count":5,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":23,"mirror_url":null,"archived":false,"open_issues_count":22,"license":{"key":"lgpl-2.1","name":"GNU Lesser General Public License v2.1","spdx_id":"LGPL-2.1","url":"https://api.github.com/licenses/lgpl-2.1","node_id":"MDc6TGljZW5zZTEx"},"forks":23,"open_issues":22,"watchers":5,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Tendrl/commons/pulls/1010"},"html":{"href":"https://github.com/Tendrl/commons/pull/1010"},"issue":{"href":"https://api.github.com/repos/Tendrl/commons/issues/1010"},"comments":{"href":"https://api.github.com/repos/Tendrl/commons/issues/1010/comments"},"review_comments":{"href":"https://api.github.com/repos/Tendrl/commons/pulls/1010/comments"},"review_comment":{"href":"https://api.github.com/repos/Tendrl/commons/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Tendrl/commons/pulls/1010/commits"},"statuses":{"href":"https://api.github.com/repos/Tendrl/commons/statuses/621c3abc922ca55b6cff37e8923ae19ef8930392"}},"author_association":"MEMBER"}}
{"actor":{"display_login":"GowthamShanmugam"}}