{"action":"created","comment":{"url":"https://api.github.com/repos/Mirantis/mos-integration-tests/pulls/comments/49587174","id":49587174,"diff_hunk":"@@ -474,3 +474,147 @@ def test_ban_active_l3_agent_with_external_connectivity(self, router,\n                     from_node=node_to_ban)\n \n         assert (ping_result['sended'] - ping_result['received']) < 40\n+\n+    def reschedule_active_l3_agt(self, router_id, controller,\n+                                 l3_agent_controller):\n+        if controller != l3_agent_controller:\n+            other_controllers = [x for x\n+                                 in self.env.get_nodes_by_role('controller')\n+                                 if x != controller]\n+            with controller.ssh() as remote:\n+                for node in other_controllers:\n+                    remote.check_call(\n+                        'pcs resource ban p_neutron-l3-agent {}'.format(\n+                            node.data['fqdn']))\n+                self.wait_router_migrate(router_id,\n+                                         controller.data['fqdn'])\n+                for node in other_controllers:\n+                    remote.check_call(\n+                        'pcs resource clear p_neutron-l3-agent {}'.format(\n+                            node.data['fqdn']))\n+\n+    def check_l3_ha_agent_states(self, router_id):\n+        active_agents = self.get_active_l3_agents_for_router(router_id)\n+        err_msg = 'One and only one l3 agent should be active for the router'\n+        assert len(active_agents) == 1, err_msg\n+\n+        agents = self.os_conn.get_l3_for_router(router_id)['agents']\n+        standby_agents = [x for x in agents if x['ha_state'] == 'standby']\n+        err_msg = 'At least 2 controllers with standy agents are expected'","path":"mos_tests/neutron/python_tests/test_l3_ha.py","position":30,"original_position":30,"commit_id":"abdff6cc7804849be5c4e15654b9b284f473592b","original_commit_id":"abdff6cc7804849be5c4e15654b9b284f473592b","user":{"login":"rpromyshlennikov","id":16211429,"avatar_url":"https://avatars.githubusercontent.com/u/16211429?v=3","gravatar_id":"","url":"https://api.github.com/users/rpromyshlennikov","html_url":"https://github.com/rpromyshlennikov","followers_url":"https://api.github.com/users/rpromyshlennikov/followers","following_url":"https://api.github.com/users/rpromyshlennikov/following{/other_user}","gists_url":"https://api.github.com/users/rpromyshlennikov/gists{/gist_id}","starred_url":"https://api.github.com/users/rpromyshlennikov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rpromyshlennikov/subscriptions","organizations_url":"https://api.github.com/users/rpromyshlennikov/orgs","repos_url":"https://api.github.com/users/rpromyshlennikov/repos","events_url":"https://api.github.com/users/rpromyshlennikov/events{/privacy}","received_events_url":"https://api.github.com/users/rpromyshlennikov/received_events","type":"User","site_admin":false},"body":"standy -> standby","created_at":"2016-01-13T13:05:35Z","updated_at":"2016-01-13T13:05:35Z","html_url":"https://github.com/Mirantis/mos-integration-tests/pull/112#discussion_r49587174","pull_request_url":"https://api.github.com/repos/Mirantis/mos-integration-tests/pulls/112","_links":{"self":{"href":"https://api.github.com/repos/Mirantis/mos-integration-tests/pulls/comments/49587174"},"html":{"href":"https://github.com/Mirantis/mos-integration-tests/pull/112#discussion_r49587174"},"pull_request":{"href":"https://api.github.com/repos/Mirantis/mos-integration-tests/pulls/112"}}},"pull_request":{"url":"https://api.github.com/repos/Mirantis/mos-integration-tests/pulls/112","id":55888650,"html_url":"https://github.com/Mirantis/mos-integration-tests/pull/112","diff_url":"https://github.com/Mirantis/mos-integration-tests/pull/112.diff","patch_url":"https://github.com/Mirantis/mos-integration-tests/pull/112.patch","issue_url":"https://api.github.com/repos/Mirantis/mos-integration-tests/issues/112","number":112,"state":"open","locked":false,"title":"l3_ha destroy and reset of controllers","user":{"login":"TregubovYury","id":16223064,"avatar_url":"https://avatars.githubusercontent.com/u/16223064?v=3","gravatar_id":"","url":"https://api.github.com/users/TregubovYury","html_url":"https://github.com/TregubovYury","followers_url":"https://api.github.com/users/TregubovYury/followers","following_url":"https://api.github.com/users/TregubovYury/following{/other_user}","gists_url":"https://api.github.com/users/TregubovYury/gists{/gist_id}","starred_url":"https://api.github.com/users/TregubovYury/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TregubovYury/subscriptions","organizations_url":"https://api.github.com/users/TregubovYury/orgs","repos_url":"https://api.github.com/users/TregubovYury/repos","events_url":"https://api.github.com/users/TregubovYury/events{/privacy}","received_events_url":"https://api.github.com/users/TregubovYury/received_events","type":"User","site_admin":false},"body":"Author: Tregubov Yury\r\n\r\nAdded tests for QA-1197 and QA-1198","created_at":"2016-01-13T12:03:28Z","updated_at":"2016-01-13T13:05:35Z","closed_at":null,"merged_at":null,"merge_commit_sha":"32e9d5c7939340513e7fe9e5adff64c091c7d443","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Mirantis/mos-integration-tests/pulls/112/commits","review_comments_url":"https://api.github.com/repos/Mirantis/mos-integration-tests/pulls/112/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/112/comments","statuses_url":"https://api.github.com/repos/Mirantis/mos-integration-tests/statuses/abdff6cc7804849be5c4e15654b9b284f473592b","head":{"label":"TregubovYury:QA1197_QA1198","ref":"QA1197_QA1198","sha":"abdff6cc7804849be5c4e15654b9b284f473592b","user":{"login":"TregubovYury","id":16223064,"avatar_url":"https://avatars.githubusercontent.com/u/16223064?v=3","gravatar_id":"","url":"https://api.github.com/users/TregubovYury","html_url":"https://github.com/TregubovYury","followers_url":"https://api.github.com/users/TregubovYury/followers","following_url":"https://api.github.com/users/TregubovYury/following{/other_user}","gists_url":"https://api.github.com/users/TregubovYury/gists{/gist_id}","starred_url":"https://api.github.com/users/TregubovYury/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TregubovYury/subscriptions","organizations_url":"https://api.github.com/users/TregubovYury/orgs","repos_url":"https://api.github.com/users/TregubovYury/repos","events_url":"https://api.github.com/users/TregubovYury/events{/privacy}","received_events_url":"https://api.github.com/users/TregubovYury/received_events","type":"User","site_admin":false},"repo":{"id":48236525,"name":"mos-integration-tests","full_name":"TregubovYury/mos-integration-tests","owner":{"login":"TregubovYury","id":16223064,"avatar_url":"https://avatars.githubusercontent.com/u/16223064?v=3","gravatar_id":"","url":"https://api.github.com/users/TregubovYury","html_url":"https://github.com/TregubovYury","followers_url":"https://api.github.com/users/TregubovYury/followers","following_url":"https://api.github.com/users/TregubovYury/following{/other_user}","gists_url":"https://api.github.com/users/TregubovYury/gists{/gist_id}","starred_url":"https://api.github.com/users/TregubovYury/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TregubovYury/subscriptions","organizations_url":"https://api.github.com/users/TregubovYury/orgs","repos_url":"https://api.github.com/users/TregubovYury/repos","events_url":"https://api.github.com/users/TregubovYury/events{/privacy}","received_events_url":"https://api.github.com/users/TregubovYury/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/TregubovYury/mos-integration-tests","description":"","fork":true,"url":"https://api.github.com/repos/TregubovYury/mos-integration-tests","forks_url":"https://api.github.com/repos/TregubovYury/mos-integration-tests/forks","keys_url":"https://api.github.com/repos/TregubovYury/mos-integration-tests/keys{/key_id}","collaborators_url":"https://api.github.com/repos/TregubovYury/mos-integration-tests/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/TregubovYury/mos-integration-tests/teams","hooks_url":"https://api.github.com/repos/TregubovYury/mos-integration-tests/hooks","issue_events_url":"https://api.github.com/repos/TregubovYury/mos-integration-tests/issues/events{/number}","events_url":"https://api.github.com/repos/TregubovYury/mos-integration-tests/events","assignees_url":"https://api.github.com/repos/TregubovYury/mos-integration-tests/assignees{/user}","branches_url":"https://api.github.com/repos/TregubovYury/mos-integration-tests/branches{/branch}","tags_url":"https://api.github.com/repos/TregubovYury/mos-integration-tests/tags","blobs_url":"https://api.github.com/repos/TregubovYury/mos-integration-tests/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/TregubovYury/mos-integration-tests/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/TregubovYury/mos-integration-tests/git/refs{/sha}","trees_url":"https://api.github.com/repos/TregubovYury/mos-integration-tests/git/trees{/sha}","statuses_url":"https://api.github.com/repos/TregubovYury/mos-integration-tests/statuses/{sha}","languages_url":"https://api.github.com/repos/TregubovYury/mos-integration-tests/languages","stargazers_url":"https://api.github.com/repos/TregubovYury/mos-integration-tests/stargazers","contributors_url":"https://api.github.com/repos/TregubovYury/mos-integration-tests/contributors","subscribers_url":"https://api.github.com/repos/TregubovYury/mos-integration-tests/subscribers","subscription_url":"https://api.github.com/repos/TregubovYury/mos-integration-tests/subscription","commits_url":"https://api.github.com/repos/TregubovYury/mos-integration-tests/commits{/sha}","git_commits_url":"https://api.github.com/repos/TregubovYury/mos-integration-tests/git/commits{/sha}","comments_url":"https://api.github.com/repos/TregubovYury/mos-integration-tests/comments{/number}","issue_comment_url":"https://api.github.com/repos/TregubovYury/mos-integration-tests/issues/comments{/number}","contents_url":"https://api.github.com/repos/TregubovYury/mos-integration-tests/contents/{+path}","compare_url":"https://api.github.com/repos/TregubovYury/mos-integration-tests/compare/{base}...{head}","merges_url":"https://api.github.com/repos/TregubovYury/mos-integration-tests/merges","archive_url":"https://api.github.com/repos/TregubovYury/mos-integration-tests/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/TregubovYury/mos-integration-tests/downloads","issues_url":"https://api.github.com/repos/TregubovYury/mos-integration-tests/issues{/number}","pulls_url":"https://api.github.com/repos/TregubovYury/mos-integration-tests/pulls{/number}","milestones_url":"https://api.github.com/repos/TregubovYury/mos-integration-tests/milestones{/number}","notifications_url":"https://api.github.com/repos/TregubovYury/mos-integration-tests/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/TregubovYury/mos-integration-tests/labels{/name}","releases_url":"https://api.github.com/repos/TregubovYury/mos-integration-tests/releases{/id}","created_at":"2015-12-18T13:21:43Z","updated_at":"2016-01-13T11:55:14Z","pushed_at":"2016-01-13T12:38:16Z","git_url":"git://github.com/TregubovYury/mos-integration-tests.git","ssh_url":"git@github.com:TregubovYury/mos-integration-tests.git","clone_url":"https://github.com/TregubovYury/mos-integration-tests.git","svn_url":"https://github.com/TregubovYury/mos-integration-tests","homepage":null,"size":637,"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":"41467320a68c6834cdebdbe5adb8312cef9c9a21","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}","created_at":"2015-12-04T14:33:39Z","updated_at":"2016-01-11T09:29:11Z","pushed_at":"2016-01-13T12:38:16Z","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":666,"stargazers_count":3,"watchers_count":3,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":10,"mirror_url":null,"open_issues_count":3,"forks":10,"open_issues":3,"watchers":3,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Mirantis/mos-integration-tests/pulls/112"},"html":{"href":"https://github.com/Mirantis/mos-integration-tests/pull/112"},"issue":{"href":"https://api.github.com/repos/Mirantis/mos-integration-tests/issues/112"},"comments":{"href":"https://api.github.com/repos/Mirantis/mos-integration-tests/issues/112/comments"},"review_comments":{"href":"https://api.github.com/repos/Mirantis/mos-integration-tests/pulls/112/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/112/commits"},"statuses":{"href":"https://api.github.com/repos/Mirantis/mos-integration-tests/statuses/abdff6cc7804849be5c4e15654b9b284f473592b"}}}}