[enhancement] AWS spot: re-provision on spot interruption instead of failing after 40m dial timeout
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ó
- 5/5
- Thời gian dự kiến
- Hơn một tuần
- Mức phù hợp với người mới
- 35/100
- Loại issue
- Tính năng
- Độ rõ ràng
- Khá 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 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.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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.
- Ngôn ngữ chính
- Go
- Star
- 26
- Fork
- 41
- Merge trung bình
- 3 ngày 14 giờ
- Pull request đã merge (30 ngày)
- 27
Chuẩn bị môi trường
Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.
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 redhat-developer/mapt
-
kind: v0.14.7 control-plane readiness block reads the wrong kubeconfig path (provision always fails)Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
redhat-developer/mapt#997 ·
Maintainer thường phản hồi trong vòng 3 ngày
-
Host/username secret values contain trailing newlines, sanitization fix breaks SSH keyCó thể làm lại được @abdulazeem-tk4vr đã nhận 167 ngày trước và không có pull request nào đang mở. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
redhat-developer/mapt#817 · 12 bình luận ·
Maintainer thường phản hồi trong vòng 3 ngày
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 45/100
redhat-developer/mapt#991 ·
Maintainer thường phản hồi trong vòng 3 ngày
-
openshift-snc: pick the latest published version when --version is not set (AWS and IBM Cloud)Đang mởenhancement provider/AWS provider/IBMCLOUD target/openshift-snc
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 57/100
redhat-developer/mapt#990 ·
Maintainer thường phản hồi trong vòng 3 ngày
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 48/100
redhat-developer/mapt#974 ·
Maintainer thường phản hồi trong vòng 3 ngày
Tất cả issue của redhat-developer/mapt
Issue tương tự
-
feat(arithmetization): update `arithmetization` to ZkC version `v1.2.38`Có thể đã có người làm @DavePearce đã nhận hôm nay. Đang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 78/100
LFDT-Lineth/lineth-monorepo#4679 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
macOS: MixMusic stalls as the GPU times out drawing frames, and the media keys fail to register at every startCó thể đã có người làm @fzn0x đã nhận hôm nay. Đang mởbug priority: high
Độ 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 1 ngày
-
funding: failure logs print `<nil>` error and zero channel IDCó thể đã có người làm @litbot-9000 đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 90/100
lightningnetwork/lnd#11676 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
effort:s impact:low raised-by:reviewer risk:low
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
medici-finance/assay#8050 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug good first issue
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 85/100
Maintainer thường phản hồi trong vòng 1 ngày