Bug 2195982

Summary: [External Mode]: cephcluster has incorrect conditions
Product: [Red Hat Storage] Red Hat OpenShift Data Foundation Reporter: Vijay Avuthu <vavuthu>
Component: rookAssignee: Travis Nielsen <tnielsen>
Status: CLOSED INSUFFICIENT_DATA QA Contact: Neha Berry <nberry>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 4.12CC: muagarwa, ocs-bugs, odf-bz-bot
Target Milestone: ---Flags: tnielsen: needinfo? (vavuthu)
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-06-23 22:01:54 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:

Description Vijay Avuthu 2023-05-07 07:52:26 UTC
Description of problem (please be detailed as possible and provide log
snippests):

cephcluster has incorrect conditions 


Version of all relevant components (if applicable):
odf-operator.v4.12.2-rhodf


Does this issue impact your ability to continue to work with the product
(please explain in detail what is the user impact)?
No

Is there any workaround available to the best of your knowledge?
No

Rate from 1 - 5 the complexity of the scenario you performed that caused this
bug (1 - very simple, 5 - very complex)?
1

Can this issue reproducible?
1/1

Can this issue reproduce from the UI?
Not tried

If this is a regression, please provide more details to justify this:


Steps to Reproduce:
1. install odf with external mode using ocs-ci
2. check the cephcluster conditions
3.


Actual results:

$ oc get cephcluster -o yaml
apiVersion: v1
items:
- apiVersion: ceph.rook.io/v1
  kind: CephCluster
  metadata:
    creationTimestamp: "2023-05-07T04:39:03Z"
    finalizers:
    - cephcluster.ceph.rook.io
    generation: 1
    labels:
      app: ocs-external-storagecluster
    name: ocs-external-storagecluster-cephcluster
    namespace: openshift-storage
    ownerReferences:
    - apiVersion: ocs.openshift.io/v1
      blockOwnerDeletion: true
      controller: true
      kind: StorageCluster
      name: ocs-external-storagecluster
      uid: bc51b92c-042d-4420-8776-052d6805cb29
    resourceVersion: "141792"
    uid: e66030d0-8b45-4b00-b347-dc17e255fad3
.
.
.
    conditions:
    - lastHeartbeatTime: "2023-05-07T04:39:03Z"
      lastTransitionTime: "2023-05-07T04:39:03Z"
      message: Attempting to connect to an external Ceph cluster
      reason: ClusterConnecting
      status: "True"
      type: Connecting
    - lastHeartbeatTime: "2023-05-07T07:48:15Z"
      lastTransitionTime: "2023-05-07T04:39:06Z"
      message: Cluster connected successfully
      reason: ClusterConnected
      status: "True"
      type: Connected
    message: Cluster connected successfully
    phase: Connected
    state: Connected
    version:
      version: 16.2.8-85
kind: List
metadata:
  resourceVersion: ""



Expected results:

ClusterConnecting condition should be false or removed from the Conditions to avoid confusion

Additional info:

 $ oc get cephcluster 
NAME                                      DATADIRHOSTPATH   MONCOUNT   AGE     PHASE       MESSAGE                          HEALTH      EXTERNAL
ocs-external-storagecluster-cephcluster                                3h11m   Connected   Cluster connected successfully   HEALTH_OK   true

jenkins job: https://url.corp.redhat.com/1a00d27

must gather: https://url.corp.redhat.com/8e752f1

Comment 2 Travis Nielsen 2023-05-08 14:03:08 UTC
Who is this confusing for? Did a customer report this issue? Just trying to gauge the priority on this.
I believe the conditions have not changed anytime recently, so this must not be a regression.

Comment 3 Travis Nielsen 2023-06-23 22:01:54 UTC
Closing due to inactivity and low priority