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

Summary: Error message is displayed after inputting "imgbase" command.
Product: [oVirt] ovirt-node Reporter: Wei Wang <weiwang>
Component: Installation & UpdateAssignee: Douglas Schilling Landgraf <dougsland>
Status: CLOSED WORKSFORME QA Contact: Wei Wang <weiwang>
Severity: medium Docs Contact:
Priority: medium    
Version: 4.0CC: bugs, cshao, fdeutsch, huiwa, huzhao, leiwang, rbarry, yaniwang, ycui
Target Milestone: ovirt-4.1.0-alphaFlags: fdeutsch: ovirt-4.1?
rule-engine: planning_ack?
fdeutsch: devel_ack+
ycui: testing_ack+
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-08-15 18:00:23 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Node RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Description Flags
ks file
log files none

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):

How reproducible:

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

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
  --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.