Bug 1889212 - DV/PVC is created anyway when 'Data Volume failed to initiate upload'
Summary: DV/PVC is created anyway when 'Data Volume failed to initiate upload'
Keywords:
Status: CLOSED CANTFIX
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Console Kubevirt Plugin
Version: 4.6
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ---
: ---
Assignee: Tomas Jelinek
QA Contact: Guohua Ouyang
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-10-19 05:13 UTC by Guohua Ouyang
Modified: 2020-10-19 07:26 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-10-19 07:15:56 UTC
Target Upstream Version:


Attachments (Terms of Use)

Description Guohua Ouyang 2020-10-19 05:13:01 UTC
Description of problem:
DV/PVC is created anyway when 'Data Volume failed to initiate upload' shows on UI.

$ oc get dv
NAME       PHASE             PROGRESS   RESTARTS   AGE
fedora32   UploadScheduled   N/A                   4m11s
$ oc get pvc
NAME               STATUS    VOLUME                                     CAPACITY   ACCESS MODES   STORAGECLASS           AGE
fedora32           Bound     pvc-e592c682-214c-4a94-a265-819cdd4ca942   100Gi      RWO            standard               5m46s
fedora32-scratch   Pending    


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

How reproducible:
100%

Steps to Reproduce:
1. fill a very large pvc size and start upload
2.
3.

Actual results:
fails with error `Data Volume failed to initiate upload`, and dv/pvc is created.

Expected results:
once an error occurrs, the dv/pvc should not be created.

Additional info:

Comment 1 Tomas Jelinek 2020-10-19 07:15:26 UTC
That is actually correct. The API is that we initiate the import by creating the DV which creates the PVC and than starts uploading into it.
And CDI is eventually consistent which means that even if it fails, it does not consider it to be a failure but keeps trying hoping that it will work out one day.
So Im afraid we can not fix this

Comment 2 Guohua Ouyang 2020-10-19 07:26:27 UTC
I think customer will have the same question one day, so filed a bug here.


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