Bug 2176359

Summary: [4.8.z clone] Move the defaults for rookceph operator from configmap to csv
Product: [Red Hat Storage] Red Hat OpenShift Container Storage Reporter: Nikhil Ladha <nladha>
Component: ocs-operatorAssignee: Nikhil Ladha <nladha>
Status: CLOSED ERRATA QA Contact: Joy John Pinto <jopinto>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 4.8CC: ebenahar, kramdoss, mparida, nladha, ocs-bugs, rar, sheggodu
Target Milestone: ---Keywords: ZStream
Target Release: OCS 4.8.19   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of: 2176012 Environment:
Last Closed: 2023-05-03 08:27:37 UTC Type: ---
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: 2176012    
Bug Blocks: 2176356, 2176357    

Description Nikhil Ladha 2023-03-08 06:01:07 UTC
+++ This bug was initially created as a clone of Bug #2176012 +++

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

Currently upgraded cluster do not have CSI_LOG_LEVEL: 5 in rook-ceph-operator-config. 
This leads to csi pods having log level of 0, which makes it very hard to debug. 

Also, CSI_ENABLE_CSIADDONS is false by default and we need to enable it manually.

Both the above issues can be resolved by backporting pr https://github.com/red-hat-storage/ocs-operator/pull/1648 
and moving defaults to csv.

Actual results:
Upgraded cluster do not have necessary defaults.

Expected results:
Upgraded clusters will automatically get these defaults from csv.

Additional info:

N.A

Comment 9 Joy John Pinto 2023-04-20 06:24:45 UTC
Verified with OCP 4.9.0-0.nightly-2023-03-29-144712 and ocs-operator.v4.8.19   

"CSI_LOG_LEVEL" value is updated to 5, hence closing the bug

name: rook-ceph-operator-6c76597d64-6fkpb
  namespace: openshift-storage
  ownerReferences:
  - apiVersion: apps/v1
    blockOwnerDeletion: true
    controller: true
    kind: ReplicaSet
    name: rook-ceph-operator-6c76597d64
    uid: 965f3c08-c42c-47a0-80eb-d7b83a0721fd
  resourceVersion: "321659"
  uid: ca3fe72d-a5d3-49e4-9856-bf49b7488a21
spec:
  containers:
  - args:
    - ceph
    - operator
    env:
  ......

    - name: CSI_LOG_LEVEL
      value: "5"
    - name: NODE_NAME
      valueFrom:


rook ceph operator pod yaml: 
http://magna002.ceph.redhat.com/ocsci-jenkins/openshift-clusters/j-196ai3c33-uo/j-196ai3c33-uo_20230331T135958/logs/failed_testcase_ocs_logs_1680274925/test_scale_obc_post_upgrade_ocs_logs/ocs_must_gather/quay-io-rhceph-dev-ocs-must-gather-sha256-39f1bec52e951ec538f36e90cf033f417c0098a0e235f62a51b6282133d9b872/namespaces/openshift-storage/pods/rook-ceph-operator-6c76597d64-6fkpb/rook-ceph-operator-6c76597d64-6fkpb.yaml

Comment 13 errata-xmlrpc 2023-05-03 08:27:37 UTC
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 Container Storage 4.8.19 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:2092