Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

aws: Ignore InvalidRouteTableID.NotFound errors during cluster deletion #16252

Merged
merged 1 commit into from
Jan 15, 2024

Conversation

hakman
Copy link
Member

@hakman hakman commented Jan 14, 2024

https://storage.googleapis.com/kubernetes-jenkins/logs/e2e-kops-aws-conformance-1-28/1746126431886249984/build-log.txt

Deleted kubectl config for e2e-e2e-kops-aws-conformance-1-28.test-cncf-aws.k8s.io

Deleted cluster: "e2e-e2e-kops-aws-conformance-1-28.test-cncf-aws.k8s.io"
Error: error from DescribeRouteTables: InvalidRouteTableID.NotFound: The routeTable ID 'rtb-0676c9cb5faa7c9c2' does not exist
	status code: 400, request id: c0edba9d-4053-441e-8a32-c1f304b46776

@k8s-ci-robot k8s-ci-robot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. labels Jan 14, 2024
@k8s-ci-robot k8s-ci-robot added the area/provider/aws Issues or PRs related to aws provider label Jan 14, 2024
@hakman
Copy link
Member Author

hakman commented Jan 14, 2024

/cc @rifelpet

@@ -806,7 +806,7 @@ func ListSubnets(cloud fi.Cloud, vpcID, clusterName string) ([]*resources.Resour

rtRequest := &ec2.DescribeRouteTablesInput{}
rtResponse, err := c.EC2().DescribeRouteTables(rtRequest)
if err != nil {
if err != nil && awsup.AWSErrorCode(err) != "InvalidRouteTableID.NotFound" {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the first for loop below this will panic because rtResponse will be nil. same with the other change.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good catch, fixed

@hakman hakman force-pushed the aws-route-table-id-not-found branch from d4f152d to fd86a0c Compare January 15, 2024 04:04
@k8s-ci-robot k8s-ci-robot added size/M Denotes a PR that changes 30-99 lines, ignoring generated files. and removed size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. labels Jan 15, 2024
@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Jan 15, 2024
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: rifelpet

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jan 15, 2024
@k8s-ci-robot k8s-ci-robot merged commit 63e5d6c into kubernetes:master Jan 15, 2024
21 checks passed
@k8s-ci-robot k8s-ci-robot added this to the v1.29 milestone Jan 15, 2024
@hakman hakman deleted the aws-route-table-id-not-found branch January 15, 2024 07:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. area/provider/aws Issues or PRs related to aws provider cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants