Bug 1530532

Summary: StreamingAPI - no event of download/upload pause/resume VIA SDK exist as in UI - missing AuditLog entry in engine log
Product: [oVirt] ovirt-engine Reporter: Avihai <aefrat>
Component: BLL.StorageAssignee: Daniel Erez <derez>
Status: CLOSED CURRENTRELEASE QA Contact: Evelina Shames <eshames>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 4.2.0.2CC: amureini, bugs, derez, ebenahar, tnisan
Target Milestone: ovirt-4.2.2Flags: rule-engine: ovirt-4.2+
Target Release: 4.2.2.5   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: ovirt-engine-4.2.2.5 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-04-27 07:22:49 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
engine , image_proxy logs none

Description Avihai 2018-01-03 09:50:36 UTC
Created attachment 1376236 [details]
engine , image_proxy logs

Description of problem:
No event of download/upload pause/resume exists in UI - missing AuditLog entry in engine log.


Version-Release number of selected component (if applicable):
ovirt-engine-tools-4.2.0.2-0.1.el7.noarch
python-ovirt-engine-sdk4-4.2.2-1.el7ev.x86_64

How reproducible:
100%


Steps to Reproduce(ALL VIA SDK):
1.Start disk download via SDK
2.Pause disk download.
3.Check out Engine log & UI events for the pause.

Actual results:
Pause event is missing.

Looking at engine log Pause operation is seen in ImageTransferUpdater but no AuditLog exist.

Expected results:
Engine should have a matching Auditlog entire for download/upload
pause/resume via SDK.


Additional info:
Pause is seen by engine log :
2018-01-03 11:35:42,234+02 INFO  [org.ovirt.engine.core.bll.storage.disk.image.ImageTransferUpdater] (default task-12) [55c7699a-9dfe-4f40-bc41-0a5f622b9c66] Updating image transfer 972b352f-b87e-45da-b847-464e6
b6853d2 (image 9668ff60-63fe-40d9-bcbe-5760930fd2ef) phase to Paused by User

But not reported in AuditLog this no event of the pause exists as in UI.

Comment 1 Allon Mureinik 2018-03-15 15:21:15 UTC
The fix looks trivial, and we'd like to get the best user experience possible around this new[ish] feature.
Can this be backported to 4.2?

Comment 2 Daniel Erez 2018-03-15 15:25:38 UTC
(In reply to Allon Mureinik from comment #1)
> The fix looks trivial, and we'd like to get the best user experience
> possible around this new[ish] feature.
> Can this be backported to 4.2?

Sure.

Comment 3 Evelina Shames 2018-04-24 07:14:38 UTC
Verified.
There is no option to pause the download via UI, is it how it should be?

Engine: 4.2.3-0.1

Comment 4 Daniel Erez 2018-04-24 08:28:10 UTC
(In reply to Evelina Shames from comment #3)
> Verified.
> There is no option to pause the download via UI, is it how it should be?

Indeed. Pause/resume download is handled entirely by the client (i.e. browser/curl/etc). 

> 
> Engine: 4.2.3-0.1

Comment 5 Sandro Bonazzola 2018-04-27 07:22:49 UTC
This bugzilla is included in oVirt 4.2.2 release, published on March 28th 2018.

Since the problem described in this bug report should be
resolved in oVirt 4.2.2 release, it has been closed with a resolution of CURRENT RELEASE.

If the solution does not work for you, please open a new bug report.