Feature request: Include restore error details in VirtualMachineFileRestore phase-wait failures
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Aptitud para principiantes
- 67/100
Línea de trabajo
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.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
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
- Lenguaje dominante
- Python
- Estrellas
- 28
- Forks
- 85
- Merge medio
- 1 d 3 min
- PR fusionados (30 d)
- 30
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de RedHatQE/openshift-python-wrapper
-
Dependency DashboardAbiertoStale
Dificultad 4/5 3-5 días Aptitud para principiantes 15/100
RedHatQE/openshift-python-wrapper#2180 · 125 comentarios ·
Los mantenedores suelen responder en 1 día
Todos los issues de RedHatQE/openshift-python-wrapper
Issues similares
-
area:cli bug difficulty:1
Dificultad 1/5 1-3 horas Aptitud para principiantes 87/100
MakazhanAlpamys/Soup#2491 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
microsoft/onnxscript#3155 ·
Los mantenedores suelen responder en 4 días
-
IFEval nth-paragraph checker reads the wrong paragraph when a blank separator is presentPosiblemente ocupada @chetana1410 la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
EleutherAI/lm-evaluation-harness#4530 ·
Los mantenedores suelen responder en 1 día
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 84/100
Los mantenedores suelen responder en 1 día
-
sv_SE vat_id() has 14 digits: the "16" organisation number prefix is keptPosiblemente ocupada @kevin9327 la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
Los mantenedores suelen responder en 19 días