Description of problem:
have set password for both admin/root user, login correctly, after upgrade from TUI menu, or from rhevm,
will cost the root password lost, admin login ok
Version-Release number of selected component (if applicable):
rhev-hypervisor 6.2-0.14(ovirt-config-password support set different password for admin/root)
met this several times when upgrade from TUI or rhevm
Steps to Reproduce:
1,have installed rhev-hypervisor, set password for both admin/root
2,upgrade from rhevm/TUI menu,
3,root password lost after upgrade,
root password lost after upgrade
Are you assuming that setting the password in the TUI during install will set the password for the root user? Or are you setting it using the rootpw commandline option?
setting all the password by TUI, no any rootpw used in this bug, i assume that we only set the password for admin user in TUI, but we shouldn't clear the root password in upgrade
(In reply to comment #4)
> setting all the password by TUI, no any rootpw used in this bug, i assume that
> we only set the password for admin user in TUI, but we shouldn't clear the root
> password in upgrade
I agree, we shouldn't touch the root password at all during upgrade, but from what you describe, you don't have a root password set at all. Nothing in the TUI will set or change the root password.
Keeps root password:
- with "upgrade" boot parameter
- in-place: mount /dev/cdrom /live; /usr/libexec/ovirt-config-boot /live
Clears root password:
- Upgrade via TUI
Root cause is a bug in ovirtfunctions.unmount_config:
@@ -612,7 +612,7 @@ def unmount_config(files):
ret = os.system('umount -n "%s" &>/dev/null' % filename)
if ret == 0:
- if os.path.exists('/config"%s"' % filename):
+ if os.path.exists('/config%s' % filename):
# refresh the file in rootfs if it was mounted over
if os.system('cp -a /config"%s" "%s" &> /dev/null' % (filename,filename)):
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.