Bug 2278593

Summary: Heartbeat job running in hcp based cluster is not sending the cluster name
Product: [Red Hat Storage] Red Hat OpenShift Data Foundation Reporter: Daniel Osypenko <dosypenk>
Component: ocs-client-operatorAssignee: Ritesh Chikatwar <rchikatw>
Status: CLOSED ERRATA QA Contact: Daniel Osypenko <dosypenk>
Severity: high Docs Contact:
Priority: medium    
Version: 4.16CC: jijoy, lgangava, muagarwa, nberry, odf-bz-bot, omitrani, rchikatw, resoni, rohgupta
Target Milestone: ---Flags: rchikatw: needinfo-
rchikatw: needinfo-
Target Release: ODF 4.16.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: isf-provider
Fixed In Version: 4.16.0-118 Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2024-07-17 13:21: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:

Description Daniel Osypenko 2024-05-02 08:07:55 UTC
Description of problem:

Heartbeat job running in hcp based cluster is not sending the cluster name

# k get storageconsumer -ojsonpath='{.items[*].status.client}' | jq
{
  "clusterId": "727c7233-a0ee-4790-815d-6efa3578ebb6",
  "clusterName": "ibm-baremetal1",
  "name": "ocs-storagecluster",
  "operatorVersion": "4.16.0-89.stable",
  "platformVersion": "4.16.0-ec.5"
}
{
  "clusterId": "fcdf9cac-a123-4566-beb0-3d9d5e51f2d6",
  "clusterName": "",
  "name": "storage-client",
  "operatorVersion": "4.16.0-86.stable",
  "platformVersion": "4.16.0-ec.5"
}

Version-Release number of selected component (if applicable):
Provider - OCP 4.16.0-ec.5, ODF 4.16.0-86
Client - OCP 4.16.0-ec.5, ODF 4.16.0-89

How reproducible:
oc -n -n openshift-storage  get storageconsumer -ojsonpath='{.items[*].status.client}' | jq
The native Client populates clusterName and Hosted client is not 

Steps to Reproduce:
1. oc -n -n openshift-storage  get storageconsumer -ojsonpath='{.items[*].status.client}' | jq
2.
3.

Actual results:
"clusterName": ""

Expected results:
"clusterName": "ibm-baremetal1"

Additional info:

Management cluster MG - https://drive.google.com/drive/folders/10tPMdkjpft6SVsqyxlPb8TCVqzN75-CQ?usp=drive_link

Comment 15 Jilju Joy 2024-05-30 13:41:16 UTC
Tested in version:
OCP 4.16.0-110
Cluster version is 4.16.0-ec.6

ClusterName is missing in storageconsumer of a client in hosted cluster.

% oc get storageconsumer storageconsumer-077361a6-259a-48ef-8fe9-f7ccd957a406 -n openshift-storage -ojsonpath='{.status}'  | jq
{
  "cephResources": [
    {
      "kind": "CephClient",
      "name": "d580c1393ec50f784baa789d258564d8",
      "status": "Ready"
    }
  ],
  "client": {
    "clusterId": "077361a6-259a-48ef-8fe9-f7ccd957a406",
    "clusterName": "",
    "name": "ocs-storagecluster",
    "operatorVersion": "4.16.0-101.stable",
    "platformVersion": "4.16.0-ec.6"
  },
  "lastHeartbeat": "2024-05-30T13:39:00Z",
  "state": "Ready"
}

Comment 17 Daniel Osypenko 2024-06-06 16:23:16 UTC
ODF 4.16.0-118 fixed

oc -n openshift-storage get storageconsumer -ojsonpath='{.items[*].status.client}' | jq
{
  "clusterId": "853b3ca7-378a-4fc0-8f20-4d770483d30b",
  "clusterName": "hcp415-bm2-b.apps.ibm-baremetal2.qe.rh-ocs.com",
  "name": "storage-client",
  "operatorVersion": "4.16.0-120.stable",
  "platformVersion": "4.15.16"
}
{
  "clusterId": "b61413fc-d665-4891-baf0-f57f71c41374",
  "clusterName": "ibm-baremetal2.qe.rh-ocs.com",
  "name": "ocs-storagecluster",
  "operatorVersion": "4.16.0-118.stable",
  "platformVersion": "4.16.0-rc.3"
}
{
  "clusterId": "d922ca9d-7ca6-40ea-8b41-5851fd525574",
  "clusterName": "hcp415-bm2-a.apps.ibm-baremetal2.qe.rh-ocs.com",
  "name": "storage-client",
  "operatorVersion": "4.16.0-120.stable",
  "platformVersion": "4.15.15"
}

Comment 18 Sunil Kumar Acharya 2024-06-18 06:45:26 UTC
Please update the RDT flag/text appropriately.

Comment 20 errata-xmlrpc 2024-07-17 13:21:28 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 (Important: Red Hat OpenShift Data Foundation 4.16.0 security, enhancement & 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/RHSA-2024:4591