Bug 2142763
| Summary: | ocs-operator image does not contains the prometheus rules | ||
|---|---|---|---|
| Product: | [Red Hat Storage] Red Hat OpenShift Data Foundation | Reporter: | Nitin Goyal <nigoyal> |
| Component: | build | Assignee: | Boris Ranto <branto> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Shivam Durgbuns <sdurgbun> |
| Severity: | high | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 4.12 | CC: | assingh, ebenahar, mbukatov, muagarwa, ocs-bugs, odf-bz-bot, sheggodu, tdesala |
| Target Milestone: | --- | Keywords: | Regression |
| Target Release: | ODF 4.12.0 | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | 4.12.0-114 | Doc Type: | No Doc Update |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2023-02-08 14:06:28 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: | |||
| Bug Depends On: | |||
| Bug Blocks: | 2127186, 2138273, 2142462, 2142767, 2142787, 2142788, 2142793, 2142817, 2142831 | ||
The fix is now merged DS: https://gitlab.cee.redhat.com/ceph/rhodf/-/commit/ee638659dc2596448f8515eb45b6fb14c47a7e94 It will be available in the next build. Could you please fill in:
- affected version (based on your current knowledge)
- specify list of affected alerts, I assume it removes all alerts defined in ocs-operator component?
```
$ find . -name '*.libsonnet' | xargs cat | grep alert:
alert: 'ClusterObjectStoreState',
alert: 'OdfMirrorDaemonStatus',
alert: 'OdfPoolMirroringImageHealth',
alert: 'OdfPoolMirroringImageHealth',
alert: 'OdfPoolMirroringImageHealth',
alert: 'ODFPersistentVolumeMirrorStatus',
alert: 'ODFPersistentVolumeMirrorStatus',
alert: 'ObcQuotaBytesAlert',
alert: 'ObcQuotaObjectsAlert',
alert: 'ObcQuotaBytesExhausedAlert',
alert: 'ObcQuotaObjectsExhausedAlert',
alert: 'ClusterObjectStoreState',
```
The Prometheus rules directory is present in the ocs-operator image Verification Job: https://docs.google.com/document/d/12snxYCPn1YaqRv6vphDvgKXpf1BU_4lh3dsPI9Q_8QU/edit?usp=sharing |
Description of problem ====================== Prometheus rules files are not getting copied correctly inside a container image. Version of all relevant components ================================== Steps to Reproduce ================== 1. 2. 3. Actual results ============== Expected results ================ Additional info =============== {"level":"error","ts":1668494698.5665038,"logger":"controllers.StorageCluster","msg":"Prometheus rules file not found.","Request.Namespace":"openshift-storage","Request.Name":"ocs-storagecluster","error":"stat /ocs-prometheus-rules/prometheus-ocs-rules.yaml: not a directory","stacktrace":"github.com/red-hat-storage/ocs-operator/controllers/storagecluster.(*StorageClusterReconciler).reconcilePhases\n\t/remote-source/app/controllers/storagecluster/reconcile.go:529\ngithub.com/red-hat-storage/ocs-operator/controllers/storagecluster.(*StorageClusterReconciler).Reconcile\n\t/remote-source/app/controllers/storagecluster/reconcile.go:166\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Reconcile\n\t/remote-source/app/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller/controller.go:121\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).reconcileHandler\n\t/remote-source/app/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller/controller.go:320\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).processNextWorkItem\n\t/remote-source/app/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller/controller.go:273\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start.func2.2\n\t/remote-source/app/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller/controller.go:234"}