Bug 2142831 - [OCS-4.6] ocs-operator image does not contains the prometheus rules
Summary: [OCS-4.6] ocs-operator image does not contains the prometheus rules
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat OpenShift Container Storage
Classification: Red Hat Storage
Component: build
Version: 4.6
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: ---
Assignee: Tamil
QA Contact: Petr Balogh
URL:
Whiteboard:
Depends On: 2142763
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-11-15 11:03 UTC by Sunil Kumar Acharya
Modified: 2022-11-18 05:12 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-11-18 05:12:22 UTC
Embargoed:


Attachments (Terms of Use)

Description Sunil Kumar Acharya 2022-11-15 11:03:58 UTC
This bug was initially created as a copy of Bug #2142763

I am copying this bug because: 



Description of problem (please be detailed as possible and provide log
snippets):

Prometheus rules files are not getting copied correctly inside a container image.

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:

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

Comment 1 Deepshikha khandelwal 2022-11-18 05:12:22 UTC
The prometheus rules do not imply in 4.6.


Hence closing this bug.


Note You need to log in before you can comment on or make changes to this bug.