Bug 1335410

Summary: Failed to run virt-who-password command in rhev-hypervisor7-ng
Product: Red Hat Enterprise Virtualization Manager Reporter: Eko <hsun>
Component: rhev-hypervisor-ngAssignee: Douglas Schilling Landgraf <dougsland>
Status: CLOSED ERRATA QA Contact: Virtualization Bugs <virt-bugs>
Severity: medium Docs Contact:
Priority: medium    
Version: 2.1.0CC: cshao, dfediuck, fdeutsch, gklein, hsun, lsurette, pstehlik, rbarry, sgao, shihliu, srevivo, ycui, ykaul
Target Milestone: ovirt-4.0.0-beta   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-08-23 21:07:36 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:

Description Eko 2016-05-12 08:23:23 UTC
Description of problem:
execute virt-who-password command to create an encrypted_password, it will show error msg: 
" Keyfile /var/lib/virt-who/key doesn't exist and can't be created, rerun as root"

Version-Release number of selected component (if applicable):
- rhev-hypervisor7-ng-3.6-20160506.0
- virt-who-0.14-9.el7.noarch
- subscription-manager-1.15.9-15.el7.x86_64
- python-rhsm-1.15.4-5.el7.x86_64

How reproducible:
always

Steps to Reproduce:
1. deploy rhev-hypervisor7-ng-3.6-20160506.0

2. login rhev-h by root account

3. run virt-who-password and input "admin" 
# virt-who-password 
Password: 
Keyfile /var/lib/virt-who/key doesn't exist and can't be created, rerun as root

Actual results:
create encrypted_password failed

Expected results:
the encrypted_password value should be created normally

Additional info:

Comment 2 Radek Novacek 2016-05-18 08:52:31 UTC
This is caused by the fact that the filesystem is readonly in RHEV-H.

Can be the file /var/lib/virt-who/key made writable? Or rather whole directory /var/lib/virt-who/? virt-who uses this directory for its internal files which are required for its correct operation. Thanks.

Comment 3 Fabian Deutsch 2016-05-18 10:36:23 UTC
This bug appeared on RHEV-H NG which has a writable filesystem on /var.

Thus it is not a read-only problem.

Eko, do you have a traceback or more detailed logs?

Comment 4 Eko 2016-05-19 09:05:07 UTC
Fabian, I checked it again with rhev-hypervisor7-ng-3.6-20160518.0.x86_64.
can't reproduce this issue any more. verified it.

Comment 7 errata-xmlrpc 2016-08-23 21:07:36 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-1702.html