Description of problem:
Using /usr/libexec/ovirt-config-password to configure admin password, when setting
"New password" and "Reytpe new Password" to different values, password.py will raise
stack trace info with follows:
[ERROR] Exception:
Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/ovirt/node/tools/password.py", line 80, in __ask_and_set_user_pasword
File "/usr/lib/python2.7/site-packages/ovirt/node/utils/security.py", line 68, in password_check
ValueError: Passwords Do Not Match
[ERROR] Password update failed: Passwords Do Not Match
Actually shown error info "[ERROR] Password update failed: Passwords Do Not Match" is enough to users,
Shown stack trace info wasn't necessary to users
Version-Release number of selected component (if applicable):
ovirt-node-iso-3.0.0-0.999.999.20130628210419git4aea851.2642.fc18.iso
How reproducible:
100%
Steps to Reproduce:
Actual results:
Expected results:
Additional info:
Fixed in:
http://gerrit.ovirt.org/16283
Tested as follows:
1. Run tool in dev mode
2. Enter a and s as password
3. Only
[ERROR] Password update failed: Passwords Do Not Match
is shown
$ PYTHONPATH=src/ scripts/ovirt-config-password
Password Configuration
Enter ? for help.
> set_admin_password
Password Configuration
System Administrator (admin):
Changing password for user 'admin'.
New password:
Reytpe new Password:
[ERROR] Password update failed: Passwords Do Not Match