Bug 1887375

Summary: User should be able to specify volumeMode when creating pvc from web-console
Product: OpenShift Container Platform Reporter: Wei Duan <wduan>
Component: Management ConsoleAssignee: Joe Caiani <jcaiani>
Status: CLOSED ERRATA QA Contact: Yadan Pei <yapei>
Severity: low Docs Contact:
Priority: low    
Version: 4.6CC: aos-bugs, jcaiani, jokerman, yapei
Target Milestone: ---   
Target Release: 4.7.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-02-24 15:24:44 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:
Attachments:
Description Flags
2020-10-12 14-11-43
none
volumeMode none

Description Wei Duan 2020-10-12 09:56:52 UTC
Created attachment 1720895 [details]
2020-10-12 14-11-43

Description of problem:
When creating a pvc from web-console, in the config page, there is no spec.volumeMode to specify, also there is no this parameter when click "Edit YAML" page. This is an important parameter if user need a block volume (default value is "Filesystem"), and now it is no friendly to user.
Please add this in pvc creation, we can use "Filesystem" as default value.

Version-Release number of selected component (if applicable):
4.6.0-0.nightly-2020-10-10-041109

How reproducible:
Always

Steps to Reproduce:
See attachment

Actual results:
There is no spec.volumeMode to specify when creating pvc from web-console

Expected results:
The volumeMode could be specified when creating pvc from web-console

Comment 1 Wei Duan 2020-10-12 10:02:20 UTC
Created attachment 1720898 [details]
volumeMode

Comment 3 Yadan Pei 2020-10-21 08:37:12 UTC
1. on Create Persistent Volume Claim page, we can see `Volume Mode` selection with values `Filesystem` and `Block` 
2. in the default PVC YAML, we now show 'volumeMode' fields with default value 'Filesystem'
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
  name: example
  namespace: yapei47
spec:
  accessModes:
    - ReadWriteOnce
  volumeMode: Filesystem
  resources:
    requests:
      storage: 1Gi

This is checked against 4.7.0-0.nightly-2020-10-21-001511, moving to VERIFIED

Comment 6 errata-xmlrpc 2021-02-24 15:24:44 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.7.0 security, bug fix, and enhancement 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-2020:5633