Description of problem (please be detailed as possible and provide log snippets): The namespace openshift-storage is hardcoded for rook-ceph-mgr jobs under the prometheus-ceph-rules. This will only search for jobs in the openshift-storage namespace. We wanted to make this name configurable for Rosa because MS will not be using openshift-storage namespace anymore. It should be the namespace of storagecluster. Version of all relevant components (if applicable): Does this issue impact your ability to continue to work with the product (please explain in detail what is the user impact)? Is there any workaround available to the best of your knowledge? Rate from 1 - 5 the complexity of the scenario you performed that caused this bug (1 - very simple, 5 - very complex)? Can this issue reproducible? Can this issue reproduce from the UI? If this is a regression, please provide more details to justify this: Steps to Reproduce: 1. 2. 3. Actual results: Expected results: Additional info: link to the rule: https://github.com/red-hat-storage/ocs-operator/blob/83103d3b3f0bfbdd7446db1f7230de0e15ebbe02/controllers/storagecluster/prometheus/localcephrules.yaml#L45
Thanks Sunil. As a general comment, this feature is something where we need to change (almost) all the alert queries (to raise the alert for all the namespaces of 'rook-ceph-mgr' jobs are in) and require some testing as well. Once the feature is in the master OCS-Operator branch then we can target which releases of 4.13 and 4.12 to be backported.
Devel ack-ing this, but I am unable to change devel_ack flag
Added a PR for the query changes: https://github.com/red-hat-storage/ocs-operator/pull/2004
One more PR added to remove any embedded 'namespace' in the YAML file: https://github.com/red-hat-storage/ocs-operator/pull/2008
About testing, Check for resource named prometheus-ceph-rule under 'prometheusrules' kind `oc get prometheusrules prometheus-ceph-rules -o yaml` When/if storagesystem is deployed under a different namespace (other than 'openshift-storage'), we should not see any hardcoded name 'openshift-storage' in this yaml output/file. If StorageSystem is deployed under namespace 'openshift-storage', we will still see the name 'openshift-storage' in the rules.
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