Note: This is a beta release of Red Hat Bugzilla 5.0. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Also email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback here.
Bug 1366508 - Error message is displayed after inputting "imgbase" command.
Summary: Error message is displayed after inputting "imgbase" command.
Keywords:
Status: CLOSED WORKSFORME
Alias: None
Product: ovirt-node
Classification: oVirt
Component: Installation & Update
Version: 4.0
Hardware: Unspecified
OS: Unspecified
medium
medium vote
Target Milestone: ovirt-4.1.0-alpha
: ---
Assignee: Douglas Schilling Landgraf
QA Contact: Wei Wang
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-08-12 07:21 UTC by Wei Wang
Modified: 2016-08-15 18:00 UTC (History)
9 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-08-15 18:00:23 UTC
oVirt Team: Node
fdeutsch: ovirt-4.1?
rule-engine: planning_ack?
fdeutsch: devel_ack+
ycui: testing_ack+


Attachments (Terms of Use)
ks file (deleted)
2016-08-12 07:21 UTC, Wei Wang
no flags Details
log files (deleted)
2016-08-12 07:22 UTC, Wei Wang
no flags Details

Description Wei Wang 2016-08-12 07:21:08 UTC
Created attachment 1190277 [details]
ks file

Description of problem:
Error message is displayed after inputting "imgbase" command.


Version-Release number of selected component (if applicable):
redhat-virtualization-host-4.0-20160811.0.x86_64
imgbased-0.8.4-1.el7ev.noarch


How reproducible:
100%

Steps to Reproduce:
1. Install RHVH with kickstart file in attachment
2. Login with root account
3. Input "imgbase" command, then checking


Actual results:
Error message is displayed after inputting "imgbase" command.
[root@dhcp-11-209 ~]# imgbase
usage: imgbase [-h] [--version] [--debug] [--experimental] [--stream STREAM]
               {base,layer,w,layout,check,motd,update,rollback} ...
imgbase: error: too few arguments



Expected results:
Command help text should be displayed without error message.



Additional info:

Comment 1 Wei Wang 2016-08-12 07:22:44 UTC
Created attachment 1190278 [details]
log files

Comment 2 Douglas Schilling Landgraf 2016-08-15 18:00:23 UTC
Hi, 

I don't think it's an issue, imgbase require additional parameter and the message is pretty straightforward, "too few arguments".

# imgbase 
usage: imgbase [-h] [--version] [--debug] [--experimental] [--stream STREAM]
               {base,layer,w,layout,check,motd,update,rollback} ...
"imgbase: error: too few arguments"

The tool will require the users to provide the subcommands like: 'base, layer, w, layout, check, motd, update or rollback' or use the optional arguments, like:

  -h, --help            show this help message and exit
  --version             show program's version number and exit
  --debug
  --experimental        Enable experimental functionality
  --stream STREAM

# imgbase 
usage: imgbase [-h] [--version] [--debug] [--experimental] [--stream STREAM]
               {base,layer,w,layout,check,motd,update,rollback} ...
imgbase: error: too few arguments

# echo $?
2 (Looks good, non success)

Finally, the "error" string came from argparse as one argument is required and it's non optional. Fell free to re-open the report in case you disagree.


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