Bug 1419886

Summary: Upload image operations are available using the GUI when there is an active download of the image using the python sdk (for the image that is downloaded)
Product: [oVirt] ovirt-engine Reporter: Natalie Gavrielov <ngavrilo>
Component: BLL.StorageAssignee: Daniel Erez <derez>
Status: CLOSED CURRENTRELEASE QA Contact: Natalie Gavrielov <ngavrilo>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 4.1.0.3CC: amureini, bugs, tnisan
Target Milestone: ovirt-4.1.1Flags: rule-engine: ovirt-4.1+
Target Release: 4.1.1.2   
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: 2017-04-21 09:53:28 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Storage RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
logs: engine, proxy, vdsm, daemon none

Description Natalie Gavrielov 2017-02-07 10:31:15 UTC
Created attachment 1248363 [details]
logs: engine, proxy, vdsm, daemon

Description of problem:
Upload feature is available via GUI even though there is an active download of an image using the SDK (for that same image).  

Version-Release number of selected component:
ovirt-engine-4.1.0.3-0.1.el7.noarch
ovirt-imageio-proxy-1.0.0-0.el7ev.noarch
ovirt-imageio-common-1.0.0-0.el7ev.noarch
ovirt-imageio-daemon-1.0.0-1.el7.noarch
vdsm-4.19.4-20.git1d7560e.el7.centos.x86_64


How reproducible:
100%

Steps to Reproduce:
1. Download an image using python sdk.
2. During the download, go to webadmin -> disks tab, mark the disk being downloaded and click on "Upload".


Actual results:
Start, Cancel and Pause buttons are available.
Clicked on cancel, and the download stopped, then disk switched state to: Finalizing Failure => Failed => illegal

Expected results:
Since there is an active download using the sdk - for all the upload using the UI to be disabled.

Comment 1 Natalie Gavrielov 2017-03-13 16:42:32 UTC
Verified, "Cancel", "Pause" and "Resume" are now disabled for the downloaded disk via GUI.
Used: rhevm-4.1.1.4-0.1.el7.noarch