Bug 1973336

Summary: Verify "Only {volumeMode} volume mode is available for {storageClass} with {accessMode} access mode" displays correctly
Product: OpenShift Container Platform Reporter: ralpert
Component: Management ConsoleAssignee: Jakub Hadvig <jhadvig>
Status: CLOSED ERRATA QA Contact: Yadan Pei <yapei>
Severity: low Docs Contact:
Priority: low    
Version: 4.9CC: aos-bugs, jokerman, yapei
Target Milestone: ---   
Target Release: 4.9.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-10-18 17:35:03 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description ralpert 2021-06-17 16:27:15 UTC
Description of problem:
We should verify that "Only {volumeMode} volume mode is available for {storageClass} with {accessMode} access mode" displays correctly in the console-app plugin. We usually need to use double brackets.

Version-Release number of selected component (if applicable):
4.9

How reproducible:
Always

Steps to Reproduce:
1. Look at "Only {volumeMode} volume mode is available for {storageClass} with {accessMode} access mode" in console-app.json

Actual results:
Single quotes - the variables may not display correctly.

Expected results:
The variables display correctly.

Additional info:

Comment 2 Yadan Pei 2021-06-29 03:07:16 UTC
1. Install `OpenShift Container Storage` operator
2. create Storage Cluster CR
3. wait for new storageclass is provisioned
$ oc get sc
NAME                          PROVISIONER                             RECLAIMPOLICY   VOLUMEBINDINGMODE      ALLOWVOLUMEEXPANSION   AGE
azurefile-ocp                 kubernetes.io/azure-file                Delete          WaitForFirstConsumer   false                  46m
managed-premium (default)     kubernetes.io/azure-disk                Delete          WaitForFirstConsumer   true                   86m
ocs-storagecluster-ceph-rbd   openshift-storage.rbd.csi.ceph.com      Delete          Immediate              true                   86s
ocs-storagecluster-cephfs     openshift-storage.cephfs.csi.ceph.com   Delete          Immediate              true  

$ oc get sc ocs-storagecluster-cephfs -o yaml
allowVolumeExpansion: true
apiVersion: storage.k8s.io/v1
kind: StorageClass
metadata:
  annotations:
    description: Provides RWO and RWX Filesystem volumes
  creationTimestamp: "2021-06-29T02:57:40Z"
  name: ocs-storagecluster-cephfs
  resourceVersion: "53972"
  uid: 9b1a4f95-559a-4641-a1c2-a5ef70df6f3a
parameters:
  clusterID: openshift-storage
  csi.storage.k8s.io/controller-expand-secret-name: rook-csi-cephfs-provisioner
  csi.storage.k8s.io/controller-expand-secret-namespace: openshift-storage
  csi.storage.k8s.io/node-stage-secret-name: rook-csi-cephfs-node
  csi.storage.k8s.io/node-stage-secret-namespace: openshift-storage
  csi.storage.k8s.io/provisioner-secret-name: rook-csi-cephfs-provisioner
  csi.storage.k8s.io/provisioner-secret-namespace: openshift-storage
  fsName: ocs-storagecluster-cephfilesystem
provisioner: openshift-storage.cephfs.csi.ceph.com
reclaimPolicy: Delete
volumeBindingMode: Immediate

4. Goes to PVC creation page and choose 'ocs-storagecluster-cephfs' as Storage Class name, we can see ONLY 'Filesystem' value in 'Volume mode', click on the question mark, it will show a tooltip with message: Only Filesystem volume mode is available for ocs-storagecluster-cephfs with ReadWriteOnce access mode
5. Set browser language to Chinese, Korean and Japanese, check the translation. When we switch language the tooltip message doesn't change accordingly, it is still shown with English


Assign back for update, this is checked against 4.9.0-0.nightly-2021-06-28-114004

Comment 3 Yadan Pei 2021-06-30 07:22:49 UTC
since the original issue described in the BZ is resolved(now the text is showing correctly) moving to VERIFIED

will track localization issue in separate BZ

Comment 6 errata-xmlrpc 2021-10-18 17:35:03 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 (Moderate: OpenShift Container Platform 4.9.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.

https://access.redhat.com/errata/RHSA-2021:3759