Bug 1902972

Summary: AccessMode RWX is missing for many storageClass in VM wizard
Product: OpenShift Container Platform Reporter: Guohua Ouyang <gouyang>
Component: Console Kubevirt PluginAssignee: Tomas Jelinek <tjelinek>
Status: CLOSED CURRENTRELEASE QA Contact: Guohua Ouyang <gouyang>
Severity: medium Docs Contact:
Priority: medium    
Version: 4.7CC: aos-bugs, eparis, glekner, gouyang, yzamir
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: 2020-12-28 06:35:20 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
only RWO available in vm wizard none

Description Guohua Ouyang 2020-12-01 02:30:21 UTC
Created attachment 1735043 [details]
only RWO available in vm wizard

Description of problem:
AccessMode RWX is missing for many storageClass in VM wizard.
A weird thing is when selecting ocs-storagecluster-ceph-rbd, at first only RWO available, but after some selection back and forth, RWX available for ocs-storagecluster-ceph-rbd as well.

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

How reproducible:
100%

Steps to Reproduce:
1. 
2.
3.

Actual results:


Expected results:


Additional info:

Comment 2 Gilad Lekner 2020-12-27 13:33:19 UTC
what is the provisioner of those storageClasses?

if its one of:
  'kubernetes.io/no-provisioner': ['ReadWriteOnce'],
  'kubernetes.io/aws-ebs': ['ReadWriteOnce']
  'kubernetes.io/cinder': ['ReadWriteOnce'],
  'kubernetes.io/azure-disk': ['ReadWriteOnce'],
  'kubernetes.io/storageos': ['ReadWriteOnce'],
  'ebs.csi.aws.com': ['ReadWriteOnce'],
  'csi.ovirt.org': ['ReadWriteOnce'],


Then, RWX will not be available, only RWO.

Comment 3 Yaacov Zamir 2020-12-27 14:01:42 UTC
IMHO:
a - we can add a help link to the documentation about supported AccessMode for each provisioner.
b - we can show user the disabled options with a hint "not supported for this storage class"

@Gilad does that makes sense to you ?

Comment 4 Guohua Ouyang 2020-12-28 01:02:33 UTC
The situation changes a lot now, not a bug on the latest UI anymore.

Comment 5 Yaacov Zamir 2020-12-28 06:35:20 UTC
closing per comment#4