Bug 785670

Summary: [TEXT] engine-iso-uploader - small usage's output change is required
Product: [Retired] oVirt Reporter: Rami Vaknin <rvaknin>
Component: ovirt-iso-uploaderAssignee: Sandro Bonazzola <sbonazzo>
Status: CLOSED CURRENTRELEASE QA Contact:
Severity: low Docs Contact:
Priority: unspecified    
Version: unspecifiedCC: acathrow, iheim, jkt, knesenko, mgoldboi, sbonazzo, yeylon
Target Milestone: ---Keywords: Reopened
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: integration
Fixed In Version: ovirt-iso-uploader-3.2.1-1.fc18.noarch.rpm Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-07-25 20:50:21 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Rami Vaknin 2012-01-30 09:40:14 UTC
Version:
ovirt-engine-iso-uploader-3.0.0_0001-1.4.fc16.x86_64

1. The usage printed to the screen says that upload option does not require file as mandatory parameter.

It means that the line:
engine-iso-uploader [options] upload [file].[file]...[file]

should be replaced by:
engine-iso-uploader [options] upload FILE [FILE]...[FILE]


2. This one is an RFE - I think it will be better to notify the user that the upload process has started, because it's not understood that the authentication against REST-API has finished and is not stuck, except for the return code. The log file is also empty in the below case.

The current output:

[root@rami-fed16-6 ~]# engine-iso-uploader -i rvaknin_iso_domain upload Fedora-16-x86_64-Live-Desktop.iso 
Please provide the REST API password for the admin@internal oVirt Engine user (CTRL+D to abort): 
[root@rami-fed16-6 ~]#

Comment 1 Itamar Heim 2012-12-17 07:26:10 UTC
Closing old bugs. If this issue is still relevant/important in current version, please re-open the bug.

Comment 2 Yaniv Kaul 2012-12-17 08:05:55 UTC
Papercut, and I think it should be done. I wasn't thrilled about the help screen - it's difficult to find right away what needs to be the command line.

I'd also make sure that when entering 'rhevm-iso-uploader' without any parameters it'll display the help screen, and not just suggest to run with '-h'.

Comment 3 Sandro Bonazzola 2013-02-15 09:00:04 UTC
(In reply to comment #0)

> 2. This one is an RFE - I think it will be better to notify the user that
> the upload process has started, because it's not understood that the
> authentication against REST-API has finished and is not stuck, except for
> the return code. The log file is also empty in the below case.
> 
> The current output:
> 
> [root@rami-fed16-6 ~]# engine-iso-uploader -i rvaknin_iso_domain upload
> Fedora-16-x86_64-Live-Desktop.iso 
> Please provide the REST API password for the admin@internal oVirt Engine
> user (CTRL+D to abort): 
> [root@rami-fed16-6 ~]#

Maybe also an upload progress status (just a % or a progress bar or a ETA) could be useful here.

Comment 4 Sandro Bonazzola 2013-02-21 15:48:31 UTC
(In reply to comment #0)
> 1. The usage printed to the screen says that upload option does not require
> file as mandatory parameter.
> 
> It means that the line:
> engine-iso-uploader [options] upload [file].[file]...[file]
> 
> should be replaced by:
> engine-iso-uploader [options] upload FILE [FILE]...[FILE]

this one submitted for review with patch 12288.

Comment 5 Sandro Bonazzola 2013-02-21 17:01:23 UTC
(In reply to comment #0)

> 2. This one is an RFE - I think it will be better to notify the user that
> the upload process has started, because it's not understood that the
> authentication against REST-API has finished and is not stuck, except for
> the return code. The log file is also empty in the below case.

This one submitted for review fith patch 12295

(In reply to comment #3)
> Maybe also an upload progress status (just a % or a progress bar or a ETA)
> could be useful here.

Added a notification of starting upload for every FILE in argument list. On a fast network it seems enough.

Comment 6 Sandro Bonazzola 2013-02-22 07:41:35 UTC
patch 12288 merged upstream master: http://gerrit.ovirt.org/gitweb?p=ovirt-iso-uploader.git;a=commit;h=ad005cc74f46cf1350aacf6796137a74c5ca255c

Comment 7 Sandro Bonazzola 2013-03-12 09:14:42 UTC
patch 12295 merged upstream master: http://gerrit.ovirt.org/gitweb?p=ovirt-iso-uploader.git;a=commit;h=6d252e108d55d877ce227d0dcbb40c931380b191