{"action":"created","comment":{"url":"https://api.github.com/repos/Mirantis/mos-integration-tests/pulls/comments/57153583","id":57153583,"diff_hunk":"@@ -25,6 +26,30 @@ def instance(ubuntu_image, flavors, keypair, ironic_nodes, ironic):\n     return instance\n \n \n+@pytest.yield_fixture\n+def tenants(env, openstack_client):\n+    # os_conns = []\n+    os_conns = {}\n+    for i in range(2):\n+        user = 'ironic_user_{}'.format(i)\n+        password = 'ironic'\n+        project = 'ironic_project_{}'.format(i)\n+        openstack_client.project_create(project)\n+        openstack_client.user_create(user, password, project)\n+        os_conn = OpenStackActions(\n+            controller_ip=env.get_primary_controller_ip(),\n+            cert=env.certificate, env=env, user=user, password=password,\n+            tenant=project)\n+        keypair = os_conn.create_key(key_name='ironic-key')","path":"mos_tests/ironic/manage_instances_test.py","position":26,"original_position":26,"commit_id":"adcd1ac56da2ecf00fc8d27a14aba1e597a7ef97","original_commit_id":"adcd1ac56da2ecf00fc8d27a14aba1e597a7ef97","user":{"login":"gdyuldin","id":4144213,"avatar_url":"https://avatars.githubusercontent.com/u/4144213?v=3","gravatar_id":"","url":"https://api.github.com/users/gdyuldin","html_url":"https://github.com/gdyuldin","followers_url":"https://api.github.com/users/gdyuldin/followers","following_url":"https://api.github.com/users/gdyuldin/following{/other_user}","gists_url":"https://api.github.com/users/gdyuldin/gists{/gist_id}","starred_url":"https://api.github.com/users/gdyuldin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gdyuldin/subscriptions","organizations_url":"https://api.github.com/users/gdyuldin/orgs","repos_url":"https://api.github.com/users/gdyuldin/repos","events_url":"https://api.github.com/users/gdyuldin/events{/privacy}","received_events_url":"https://api.github.com/users/gdyuldin/received_events","type":"User","site_admin":false},"body":"Let's move keypairs creation to test","created_at":"2016-03-23T12:53:14Z","updated_at":"2016-03-23T12:53:14Z","html_url":"https://github.com/Mirantis/mos-integration-tests/pull/207#discussion_r57153583","pull_request_url":"https://api.github.com/repos/Mirantis/mos-integration-tests/pulls/207","_links":{"self":{"href":"https://api.github.com/repos/Mirantis/mos-integration-tests/pulls/comments/57153583"},"html":{"href":"https://github.com/Mirantis/mos-integration-tests/pull/207#discussion_r57153583"},"pull_request":{"href":"https://api.github.com/repos/Mirantis/mos-integration-tests/pulls/207"}}},"pull_request":{"url":"https://api.github.com/repos/Mirantis/mos-integration-tests/pulls/207","id":63872109,"html_url":"https://github.com/Mirantis/mos-integration-tests/pull/207","diff_url":"https://github.com/Mirantis/mos-integration-tests/pull/207.diff","patch_url":"https://github.com/Mirantis/mos-integration-tests/pull/207.patch","issue_url":"https://api.github.com/repos/Mirantis/mos-integration-tests/issues/207","number":207,"state":"open","locked":false,"title":"Added 'test_boot_instances_on_different_tenants' test","user":{"login":"tkuterina","id":16207018,"avatar_url":"https://avatars.githubusercontent.com/u/16207018?v=3","gravatar_id":"","url":"https://api.github.com/users/tkuterina","html_url":"https://github.com/tkuterina","followers_url":"https://api.github.com/users/tkuterina/followers","following_url":"https://api.github.com/users/tkuterina/following{/other_user}","gists_url":"https://api.github.com/users/tkuterina/gists{/gist_id}","starred_url":"https://api.github.com/users/tkuterina/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tkuterina/subscriptions","organizations_url":"https://api.github.com/users/tkuterina/orgs","repos_url":"https://api.github.com/users/tkuterina/repos","events_url":"https://api.github.com/users/tkuterina/events{/privacy}","received_events_url":"https://api.github.com/users/tkuterina/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-03-23T12:12:12Z","updated_at":"2016-03-23T12:53:14Z","closed_at":null,"merged_at":null,"merge_commit_sha":"15580a2de8b2b6ee69684259a6ef8476ca69373f","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Mirantis/mos-integration-tests/pulls/207/commits","review_comments_url":"https://api.github.com/repos/Mirantis/mos-integration-tests/pulls/207/comments","review_comment_url":"https://api.github.com/repos/Mirantis/mos-integration-tests/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Mirantis/mos-integration-tests/issues/207/comments","statuses_url":"https://api.github.com/repos/Mirantis/mos-integration-tests/statuses/adcd1ac56da2ecf00fc8d27a14aba1e597a7ef97","head":{"label":"tkuterina:master","ref":"master","sha":"adcd1ac56da2ecf00fc8d27a14aba1e597a7ef97","user":{"login":"tkuterina","id":16207018,"avatar_url":"https://avatars.githubusercontent.com/u/16207018?v=3","gravatar_id":"","url":"https://api.github.com/users/tkuterina","html_url":"https://github.com/tkuterina","followers_url":"https://api.github.com/users/tkuterina/followers","following_url":"https://api.github.com/users/tkuterina/following{/other_user}","gists_url":"https://api.github.com/users/tkuterina/gists{/gist_id}","starred_url":"https://api.github.com/users/tkuterina/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tkuterina/subscriptions","organizations_url":"https://api.github.com/users/tkuterina/orgs","repos_url":"https://api.github.com/users/tkuterina/repos","events_url":"https://api.github.com/users/tkuterina/events{/privacy}","received_events_url":"https://api.github.com/users/tkuterina/received_events","type":"User","site_admin":false},"repo":{"id":47619330,"name":"mos-integration-tests","full_name":"tkuterina/mos-integration-tests","owner":{"login":"tkuterina","id":16207018,"avatar_url":"https://avatars.githubusercontent.com/u/16207018?v=3","gravatar_id":"","url":"https://api.github.com/users/tkuterina","html_url":"https://github.com/tkuterina","followers_url":"https://api.github.com/users/tkuterina/followers","following_url":"https://api.github.com/users/tkuterina/following{/other_user}","gists_url":"https://api.github.com/users/tkuterina/gists{/gist_id}","starred_url":"https://api.github.com/users/tkuterina/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tkuterina/subscriptions","organizations_url":"https://api.github.com/users/tkuterina/orgs","repos_url":"https://api.github.com/users/tkuterina/repos","events_url":"https://api.github.com/users/tkuterina/events{/privacy}","received_events_url":"https://api.github.com/users/tkuterina/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/tkuterina/mos-integration-tests","description":"","fork":true,"url":"https://api.github.com/repos/tkuterina/mos-integration-tests","forks_url":"https://api.github.com/repos/tkuterina/mos-integration-tests/forks","keys_url":"https://api.github.com/repos/tkuterina/mos-integration-tests/keys{/key_id}","collaborators_url":"https://api.github.com/repos/tkuterina/mos-integration-tests/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/tkuterina/mos-integration-tests/teams","hooks_url":"https://api.github.com/repos/tkuterina/mos-integration-tests/hooks","issue_events_url":"https://api.github.com/repos/tkuterina/mos-integration-tests/issues/events{/number}","events_url":"https://api.github.com/repos/tkuterina/mos-integration-tests/events","assignees_url":"https://api.github.com/repos/tkuterina/mos-integration-tests/assignees{/user}","branches_url":"https://api.github.com/repos/tkuterina/mos-integration-tests/branches{/branch}","tags_url":"https://api.github.com/repos/tkuterina/mos-integration-tests/tags","blobs_url":"https://api.github.com/repos/tkuterina/mos-integration-tests/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/tkuterina/mos-integration-tests/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/tkuterina/mos-integration-tests/git/refs{/sha}","trees_url":"https://api.github.com/repos/tkuterina/mos-integration-tests/git/trees{/sha}","statuses_url":"https://api.github.com/repos/tkuterina/mos-integration-tests/statuses/{sha}","languages_url":"https://api.github.com/repos/tkuterina/mos-integration-tests/languages","stargazers_url":"https://api.github.com/repos/tkuterina/mos-integration-tests/stargazers","contributors_url":"https://api.github.com/repos/tkuterina/mos-integration-tests/contributors","subscribers_url":"https://api.github.com/repos/tkuterina/mos-integration-tests/subscribers","subscription_url":"https://api.github.com/repos/tkuterina/mos-integration-tests/subscription","commits_url":"https://api.github.com/repos/tkuterina/mos-integration-tests/commits{/sha}","git_commits_url":"https://api.github.com/repos/tkuterina/mos-integration-tests/git/commits{/sha}","comments_url":"https://api.github.com/repos/tkuterina/mos-integration-tests/comments{/number}","issue_comment_url":"https://api.github.com/repos/tkuterina/mos-integration-tests/issues/comments{/number}","contents_url":"https://api.github.com/repos/tkuterina/mos-integration-tests/contents/{+path}","compare_url":"https://api.github.com/repos/tkuterina/mos-integration-tests/compare/{base}...{head}","merges_url":"https://api.github.com/repos/tkuterina/mos-integration-tests/merges","archive_url":"https://api.github.com/repos/tkuterina/mos-integration-tests/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/tkuterina/mos-integration-tests/downloads","issues_url":"https://api.github.com/repos/tkuterina/mos-integration-tests/issues{/number}","pulls_url":"https://api.github.com/repos/tkuterina/mos-integration-tests/pulls{/number}","milestones_url":"https://api.github.com/repos/tkuterina/mos-integration-tests/milestones{/number}","notifications_url":"https://api.github.com/repos/tkuterina/mos-integration-tests/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/tkuterina/mos-integration-tests/labels{/name}","releases_url":"https://api.github.com/repos/tkuterina/mos-integration-tests/releases{/id}","deployments_url":"https://api.github.com/repos/tkuterina/mos-integration-tests/deployments","created_at":"2015-12-08T11:59:42Z","updated_at":"2016-02-11T09:52:11Z","pushed_at":"2016-03-23T12:10:50Z","git_url":"git://github.com/tkuterina/mos-integration-tests.git","ssh_url":"git@github.com:tkuterina/mos-integration-tests.git","clone_url":"https://github.com/tkuterina/mos-integration-tests.git","svn_url":"https://github.com/tkuterina/mos-integration-tests","homepage":null,"size":1005,"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":"Mirantis:master","ref":"master","sha":"0bc88d1c8916880ee649755108ff2caee0edc7fe","user":{"login":"Mirantis","id":609319,"avatar_url":"https://avatars.githubusercontent.com/u/609319?v=3","gravatar_id":"","url":"https://api.github.com/users/Mirantis","html_url":"https://github.com/Mirantis","followers_url":"https://api.github.com/users/Mirantis/followers","following_url":"https://api.github.com/users/Mirantis/following{/other_user}","gists_url":"https://api.github.com/users/Mirantis/gists{/gist_id}","starred_url":"https://api.github.com/users/Mirantis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Mirantis/subscriptions","organizations_url":"https://api.github.com/users/Mirantis/orgs","repos_url":"https://api.github.com/users/Mirantis/repos","events_url":"https://api.github.com/users/Mirantis/events{/privacy}","received_events_url":"https://api.github.com/users/Mirantis/received_events","type":"Organization","site_admin":false},"repo":{"id":47408971,"name":"mos-integration-tests","full_name":"Mirantis/mos-integration-tests","owner":{"login":"Mirantis","id":609319,"avatar_url":"https://avatars.githubusercontent.com/u/609319?v=3","gravatar_id":"","url":"https://api.github.com/users/Mirantis","html_url":"https://github.com/Mirantis","followers_url":"https://api.github.com/users/Mirantis/followers","following_url":"https://api.github.com/users/Mirantis/following{/other_user}","gists_url":"https://api.github.com/users/Mirantis/gists{/gist_id}","starred_url":"https://api.github.com/users/Mirantis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Mirantis/subscriptions","organizations_url":"https://api.github.com/users/Mirantis/orgs","repos_url":"https://api.github.com/users/Mirantis/repos","events_url":"https://api.github.com/users/Mirantis/events{/privacy}","received_events_url":"https://api.github.com/users/Mirantis/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Mirantis/mos-integration-tests","description":"","fork":false,"url":"https://api.github.com/repos/Mirantis/mos-integration-tests","forks_url":"https://api.github.com/repos/Mirantis/mos-integration-tests/forks","keys_url":"https://api.github.com/repos/Mirantis/mos-integration-tests/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Mirantis/mos-integration-tests/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Mirantis/mos-integration-tests/teams","hooks_url":"https://api.github.com/repos/Mirantis/mos-integration-tests/hooks","issue_events_url":"https://api.github.com/repos/Mirantis/mos-integration-tests/issues/events{/number}","events_url":"https://api.github.com/repos/Mirantis/mos-integration-tests/events","assignees_url":"https://api.github.com/repos/Mirantis/mos-integration-tests/assignees{/user}","branches_url":"https://api.github.com/repos/Mirantis/mos-integration-tests/branches{/branch}","tags_url":"https://api.github.com/repos/Mirantis/mos-integration-tests/tags","blobs_url":"https://api.github.com/repos/Mirantis/mos-integration-tests/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Mirantis/mos-integration-tests/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Mirantis/mos-integration-tests/git/refs{/sha}","trees_url":"https://api.github.com/repos/Mirantis/mos-integration-tests/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Mirantis/mos-integration-tests/statuses/{sha}","languages_url":"https://api.github.com/repos/Mirantis/mos-integration-tests/languages","stargazers_url":"https://api.github.com/repos/Mirantis/mos-integration-tests/stargazers","contributors_url":"https://api.github.com/repos/Mirantis/mos-integration-tests/contributors","subscribers_url":"https://api.github.com/repos/Mirantis/mos-integration-tests/subscribers","subscription_url":"https://api.github.com/repos/Mirantis/mos-integration-tests/subscription","commits_url":"https://api.github.com/repos/Mirantis/mos-integration-tests/commits{/sha}","git_commits_url":"https://api.github.com/repos/Mirantis/mos-integration-tests/git/commits{/sha}","comments_url":"https://api.github.com/repos/Mirantis/mos-integration-tests/comments{/number}","issue_comment_url":"https://api.github.com/repos/Mirantis/mos-integration-tests/issues/comments{/number}","contents_url":"https://api.github.com/repos/Mirantis/mos-integration-tests/contents/{+path}","compare_url":"https://api.github.com/repos/Mirantis/mos-integration-tests/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Mirantis/mos-integration-tests/merges","archive_url":"https://api.github.com/repos/Mirantis/mos-integration-tests/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Mirantis/mos-integration-tests/downloads","issues_url":"https://api.github.com/repos/Mirantis/mos-integration-tests/issues{/number}","pulls_url":"https://api.github.com/repos/Mirantis/mos-integration-tests/pulls{/number}","milestones_url":"https://api.github.com/repos/Mirantis/mos-integration-tests/milestones{/number}","notifications_url":"https://api.github.com/repos/Mirantis/mos-integration-tests/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Mirantis/mos-integration-tests/labels{/name}","releases_url":"https://api.github.com/repos/Mirantis/mos-integration-tests/releases{/id}","deployments_url":"https://api.github.com/repos/Mirantis/mos-integration-tests/deployments","created_at":"2015-12-04T14:33:39Z","updated_at":"2016-03-11T14:14:34Z","pushed_at":"2016-03-23T12:41:47Z","git_url":"git://github.com/Mirantis/mos-integration-tests.git","ssh_url":"git@github.com:Mirantis/mos-integration-tests.git","clone_url":"https://github.com/Mirantis/mos-integration-tests.git","svn_url":"https://github.com/Mirantis/mos-integration-tests","homepage":null,"size":1043,"stargazers_count":8,"watchers_count":8,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":13,"mirror_url":null,"open_issues_count":1,"forks":13,"open_issues":1,"watchers":8,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Mirantis/mos-integration-tests/pulls/207"},"html":{"href":"https://github.com/Mirantis/mos-integration-tests/pull/207"},"issue":{"href":"https://api.github.com/repos/Mirantis/mos-integration-tests/issues/207"},"comments":{"href":"https://api.github.com/repos/Mirantis/mos-integration-tests/issues/207/comments"},"review_comments":{"href":"https://api.github.com/repos/Mirantis/mos-integration-tests/pulls/207/comments"},"review_comment":{"href":"https://api.github.com/repos/Mirantis/mos-integration-tests/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Mirantis/mos-integration-tests/pulls/207/commits"},"statuses":{"href":"https://api.github.com/repos/Mirantis/mos-integration-tests/statuses/adcd1ac56da2ecf00fc8d27a14aba1e597a7ef97"}}}}