Bug 1911574

Summary: Expose volume mode on Upload Data form
Product: OpenShift Container Platform Reporter: Guohua Ouyang <gouyang>
Component: Console Kubevirt PluginAssignee: Gilad Lekner <glekner>
Status: CLOSED ERRATA QA Contact: Guohua Ouyang <gouyang>
Severity: medium Docs Contact:
Priority: medium    
Version: 4.7CC: aos-bugs, glekner, gouyang, mschatzm, 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: 2021-02-24 15:49:11 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 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