Server gets stuck in CrashLoopBackOff if restarted during first-time repository initialization
Maintainer thường phản hồi trong vòng 1 ngà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
- 72/100
Hướng nghiên cứu
Start in core/cmd/initialize/initialize.go at verifyExistingRepositories and trace how it handles a non-empty but incomplete Kopia directory after kopia repository create is interrupted. Use the reproduction steps with the sample at operator/config/samples/klio_v1alpha1_server.yaml to inspect recovery after restarting the Pod. Done means initialization can recover from this interrupted first start instead of repeatedly failing repository password verification.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Description
If the server Pod is restarted while it is initializing the repositories for
the first time, it never recovers. The /klio PVC is retained, the WAL
repository is already initialized and the Kopia directory is non-empty but
incomplete, so every following start fails and the Pod stays in
CrashLoopBackOff.
Steps to reproduce
The window is short, so the result is intermittent.
- Create a
Serverfromoperator/config/samples/klio_v1alpha1_server.yaml
in a new namespace. - As soon as the server container starts, force-delete the Pod while
kopia repository createis running:
kubectl delete pod <server>-klio-0 --grace-period=0 --force - The StatefulSet recreates the Pod with the retained, partially
initialized/kliovolume.
Actual behavior
verifyExistingRepositories (core/cmd/initialize/initialize.go) treats the
non-empty Kopia directory as an existing repository and tries to verify it:
WAL repository exists, verifying password
WAL repository password verified successfully
Kopia repository exists, verifying password
error connecting to repository: repository not initialized in the provided storage
Error: kopia repository exists but password verification failed: ...
The Pod exits and restarts with the same error indefinitely.
Evidence
ServerTierReconfiguration (e2e) hits this when its tier2 update lands while
Kopia init is still running. It fails with server Pod not ready after tier2 reconfiguration, and the server log shows the sequence above. Seen in:
- https://github.com/cloudnative-pg/klio/actions/runs/45379405296/job/138394270678
- https://github.com/cloudnative-pg/klio/actions/runs/45414545166/job/138517202938
- https://github.com/cloudnative-pg/klio/actions/runs/46001582793/job/140514366970
- https://github.com/cloudnative-pg/klio/actions/runs/46001582793/job/140526385248
- Ngôn ngữ chính
- Go
- Star
- 41
- Fork
- 10
- Merge trung bình
- 1 ngày 8 giờ
- Pull request đã merge (30 ngày)
- 171
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
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 cloudnative-pg/klio
-
Add support for a recovery window retention policyCó thể đã có người làm @gabriele-wolfox đã nhận hôm nay. Đang mở
cloudnative-pg/klio#757 · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Document how to verify the release artifactsCó thể đã có người làm @gabriele-wolfox đã nhận 4 ngày trước. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 35/100
cloudnative-pg/klio#735 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 48/100
cloudnative-pg/klio#656 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 55/100
cloudnative-pg/klio#611 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 25/100
cloudnative-pg/klio#513 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của cloudnative-pg/klio
Issue tương tự
-
[Bug]: Azure SAS signing uses local time instead of UTC, shifting validity window on non-UTC hostsCó thể đã có người làm @huanghaoyuanhhy đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
zilliztech/milvus-backup#1418 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
good first issue
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 86/100
eugenioenko/ttt#1909 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
ColumnIndex max truncation returns a value smaller than the real max when the prefix is all 0xFFĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
parquet-go/parquet-go#819 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 83/100
-
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