fix(aws): a failed create leaks its VPC because the rollback deletes the route table while it is still associated
Maintainer thường phản hồi trong vòng 3 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 76/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Đặc tả rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- aws, go
- Lĩnh vực
- cloud, infrastructure
Hướng nghiên cứu
Start with the cleanup stack in pkg/provider/aws/create.go, especially the route table setup around line 318, and compare its rollback order with delete.go. Add a fake EC2 client unit test that makes Create() fail after route table creation and checks that rollback deletes the VPC. The issue is done when cleanup removes the created resources and the test passes.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
When Create() fails after the route table exists, the rollback leaves the VPC behind. The cleanup stack in pkg/provider/aws/create.go unwinds in reverse order, so deleteRouteTable runs before deleteSubnet. The route table is still associated with the subnet (create.go:318), so DeleteRouteTable fails with DependencyViolation on every retry, and DeleteVpc then fails the same way.
Observed on 2026-11-26 in us-east-1: CloudTrail shows 10 DeleteRouteTable calls returning Client.DependencyViolation (17:11:03Z to 17:15:09Z), then 10 failed DeleteVpc calls. The VPC was deleted by hand.
Expected: the rollback removes every resource it created.
Acceptance: the rollback disassociates the route table first, or deletes the subnet before the route table (as delete.go already does for the public route table). A unit test with the fake EC2 client fails Create() after the route table step and asserts that the VPC is deleted.
- Ngôn ngữ chính
- Go
- Star
- 31
- Fork
- 20
- Merge trung bình
- 2 ngày 4 giờ
- Pull request đã merge (30 ngày)
- 11
Chuẩn bị môi trường
- Có Dockerfile hoặc tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của NVIDIA/holodeck
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 77/100
Maintainer thường phản hồi trong vòng 3 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
Maintainer thường phản hồi trong vòng 3 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
Maintainer thường phản hồi trong vòng 3 ngày
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 70/100
Maintainer thường phản hồi trong vòng 3 ngày
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 3 ngày
Tất cả issue của NVIDIA/holodeck
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 86/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
splunk/splunk-operator#1888 ·
-
documentation good first issue
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
FrederickFrance/igiveyouarendezvous#43 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
liftbridge-io/liftbridge#527 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
Maintainer thường phản hồi trong vòng 1 ngày