Feature request: Include restore error details in VirtualMachineFileRestore phase-wait failures
Les mainteneurs répondent en général sous 1 jour
Personne n'a encore pris cette issue.
Évaluation
- Difficulté
- 3/5
- Temps estimé
- 1-2 jours
- Accessibilité débutants
- 67/100
Piste de recherche
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.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Description
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
- Langage dominant
- Python
- Étoiles
- 28
- Forks
- 85
- Merge moyen
- 1 j 3 min
- PR mergées (30 j)
- 30
Préparer son environnement
- Aucun Dockerfile ni fichier Docker Compose
- Propose un modèle de pull request
- Lire le guide de contribution
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de RedHatQE/openshift-python-wrapper
-
Dependency DashboardOuverteStale
Difficulté 4/5 3-5 jours Accessibilité débutants 15/100
RedHatQE/openshift-python-wrapper#2180 · 125 commentaires ·
Les mainteneurs répondent en général sous 1 jour
Toutes les issues de RedHatQE/openshift-python-wrapper
Issues similaires
-
docs: Release playbookOuvertedocumentation
Difficulté 2/5 1-3 heures Accessibilité débutants 76/100
awslabs/social-messaging-agent-runtime-toolkit#140 ·
Les mainteneurs répondent en général sous 1 jour
-
subtask
Difficulté 2/5 1-3 heures Accessibilité débutants 72/100
fga-eps-mds/2026.2-MeasureSoftGram-DOC#187 ·
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 2/5 1-3 heures Accessibilité débutants 83/100
txn2/mcp-data-platform#2493 ·
Les mainteneurs répondent en général sous 1 jour
-
bug
Difficulté 2/5 1-3 heures Accessibilité débutants 75/100
YO-WHATS-UP2/minigit#78 ·
Les mainteneurs répondent en général sous 3 jours
-
documentation
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100
liberation-data/drivine-python#432 ·
Les mainteneurs répondent en général sous 1 jour