Bug 2182375
Summary: | [MDR] Not able to fence DR clusters | ||
---|---|---|---|
Product: | [Red Hat Storage] Red Hat OpenShift Data Foundation | Reporter: | Parikshith <pbyregow> |
Component: | csi-addons | Assignee: | Niels de Vos <ndevos> |
Status: | CLOSED ERRATA | QA Contact: | Parikshith <pbyregow> |
Severity: | urgent | Docs Contact: | |
Priority: | unspecified | ||
Version: | 4.13 | CC: | hnallurv, kseeger, muagarwa, ndevos, ocs-bugs, odf-bz-bot, sbalusu |
Target Milestone: | --- | Keywords: | Regression |
Target Release: | ODF 4.13.0 | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | No Doc Update | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2023-06-21 15:25:01 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Parikshith
2023-03-28 13:12:11 UTC
The error comes from https://github.com/csi-addons/kubernetes-csi-addons/blob/main/apis/csiaddons/v1alpha1/networkfence_webhook.go#L64-L66 ``` if reflect.DeepEqual(n.Spec.Parameters, oldNetworkFence.Spec.Parameters) { allErrs = append(allErrs, field.Invalid(field.NewPath("spec").Child("parameters"), n.Spec.Parameters, "parameters cannot be changed")) } ``` So, if reflect.DeepEqual() returns true, the error is returned? I think it misses a ! Also observed this on IBM Z, fencing of the DR cluster was not successful. - lastTransitionTime: "2023-03-28T19:56:13Z" message: fencing operation not successful observedGeneration: 5 reason: FenceError status: "False" type: Fenced - lastTransitionTime: "2023-03-28T19:56:13Z" message: fencing operation not successful observedGeneration: 5 reason: FenceError status: "True" type: Clean 2023-03-28T19:58:58.950Z INFO controllers.DRCluster controllers/drcluster_controller.go:290 Nothing to update {Phase:Fencing Conditions:[{Type:Fenced Status:False ObservedGeneration:5 LastTransitionTime:2023-03-28 19:56:13 +0000 UTC Reason:FenceError Message:fencing operation not successful} {Type:Clean Status:True ObservedGeneration:5 LastTransitionTime:2023-03-28 19:56:13 +0000 UTC Reason:FenceError Message:fencing operation not successful} {Type:Validated Status:True ObservedGeneration:5 LastTransitionTime:2023-03-28 19:56:13 +0000 UTC Reason:Succeeded Message:Validated the cluster}]} {"name": "ocsm4205001", "rid": "b81d5c34-1531-4c46-a9f3-fa9ffe1aed39"} 2023-03-28T19:58:58.950Z INFO controllers.DRCluster controllers/drcluster_controller.go:149 reconcile exit {"name": "ocsm4205001", "rid": "b81d5c34-1531-4c46-a9f3-fa9ffe1aed39"} 2023-03-28T19:58:58.950Z ERROR controller/controller.go:326 Reconciler error {"controller": "drcluster", "controllerGroup": "ramendr.openshift.io", "controllerKind": "DRCluster", "DRCluster": {"name":"ocsm4205001"}, "namespace": "", "name": "ocsm4205001", "reconcileID": "64d82e9d-5b37-4ad8-965d-d519732d9bad", "error": "failed to handle cluster fencing: fencing operation result not successful"} sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).reconcileHandler /remote-source/deps/gomod/pkg/mod/sigs.k8s.io/controller-runtime.1/pkg/internal/controller/controller.go:326 sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).processNextWorkItem /remote-source/deps/gomod/pkg/mod/sigs.k8s.io/controller-runtime.1/pkg/internal/controller/controller.go:273 sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start.func2.2 /remote-source/deps/gomod/pkg/mod/sigs.k8s.io/controller-runtime.1/pkg/internal/controller/controller.go:234 @Sarakia, in which ODF version you have seen this issue? is it ODF 4.13? @mrajanna : Its ODF version v4.13.0-110.stable, same as mentioned n the BZ @sbalusu do you get the same error when you 'oc describe' the networkfence CR? A fix for this should be included in the next ODF build. Fixed with 4.13.0-114 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 (Red Hat OpenShift Data Foundation 4.13.0 enhancement and 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/RHBA-2023:3742 |