Bug 784833

Summary: -d param is positionally dependent
Product: [Retired] CloudForms Cloud Engine Reporter: Brad P. Crochet <brad>
Component: aeolus-configureAssignee: Jason Guiditta <jguiditt>
Status: CLOSED CURRENTRELEASE QA Contact: wes hayutin <whayutin>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 1.0.0CC: akarol, deltacloud-maint, jguiditt, slinaber, ssachdev
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-08-30 17:16:08 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 Brad P. Crochet 2012-01-26 11:45:35 UTC
Description of problem:
When -d is given directly after the aeolus-configure command, it does not produce debug output

Version-Release number of selected component (if applicable):
aeolus-configure-2.6.0-0.20120118121620gita996371.fc16.noarch


How reproducible:
Always

Steps to Reproduce:
1. run 'aeolus-configure -d -v -p mock' produces verbose output, but not debug output
2. run 'aeolus-configure -v -p mock -d' produces debug output
3. run 'aeolus-configure -v -d -p mock' produces debug output
  
Actual results:
No debug output

Expected results:
Debug output

Additional info:

Comment 1 Brad P. Crochet 2012-01-26 12:43:17 UTC
It appears that is -v comes after -d, it doesn't work.

I just tried 'aeolus-configure -p mock -d -v' and it did not produce debug output, but 'aeolus-configure -p mock -v -d' does.

Comment 2 Jason Guiditta 2012-01-27 20:02:30 UTC
commit 67f6c09c528211450070248c53a0ce2cf723477e
Author: Jason Guiditta <jguiditt>
Date:   Fri Jan 27 14:45:12 2012 -0500

    BZ #784833. -d param is positionally dependent
    
    https://bugzilla.redhat.com/show_bug.cgi?id=784833
    
    It turns out both of these flags set a LOGLEVEL variable,
    so really only one can be set at a time. configure honors the
    last one passed in, so I just updated the help to explain this.

Comment 3 Steve Linabery 2012-01-31 22:11:58 UTC
32fc095  in aeolus-configure-2.5.0-11

Comment 4 Aziza Karol 2012-02-01 12:51:26 UTC
aeolus-configure help updated which states the usage.

# aeolus-configure  -h

USAGE:
aeolus-configure [-d|--debug] [-h|--help] [-v|--verbose] [-p|--profile]

OPTIONS:
   -h | --help       Show this message.
   -d | --debug      Debug logging mode.
   -v | --verbose    Verbose logging mode.
                     Note that you can only set one of the previous two options per run. If both are set,
                     the last one passed in will be honored.
   -p | --profile    Name of profile to use. A comma separated list can be used to specify multiple profiles. 

#rpm -qa | grep aeolus
rubygem-aeolus-image-0.3.0-7.el6.noarch
aeolus-conductor-doc-0.8.0-17.el6.noarch
rubygem-aeolus-cli-0.3.0-7.el6.noarch
aeolus-configure-2.5.0-11.el6.noarch
aeolus-conductor-daemons-0.8.0-17.el6.noarch
aeolus-all-0.8.0-17.el6.noarch
aeolus-conductor-0.8.0-17.el6.noarch