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"}
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