Bug 2099612

Summary: StorageClassClaim with encryption gets into Failed state
Product: [Red Hat Storage] Red Hat OpenShift Data Foundation Reporter: Pranshu Srivastava <prasriva>
Component: ocs-operatorAssignee: Pranshu Srivastava <prasriva>
Status: CLOSED DUPLICATE QA Contact: Martin Bukatovic <mbukatov>
Severity: high Docs Contact:
Priority: unspecified    
Version: 4.11CC: aeyal, fbalak, madam, muagarwa, nberry, ocs-bugs, odf-bz-bot, prasriva, sabose, sostapov
Target Milestone: ---Keywords: TestBlocker
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
URL: https://github.com/red-hat-storage/ocs-operator/pull/1727
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 2099581 Environment:
Last Closed: 2022-06-22 15:02:33 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 2099581    
Bug Blocks:    

Description Pranshu Srivastava 2022-06-21 10:33:02 UTC
+++ This bug was initially created as a clone of Bug #2099581 +++

Description of problem:
After AWS KMS is configured according to https://hackmd.io/66K6Opp8RKGUlRsM62A_rg, when user tries to create an encrypted storageclassclaim, it gets into Failed phase right after creation.

Version-Release number of selected component (if applicable):
odf-operator.v4.11.0

How reproducible:
1/1

Steps to Reproduce:
1. Follow https://hackmd.io/66K6Opp8RKGUlRsM62A_rg, "create storageclass" step can be skipped.
2. Create storageclass claim:
apiVersion: ocs.openshift.io/v1alpha1
kind: StorageClassClaim
metadata:
  name: encrypted-rbd-test
  namespace: <namespace used for testing>
spec:
  encryptionMethod: aws-sts-metadata-test
  type: blockpool

3. Check the created storageclass

Actual results:
StorageClassClaim is in phase Failed.

Expected results:
If the configuration is correct, the StorageClassClaim shouldn't return an error state.

Additional info:

Comment 6 Mudit Agarwal 2022-06-22 15:02:33 UTC

*** This bug has been marked as a duplicate of bug 2099581 ***