{"action":"created","comment":{"url":"https://api.github.com/repos/RackHD/RackHD/pulls/comments/106988561","pull_request_review_id":27936705,"id":106988561,"diff_hunk":"@@ -46,8 +50,75 @@ def teardown(self):\n     def __get_data(self):\n         return loads(self.__client.last_response.data)\n \n+    def __get_compute_nodes(self):\n+        Api().nodes_get_all()\n+        nodes = self.__get_data()\n+        compute_nodes = []\n+        for n in nodes:\n+            type = n.get('type')\n+            if type == 'compute':\n+                compute_nodes.append(n)\n+        LOG.info('compute nodes count {0}'.format(len(compute_nodes)))\n+        return compute_nodes\n+\n+    def __wait_for_completion(self, node, graph_name, graph_instance):\n+        id = node.get('id')\n+        start_time=date.datetime.now()\n+        current_time=date.datetime.now()\n+        while True:\n+            if (current_time - start_time).total_seconds() > DEFAULT_TIMEOUT_SEC :\n+               raise TypeError('Timed out after {0} seconds'.format(DEFAULT_TIMEOUT_SEC))\n+               break\n+            Api().workflows_get()\n+            workflows = loads(self.__client.last_response.data)\n+            for w in workflows:\n+                # LOG.info('print w : {0}'.format(w))\n+                if (w.get('node') == id and w.get('injectableName') == graph_name \n+                   and w.get('instanceId') == graph_instance) :\n+                   status = w.get('status')\n+                   #LOG.info('{0} - target: {1}, status: {2}'.format(w.get('injectableName'), id, status))\n+                   if status == 'succeeded' or status == 'failed' or status == 'canceled':\n+                        LOG.info('{0} - target: {1}, status: {2}'.format(w.get('injectableName'), id, status))\n+                        if status == 'failed' or status == 'canceled':\n+                           LOG.Warning(' workflow {0}: {1}').format(status, w)\n+                        assert_equal(status, 'succeeded', \\\n+                           message='{0} - target: {1}, status: {2}'.format(w.get('injectableName'), id, status))\n+                        return\n+            time.sleep(10)\n+            current_time=date.datetime.now()\n+            #LOG.info('current time {0} vs start time {1}'.format(current_time, start_time))\n+\n     def __post_workflow(self, graph_name, nodes, body):\n-        workflows().post_workflows(graph_name, timeout_sec=DEFAULT_TIMEOUT_SEC, nodes=nodes, data=body)\n+        #check if NODE_INDEX is set\n+        index = None\n+        try:\n+           index = int(os.environ['NODE_INDEX'])\n+        except:\n+           LOG.info('NODE_INDEX env is not set')\n+           workflows().post_workflows(graph_name, timeout_sec=DEFAULT_TIMEOUT_SEC, nodes=nodes, data=body)\n+           return\n+        \n+        #check if index is in the array range","path":"test/tests/api/v2_0/os_install_tests.py","position":69,"original_position":69,"commit_id":"5853bff3a7db924ad47077a27eb0cdde92d8c9f9","original_commit_id":"5853bff3a7db924ad47077a27eb0cdde92d8c9f9","user":{"login":"houndci-bot","id":6697940,"avatar_url":"https://avatars3.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":"block comment should start with '# '","created_at":"2017-03-20T19:02:39Z","updated_at":"2017-03-20T19:02:40Z","html_url":"https://github.com/RackHD/RackHD/pull/678#discussion_r106988561","pull_request_url":"https://api.github.com/repos/RackHD/RackHD/pulls/678","_links":{"self":{"href":"https://api.github.com/repos/RackHD/RackHD/pulls/comments/106988561"},"html":{"href":"https://github.com/RackHD/RackHD/pull/678#discussion_r106988561"},"pull_request":{"href":"https://api.github.com/repos/RackHD/RackHD/pulls/678"}}},"pull_request":{"url":"https://api.github.com/repos/RackHD/RackHD/pulls/678","id":111627060,"html_url":"https://github.com/RackHD/RackHD/pull/678","diff_url":"https://github.com/RackHD/RackHD/pull/678.diff","patch_url":"https://github.com/RackHD/RackHD/pull/678.patch","issue_url":"https://api.github.com/repos/RackHD/RackHD/issues/678","number":678,"state":"open","locked":false,"title":"Add run os install on node per index","user":{"login":"keedya","id":14224616,"avatar_url":"https://avatars0.githubusercontent.com/u/14224616?v=3","gravatar_id":"","url":"https://api.github.com/users/keedya","html_url":"https://github.com/keedya","followers_url":"https://api.github.com/users/keedya/followers","following_url":"https://api.github.com/users/keedya/following{/other_user}","gists_url":"https://api.github.com/users/keedya/gists{/gist_id}","starred_url":"https://api.github.com/users/keedya/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/keedya/subscriptions","organizations_url":"https://api.github.com/users/keedya/orgs","repos_url":"https://api.github.com/users/keedya/repos","events_url":"https://api.github.com/users/keedya/events{/privacy}","received_events_url":"https://api.github.com/users/keedya/received_events","type":"User","site_admin":false},"body":"","created_at":"2017-03-20T19:02:30Z","updated_at":"2017-03-20T19:02:40Z","closed_at":null,"merged_at":null,"merge_commit_sha":"4c5aec694eb82ad09c04e2d60a662d1829eed3a2","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/RackHD/RackHD/pulls/678/commits","review_comments_url":"https://api.github.com/repos/RackHD/RackHD/pulls/678/comments","review_comment_url":"https://api.github.com/repos/RackHD/RackHD/pulls/comments{/number}","comments_url":"https://api.github.com/repos/RackHD/RackHD/issues/678/comments","statuses_url":"https://api.github.com/repos/RackHD/RackHD/statuses/5853bff3a7db924ad47077a27eb0cdde92d8c9f9","head":{"label":"keedya:add_multi-os","ref":"add_multi-os","sha":"5853bff3a7db924ad47077a27eb0cdde92d8c9f9","user":{"login":"keedya","id":14224616,"avatar_url":"https://avatars0.githubusercontent.com/u/14224616?v=3","gravatar_id":"","url":"https://api.github.com/users/keedya","html_url":"https://github.com/keedya","followers_url":"https://api.github.com/users/keedya/followers","following_url":"https://api.github.com/users/keedya/following{/other_user}","gists_url":"https://api.github.com/users/keedya/gists{/gist_id}","starred_url":"https://api.github.com/users/keedya/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/keedya/subscriptions","organizations_url":"https://api.github.com/users/keedya/orgs","repos_url":"https://api.github.com/users/keedya/repos","events_url":"https://api.github.com/users/keedya/events{/privacy}","received_events_url":"https://api.github.com/users/keedya/received_events","type":"User","site_admin":false},"repo":{"id":80485205,"name":"RackHD","full_name":"keedya/RackHD","owner":{"login":"keedya","id":14224616,"avatar_url":"https://avatars0.githubusercontent.com/u/14224616?v=3","gravatar_id":"","url":"https://api.github.com/users/keedya","html_url":"https://github.com/keedya","followers_url":"https://api.github.com/users/keedya/followers","following_url":"https://api.github.com/users/keedya/following{/other_user}","gists_url":"https://api.github.com/users/keedya/gists{/gist_id}","starred_url":"https://api.github.com/users/keedya/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/keedya/subscriptions","organizations_url":"https://api.github.com/users/keedya/orgs","repos_url":"https://api.github.com/users/keedya/repos","events_url":"https://api.github.com/users/keedya/events{/privacy}","received_events_url":"https://api.github.com/users/keedya/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/keedya/RackHD","description":"RackHD™ provides hardware management and orchestration services","fork":true,"url":"https://api.github.com/repos/keedya/RackHD","forks_url":"https://api.github.com/repos/keedya/RackHD/forks","keys_url":"https://api.github.com/repos/keedya/RackHD/keys{/key_id}","collaborators_url":"https://api.github.com/repos/keedya/RackHD/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/keedya/RackHD/teams","hooks_url":"https://api.github.com/repos/keedya/RackHD/hooks","issue_events_url":"https://api.github.com/repos/keedya/RackHD/issues/events{/number}","events_url":"https://api.github.com/repos/keedya/RackHD/events","assignees_url":"https://api.github.com/repos/keedya/RackHD/assignees{/user}","branches_url":"https://api.github.com/repos/keedya/RackHD/branches{/branch}","tags_url":"https://api.github.com/repos/keedya/RackHD/tags","blobs_url":"https://api.github.com/repos/keedya/RackHD/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/keedya/RackHD/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/keedya/RackHD/git/refs{/sha}","trees_url":"https://api.github.com/repos/keedya/RackHD/git/trees{/sha}","statuses_url":"https://api.github.com/repos/keedya/RackHD/statuses/{sha}","languages_url":"https://api.github.com/repos/keedya/RackHD/languages","stargazers_url":"https://api.github.com/repos/keedya/RackHD/stargazers","contributors_url":"https://api.github.com/repos/keedya/RackHD/contributors","subscribers_url":"https://api.github.com/repos/keedya/RackHD/subscribers","subscription_url":"https://api.github.com/repos/keedya/RackHD/subscription","commits_url":"https://api.github.com/repos/keedya/RackHD/commits{/sha}","git_commits_url":"https://api.github.com/repos/keedya/RackHD/git/commits{/sha}","comments_url":"https://api.github.com/repos/keedya/RackHD/comments{/number}","issue_comment_url":"https://api.github.com/repos/keedya/RackHD/issues/comments{/number}","contents_url":"https://api.github.com/repos/keedya/RackHD/contents/{+path}","compare_url":"https://api.github.com/repos/keedya/RackHD/compare/{base}...{head}","merges_url":"https://api.github.com/repos/keedya/RackHD/merges","archive_url":"https://api.github.com/repos/keedya/RackHD/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/keedya/RackHD/downloads","issues_url":"https://api.github.com/repos/keedya/RackHD/issues{/number}","pulls_url":"https://api.github.com/repos/keedya/RackHD/pulls{/number}","milestones_url":"https://api.github.com/repos/keedya/RackHD/milestones{/number}","notifications_url":"https://api.github.com/repos/keedya/RackHD/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/keedya/RackHD/labels{/name}","releases_url":"https://api.github.com/repos/keedya/RackHD/releases{/id}","deployments_url":"https://api.github.com/repos/keedya/RackHD/deployments","created_at":"2017-01-31T02:37:26Z","updated_at":"2017-01-31T02:37:28Z","pushed_at":"2017-03-20T18:06:26Z","git_url":"git://github.com/keedya/RackHD.git","ssh_url":"git@github.com:keedya/RackHD.git","clone_url":"https://github.com/keedya/RackHD.git","svn_url":"https://github.com/keedya/RackHD","homepage":" http://rackhd.readthedocs.io","size":3136,"stargazers_count":0,"watchers_count":0,"language":"Python","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":"RackHD:master","ref":"master","sha":"5e2d253938a157caab5c1cf7be27528a26c6f836","user":{"login":"RackHD","id":13982662,"avatar_url":"https://avatars1.githubusercontent.com/u/13982662?v=3","gravatar_id":"","url":"https://api.github.com/users/RackHD","html_url":"https://github.com/RackHD","followers_url":"https://api.github.com/users/RackHD/followers","following_url":"https://api.github.com/users/RackHD/following{/other_user}","gists_url":"https://api.github.com/users/RackHD/gists{/gist_id}","starred_url":"https://api.github.com/users/RackHD/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RackHD/subscriptions","organizations_url":"https://api.github.com/users/RackHD/orgs","repos_url":"https://api.github.com/users/RackHD/repos","events_url":"https://api.github.com/users/RackHD/events{/privacy}","received_events_url":"https://api.github.com/users/RackHD/received_events","type":"Organization","site_admin":false},"repo":{"id":45687347,"name":"RackHD","full_name":"RackHD/RackHD","owner":{"login":"RackHD","id":13982662,"avatar_url":"https://avatars1.githubusercontent.com/u/13982662?v=3","gravatar_id":"","url":"https://api.github.com/users/RackHD","html_url":"https://github.com/RackHD","followers_url":"https://api.github.com/users/RackHD/followers","following_url":"https://api.github.com/users/RackHD/following{/other_user}","gists_url":"https://api.github.com/users/RackHD/gists{/gist_id}","starred_url":"https://api.github.com/users/RackHD/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RackHD/subscriptions","organizations_url":"https://api.github.com/users/RackHD/orgs","repos_url":"https://api.github.com/users/RackHD/repos","events_url":"https://api.github.com/users/RackHD/events{/privacy}","received_events_url":"https://api.github.com/users/RackHD/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/RackHD/RackHD","description":"RackHD™ provides hardware management and orchestration services","fork":false,"url":"https://api.github.com/repos/RackHD/RackHD","forks_url":"https://api.github.com/repos/RackHD/RackHD/forks","keys_url":"https://api.github.com/repos/RackHD/RackHD/keys{/key_id}","collaborators_url":"https://api.github.com/repos/RackHD/RackHD/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/RackHD/RackHD/teams","hooks_url":"https://api.github.com/repos/RackHD/RackHD/hooks","issue_events_url":"https://api.github.com/repos/RackHD/RackHD/issues/events{/number}","events_url":"https://api.github.com/repos/RackHD/RackHD/events","assignees_url":"https://api.github.com/repos/RackHD/RackHD/assignees{/user}","branches_url":"https://api.github.com/repos/RackHD/RackHD/branches{/branch}","tags_url":"https://api.github.com/repos/RackHD/RackHD/tags","blobs_url":"https://api.github.com/repos/RackHD/RackHD/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/RackHD/RackHD/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/RackHD/RackHD/git/refs{/sha}","trees_url":"https://api.github.com/repos/RackHD/RackHD/git/trees{/sha}","statuses_url":"https://api.github.com/repos/RackHD/RackHD/statuses/{sha}","languages_url":"https://api.github.com/repos/RackHD/RackHD/languages","stargazers_url":"https://api.github.com/repos/RackHD/RackHD/stargazers","contributors_url":"https://api.github.com/repos/RackHD/RackHD/contributors","subscribers_url":"https://api.github.com/repos/RackHD/RackHD/subscribers","subscription_url":"https://api.github.com/repos/RackHD/RackHD/subscription","commits_url":"https://api.github.com/repos/RackHD/RackHD/commits{/sha}","git_commits_url":"https://api.github.com/repos/RackHD/RackHD/git/commits{/sha}","comments_url":"https://api.github.com/repos/RackHD/RackHD/comments{/number}","issue_comment_url":"https://api.github.com/repos/RackHD/RackHD/issues/comments{/number}","contents_url":"https://api.github.com/repos/RackHD/RackHD/contents/{+path}","compare_url":"https://api.github.com/repos/RackHD/RackHD/compare/{base}...{head}","merges_url":"https://api.github.com/repos/RackHD/RackHD/merges","archive_url":"https://api.github.com/repos/RackHD/RackHD/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/RackHD/RackHD/downloads","issues_url":"https://api.github.com/repos/RackHD/RackHD/issues{/number}","pulls_url":"https://api.github.com/repos/RackHD/RackHD/pulls{/number}","milestones_url":"https://api.github.com/repos/RackHD/RackHD/milestones{/number}","notifications_url":"https://api.github.com/repos/RackHD/RackHD/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/RackHD/RackHD/labels{/name}","releases_url":"https://api.github.com/repos/RackHD/RackHD/releases{/id}","deployments_url":"https://api.github.com/repos/RackHD/RackHD/deployments","created_at":"2015-11-06T14:42:16Z","updated_at":"2017-03-17T12:04:01Z","pushed_at":"2017-03-20T19:02:31Z","git_url":"git://github.com/RackHD/RackHD.git","ssh_url":"git@github.com:RackHD/RackHD.git","clone_url":"https://github.com/RackHD/RackHD.git","svn_url":"https://github.com/RackHD/RackHD","homepage":"https://rackhd.github.io","size":3206,"stargazers_count":216,"watchers_count":216,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":102,"mirror_url":null,"open_issues_count":81,"forks":102,"open_issues":81,"watchers":216,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/RackHD/RackHD/pulls/678"},"html":{"href":"https://github.com/RackHD/RackHD/pull/678"},"issue":{"href":"https://api.github.com/repos/RackHD/RackHD/issues/678"},"comments":{"href":"https://api.github.com/repos/RackHD/RackHD/issues/678/comments"},"review_comments":{"href":"https://api.github.com/repos/RackHD/RackHD/pulls/678/comments"},"review_comment":{"href":"https://api.github.com/repos/RackHD/RackHD/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/RackHD/RackHD/pulls/678/commits"},"statuses":{"href":"https://api.github.com/repos/RackHD/RackHD/statuses/5853bff3a7db924ad47077a27eb0cdde92d8c9f9"}}}}
{"actor":{"display_login":"houndci-bot"}}