Uploaded image for project: 'Data Foundation Bugs'
  1. Data Foundation Bugs
  2. DFBUGS-209

[2316753] [RDR] dr-prereq check poses dependency on openshift-storage namespace

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Critical Critical
    • odf-4.18
    • odf-4.17
    • odf-cli
    • None
    • False
    • Hide

      None

      Show
      None
    • False
    • ?
    • ?
    • If docs needed, set a value
    • None

      Description of problem:

      On a RDR setup, when the following cmd is run on the managed clusters after installing submariner using ODF-CLI, it doesn't give the required output, rather throws following error:

      odf get dr-prereq amagrawa-4oct-c2
      Error: Operator namespace 'openshift-storage' does not exist. namespaces "openshift-storage" not found

      In my case, submariner was installed without globalnet, where clusters n/w config looks like this:

      C1-

      oc get networks.config.openshift.io cluster -o json | jq .spec
      {
      "clusterNetwork": [

      { "cidr": "10.132.0.0/14", "hostPrefix": 23 }

      ],
      "externalIP": {
      "policy": {}
      },
      "networkDiagnostics": {
      "mode": "",
      "sourcePlacement": {},
      "targetPlacement": {}
      },
      "networkType": "OVNKubernetes",
      "serviceNetwork": [
      "172.31.0.0/16"
      ]
      }

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

      The error in unexpected because this cmd provides following info. which would be needed before installing ODF so as to know if multiClusterService is required on my setup or not.

      Output-

      Info: Submariner is installed.
      Info: Globalnet is not required.
      Info: Globalnet is not enabled."

      The current implementation poses dependency on openshift-storage namespace which is created only after ODF operator installation which isn't the best practise IMO.

      Version-Release number of selected component (if applicable):
      Submariner 0.19.0 downstream unreleased (image 806009)
      OCP 4.17.0-0.nightly-2024-10-03-172957
      ACM 2.12.0-DOWNSTREAM-2024-09-27-14-56-41 downstream unreleased

      How reproducible:

      Steps to Reproduce:
      1. On a RDR setup, install ACM and submariner and run odf-cli cmd as mentioned above before installing ODF operator on the managed clusters.
      2.
      3.

      Actual results: dr-prereq check poses dependency on openshift-storage namespace

      Expected results: dr-prereq check should give desired output when submariner is installed on the managed clusters without posing a dependency on the openshift-storage namespace

      Additional info:

              subhamkrai Subham Rai
              amagrawa@redhat.com Aman Agrawal
              Aman Agrawal
              Elad Ben Aharon Elad Ben Aharon
              Votes:
              0 Vote for this issue
              Watchers:
              9 Start watching this issue

                Created:
                Updated: