fix(aws): a failed create leaks its VPC because the rollback deletes the route table while it is still associated
维护者通常 3 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 新手友好度
- 76/100
- Issue 类型
- 缺陷
- 描述清晰度
- 描述清楚
- 活跃度
- 活跃
- 技术栈
- aws, go
- 领域
- cloud, infrastructure
调研方向
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.
由索引模型根据 Issue 内容生成。
描述
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.
- 主要语言
- Go
- 星标
- 31
- 派生
- 20
- 平均合并
- 2 天 4 小时
- 30 天内合并 PR
- 11
环境准备
- 提供 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
NVIDIA/holodeck 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 77/100
维护者通常 3 天内回复
-
难度 2/5 1-3 小时 新手友好度 84/100
维护者通常 3 天内回复
-
难度 2/5 1-3 小时 新手友好度 75/100
维护者通常 3 天内回复
-
难度 3/5 1-2 天 新手友好度 70/100
维护者通常 3 天内回复
-
难度 3/5 1-2 天 新手友好度 78/100
维护者通常 3 天内回复
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 86/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 76/100
splunk/splunk-operator#1888 ·
-
documentation good first issue
难度 2/5 1-3 小时 新手友好度 88/100
FrederickFrance/igiveyouarendezvous#43 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 72/100
liftbridge-io/liftbridge#527 ·
维护者通常 1 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 65/100
维护者通常 1 天内回复