Bug 2321386 - [RDR] When globalnet is needed but it's not enabled, output shows this as a info
Summary: [RDR] When globalnet is needed but it's not enabled, output shows this as a info
Keywords:
Status: NEW
Alias: None
Product: Red Hat OpenShift Data Foundation
Classification: Red Hat Storage
Component: odf-cli
Version: 4.17
Hardware: Unspecified
OS: Unspecified
unspecified
low
Target Milestone: ---
: ---
Assignee: Subham Rai
QA Contact: Elad
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2024-10-24 06:11 UTC by Aman Agrawal
Modified: 2024-10-28 08:14 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker OCSBZM-9428 0 None None None 2024-10-24 06:12:01 UTC

Description Aman Agrawal 2024-10-24 06:11:33 UTC
Description of problem:
On a RDR setup, when the following odf-cli cmd is run on the managed clusters using peer cluster name after installing submariner where globalnet is not enabled and both the managed clusters are on the same service network, meaning globalnet has to be enabled, the output currently shows it like a info.

odf get dr-prereq amagrawa-23o-c2
Info: Submariner is installed.
Info: Globalnet is required.
Info: Globalnet is not enabled.

odf get dr-prereq amagrawa-23o-c1
Info: Submariner is installed.
Info: Globalnet is required.
Info: Globalnet is not enabled.



amagrawa-23o-c2 ==>

oc get networks.config.openshift.io cluster -o json | jq .spec
{
  "clusterNetwork": [
    {
      "cidr": "10.128.0.0/14",
      "hostPrefix": 23
    }
  ],
  "externalIP": {
    "policy": {}
  },
  "networkDiagnostics": {
    "mode": "",
    "sourcePlacement": {},
    "targetPlacement": {}
  },
  "networkType": "OVNKubernetes",
  "serviceNetwork": [
    "172.30.0.0/16"
  ]
}


amagrawa-23o-c1 ==>

oc get networks.config.openshift.io cluster -o json | jq .spec
{
  "clusterNetwork": [
    {
      "cidr": "10.128.0.0/14",
      "hostPrefix": 23
    }
  ],
  "externalIP": {
    "policy": {}
  },
  "networkDiagnostics": {
    "mode": "",
    "sourcePlacement": {},
    "targetPlacement": {}
  },
  "networkType": "OVNKubernetes",
  "serviceNetwork": [
    "172.30.0.0/16"
  ]
}
Version-Release number of selected component (if applicable):

ODF CLI 4.17


How reproducible:


Steps to Reproduce:
1. On a RDR setup, install ACM and submariner without globalet when both the ODF clusters are on the same service network and run odf-cli cmd as mentioned above.
2.
3.

Actual results: [RDR] When globalnet is needed but it's not enabled, output shows this as a info


Expected results: [RDR] When globalnet is needed but it's not enabled, this should be highlighted to the cluster admin in the form of a warning/error message instead of info.


Additional info:


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