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

オープン
#952 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 3 日以内に返信

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
76/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
aws, go

調査の方向性

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時間
マージ済み PR(30日)
11

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

NVIDIA/holodeck のほかの issue

NVIDIA/holodeck の issue をすべて見る

似ている issue

Go の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。