Bug 2002602 - Storageclass creation page goes blank when "Enable encryption" is clicked if there is a syntax error in the configmap
Summary: Storageclass creation page goes blank when "Enable encryption" is clicked if ...
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Console Storage Plugin
Version: 4.9
Hardware: Unspecified
OS: Unspecified
Target Milestone: ---
: 4.11.0
Assignee: Divyansh Kamboj
QA Contact: Amrita Mahapatra
Depends On:
TreeView+ depends on / blocked
Reported: 2021-09-09 10:37 UTC by Rachael
Modified: 2022-08-10 10:37 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Last Closed: 2022-08-10 10:37:25 UTC
Target Upstream Version:

Attachments (Terms of Use)

System ID Private Priority Status Summary Last Updated
Github openshift console pull 11017 0 None open Bug 2002602: remove returning of err if json fails to parse 2022-02-09 12:57:10 UTC
Red Hat Product Errata RHSA-2022:5069 0 None None None 2022-08-10 10:37:45 UTC

Description Rachael 2021-09-09 10:37:34 UTC
Description of problem (please be detailed as possible and provide log

If there is a syntax error in the csi-kms-connection-details configmap, for eg: a missing comma as shown below, 

$ oc get cm csi-kms-connection-details -n openshift-storage -o yaml
apiVersion: v1
  vault-tenant-sa-auth: |-
      "encryptionKMSType": "vaulttenantsa",
      "vaultAddress": "https://vault.ocs.com:8200",
      "vaultBackendPath": "test-sa"
      "vaultCAVerify": "false"

in the storage class creation page, on clicking the "Enable Encryption" checkbox the whole screen goes blank. This could be because the UI is unable to parse the configmap to populate the KMS connection details section in the UI.

Version of all relevant components (if applicable):
OCP: 4.9.0-0.nightly-2021-09-08-233235
ODF: odf-operator.v4.9.0-125.ci

Does this issue impact your ability to continue to work with the product
(please explain in detail what is the user impact)?

Is there any workaround available to the best of your knowledge?
Yes, correct the syntax error in the configmap

Rate from 1 - 5 the complexity of the scenario you performed that caused this
bug (1 - very simple, 5 - very complex)?

Can this issue reproducible?

Can this issue reproduce from the UI?

If this is a regression, please provide more details to justify this:

Steps to Reproduce:

1. Edit/create the csi-kms-connection-details configmap in the openshift-storage namespace with the following config:

$ cat csi-kms-connection-details.yaml 
apiVersion: v1
kind: ConfigMap
  vault-tenant-sa-auth: |-
      "encryptionKMSType": "vaulttenantsa",
      "vaultAddress": "https://vault.ocs.com:8200",
      "vaultBackendPath": "test-sa"
      "vaultCAVerify": "false"
  name: csi-kms-connection-details

2. In the UI, navigate to storageclass creation page: Storage -> Storageclasses -> Create newstorageclass

3. Enter the name of the storageclass, select provisioner "openshift-storage.rbd.csi.ceph.com"

4. Click on the "Enable Encryption" checkbox

Actual results:

The screen goes blank when as soon as the "Enable Encryption" checkbox is clicked

Expected results:

Instead of the screen going blank, an error message pointing to the cause of the issue would be a better user experience

Comment 10 errata-xmlrpc 2022-08-10 10:37:25 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: OpenShift Container Platform 4.11.0 bug fix and security 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.


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