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:
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.
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?
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