Feature request: Include restore error details in VirtualMachineFileRestore phase-wait failures
Mantenedores costumam responder em até 1 dia
Ninguém assumiu esta issue ainda.
Avaliação
- Dificuldade
- 3/5
- Tempo estimado
- 1-2 dias
- Facilidade para iniciantes
- 67/100
Direção de pesquisa
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.
Escrita pelo modelo de indexação a partir do texto da issue.
Descrição
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
- Linguagem predominante
- Python
- Estrelas
- 28
- Forks
- 85
- Merge médio
- 1d 3min
- PRs com merge (30d)
- 30
Preparar o ambiente
- Sem Dockerfile nem arquivo Docker Compose
- Tem um modelo de pull request
- Ler o guia de contribuição
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de RedHatQE/openshift-python-wrapper
-
Dependency DashboardAbertaStale
Dificuldade 4/5 3-5 dias Facilidade para iniciantes 15/100
RedHatQE/openshift-python-wrapper#2180 · 125 comentários ·
Mantenedores costumam responder em até 1 dia
Todas as issues de RedHatQE/openshift-python-wrapper
Issues semelhantes
-
Paraxial.trace returns NaN for an object at infinity when the entrance pupil is at the first surfaceAberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 75/100
Mantenedores costumam responder em até 1 dia
-
enhancement ios launcher
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 70/100
Mantenedores costumam responder em até 1 dia
-
Substrait consumer doesn't recognise `shift_left` / `shift_right` from functions_arithmetic.yamlAbertabug
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 76/100
apache/datafusion#27059 ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 85/100
loteran/Arctis-Sound-Manager#368 ·
Mantenedores costumam responder em até 1 dia
-
feed submission
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 65/100
MobilityData/mobility-database-catalogs#1787 ·
Mantenedores costumam responder em até 2 dias