Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix MCV resource retrieval error conversion #873

Merged

Conversation

BenamarMk
Copy link
Member

@BenamarMk BenamarMk commented May 5, 2023

Previously, there was an issue where the conversion of MCV retrieval errors was not handled properly, leading to unexpected behavior in certain cases.

This PR fixes the issue by parsing the MCV.Status.Conditions[0].Message field for known error strings, Specifically not found and the server could not find the requested resource error messages. While this approach is effective for identifying errors in the short term, it is not a sustainable solution.

As a next step, an issue should be opened against the ACM View Controller to fix and improve the MCV status,
potentially by adding the last error to the MCV.Status field. This would allow for more comprehensive and accurate
error reporting, and reduce the need for temporary workarounds.

Fixes: bz:2138855 and bz:2170684

  • Raise an improvement request in Multicloud-operators-foundation for preserving original error in view_controller resource retrieval
    issue: here

Previously, there was an issue where the conversion of MCV retrieval errors was not
handled properly, leading to unexpected behavior in certain cases. This commit fixes
the issue by parsing the MCV condition message looking for errors formatted a certain way.

Signed-off-by: Benamar Mekhissi <[email protected]>
@BenamarMk BenamarMk force-pushed the fix-get_mcv-returning-misleading-error branch from 57e0cc2 to f5dffa5 Compare May 5, 2023 15:23
@BenamarMk BenamarMk changed the title Fix MCV retrieval error conversion Fix MCV resource retrieval error conversion May 5, 2023
@ShyamsundarR
Copy link
Member

Ran a round of VR based e2e tests using drenv, works as expected. Merging.

@ShyamsundarR ShyamsundarR merged commit 28a412d into RamenDR:main May 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants