{"action":"created","comment":{"url":"https://api.github.com/repos/autotest/tp-libvirt/pulls/comments/106606791","pull_request_review_id":27536557,"id":106606791,"diff_hunk":"@@ -39,6 +39,15 @@ def create_destroy_pool_on_remote(action, params):\n     prompt = params.get(\"prompt\", r\"[\\#\\$]\\s*$\")\n \n     if action == 'create':\n+        # Firstly check if the pool already exists\n+        all_pools = new_session.pool_list(option=\"--all\")\n+        logging.debug(\"Pools on remote host:\\n%s\" % all_pools)","path":"libvirt/tests/src/virsh_cmd/domain/virsh_migrate_copy_storage.py","position":null,"original_position":6,"commit_id":"1d91b8443d3f6fba0b38797a7eded83b79e99d18","original_commit_id":"5a21cf935bfa015ca6dfbd9399db63f0f353e1e8","user":{"login":"dzhengfy","id":16040311,"avatar_url":"https://avatars3.githubusercontent.com/u/16040311?v=3","gravatar_id":"","url":"https://api.github.com/users/dzhengfy","html_url":"https://github.com/dzhengfy","followers_url":"https://api.github.com/users/dzhengfy/followers","following_url":"https://api.github.com/users/dzhengfy/following{/other_user}","gists_url":"https://api.github.com/users/dzhengfy/gists{/gist_id}","starred_url":"https://api.github.com/users/dzhengfy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dzhengfy/subscriptions","organizations_url":"https://api.github.com/users/dzhengfy/orgs","repos_url":"https://api.github.com/users/dzhengfy/repos","events_url":"https://api.github.com/users/dzhengfy/events{/privacy}","received_events_url":"https://api.github.com/users/dzhengfy/received_events","type":"User","site_admin":false},"body":"@balamuruhans Thanks and I have updated them.","created_at":"2017-03-17T08:56:49Z","updated_at":"2017-03-17T08:56:49Z","html_url":"https://github.com/autotest/tp-libvirt/pull/972#discussion_r106606791","pull_request_url":"https://api.github.com/repos/autotest/tp-libvirt/pulls/972","_links":{"self":{"href":"https://api.github.com/repos/autotest/tp-libvirt/pulls/comments/106606791"},"html":{"href":"https://github.com/autotest/tp-libvirt/pull/972#discussion_r106606791"},"pull_request":{"href":"https://api.github.com/repos/autotest/tp-libvirt/pulls/972"}}},"pull_request":{"url":"https://api.github.com/repos/autotest/tp-libvirt/pulls/972","id":100224554,"html_url":"https://github.com/autotest/tp-libvirt/pull/972","diff_url":"https://github.com/autotest/tp-libvirt/pull/972.diff","patch_url":"https://github.com/autotest/tp-libvirt/pull/972.patch","issue_url":"https://api.github.com/repos/autotest/tp-libvirt/issues/972","number":972,"state":"open","locked":false,"title":"virsh_migrate_copy_storage: Check the pool firstly","user":{"login":"dzhengfy","id":16040311,"avatar_url":"https://avatars3.githubusercontent.com/u/16040311?v=3","gravatar_id":"","url":"https://api.github.com/users/dzhengfy","html_url":"https://github.com/dzhengfy","followers_url":"https://api.github.com/users/dzhengfy/followers","following_url":"https://api.github.com/users/dzhengfy/following{/other_user}","gists_url":"https://api.github.com/users/dzhengfy/gists{/gist_id}","starred_url":"https://api.github.com/users/dzhengfy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dzhengfy/subscriptions","organizations_url":"https://api.github.com/users/dzhengfy/orgs","repos_url":"https://api.github.com/users/dzhengfy/repos","events_url":"https://api.github.com/users/dzhengfy/events{/privacy}","received_events_url":"https://api.github.com/users/dzhengfy/received_events","type":"User","site_admin":false},"body":"The fix will check the existence of the target pool on remote host\r\nbefore creating it. If it already exists, we prefer to reusing it\r\ninstead of recreating.\r\n\r\nSigned-off-by: Dan Zheng <dzheng@redhat.com>","created_at":"2017-01-05T02:25:22Z","updated_at":"2017-03-17T08:56:49Z","closed_at":null,"merged_at":null,"merge_commit_sha":"033788462eae0786c4492cb428b83e640643d31d","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/autotest/tp-libvirt/pulls/972/commits","review_comments_url":"https://api.github.com/repos/autotest/tp-libvirt/pulls/972/comments","review_comment_url":"https://api.github.com/repos/autotest/tp-libvirt/pulls/comments{/number}","comments_url":"https://api.github.com/repos/autotest/tp-libvirt/issues/972/comments","statuses_url":"https://api.github.com/repos/autotest/tp-libvirt/statuses/1d91b8443d3f6fba0b38797a7eded83b79e99d18","head":{"label":"dzhengfy:check_pool_existence","ref":"check_pool_existence","sha":"1d91b8443d3f6fba0b38797a7eded83b79e99d18","user":{"login":"dzhengfy","id":16040311,"avatar_url":"https://avatars3.githubusercontent.com/u/16040311?v=3","gravatar_id":"","url":"https://api.github.com/users/dzhengfy","html_url":"https://github.com/dzhengfy","followers_url":"https://api.github.com/users/dzhengfy/followers","following_url":"https://api.github.com/users/dzhengfy/following{/other_user}","gists_url":"https://api.github.com/users/dzhengfy/gists{/gist_id}","starred_url":"https://api.github.com/users/dzhengfy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dzhengfy/subscriptions","organizations_url":"https://api.github.com/users/dzhengfy/orgs","repos_url":"https://api.github.com/users/dzhengfy/repos","events_url":"https://api.github.com/users/dzhengfy/events{/privacy}","received_events_url":"https://api.github.com/users/dzhengfy/received_events","type":"User","site_admin":false},"repo":{"id":48014313,"name":"tp-libvirt","full_name":"dzhengfy/tp-libvirt","owner":{"login":"dzhengfy","id":16040311,"avatar_url":"https://avatars3.githubusercontent.com/u/16040311?v=3","gravatar_id":"","url":"https://api.github.com/users/dzhengfy","html_url":"https://github.com/dzhengfy","followers_url":"https://api.github.com/users/dzhengfy/followers","following_url":"https://api.github.com/users/dzhengfy/following{/other_user}","gists_url":"https://api.github.com/users/dzhengfy/gists{/gist_id}","starred_url":"https://api.github.com/users/dzhengfy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dzhengfy/subscriptions","organizations_url":"https://api.github.com/users/dzhengfy/orgs","repos_url":"https://api.github.com/users/dzhengfy/repos","events_url":"https://api.github.com/users/dzhengfy/events{/privacy}","received_events_url":"https://api.github.com/users/dzhengfy/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/dzhengfy/tp-libvirt","description":"Test Provider for Libvirt and related virtualization backends","fork":true,"url":"https://api.github.com/repos/dzhengfy/tp-libvirt","forks_url":"https://api.github.com/repos/dzhengfy/tp-libvirt/forks","keys_url":"https://api.github.com/repos/dzhengfy/tp-libvirt/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dzhengfy/tp-libvirt/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dzhengfy/tp-libvirt/teams","hooks_url":"https://api.github.com/repos/dzhengfy/tp-libvirt/hooks","issue_events_url":"https://api.github.com/repos/dzhengfy/tp-libvirt/issues/events{/number}","events_url":"https://api.github.com/repos/dzhengfy/tp-libvirt/events","assignees_url":"https://api.github.com/repos/dzhengfy/tp-libvirt/assignees{/user}","branches_url":"https://api.github.com/repos/dzhengfy/tp-libvirt/branches{/branch}","tags_url":"https://api.github.com/repos/dzhengfy/tp-libvirt/tags","blobs_url":"https://api.github.com/repos/dzhengfy/tp-libvirt/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dzhengfy/tp-libvirt/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dzhengfy/tp-libvirt/git/refs{/sha}","trees_url":"https://api.github.com/repos/dzhengfy/tp-libvirt/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dzhengfy/tp-libvirt/statuses/{sha}","languages_url":"https://api.github.com/repos/dzhengfy/tp-libvirt/languages","stargazers_url":"https://api.github.com/repos/dzhengfy/tp-libvirt/stargazers","contributors_url":"https://api.github.com/repos/dzhengfy/tp-libvirt/contributors","subscribers_url":"https://api.github.com/repos/dzhengfy/tp-libvirt/subscribers","subscription_url":"https://api.github.com/repos/dzhengfy/tp-libvirt/subscription","commits_url":"https://api.github.com/repos/dzhengfy/tp-libvirt/commits{/sha}","git_commits_url":"https://api.github.com/repos/dzhengfy/tp-libvirt/git/commits{/sha}","comments_url":"https://api.github.com/repos/dzhengfy/tp-libvirt/comments{/number}","issue_comment_url":"https://api.github.com/repos/dzhengfy/tp-libvirt/issues/comments{/number}","contents_url":"https://api.github.com/repos/dzhengfy/tp-libvirt/contents/{+path}","compare_url":"https://api.github.com/repos/dzhengfy/tp-libvirt/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dzhengfy/tp-libvirt/merges","archive_url":"https://api.github.com/repos/dzhengfy/tp-libvirt/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dzhengfy/tp-libvirt/downloads","issues_url":"https://api.github.com/repos/dzhengfy/tp-libvirt/issues{/number}","pulls_url":"https://api.github.com/repos/dzhengfy/tp-libvirt/pulls{/number}","milestones_url":"https://api.github.com/repos/dzhengfy/tp-libvirt/milestones{/number}","notifications_url":"https://api.github.com/repos/dzhengfy/tp-libvirt/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dzhengfy/tp-libvirt/labels{/name}","releases_url":"https://api.github.com/repos/dzhengfy/tp-libvirt/releases{/id}","deployments_url":"https://api.github.com/repos/dzhengfy/tp-libvirt/deployments","created_at":"2015-12-15T02:23:20Z","updated_at":"2016-01-20T07:22:03Z","pushed_at":"2017-03-17T08:56:15Z","git_url":"git://github.com/dzhengfy/tp-libvirt.git","ssh_url":"git@github.com:dzhengfy/tp-libvirt.git","clone_url":"https://github.com/dzhengfy/tp-libvirt.git","svn_url":"https://github.com/dzhengfy/tp-libvirt","homepage":null,"size":11042,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":false,"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":"autotest:master","ref":"master","sha":"c2442e143c7a0d1a32648c9ac840bd86908fe4cc","user":{"login":"autotest","id":472856,"avatar_url":"https://avatars2.githubusercontent.com/u/472856?v=3","gravatar_id":"","url":"https://api.github.com/users/autotest","html_url":"https://github.com/autotest","followers_url":"https://api.github.com/users/autotest/followers","following_url":"https://api.github.com/users/autotest/following{/other_user}","gists_url":"https://api.github.com/users/autotest/gists{/gist_id}","starred_url":"https://api.github.com/users/autotest/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/autotest/subscriptions","organizations_url":"https://api.github.com/users/autotest/orgs","repos_url":"https://api.github.com/users/autotest/repos","events_url":"https://api.github.com/users/autotest/events{/privacy}","received_events_url":"https://api.github.com/users/autotest/received_events","type":"Organization","site_admin":false},"repo":{"id":16180517,"name":"tp-libvirt","full_name":"autotest/tp-libvirt","owner":{"login":"autotest","id":472856,"avatar_url":"https://avatars2.githubusercontent.com/u/472856?v=3","gravatar_id":"","url":"https://api.github.com/users/autotest","html_url":"https://github.com/autotest","followers_url":"https://api.github.com/users/autotest/followers","following_url":"https://api.github.com/users/autotest/following{/other_user}","gists_url":"https://api.github.com/users/autotest/gists{/gist_id}","starred_url":"https://api.github.com/users/autotest/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/autotest/subscriptions","organizations_url":"https://api.github.com/users/autotest/orgs","repos_url":"https://api.github.com/users/autotest/repos","events_url":"https://api.github.com/users/autotest/events{/privacy}","received_events_url":"https://api.github.com/users/autotest/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/autotest/tp-libvirt","description":"Test Provider for Libvirt and related virtualization backends","fork":false,"url":"https://api.github.com/repos/autotest/tp-libvirt","forks_url":"https://api.github.com/repos/autotest/tp-libvirt/forks","keys_url":"https://api.github.com/repos/autotest/tp-libvirt/keys{/key_id}","collaborators_url":"https://api.github.com/repos/autotest/tp-libvirt/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/autotest/tp-libvirt/teams","hooks_url":"https://api.github.com/repos/autotest/tp-libvirt/hooks","issue_events_url":"https://api.github.com/repos/autotest/tp-libvirt/issues/events{/number}","events_url":"https://api.github.com/repos/autotest/tp-libvirt/events","assignees_url":"https://api.github.com/repos/autotest/tp-libvirt/assignees{/user}","branches_url":"https://api.github.com/repos/autotest/tp-libvirt/branches{/branch}","tags_url":"https://api.github.com/repos/autotest/tp-libvirt/tags","blobs_url":"https://api.github.com/repos/autotest/tp-libvirt/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/autotest/tp-libvirt/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/autotest/tp-libvirt/git/refs{/sha}","trees_url":"https://api.github.com/repos/autotest/tp-libvirt/git/trees{/sha}","statuses_url":"https://api.github.com/repos/autotest/tp-libvirt/statuses/{sha}","languages_url":"https://api.github.com/repos/autotest/tp-libvirt/languages","stargazers_url":"https://api.github.com/repos/autotest/tp-libvirt/stargazers","contributors_url":"https://api.github.com/repos/autotest/tp-libvirt/contributors","subscribers_url":"https://api.github.com/repos/autotest/tp-libvirt/subscribers","subscription_url":"https://api.github.com/repos/autotest/tp-libvirt/subscription","commits_url":"https://api.github.com/repos/autotest/tp-libvirt/commits{/sha}","git_commits_url":"https://api.github.com/repos/autotest/tp-libvirt/git/commits{/sha}","comments_url":"https://api.github.com/repos/autotest/tp-libvirt/comments{/number}","issue_comment_url":"https://api.github.com/repos/autotest/tp-libvirt/issues/comments{/number}","contents_url":"https://api.github.com/repos/autotest/tp-libvirt/contents/{+path}","compare_url":"https://api.github.com/repos/autotest/tp-libvirt/compare/{base}...{head}","merges_url":"https://api.github.com/repos/autotest/tp-libvirt/merges","archive_url":"https://api.github.com/repos/autotest/tp-libvirt/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/autotest/tp-libvirt/downloads","issues_url":"https://api.github.com/repos/autotest/tp-libvirt/issues{/number}","pulls_url":"https://api.github.com/repos/autotest/tp-libvirt/pulls{/number}","milestones_url":"https://api.github.com/repos/autotest/tp-libvirt/milestones{/number}","notifications_url":"https://api.github.com/repos/autotest/tp-libvirt/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/autotest/tp-libvirt/labels{/name}","releases_url":"https://api.github.com/repos/autotest/tp-libvirt/releases{/id}","deployments_url":"https://api.github.com/repos/autotest/tp-libvirt/deployments","created_at":"2014-01-23T17:58:18Z","updated_at":"2016-10-25T05:46:02Z","pushed_at":"2017-03-17T08:56:16Z","git_url":"git://github.com/autotest/tp-libvirt.git","ssh_url":"git@github.com:autotest/tp-libvirt.git","clone_url":"https://github.com/autotest/tp-libvirt.git","svn_url":"https://github.com/autotest/tp-libvirt","homepage":null,"size":11001,"stargazers_count":11,"watchers_count":11,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":82,"mirror_url":null,"open_issues_count":56,"forks":82,"open_issues":56,"watchers":11,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/autotest/tp-libvirt/pulls/972"},"html":{"href":"https://github.com/autotest/tp-libvirt/pull/972"},"issue":{"href":"https://api.github.com/repos/autotest/tp-libvirt/issues/972"},"comments":{"href":"https://api.github.com/repos/autotest/tp-libvirt/issues/972/comments"},"review_comments":{"href":"https://api.github.com/repos/autotest/tp-libvirt/pulls/972/comments"},"review_comment":{"href":"https://api.github.com/repos/autotest/tp-libvirt/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/autotest/tp-libvirt/pulls/972/commits"},"statuses":{"href":"https://api.github.com/repos/autotest/tp-libvirt/statuses/1d91b8443d3f6fba0b38797a7eded83b79e99d18"}}}}
{"actor":{"display_login":"dzhengfy"}}