[enhancement] AWS spot: re-provision on spot interruption instead of failing after 40m dial timeout
维护者通常 3 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 5/5
- 预计耗时
- 一周以上
- 新手友好度
- 35/100
- Issue 类型
- 功能
- 描述清晰度
- 基本清楚
- 活跃度
- 活跃
- 技术栈
- aws, go
- 领域
- cloud, infrastructure
调研方向
Start with the SSH readiness loop in pkg/provider/util/command/command.go and trace how AWS instance state and spot placement are handled in pkg/provider/aws/data/spot.go and the AWS provider actions. Compare the existing unbounded dial behavior with the proposed interruption detection and bounded recovery options. Done means an interrupted instance is reported or reprovisioned as described, with a bounded retry policy and coverage for that behavior.
由索引模型根据 Issue 内容生成。
描述
Summary
When mapt provisions an AWS kind cluster with spot=true, there is no handling for spot interruptions. If AWS interrupts the instance, mapt cannot distinguish "instance is gone (interrupted)" from "instance is temporarily unreachable": the SSH readiness loop keeps dialing until the 40-minute remote timeout expires, and the run fails.
Verified absent in mapt v0.10 through v0.14.5 (checked 2026-10-15, incl. main).
Observed behavior
- Run:
mapt aws kind create --spot(as exposed by thetkn/infra-aws-kind.yamlTekton task withspot=true) - On spot interruption, logs stay at:
main-kind-readiness-... Dial N/inf failed: retrying
for the fullRemoteTimeout(40m), then the run exits failed - Every interruption costs a full 40-minute run and a failed pipeline, even on healthy infrastructure
Where
- Readiness dial loop:
pkg/provider/util/command/command.go—RemoteTimeout = "40m",DialErrorLimit: -1(unbounded dial retries) - AWS spot placement/provisioning:
pkg/provider/aws/data/spot.goand the AWS provider actions
Related, but not a fix for this gap
PR #898 (merged 2026-09-07, released in v0.14.5) fixed an EIP-association readiness bug that produced the same Dial N/inf failed: retrying signature when ec2:AssociateAddress failed. That fix is orthogonal: it does not handle interruption of an already-running spot instance.
Proposed direction (up to maintainers)
Detect the spot interruption (EC2 interruption notice / instance reaching terminated state) and re-provision: tear down the placement, request a new spot instance, re-run readiness. Bound it with a max re-provision attempt count so an interruption storm still fails fast.
Minimum viable change: when the instance ID is no longer running, stop dialing and fail immediately with a clear spot instance interrupted error instead of a 40m dial timeout. That alone converts an opaque timeout into an actionable failure and lets consumers (e.g. Tekton task retries) recover.
Why it matters
spot=true is a first-class provisioning mode (exposed by tkn/infra-aws-kind.yaml), and e2e CI pipelines rely on it for AWS kind clusters. Every interruption costs a full 40-minute failed run, and the only consumer-side recovery today is a full task retry. Re-provisioning upstream makes spot interruptions a non-event for CI consumers.
Reproduction
Interruptions are AWS-driven and cannot be triggered on demand; observed in e2e CI runs. Approximate repro: provision an AWS kind cluster with spot=true, and from another shell terminate the running EC2 instance (aws ec2 terminate-instances) while mapt is in the SSH-readiness phase. Mapt then dials the gone instance until the 40m timeout instead of re-provisioning.
Versions
Gap verified in v0.10 → v0.14.5; present on main as of 2026-10-15.
- 主要语言
- Go
- 星标
- 26
- 派生
- 41
- 平均合并
- 3 天 14 小时
- 30 天内合并 PR
- 27
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
redhat-developer/mapt 的其他 Issue
-
kind: v0.14.7 control-plane readiness block reads the wrong kubeconfig path (provision always fails)未关闭
难度 2/5 1-3 小时 新手友好度 88/100
redhat-developer/mapt#997 ·
维护者通常 3 天内回复
-
Host/username secret values contain trailing newlines, sanitization fix breaks SSH key可能重新可做 @abdulazeem-tk4vr 于 167 天前认领,目前没有进行中的 PR。 未关闭
难度 2/5 1-3 小时 新手友好度 72/100
redhat-developer/mapt#817 · 12 条评论 ·
维护者通常 3 天内回复
-
难度 4/5 3-5 天 新手友好度 45/100
redhat-developer/mapt#991 ·
维护者通常 3 天内回复
-
enhancement provider/AWS provider/IBMCLOUD target/openshift-snc
难度 4/5 3-5 天 新手友好度 57/100
redhat-developer/mapt#990 ·
维护者通常 3 天内回复
-
难度 4/5 3-5 天 新手友好度 48/100
redhat-developer/mapt#974 ·
维护者通常 3 天内回复
查看 redhat-developer/mapt 的全部 Issue
相似的 Issue
-
feat(arithmetization): update `arithmetization` to ZkC version `v1.2.38`可能已有人在做 @DavePearce 今天认领。 未关闭
难度 1/5 1 小时以内 新手友好度 78/100
LFDT-Lineth/lineth-monorepo#4679 ·
维护者通常 1 天内回复
-
macOS: MixMusic stalls as the GPU times out drawing frames, and the media keys fail to register at every start可能已有人在做 @fzn0x 今天认领。 未关闭bug priority: high
难度 2/5 1-3 小时 新手友好度 75/100
维护者通常 1 天内回复
-
funding: failure logs print `<nil>` error and zero channel ID可能已有人在做 @litbot-9000 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 90/100
lightningnetwork/lnd#11676 ·
维护者通常 1 天内回复
-
effort:s impact:low raised-by:reviewer risk:low
难度 2/5 1-3 小时 新手友好度 88/100
medici-finance/assay#8050 · 1 条评论 ·
维护者通常 1 天内回复
-
bug good first issue
难度 2/5 1-3 小时 新手友好度 85/100
维护者通常 1 天内回复