Hide Forgot
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 /etc/shadow, root:!!:15210:0:99999:7::: admin:$6$7vtKw5wIQL06r6mD$iKp.fPDqQYm6or3rYobXoC8xyCg8nTP8X7OaXndXvoH1Qglp65pGyj2OhrQ.xCw.xJ4PBxl.RHY1eaoyNQi.B0:15212:0:99999 +:7::: Version-Release number of selected component (if applicable): rhev-hypervisor 6.2-0.14(ovirt-config-password support set different password for admin/root) How reproducible: 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, Actual results: root password lost after upgrade Expected results: Additional info:
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: --- a/scripts/ovirtfunctions.py +++ b/scripts/ovirtfunctions.py @@ -612,7 +612,7 @@ def unmount_config(files): if check_bind_mount(filename): 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)): return True
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. http://rhn.redhat.com/errata/RHBA-2011-1783.html