Bug 2189551 - StorageClassClaim created in a different namespace than fusion-storage is not working
Summary: StorageClassClaim created in a different namespace than fusion-storage is not...
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat OpenShift Data Foundation
Classification: Red Hat Storage
Component: odf-managed-service
Version: 4.12
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: ---
: ---
Assignee: Ohad
QA Contact: Neha Berry
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-04-25 15:02 UTC by Filip Balák
Modified: 2023-08-09 17:00 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2023-04-25 15:37:44 UTC
Embargoed:


Attachments (Terms of Use)

Description Filip Balák 2023-04-25 15:02:30 UTC
Description of problem:
Storageclasslaim can be created in fusion-storage namespace but not in a custom namespace created for the storageclassclaim.

Version-Release number of selected component (if applicable):
rosa 4.11.37
ocs-client-operator.v4.13.0-168.stable

How reproducible:
3/3

Steps to Reproduce:
1. Create a Fusion aaS consumer in fusion-storage namespace.
2. Create a new namespace test-namespace.
3. Create a storageclassclaim that uses test-namespace namespace:

apiVersion: ocs.openshift.io/v1alpha1
kind: StorageClassClaim
metadata:
  name: storageclassclaim-test-cephblockpool
spec:
  storageClient:
    name: storageclient
    namespace: test-namespace
  type: blockpool

Actual results:
Storageclass is not created and claim has no Phase:
$ oc get storageclassclaim
NAME                                       STORAGETYPE        STORAGEPROFILE   STORAGECLIENTNAME   STORAGECLIENTNAMESPACE   PHASE
ocs-storagecluster-ceph-rbd                blockpool                           storageclient       fusion-storage           Ready
ocs-storagecluster-cephfs                  sharedfilesystem                    storageclient       fusion-storage           Ready
storageclassclaim-test-cephblockpool-1     blockpool                           storageclient       test-namespace           
storageclassclaim-test-cephblockpool-14d   blockpool                           storageclient       fusion-storage           Ready
storageclassclaim-test-cephblockpool-2     blockpool                           storageclient       test-namespace2          


Expected results:
Claim should be created correctly.

Additional info:
ocp must gather: http://magna002.ceph.redhat.com/ocsci-jenkins/openshift-clusters/sgatfane-c2425/sgatfane-c2425_20230425T015755/logs/testcases_1682433492/ocp_must_gather/

Comment 1 Ohad 2023-04-25 15:14:21 UTC
@fbalak 
StorageClassClaims are cluster-scoped resources, this bug does not make sense in that context. 
Could you please clarify?

Comment 2 Filip Balák 2023-04-25 15:35:24 UTC
Right, what I am configuring in:
  storageClient:
    name: storageclient
    namespace: test-namespace
is storage namespace of the provider, correct? In that case this can be closed as not a bug.

Comment 3 Ohad 2023-04-25 15:47:07 UTC
> is storage namespace of the provider, correct? In that case this can be closed as not a bug.

No this is the namespace where the client operator was installed, no matter where you want to use the storage class. 
And yes this is not a bug


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