Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pkg/destroy/aws: Destroy NAT gateways by VPC too
Sometimes these slip through without getting tagged. For example: $ aws ec2 describe-nat-gateways --filter Name=vpc-id,Values=vpc-030a62e79bc5bc0d3 --output json | jq '.NatGateways[] | {NatGatewayId, CreateTime, NumTags: (.Tags | length)}' { "NatGatewayId": "nat-0f85c55eae154e749", "CreateTime": "2019-03-28T15:10:30.000Z", "NumTags": 3 } { "NatGatewayId": "nat-0aba1c63954afbe32", "CreateTime": "2019-03-28T15:10:31.000Z", "NumTags": 3 } { "NatGatewayId": "nat-0b87f04521788a765", "CreateTime": "2019-03-28T15:12:06.000Z", "NumTags": 0 } { "NatGatewayId": "nat-0f26b4e1ba6ef97a5", "CreateTime": "2019-03-28T15:11:44.000Z", "NumTags": 0 } { "NatGatewayId": "nat-0f49c9061debf9777", "CreateTime": "2019-03-28T15:10:30.000Z", "NumTags": 3 } { "NatGatewayId": "nat-004b67f754f85ea4a", "CreateTime": "2019-03-28T15:11:43.000Z", "NumTags": 0 } In this case, the issue seems to have been the CI cluster evicting the setup container in the middle of its Terraform execution [1]: 2019/03/28 15:07:33 Running pod e2e-aws 2019/03/28 15:12:54 error: unable to signal to artifacts container to terminate in pod e2e-aws, triggering deletion: could not run remote command: unable to upgrade connection: container not found ("artifacts") 2019/03/28 15:12:54 error: unable to retrieve artifacts from pod e2e-aws: could not read gzipped artifacts: unable to upgrade connection: container not found ("artifacts") 2019/03/28 15:12:54 error: unable to signal to artifacts container to terminate in pod e2e-aws, triggering deletion: could not run remote command: pods "e2e-aws" is forbidden: pods "e2e-aws" not found 2019/03/28 15:12:54 error: unable to retrieve artifacts from pod e2e-aws: could not read gzipped artifacts: pods "e2e-aws" is forbidden: pods "e2e-aws" not found 2019/03/28 15:12:55 error: unable to signal to artifacts container to terminate in pod e2e-aws, triggering deletion: could not run remote command: pods "e2e-aws" is forbidden: pods "e2e-aws" not found 2019/03/28 15:12:55 error: unable to retrieve artifacts from pod e2e-aws: could not read gzipped artifacts: pods "e2e-aws" is forbidden: pods "e2e-aws" not found 2019/03/28 15:13:00 Ran for 6m10s error: could not run steps: template pod "e2e-aws" failed: pod e2e-aws was already deleted But deletion should be robust about that sort of thing. [1]: https://storage.googleapis.com/origin-ci-test/logs/release-openshift-origin-installer-e2e-aws-4.0/6259/build-log.txt
- Loading branch information