Feature request: Include restore error details in VirtualMachineFileRestore phase-wait failures
Maintainer antworten meist innerhalb von 1 Tag
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 3/5
- Geschätzter Aufwand
- 1-2 Tage
- Anfängerfreundlichkeit
- 67/100
Rechercherichtung
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.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
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
- Vorherrschende Sprache
- Python
- Sterne
- 28
- Forks
- 85
- Ø Merge
- 1 T. 3 Min.
- Gemergte PRs (30 T.)
- 30
Entwicklungsumgebung
- Kein Dockerfile und keine Docker-Compose-Datei
- Hat eine Pull-Request-Vorlage
- Beitragsleitfaden lesen
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus RedHatQE/openshift-python-wrapper
-
Dependency DashboardOffenStale
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 15/100
RedHatQE/openshift-python-wrapper#2180 · 125 Kommentare ·
Maintainer antworten meist innerhalb von 1 Tag
Alle Issues in RedHatQE/openshift-python-wrapper
Ähnliche Issues
-
Server mode OAuth2: 'NoneType' object is not subscriptable on every request after re-submitting the OAuth2 login while already logged inEvtl. vergeben @Rarasinhoo hat das heute übernommen. Offen
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 88/100
pgadmin-org/pgadmin4#10733 ·
Maintainer antworten meist innerhalb von 3 Tagen
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 76/100
aws-samples/sample-per-model-bedrock#752 ·
Maintainer antworten meist innerhalb von 1 Tag
-
lesson-submission pending-review
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 72/100
Ikalus1988/MisakaNet#4452 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
OCHA-DAP/topo-tools#250 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 77/100
Maintainer antworten meist innerhalb von 1 Tag