Bug 1724654 - UI doesn't support local storage due to DataVolumes with RWX accessMode
Summary: UI doesn't support local storage due to DataVolumes with RWX accessMode
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Container Native Virtualization (CNV)
Classification: Red Hat
Component: User Experience
Version: 2.0
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ---
: 2.1.0
Assignee: Marek Libra
QA Contact: Radim Hrazdil
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-06-27 13:25 UTC by Radim Hrazdil
Modified: 2019-11-04 15:06 UTC (History)
4 users (show)

Fixed In Version: 4.2.0-0.nightly-2019-08-15-073735
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-11-04 15:06:18 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
Screenshot (48.82 KB, application/zip)
2019-06-27 13:25 UTC, Radim Hrazdil
no flags Details

Description Radim Hrazdil 2019-06-27 13:25:40 UTC
Created attachment 1585165 [details]
Screenshot

Description of problem:
As a follow up to https://bugzilla.redhat.com/show_bug.cgi?id=1719134, Web-UI creates DataVolumeTemplates and DataVolumes with RWX accessMode.

Since local storage doesn't support RXW accessMode, at this moment UI doesn't work with local storage at all.
Storage of VMs created with VM Wizard will not be able to bind to local storage PVs, thus VMs end up in 'Importer Error' state and PVCs in 'Pending'.

Version-Release number of selected component (if applicable):
kubevirt-web-ui-container-v2.0.0-14.8

How reproducible:
100%

Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 1 Tomas Jelinek 2019-07-02 09:59:43 UTC
The decision has been to do it like this for 2.0. I agree it is good to have this tracked, but targeting 2.1.

Comment 4 Radim Hrazdil 2019-09-06 10:28:00 UTC
Verified that UI creates dataVolumes with accesMode that is defined in 'well-known' configMap kubevirt-storage-class-defaults in openshift namespace.

Structure of the tested configMap:
kind: ConfigMap
apiVersion: v1
metadata:
  # well-known name
  name: kubevirt-storage-class-defaults
  namespace: openshift
data:
    # The default if a StorageClass is not listed.
    # If these ultimate defaults are missing or the ConfigMap is inaccessible, these
    # defaults are hard-coded in the UI as well.
  accessMode: ReadWriteOnce
  volumeMode: Filesystem
  local-sc.accessMode: ReadWriteOnce
  local-sc.volumeMode: Filesystem
  nfs-sc.accessMode: ReadWriteMany
  nfs-sc.volumeMode: Filesystem

Version: 4.2.0-0.nightly-2019-09-02-172410


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