{"action":"created","issue":{"url":"https://api.github.com/repos/ansible/ansible-modules-core/issues/1128","labels_url":"https://api.github.com/repos/ansible/ansible-modules-core/issues/1128/labels{/name}","comments_url":"https://api.github.com/repos/ansible/ansible-modules-core/issues/1128/comments","events_url":"https://api.github.com/repos/ansible/ansible-modules-core/issues/1128/events","html_url":"https://github.com/ansible/ansible-modules-core/pull/1128","id":68086189,"number":1128,"title":"fix delete ec2 asg failure because \"ScalingActivityInProgress\"","user":{"login":"schnipseljagd","id":289073,"avatar_url":"https://avatars.githubusercontent.com/u/289073?v=3","gravatar_id":"","url":"https://api.github.com/users/schnipseljagd","html_url":"https://github.com/schnipseljagd","followers_url":"https://api.github.com/users/schnipseljagd/followers","following_url":"https://api.github.com/users/schnipseljagd/following{/other_user}","gists_url":"https://api.github.com/users/schnipseljagd/gists{/gist_id}","starred_url":"https://api.github.com/users/schnipseljagd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/schnipseljagd/subscriptions","organizations_url":"https://api.github.com/users/schnipseljagd/orgs","repos_url":"https://api.github.com/users/schnipseljagd/repos","events_url":"https://api.github.com/users/schnipseljagd/events{/privacy}","received_events_url":"https://api.github.com/users/schnipseljagd/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/ansible/ansible-modules-core/labels/bugfix_pull_request","name":"bugfix_pull_request","color":"ded270"},{"url":"https://api.github.com/repos/ansible/ansible-modules-core/labels/cloud","name":"cloud","color":"c7def8"},{"url":"https://api.github.com/repos/ansible/ansible-modules-core/labels/needs_rebase","name":"needs_rebase","color":"eb6420"},{"url":"https://api.github.com/repos/ansible/ansible-modules-core/labels/P2","name":"P2","color":"fad8c7"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-04-13T12:34:57Z","updated_at":"2015-09-11T15:19:59Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/ansible/ansible-modules-core/pulls/1128","html_url":"https://github.com/ansible/ansible-modules-core/pull/1128","diff_url":"https://github.com/ansible/ansible-modules-core/pull/1128.diff","patch_url":"https://github.com/ansible/ansible-modules-core/pull/1128.patch"},"body":"When deleting an ec2 asg the status `ScalingActivityInProgress` may appear and should be retried.\r\n\r\n```\r\n10:52:16 TASK: [app | Deploy blue/green update of CMS app AMI - Gracefully terminate previous asg] *** \r\n10:54:17 failed: [localhost] => {\"failed\": true, \"parsed\": false}\r\n10:54:17 Traceback (most recent call last):\r\n10:54:17   File \"/var/lib/jenkins/.ansible/tmp/ansible-tmp-1428915136.17-78977212951736/ec2_asg\", line 2437, in <module>\r\n10:54:17     main()\r\n10:54:17   File \"/var/lib/jenkins/.ansible/tmp/ansible-tmp-1428915136.17-78977212951736/ec2_asg\", line 2428, in main\r\n10:54:17     changed = delete_autoscaling_group(connection, module)\r\n10:54:17   File \"/var/lib/jenkins/.ansible/tmp/ansible-tmp-1428915136.17-78977212951736/ec2_asg\", line 2255, in delete_autoscaling_group\r\n10:54:17     group.delete()\r\n10:54:17   File \"/var/lib/jenkins/workspace/stable-update-cmspool-staging/venv/lib/python2.6/site-packages/boto/ec2/autoscale/group.py\", line 300, in delete\r\n10:54:17     force_delete)\r\n10:54:17   File \"/var/lib/jenkins/workspace/stable-update-cmspool-staging/venv/lib/python2.6/site-packages/boto/ec2/autoscale/__init__.py\", line 210, in delete_auto_scaling_group\r\n10:54:17     return self.get_object('DeleteAutoScalingGroup', params, Request)\r\n10:54:17   File \"/var/lib/jenkins/workspace/stable-update-cmspool-staging/venv/lib/python2.6/site-packages/boto/connection.py\", line 1204, in get_object\r\n10:54:17     raise self.ResponseError(response.status, response.reason, body)\r\n10:54:17 boto.exception.BotoServerError: BotoServerError: 400 Bad Request\r\n10:54:17 <ErrorResponse xmlns=\"http://autoscaling.amazonaws.com/doc/2011-01-01/\">\r\n10:54:17   <Error>\r\n10:54:17     <Type>Sender</Type>\r\n10:54:17     <Code>ScalingActivityInProgress</Code>\r\n10:54:17     <Message>You cannot delete an AutoScalingGroup while there are scaling activities in progress for that group.</Message>\r\n10:54:17   </Error>\r\n10:54:17   <RequestId>aaa95c15-e1ba-11e4-8dc4-e336f2de97de</RequestId>\r\n10:54:17 </ErrorResponse>\r\n10:54:17 \r\n10:54:17 \r\n10:54:17 \r\n10:54:17 FATAL: all hosts have already failed -- aborting\r\n```"},"comment":{"url":"https://api.github.com/repos/ansible/ansible-modules-core/issues/comments/139573523","html_url":"https://github.com/ansible/ansible-modules-core/pull/1128#issuecomment-139573523","issue_url":"https://api.github.com/repos/ansible/ansible-modules-core/issues/1128","id":139573523,"user":{"login":"gregdek","id":252125,"avatar_url":"https://avatars.githubusercontent.com/u/252125?v=3","gravatar_id":"","url":"https://api.github.com/users/gregdek","html_url":"https://github.com/gregdek","followers_url":"https://api.github.com/users/gregdek/followers","following_url":"https://api.github.com/users/gregdek/following{/other_user}","gists_url":"https://api.github.com/users/gregdek/gists{/gist_id}","starred_url":"https://api.github.com/users/gregdek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gregdek/subscriptions","organizations_url":"https://api.github.com/users/gregdek/orgs","repos_url":"https://api.github.com/users/gregdek/repos","events_url":"https://api.github.com/users/gregdek/events{/privacy}","received_events_url":"https://api.github.com/users/gregdek/received_events","type":"User","site_admin":false},"created_at":"2015-09-11T15:19:59Z","updated_at":"2015-09-11T15:19:59Z","body":"A friendly reminder: this pull request has been marked as needing your action, and it hasn't been updated in the last month. \r\n\r\nIf you still believe that this PR applies, and you intend to address the issues with this PR, just let us know in the PR itself and we'll keep it open pending your changes.\r\n\r\nIf we receive no indication from you within a week, we will close this pull request."}}