fix(aws): a failed create leaks its VPC because the rollback deletes the route table while it is still associated

Đang mở
#952 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

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

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. 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.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của NVIDIA/holodeck

Tất cả issue của NVIDIA/holodeck

Issue tương tự

Thêm issue về Go

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.