Bug 2237288

Summary: [4.14] portworx: update the storageProfile
Product: Container Native Virtualization (CNV) Reporter: Jenia Peimer <jpeimer>
Component: StorageAssignee: Arnon Gilboa <agilboa>
Status: CLOSED ERRATA QA Contact: Jenia Peimer <jpeimer>
Severity: high Docs Contact:
Priority: high    
Version: 4.14.0CC: dafrank
Target Milestone: ---   
Target Release: 4.14.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: CNV v4.14.0.rhel9-1910 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-11-08 14:06:16 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 Jenia Peimer 2023-09-04 14:43:33 UTC
Description of problem:
We need to update the storageProfile for Portworx

From my attempts, these are supported combinations for the provisioners:
pxd.portworx.com - {RWX, FS}, {RWO, Block}, {RWO, FS}
ebs.csi.aws.com - {RWO, Block}, {RWO, FS}
kubernetes.io/portworx-volume - DV is Pending for all: {RWX, FS}, {RWO, Block}, {RWO, FS}


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

How reproducible:
Always

Steps to Reproduce:
$ oc get storageprofile px-csi-db-shared -oyaml


Actual results:


Expected results:


Additional info:

You can patch the storageProfile manually:

$ oc patch storageprofile px-csi-db-shared --type='merge' --patch='{"spec": {"claimPropertySets": [{"accessModes": ["ReadWriteMany"], "volumeMode": "Filesystem"}, {"accessModes": ["ReadWriteOnce"], "volumeMode": "Block"}, {"accessModes": ["ReadWriteOnce"], "volumeMode": "Filesystem"}]}}'

Comment 1 Jenia Peimer 2023-09-26 10:14:36 UTC
Verified on CNV-v4.14.0.rhel9-2082:

$ oc get storageprofile px-csi-db-shared -oyaml

apiVersion: cdi.kubevirt.io/v1beta1
kind: StorageProfile
metadata:
  creationTimestamp: "2023-09-26T09:57:58Z"
  generation: 2
  labels:
    app: containerized-data-importer
    app.kubernetes.io/component: storage
    app.kubernetes.io/managed-by: cdi-controller
    app.kubernetes.io/part-of: hyperconverged-cluster
    app.kubernetes.io/version: 4.14.0
    cdi.kubevirt.io: ""
  name: px-csi-db-shared
  ownerReferences:
  - apiVersion: cdi.kubevirt.io/v1beta1
    blockOwnerDeletion: true
    controller: true
    kind: CDI
    name: cdi-kubevirt-hyperconverged
    uid: 52dc2dbc-70b8-49a8-98c2-e9d84f34f191
  resourceVersion: "68851"
  uid: 4a49e0e9-16ff-4eec-9031-b5a40a40d29d
spec: {}
status:
  claimPropertySets:
  - accessModes:
    - ReadWriteMany
    volumeMode: Filesystem
  - accessModes:
    - ReadWriteOnce
    volumeMode: Block
  - accessModes:
    - ReadWriteOnce
    volumeMode: Filesystem
  cloneStrategy: snapshot
  dataImportCronSourceFormat: pvc
  provisioner: pxd.portworx.com
  storageClass: px-csi-db-shared

Comment 3 errata-xmlrpc 2023-11-08 14:06:16 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 Virtualization 4.14.0 Images security and bug fix 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-2023:6817