{"action":"opened","number":8,"pull_request":{"url":"https://api.github.com/repos/avocado-framework/avocado-ec2/pulls/8","id":240730545,"node_id":"MDExOlB1bGxSZXF1ZXN0MjQwNzMwNTQ1","html_url":"https://github.com/avocado-framework/avocado-ec2/pull/8","diff_url":"https://github.com/avocado-framework/avocado-ec2/pull/8.diff","patch_url":"https://github.com/avocado-framework/avocado-ec2/pull/8.patch","issue_url":"https://api.github.com/repos/avocado-framework/avocado-ec2/issues/8","number":8,"state":"open","locked":false,"title":"ignore exception if instance doesn't exist in terminate","user":{"login":"amoskong","id":309708,"node_id":"MDQ6VXNlcjMwOTcwOA==","avatar_url":"https://avatars0.githubusercontent.com/u/309708?v=4","gravatar_id":"","url":"https://api.github.com/users/amoskong","html_url":"https://github.com/amoskong","followers_url":"https://api.github.com/users/amoskong/followers","following_url":"https://api.github.com/users/amoskong/following{/other_user}","gists_url":"https://api.github.com/users/amoskong/gists{/gist_id}","starred_url":"https://api.github.com/users/amoskong/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amoskong/subscriptions","organizations_url":"https://api.github.com/users/amoskong/orgs","repos_url":"https://api.github.com/users/amoskong/repos","events_url":"https://api.github.com/users/amoskong/events{/privacy}","received_events_url":"https://api.github.com/users/amoskong/received_events","type":"User","site_admin":false},"body":"Sometimes EC2 failed to create an instance, the instance can't be available.\r\nProblem occurred if our code tries to terminate the instance.\r\n\r\nTraceback (most recent call last):\r\n  File \"/usr/lib64/python2.7/atexit.py\", line 24, in _run_exitfuncs\r\n    func(*targs, **kargs)\r\n  File \"/usr/lib/python2.7/site-packages/avocado_ec2/ec2_wrapper.py\", line 46, in clean_aws_resources_atexit\r\n    instance.terminate()\r\n  File \"/usr/lib/python2.7/site-packages/boto3/resources/factory.py\", line 455, in do_action\r\n    response = action(self, *args, **kwargs)\r\n  File \"/usr/lib/python2.7/site-packages/boto3/resources/action.py\", line 79, in __call__\r\n    response = getattr(parent.meta.client, operation_name)(**params)\r\n  File \"/usr/lib/python2.7/site-packages/botocore/client.py\", line 310, in _api_call\r\n    return self._make_api_call(operation_name, kwargs)\r\n  File \"/usr/lib/python2.7/site-packages/botocore/client.py\", line 395, in _make_api_call\r\n    raise ClientError(parsed_response, operation_name)\r\nClientError: An error occurred (InvalidInstanceID.NotFound) when calling the TerminateInstances operation: The instance ID 'i-0d0210cadfabc6eba' does not exist\r\n","created_at":"2018-12-24T07:07:23Z","updated_at":"2018-12-24T07:07:23Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/avocado-framework/avocado-ec2/pulls/8/commits","review_comments_url":"https://api.github.com/repos/avocado-framework/avocado-ec2/pulls/8/comments","review_comment_url":"https://api.github.com/repos/avocado-framework/avocado-ec2/pulls/comments{/number}","comments_url":"https://api.github.com/repos/avocado-framework/avocado-ec2/issues/8/comments","statuses_url":"https://api.github.com/repos/avocado-framework/avocado-ec2/statuses/f8129033e332dd5e88bb6327a5253acff64dc959","head":{"label":"amoskong:terminate_instance","ref":"terminate_instance","sha":"f8129033e332dd5e88bb6327a5253acff64dc959","user":{"login":"amoskong","id":309708,"node_id":"MDQ6VXNlcjMwOTcwOA==","avatar_url":"https://avatars0.githubusercontent.com/u/309708?v=4","gravatar_id":"","url":"https://api.github.com/users/amoskong","html_url":"https://github.com/amoskong","followers_url":"https://api.github.com/users/amoskong/followers","following_url":"https://api.github.com/users/amoskong/following{/other_user}","gists_url":"https://api.github.com/users/amoskong/gists{/gist_id}","starred_url":"https://api.github.com/users/amoskong/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amoskong/subscriptions","organizations_url":"https://api.github.com/users/amoskong/orgs","repos_url":"https://api.github.com/users/amoskong/repos","events_url":"https://api.github.com/users/amoskong/events{/privacy}","received_events_url":"https://api.github.com/users/amoskong/received_events","type":"User","site_admin":false},"repo":{"id":88573787,"node_id":"MDEwOlJlcG9zaXRvcnk4ODU3Mzc4Nw==","name":"avocado-ec2","full_name":"amoskong/avocado-ec2","private":false,"owner":{"login":"amoskong","id":309708,"node_id":"MDQ6VXNlcjMwOTcwOA==","avatar_url":"https://avatars0.githubusercontent.com/u/309708?v=4","gravatar_id":"","url":"https://api.github.com/users/amoskong","html_url":"https://github.com/amoskong","followers_url":"https://api.github.com/users/amoskong/followers","following_url":"https://api.github.com/users/amoskong/following{/other_user}","gists_url":"https://api.github.com/users/amoskong/gists{/gist_id}","starred_url":"https://api.github.com/users/amoskong/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amoskong/subscriptions","organizations_url":"https://api.github.com/users/amoskong/orgs","repos_url":"https://api.github.com/users/amoskong/repos","events_url":"https://api.github.com/users/amoskong/events{/privacy}","received_events_url":"https://api.github.com/users/amoskong/received_events","type":"User","site_admin":false},"html_url":"https://github.com/amoskong/avocado-ec2","description":"Avocado EC2 plugin","fork":true,"url":"https://api.github.com/repos/amoskong/avocado-ec2","forks_url":"https://api.github.com/repos/amoskong/avocado-ec2/forks","keys_url":"https://api.github.com/repos/amoskong/avocado-ec2/keys{/key_id}","collaborators_url":"https://api.github.com/repos/amoskong/avocado-ec2/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/amoskong/avocado-ec2/teams","hooks_url":"https://api.github.com/repos/amoskong/avocado-ec2/hooks","issue_events_url":"https://api.github.com/repos/amoskong/avocado-ec2/issues/events{/number}","events_url":"https://api.github.com/repos/amoskong/avocado-ec2/events","assignees_url":"https://api.github.com/repos/amoskong/avocado-ec2/assignees{/user}","branches_url":"https://api.github.com/repos/amoskong/avocado-ec2/branches{/branch}","tags_url":"https://api.github.com/repos/amoskong/avocado-ec2/tags","blobs_url":"https://api.github.com/repos/amoskong/avocado-ec2/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/amoskong/avocado-ec2/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/amoskong/avocado-ec2/git/refs{/sha}","trees_url":"https://api.github.com/repos/amoskong/avocado-ec2/git/trees{/sha}","statuses_url":"https://api.github.com/repos/amoskong/avocado-ec2/statuses/{sha}","languages_url":"https://api.github.com/repos/amoskong/avocado-ec2/languages","stargazers_url":"https://api.github.com/repos/amoskong/avocado-ec2/stargazers","contributors_url":"https://api.github.com/repos/amoskong/avocado-ec2/contributors","subscribers_url":"https://api.github.com/repos/amoskong/avocado-ec2/subscribers","subscription_url":"https://api.github.com/repos/amoskong/avocado-ec2/subscription","commits_url":"https://api.github.com/repos/amoskong/avocado-ec2/commits{/sha}","git_commits_url":"https://api.github.com/repos/amoskong/avocado-ec2/git/commits{/sha}","comments_url":"https://api.github.com/repos/amoskong/avocado-ec2/comments{/number}","issue_comment_url":"https://api.github.com/repos/amoskong/avocado-ec2/issues/comments{/number}","contents_url":"https://api.github.com/repos/amoskong/avocado-ec2/contents/{+path}","compare_url":"https://api.github.com/repos/amoskong/avocado-ec2/compare/{base}...{head}","merges_url":"https://api.github.com/repos/amoskong/avocado-ec2/merges","archive_url":"https://api.github.com/repos/amoskong/avocado-ec2/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/amoskong/avocado-ec2/downloads","issues_url":"https://api.github.com/repos/amoskong/avocado-ec2/issues{/number}","pulls_url":"https://api.github.com/repos/amoskong/avocado-ec2/pulls{/number}","milestones_url":"https://api.github.com/repos/amoskong/avocado-ec2/milestones{/number}","notifications_url":"https://api.github.com/repos/amoskong/avocado-ec2/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/amoskong/avocado-ec2/labels{/name}","releases_url":"https://api.github.com/repos/amoskong/avocado-ec2/releases{/id}","deployments_url":"https://api.github.com/repos/amoskong/avocado-ec2/deployments","created_at":"2017-04-18T02:45:39Z","updated_at":"2017-04-18T02:45:41Z","pushed_at":"2018-12-24T07:06:36Z","git_url":"git://github.com/amoskong/avocado-ec2.git","ssh_url":"git@github.com:amoskong/avocado-ec2.git","clone_url":"https://github.com/amoskong/avocado-ec2.git","svn_url":"https://github.com/amoskong/avocado-ec2","homepage":null,"size":22,"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":"gpl-2.0","name":"GNU General Public License v2.0","spdx_id":"GPL-2.0","url":"https://api.github.com/licenses/gpl-2.0","node_id":"MDc6TGljZW5zZTg="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"avocado-framework:master","ref":"master","sha":"6565c56979c5a2046eb4a1660a498b694e3f1cc0","user":{"login":"avocado-framework","id":7245719,"node_id":"MDEyOk9yZ2FuaXphdGlvbjcyNDU3MTk=","avatar_url":"https://avatars3.githubusercontent.com/u/7245719?v=4","gravatar_id":"","url":"https://api.github.com/users/avocado-framework","html_url":"https://github.com/avocado-framework","followers_url":"https://api.github.com/users/avocado-framework/followers","following_url":"https://api.github.com/users/avocado-framework/following{/other_user}","gists_url":"https://api.github.com/users/avocado-framework/gists{/gist_id}","starred_url":"https://api.github.com/users/avocado-framework/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/avocado-framework/subscriptions","organizations_url":"https://api.github.com/users/avocado-framework/orgs","repos_url":"https://api.github.com/users/avocado-framework/repos","events_url":"https://api.github.com/users/avocado-framework/events{/privacy}","received_events_url":"https://api.github.com/users/avocado-framework/received_events","type":"Organization","site_admin":false},"repo":{"id":50549275,"node_id":"MDEwOlJlcG9zaXRvcnk1MDU0OTI3NQ==","name":"avocado-ec2","full_name":"avocado-framework/avocado-ec2","private":false,"owner":{"login":"avocado-framework","id":7245719,"node_id":"MDEyOk9yZ2FuaXphdGlvbjcyNDU3MTk=","avatar_url":"https://avatars3.githubusercontent.com/u/7245719?v=4","gravatar_id":"","url":"https://api.github.com/users/avocado-framework","html_url":"https://github.com/avocado-framework","followers_url":"https://api.github.com/users/avocado-framework/followers","following_url":"https://api.github.com/users/avocado-framework/following{/other_user}","gists_url":"https://api.github.com/users/avocado-framework/gists{/gist_id}","starred_url":"https://api.github.com/users/avocado-framework/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/avocado-framework/subscriptions","organizations_url":"https://api.github.com/users/avocado-framework/orgs","repos_url":"https://api.github.com/users/avocado-framework/repos","events_url":"https://api.github.com/users/avocado-framework/events{/privacy}","received_events_url":"https://api.github.com/users/avocado-framework/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/avocado-framework/avocado-ec2","description":"Avocado EC2 plugin","fork":false,"url":"https://api.github.com/repos/avocado-framework/avocado-ec2","forks_url":"https://api.github.com/repos/avocado-framework/avocado-ec2/forks","keys_url":"https://api.github.com/repos/avocado-framework/avocado-ec2/keys{/key_id}","collaborators_url":"https://api.github.com/repos/avocado-framework/avocado-ec2/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/avocado-framework/avocado-ec2/teams","hooks_url":"https://api.github.com/repos/avocado-framework/avocado-ec2/hooks","issue_events_url":"https://api.github.com/repos/avocado-framework/avocado-ec2/issues/events{/number}","events_url":"https://api.github.com/repos/avocado-framework/avocado-ec2/events","assignees_url":"https://api.github.com/repos/avocado-framework/avocado-ec2/assignees{/user}","branches_url":"https://api.github.com/repos/avocado-framework/avocado-ec2/branches{/branch}","tags_url":"https://api.github.com/repos/avocado-framework/avocado-ec2/tags","blobs_url":"https://api.github.com/repos/avocado-framework/avocado-ec2/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/avocado-framework/avocado-ec2/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/avocado-framework/avocado-ec2/git/refs{/sha}","trees_url":"https://api.github.com/repos/avocado-framework/avocado-ec2/git/trees{/sha}","statuses_url":"https://api.github.com/repos/avocado-framework/avocado-ec2/statuses/{sha}","languages_url":"https://api.github.com/repos/avocado-framework/avocado-ec2/languages","stargazers_url":"https://api.github.com/repos/avocado-framework/avocado-ec2/stargazers","contributors_url":"https://api.github.com/repos/avocado-framework/avocado-ec2/contributors","subscribers_url":"https://api.github.com/repos/avocado-framework/avocado-ec2/subscribers","subscription_url":"https://api.github.com/repos/avocado-framework/avocado-ec2/subscription","commits_url":"https://api.github.com/repos/avocado-framework/avocado-ec2/commits{/sha}","git_commits_url":"https://api.github.com/repos/avocado-framework/avocado-ec2/git/commits{/sha}","comments_url":"https://api.github.com/repos/avocado-framework/avocado-ec2/comments{/number}","issue_comment_url":"https://api.github.com/repos/avocado-framework/avocado-ec2/issues/comments{/number}","contents_url":"https://api.github.com/repos/avocado-framework/avocado-ec2/contents/{+path}","compare_url":"https://api.github.com/repos/avocado-framework/avocado-ec2/compare/{base}...{head}","merges_url":"https://api.github.com/repos/avocado-framework/avocado-ec2/merges","archive_url":"https://api.github.com/repos/avocado-framework/avocado-ec2/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/avocado-framework/avocado-ec2/downloads","issues_url":"https://api.github.com/repos/avocado-framework/avocado-ec2/issues{/number}","pulls_url":"https://api.github.com/repos/avocado-framework/avocado-ec2/pulls{/number}","milestones_url":"https://api.github.com/repos/avocado-framework/avocado-ec2/milestones{/number}","notifications_url":"https://api.github.com/repos/avocado-framework/avocado-ec2/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/avocado-framework/avocado-ec2/labels{/name}","releases_url":"https://api.github.com/repos/avocado-framework/avocado-ec2/releases{/id}","deployments_url":"https://api.github.com/repos/avocado-framework/avocado-ec2/deployments","created_at":"2016-01-28T02:46:20Z","updated_at":"2018-08-03T12:42:26Z","pushed_at":"2018-12-11T08:58:05Z","git_url":"git://github.com/avocado-framework/avocado-ec2.git","ssh_url":"git@github.com:avocado-framework/avocado-ec2.git","clone_url":"https://github.com/avocado-framework/avocado-ec2.git","svn_url":"https://github.com/avocado-framework/avocado-ec2","homepage":null,"size":17,"stargazers_count":2,"watchers_count":2,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"archived":false,"open_issues_count":2,"license":{"key":"gpl-2.0","name":"GNU General Public License v2.0","spdx_id":"GPL-2.0","url":"https://api.github.com/licenses/gpl-2.0","node_id":"MDc6TGljZW5zZTg="},"forks":3,"open_issues":2,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/avocado-framework/avocado-ec2/pulls/8"},"html":{"href":"https://github.com/avocado-framework/avocado-ec2/pull/8"},"issue":{"href":"https://api.github.com/repos/avocado-framework/avocado-ec2/issues/8"},"comments":{"href":"https://api.github.com/repos/avocado-framework/avocado-ec2/issues/8/comments"},"review_comments":{"href":"https://api.github.com/repos/avocado-framework/avocado-ec2/pulls/8/comments"},"review_comment":{"href":"https://api.github.com/repos/avocado-framework/avocado-ec2/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/avocado-framework/avocado-ec2/pulls/8/commits"},"statuses":{"href":"https://api.github.com/repos/avocado-framework/avocado-ec2/statuses/f8129033e332dd5e88bb6327a5253acff64dc959"}},"author_association":"CONTRIBUTOR","merged":false,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":true,"commits":1,"additions":6,"deletions":1,"changed_files":1}}
{"actor":{"display_login":"amoskong"}}