Feature request: Include restore error details in VirtualMachineFileRestore phase-wait failures
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue nà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
- 67/100
Hướng nghiên cứu
Read ocp_resources/virtual_machine_file_restore.py and inspect the existing wait behavior in ocp_resources/resource.py to choose the helper interface. Add focused tests for reaching the requested phase, failure with status.errorMessage, and failure without it. Done means the helper reports useful failure details while inherited wait_for_status() behavior remains unchanged for other callers and phases.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Summary
Add a restore-specific phase-wait helper to VirtualMachineFileRestore in a follow-up PR.
When a restore reaches Failed while a caller waits for a successful phase, include the operator-provided status.errorMessage in the failure details. This will make restore failures easier to diagnose without a separate status lookup.
Required changes
- Add the helper in
ocp_resources/virtual_machine_file_restore.py, outside the generated-code markers. - Detect the
Failedphase while waiting for the requested successful phase and reportstatus.errorMessagewhen available. - Handle an absent or empty error message without introducing a secondary exception.
- Preserve the inherited
wait_for_status()behavior for other callers and phases. - Document the helper and add focused tests.
The implementation can inspect ocp_resources/resource.py for the existing wait behavior before selecting the helper's interface.
Acceptance criteria
- A successful restore returns as documented when it reaches the requested phase.
- A failed restore reports the failed phase and the operator error message when available.
- Missing error details still produce a useful failure diagnostic.
- Existing wait behavior remains unchanged outside the new helper.
- Tests cover success, failure with an error message, and failure without an error message.
Context
Requested by @ema-aka-young for a separate PR, rather than expanding PR #2846.
- Current PR: https://github.com/RedHatQE/openshift-python-wrapper/pull/2846
- Follow-up request and review finding: https://github.com/RedHatQE/openshift-python-wrapper/pull/2846#discussion_r4413504086
- Related discussion cited by the requester: https://github.com/RedHatQE/openshift-python-wrapper/pull/2832#discussion_r4411540562
- Ngôn ngữ chính
- Python
- Star
- 28
- Fork
- 85
- Merge trung bình
- 1 ngày 3 phút
- Pull request đã merge (30 ngày)
- 30
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- 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 RedHatQE/openshift-python-wrapper
-
Dependency DashboardĐang mởStale
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 15/100
RedHatQE/openshift-python-wrapper#2180 · 125 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của RedHatQE/openshift-python-wrapper
Issue tương tự
-
New InternshipĐang mởnew_internship
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
-
get_graph warns that the oneway column is missing when no way has a oneway tagCó thể đã có người làm @HTenkanen đã nhận hôm nay. Đang mở
Độ 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
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
cython/cython#8110 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
fix: security 🔐 style: article/section 📝 system: data-mgmt 🗃️ system: security 🔐 system: software 💻
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
uabrc/uabrc.github.io#1267 ·
-
Link Checker ReportĐang mởBot Type: Bug Type: Documentation
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
Maintainer thường phản hồi trong vòng 1 ngày