Bug 1911574 - Expose volume mode on Upload Data form
Summary: Expose volume mode on Upload Data form
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Console Kubevirt Plugin
Version: 4.7
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: 4.7.0
Assignee: Gilad Lekner
QA Contact: Guohua Ouyang
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-12-30 06:13 UTC by Guohua Ouyang
Modified: 2021-02-24 15:49 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-02-24 15:49:11 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github openshift console pull 7691 0 None open Bug 1911574: Expose volume mode on Upload Data form 2021-01-03 14:14:46 UTC
Red Hat Product Errata RHSA-2020:5633 0 None None None 2021-02-24 15:49:25 UTC

Description Guohua Ouyang 2020-12-30 06:13:09 UTC
Description of problem:
The volume mode on "Upload Data to Persistent Volume Claim" is default to Filesystem, there is one situation that upload is failed when use SC 'ocs-storagecluster-ceph-rbd’, accessMode "ReadWriteMany" and volumeMode "Filesystem".
So it's better to change the volume mode to "Block".

1. Upload image with SC ‘ocs-storagecluster-ceph-rbd’, accessMode "ReadWriteMany" and volumeMode "Filesystem" is failed.

$ ./virtctl image-upload dv rhel71 --size=10Gi --image-path=./cirros.img --access-mode=ReadWriteMany  --insecure --storage-class=ocs-storagecluster-ceph-rbd 
DataVolume default/rhel71 created
Waiting for PVC rhel71 upload pod to be ready...
timed out waiting for the condition

2. Upload image with SC ‘ocs-storagecluster-ceph-rbd’, accessMode "ReadWriteMany" and volumeMode "Block" is okay.

$ ./virtctl image-upload dv rhel715 --size=10Gi --image-path=./cirros.img --access-mode=ReadWriteMany  --insecure --storage-class=ocs-storagecluster-ceph-rbd  --block-volume
--block-volume is deprecated, use --volume-mode instead
DataVolume default/rhel715 created
Waiting for PVC rhel715 upload pod to be ready...
Pod now ready
Uploading data to https://cdi-uploadproxy-openshift-cnv.apps.sys01.cnv-qe.rhcloud.com

 12.13 MiB / 12.13 MiB [===================================================================================================] 100.00% 20s

Uploading data completed successfully, waiting for processing to complete, you can hit ctrl-c without interrupting the progress
Processing completed successfully
Uploading ./cirros.img completed successfully



2. Upload image with SC ‘ocs-storagecluster-ceph-rbd’, accessMode "ReadWriteOnce" and volumeMode "Filesystem" is okay.

$ ./virtctl image-upload dv rhel713 --size=10Gi --image-path=./cirros.img --access-mode=ReadWriteOnce  --insecure --storage-class=ocs-storagecluster-ceph-rbd
DataVolume default/rhel713 created
Waiting for PVC rhel713 upload pod to be ready...
Pod now ready
Uploading data to https://cdi-uploadproxy-openshift-cnv.apps.sys01.cnv-qe.rhcloud.com

 12.13 MiB / 12.13 MiB [====================================================================================================] 100.00% 9s

Uploading data completed successfully, waiting for processing to complete, you can hit ctrl-c without interrupting the progress
Processing completed successfully
Uploading ./cirros.img completed successfully

3. Upload image with SC ‘ocs-storagecluster-ceph-rbd’, accessMode "ReadWriteOnce" and volumeMode "Block" is okay.

$ ./virtctl image-upload dv rhel714 --size=10Gi --image-path=./cirros.img --access-mode=ReadWriteOnce  --insecure --storage-class=ocs-storagecluster-ceph-rbd --volume-mode=Block
DataVolume default/rhel714 created
Waiting for PVC rhel714 upload pod to be ready...
Pod now ready
Uploading data to https://cdi-uploadproxy-openshift-cnv.apps.sys01.cnv-qe.rhcloud.com

 12.13 MiB / 12.13 MiB [====================================================================================================] 100.00% 8s

Uploading data completed successfully, waiting for processing to complete, you can hit ctrl-c without interrupting the progress
Processing completed successfully
Uploading ./cirros.img completed successfully


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


How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 1 Guohua Ouyang 2020-12-30 06:44:36 UTC
Change to Block might not be proper as NFS storage only support Filesystm.
Maybe it need to expose the volumeMode on the page as well.

Comment 2 Yaacov Zamir 2021-01-03 06:46:13 UTC
looks similar to https://bugzilla.redhat.com/show_bug.cgi?id=1911382

@Matan hi, is this a duplicate of 1911382 ?

Comment 3 Yaacov Zamir 2021-01-03 13:07:57 UTC
sorry Matan, I misunderstood the bug, you don't need to answer for comment#2

Comment 7 errata-xmlrpc 2021-02-24 15:49:11 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


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