Bug 893682

Summary: Update rhevm-config to display additional note when using 3.0 style options to set password values (not just on --help).
Product: Red Hat Enterprise Virtualization Manager Reporter: Stephen Gordon <sgordon>
Component: ovirt-engine-configAssignee: Yaniv Bronhaim <ybronhei>
Status: CLOSED CURRENTRELEASE QA Contact: Ilanit Stein <istein>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 3.2.0CC: dyasny, iheim, oramraz, Rhev-m-bugs, sgrinber, ykaul, yzaslavs
Target Milestone: ---   
Target Release: 3.2.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: infra
Fixed In Version: sf9 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Infra RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 917401    

Description Stephen Gordon 2013-01-09 17:10:11 UTC
Description of problem:

The rhevm-config utility no longer accepts passwords provided via the command line as it did in 3.0 (good):

    $ rhevm-config -s AdminPassword=mysecretpassword
    'mysecretpassword' is not a valid value for type Password.

Users who read rhevm-config --help or the Admin Guide will discover the supported usage:

### Notes:
### 1. Passwords: password can be set in interacetive mode ie:
###        engine-config -s PasswordEntry=interactive
###    or via file with one of the following options:
###        engine-config -s PasswordEntry --admin-pass-file=/tmp/mypass
###        engine-config -s PasswordEntry=/tmp/mypass
### 2. In order for your change(s) to take effect,
###    restart the oVirt engine service (using: 'service ovirt-engine restart').
################################################################################

I think it would be more useful/helpful if the first note in particular were displayed if when setting a value of type password the user supplies anything other than one of the supported options (interactive, path, path combined with --admin-pass-file).

Comment 1 Yaniv Bronhaim 2013-02-18 11:53:13 UTC
Added the same note when password validation fails as requested above.

Comment 3 Ilanit Stein 2013-03-20 11:43:58 UTC
Verified on sf-10:

[root@istein-32 ovirt-engine]# rhevm-config -s AdminPassword=myPassword
Cannot set value myPassword to key AdminPassword. 


### Notes:
### 1. Passwords: password can be set in interactive mode ie:
###        engine-config -s AdminPassword=interactive
###    or via file with one of the following options:
###        engine-config -s AdminPassword --admin-pass-file=/tmp/mypass
###        engine-config -s AdminPassword=/tmp/mypass
### 2. In order for your change(s) to take effect,
###    restart the oVirt engine service (using: 'service ovirt-engine restart').
################################################################################

Comment 4 Itamar Heim 2013-06-11 08:28:07 UTC
3.2 has been released

Comment 5 Itamar Heim 2013-06-11 08:28:12 UTC
3.2 has been released

Comment 6 Itamar Heim 2013-06-11 08:31:23 UTC
3.2 has been released