Description of problem (please be detailed as possible and provide log snippests): External Cluster is created through JSON input provided in the form of `rook-ceph-external-cluster-details` secret. OCS Operator reads this secret and creates needed resources like Secrets, StorageClasses, ConfigMaps and External CephCluster-CR. These resources are expected to be updated when the JSON input secret is modified. While debugging BZ:#https://bugzilla.redhat.com/show_bug.cgi?id=1984735, we noticed that except for 'StorageClass' resources, none of the other resources are updated. Version of all relevant components (if applicable): OCS 4.8.x (any version) Does this issue impact your ability to continue to work with the product (please explain in detail what is the user impact)? No Is there any workaround available to the best of your knowledge? Manually updating each resource, which is tedious and error-prone. No will be short answer. Rate from 1 - 5 the complexity of the scenario you performed that caused this bug (1 - very simple, 5 - very complex)? 1 Can this issue reproducible? yes Can this issue reproduce from the UI? yes If this is a regression, please provide more details to justify this: Not a regression Steps to Reproduce: 1. Create an external cluster through the JSON input secret 2. Make sure the external cluster is connected successfully 3. Change the JSON input by editing the `rook-ceph-external-cluster-details` secret. Actual results: We can see that external cluster reconciles but none of the resources are updated (other than StorageClass resources) Expected results: All the external cluster resources updated with the modified input values. Additional info:
A partial fix, for this BZ, to update the monitoring endpoints, is already up, PR: https://github.com/openshift/ocs-operator/pull/1285 Rest is handled in this PR: https://github.com/openshift/ocs-operator/pull/1286
Configmaps ----------- rook-ceph-mon-endpoints Secrets -------- rook-ceph-mon rook-ceph-operator-creds rook-csi-rbd-node [optional] rook-ceph-dashboard-link rook-csi-rbd-provisioner rook-csi-cephfs-provisioner rook-csi-cephfs-node rgw-admin-ops-user ceph-rgw-tls-cert StorageClass ------------- ceph-rbd [optional] cephfs ceph-rgw Endpoints of CephCluster CR should be updated properly according to the JSON input.
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 (Moderate: Red Hat OpenShift Data Foundation 4.9.0 enhancement, security, 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/RHSA-2021:5086