Bug 977479

Summary: enhance password tool with some usability fixes
Product: [Retired] oVirt Reporter: Mike Burns <mburns>
Component: ovirt-nodeAssignee: Fabian Deutsch <fdeutsch>
Status: CLOSED CURRENTRELEASE QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: gouyang, hadong, jboggs, leiwang, mburns, mgoldboi, ovirt-bugs, ovirt-maint, rbalakri, ycui
Target Milestone: ---Keywords: Reopened
Target Release: 3.5.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: node
Fixed In Version: ovirt-node-3.0.3 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 980795 (view as bug list) Environment:
Last Closed: 2014-10-17 12:20:56 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:
Embargoed:
Bug Depends On:    
Bug Blocks: 980795    

Description Mike Burns 2013-06-24 16:14:38 UTC
Description of problem:
Primarily Usability related.

1.  Provide command list in initial text

Currently:

 Password Configuration

 Enter ? for help.

>

We could list the set_admin_password, etc there so users have some idea what to do without running help.

2.  tell the user the current state of SSH passwd auth

Old tool said "Current Status is Enabled/Disabled".  This should do something similar

3.  possibly provide overrides for some commands 
     ( admin to set admin password, root for root password, ssh for ssh, q for quit)

Optional, but might be nicer to have some quick commands that simply wrap the top level commands like:

admin --> set_admin_password
root --> set_root_password
ssh --> set_ssh_password_authentication
q --> quit

Comment 1 Fabian Deutsch 2013-08-26 10:38:40 UTC
I addressed all of your suggestions above.

The default prompt after launching the tool is now:

$ PYTHONPATH=src scripts/ovirt-config-password -v


 Password Configuration


Possible commands:
admin  Set the password of the user 'admin'
help   Show this help. [`help --all` to show all available functions]
q      Quit this tool
quit   Quit this tool
root   Set the password of the user 'root'
ssh    Enable or disable the SSH password authentication

[INFO] SSH password authentication is currently disabled

>

Comment 2 Sandro Bonazzola 2014-10-17 12:20:56 UTC
oVirt 3.5 has been released and should include the fix for this issue.