Bug 1903413 - OCS 4.6 RC5 Does not deploy data encryption at rest although toggled in the UI
Summary: OCS 4.6 RC5 Does not deploy data encryption at rest although toggled in the UI
Keywords:
Status: CLOSED DUPLICATE of bug 1893626
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Console Storage Plugin
Version: 4.6.z
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: ---
Assignee: Ankush Behl
QA Contact: Raz Tamir
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-12-02 03:02 UTC by Jean-Charles Lopez
Modified: 2020-12-02 05:53 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-12-02 05:53:03 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
UI Screen capture (245.48 KB, image/png)
2020-12-02 03:05 UTC, Jean-Charles Lopez
no flags Details

Description Jean-Charles Lopez 2020-12-02 03:02:28 UTC
Description of problem (please be detailed as possible and provide log
snippests):
When selecting Encryption enable toggle in the UI the storagecluster that gets generated does not have the encryption properties set.

Version of all relevant components (if applicable):
Client OCP 4.6.2
Server OCP 4.6.2
OCS 4.6.0-183.ci


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

Is there any workaround available to the best of your knowledge?
Yes manually deploy the cluster with a custom yaml file

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

Can this issue reproducible?
Yes

Can this issue reproduce from the UI?
Only from the UI

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

Steps to Reproduce:
1. Deplpoy OCS operator
2. Go to the UI to create StorageCluster
3. Select the toggle 'Enrcyption Enabled'


Actual results:
spec:
  encryption: {}

Expected results:
spec:
  encryption:
    enable: true


Additional info:
$ oc get storagecluster -o yaml
apiVersion: v1
items:
- apiVersion: ocs.openshift.io/v1
  kind: StorageCluster
  metadata:
    annotations:
      uninstall.ocs.openshift.io/cleanup-policy: delete
      uninstall.ocs.openshift.io/mode: graceful
    creationTimestamp: "2020-12-02T03:01:17Z"
    finalizers:
    - storagecluster.ocs.openshift.io
    generation: 2
    managedFields:
    - apiVersion: ocs.openshift.io/v1
      fieldsType: FieldsV1
      fieldsV1:
        f:spec: {}
      manager: Mozilla
      operation: Update
      time: "2020-12-02T03:01:17Z"
    - apiVersion: ocs.openshift.io/v1
      fieldsType: FieldsV1
      fieldsV1:
        f:metadata:
          f:annotations:
            .: {}
            f:uninstall.ocs.openshift.io/cleanup-policy: {}
            f:uninstall.ocs.openshift.io/mode: {}
          f:finalizers: {}
        f:spec:
          f:encryption: {}
          f:externalStorage: {}
          f:managedResources:
            .: {}
            f:cephBlockPools: {}
            f:cephFilesystems: {}
            f:cephObjectStoreUsers: {}
            f:cephObjectStores: {}
          f:storageDeviceSets: {}
          f:version: {}
        f:status:
          .: {}
          f:conditions: {}
          f:failureDomain: {}
          f:nodeTopologies:
            .: {}
            f:labels:
              .: {}
              f:failure-domain.beta.kubernetes.io/region: {}
              f:failure-domain.beta.kubernetes.io/zone: {}
          f:phase: {}
          f:relatedObjects: {}
      manager: ocs-operator
      operation: Update
      time: "2020-12-02T03:01:18Z"
    name: ocs-storagecluster
    namespace: openshift-storage
    resourceVersion: "49469"
    selfLink: /apis/ocs.openshift.io/v1/namespaces/openshift-storage/storageclusters/ocs-storagecluster
    uid: 38962ebb-69aa-4da4-bc16-660db22e48b9
  spec:
    encryption: {}
    externalStorage: {}
    managedResources:
      cephBlockPools: {}
      cephFilesystems: {}
      cephObjectStoreUsers: {}
      cephObjectStores: {}
    storageDeviceSets:
    - config: {}
      count: 1
      dataPVCTemplate:
        metadata:
          creationTimestamp: null
        spec:
          accessModes:
          - ReadWriteOnce
          resources:
            requests:
              storage: 2Ti
          storageClassName: gp2
          volumeMode: Block
        status: {}
      name: ocs-deviceset-gp2
      placement: {}
      portable: true
      replica: 3
      resources: {}
    version: 4.6.0
  status:
    conditions:
    - lastHeartbeatTime: "2020-12-02T03:01:18Z"
      lastTransitionTime: "2020-12-02T03:01:18Z"
      message: Reconcile completed successfully
      reason: ReconcileCompleted
      status: "True"
      type: ReconcileComplete
    - lastHeartbeatTime: "2020-12-02T03:01:18Z"
      lastTransitionTime: "2020-12-02T03:01:18Z"
      message: CephCluster resource is not reporting status
      reason: CephClusterStatus
      status: "False"
      type: Available
    - lastHeartbeatTime: "2020-12-02T03:01:18Z"
      lastTransitionTime: "2020-12-02T03:01:18Z"
      message: CephCluster resource is not reporting status
      reason: CephClusterStatus
      status: "True"
      type: Progressing
    - lastHeartbeatTime: "2020-12-02T03:01:18Z"
      lastTransitionTime: "2020-12-02T03:01:17Z"
      message: Reconcile completed successfully
      reason: ReconcileCompleted
      status: "False"
      type: Degraded
    - lastHeartbeatTime: "2020-12-02T03:01:18Z"
      lastTransitionTime: "2020-12-02T03:01:18Z"
      message: CephCluster resource is not reporting status
      reason: CephClusterStatus
      status: "False"
      type: Upgradeable
    failureDomain: zone
    nodeTopologies:
      labels:
        failure-domain.beta.kubernetes.io/region:
        - us-east-2
        failure-domain.beta.kubernetes.io/zone:
        - us-east-2c
        - us-east-2a
        - us-east-2b
    phase: Progressing
    relatedObjects:
    - apiVersion: ceph.rook.io/v1
      kind: CephCluster
      name: ocs-storagecluster-cephcluster
      namespace: openshift-storage
      resourceVersion: "49434"
      uid: fcbc75f3-c6b3-4274-b5de-8d6236e5ea64
kind: List
metadata:
  resourceVersion: ""
  selfLink: ""

See UI screen capture attached

Comment 2 Jean-Charles Lopez 2020-12-02 03:05:37 UTC
Created attachment 1735440 [details]
UI Screen capture

Comment 3 N Balachandran 2020-12-02 05:35:30 UTC
This looks like a UI BZ. Moving it accordingly.

Comment 4 Bipul Adhikari 2020-12-02 05:53:03 UTC
This bug is a duplicate. Fixed in OCP 4.6.4.

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


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