Bug 1209350

Summary: Rhevh7.1: virt-who failed to decrypt encrypted password as failed to run "virt-who-password"
Product: Red Hat Enterprise Virtualization Manager Reporter: Liushihui <shihliu>
Component: ovirt-nodeAssignee: Ryan Barry <rbarry>
Status: CLOSED ERRATA QA Contact: Huijuan Zhao <huzhao>
Severity: urgent Docs Contact:
Priority: unspecified    
Version: 3.5.0CC: cshao, dfediuck, fdeutsch, gklein, gxing, huiwa, leiwang, lsurette, pstehlik, rbarry, rnovacek, sgao, shihliu, yaniwang, ycui, yeylon, ykaul
Target Milestone: ovirt-3.6.0-rcKeywords: ZStream
Target Release: 3.6.0   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: ovirt-node-3.3.0-0.4.20150906git14a6024.el7ev Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 1241820 1263219 (view as bug list) Environment:
Last Closed: 2016-03-09 14:22:01 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: 1241820, 1263219    

Description Liushihui 2015-04-07 07:01:22 UTC
Description of problem:
Failed to decrypt encrypted password as it failed to run command "virt-who-password" on RHEVH7.1. 

Version-Release number of selected component (if applicable):
rhevh-vdsm7-7.1-20150402.0.el7ev
virt-who-0.11-5.el7.noarch

How reproducible:
Always

Steps to Reproduce:
1. On the CLI: login to rhevh with root, run command of "virt-who-password"
[root@hp-z220-04 ~]# virt-who-password 
/usr/bin/python: can't open file '/usr/share/virt-who/virtwhopassword.py': [Errno 2] No such file or directory

Actual results:
Failed to run "virt-who-password", it will block us to generate encrypted password

Expected results:
"virt-who-password" used to generate a "encrypted password" which used to decrypt password.

Additional info:
This bug isn't exist on RHEL7.1

Comment 1 Liushihui 2015-04-07 07:42:47 UTC
This bug has blocked virt-who's new function of "decrypt encrypted password", it should be resolved ASAP.

Comment 2 Ying Cui 2015-04-07 07:55:45 UTC
(In reply to Liushihui from comment #1)
> This bug has blocked virt-who's new function of "decrypt encrypted
> password", it should be resolved ASAP.

After confirmed with Shihui entitlement QE, there is virt-who new function on rhel 7.1, see bug 1161607, so rhevh also need to make corresponding adjustment to meet the new function of rhel 7.1.

Bug 1161607 - virt-who not able to decrypt encrypted password.

Comment 4 Liushihui 2015-04-09 05:55:06 UTC
rhevh-vdsm6-6.6-20150402.0 has the same problem.

Comment 5 Fabian Deutsch 2015-05-28 15:36:16 UTC
Liushihui, why is this feature important and what can a user do with it? When is it needed?

Moving this to 3.6 for now, if it's urgent, then we can backport that change.

Comment 6 Liushihui 2015-06-01 02:41:41 UTC
Hi Eabian, 
Since customers requesting password encryption feature. In the previous version of virt-who, administrator/root's password can show on virt-who's configure file as Plaintext, threaten system's security.Therefore, Customers asked for this new feature. please see the detail on bug 1161604. Thanks.

Thanks.
Liushihui
(In reply to Fabian Deutsch from comment #5)
> Liushihui, why is this feature important and what can a user do with it?
> When is it needed?
> 
> Moving this to 3.6 for now, if it's urgent, then we can backport that change.

Comment 7 Ying Cui 2015-07-10 08:02:30 UTC
snip from bug 1241820 which is cloned from this bug, "It also exist on Rhev-hypervisor-6-6.7-20150707.0"

Fabian, not sure how urgent it is on RHEV, you can see comment 6 to whether we clone it to 3.5.z? Thanks.

Comment 8 Ying Cui 2015-07-10 08:11:56 UTC
*** Bug 1241820 has been marked as a duplicate of this bug. ***

Comment 11 Huijuan Zhao 2015-11-17 05:47:33 UTC
Version-Release number of selected component (if applicable):
rhev-hypervisor-7-7.2-20151112.1.e17ev
ovirt-node-3.6.0-0.20.20151103git3d3779a.el7ev.noarch


Test Steps:
1. Install rhevh
2. Login rhevh, press "F2" to rescue shell, run command of "virt-who-password"
# virt-who-password 


Test results:
1. "virt-who-password" used to generate a "encrypted_password" which used to decrypt password.
# virt-who-password
Password: 
Use following as value for encrypted_password key in the configuration file:
87b09966fb9b12f063b9c5dbef57e0ed

So this bug is fixed on rhev-hypervisor-7-7.2-20151112.1.e17ev, I will change the status to verified.

Comment 13 errata-xmlrpc 2016-03-09 14:22:01 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://rhn.redhat.com/errata/RHBA-2016-0378.html