Description of problem (please be detailed as possible and provide log snippests): Add error handling for GetCurrentStorageClusterRef method that would otherwise cause a nil pointer dereference. Version of all relevant components (if applicable): ODF 4.10 Can this issue reproducible? Yes. Steps to Reproduce: 1. Deploy DR cluster 2. Deploy ODF over them 3. Create multiclusteroperator 4. Create mirror peer Actual results: In cases when spoke cluster name does not match any managed cluster, we need to return an error and handle it in the caller. Failing to do so will create nil pointer exception and program crashes. Expected results: It should error out and reconcile again.
This is a known corner case that causes pod to terminate when incorrect MirrorPeer CR is created. Adding devel_ack+ .
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory (Important: Red Hat OpenShift Data Foundation 4.10.0 enhancement, security & bug fix update), and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHSA-2022:1372