Bug 1851220

Summary: Fields for entering root password get grayed out
Product: Red Hat Enterprise Linux 8 Reporter: Jan Stodola <jstodola>
Component: anacondaAssignee: Vladimír Slávik <vslavik>
Status: CLOSED ERRATA QA Contact: Release Test Team <release-test-team-automation>
Severity: medium Docs Contact:
Priority: medium    
Version: 8.3CC: jikortus, jkonecny, rvykydal, sbueno, vslavik
Target Milestone: rcKeywords: TestCaseNeeded
Target Release: 8.0   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: anaconda-33.16.3.17-1 Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of:
: 1962159 (view as bug list) Environment:
Last Closed: 2020-11-04 03:23:52 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1812825    
Attachments:
Description Flags
screnshot
none
anaconda.log
none
syslog
none
Updates image for the Github PR none

Description Jan Stodola 2020-06-25 19:30:50 UTC
Description of problem:
It's not possible to enter root password in the Root Password spoke if the spoke was visited previously and the content of the fields was erased.

Version-Release number of selected component (if applicable):
RHEL-8.3.0-20200616.0
anaconda-33.16.3.6-1.el8

How reproducible:
Always

Steps to Reproduce:
1. Start graphical installation.
2. Proceed to the "Root Password" spoke.
3. Enter "a" into the "Root Password" field and delete it (Backspace).
4. Click Done to return to the main hub.
5. Enter the "Root Password" spoke again.
6. Try to set a new password.


Actual results:
Unable to set a new password, because both fields are grayed out .

Expected results:
It's possible to set a new password.

Comment 1 Jan Stodola 2020-06-25 19:33:50 UTC
Created attachment 1698847 [details]
screnshot

Comment 2 Jan Stodola 2020-06-25 19:34:08 UTC
Created attachment 1698848 [details]
anaconda.log

Comment 3 Jan Stodola 2020-06-25 19:34:31 UTC
Created attachment 1698849 [details]
syslog

Comment 4 Radek Vykydal 2020-06-26 07:54:16 UTC
Vladimir, I've messed with this area recently, so giving just a few pointers. The entry is greyed out because root is locked by setting password to "" in
https://github.com/rhinstaller/anaconda/blob/bc5b7d4088396a96860145af438f32196d669faf/pyanaconda/modules/users/users.py#L335
which makes the entry insensitive in the UI I guess. In Fedora, where the ui (checkbox) for locking root is exposed
it would be possible to make the entry sensitive by unchecking the Lock checkbox I think but in RHEL, we hide it:
https://github.com/rhinstaller/anaconda/blob/bc5b7d4088396a96860145af438f32196d669faf/pyanaconda/ui/gui/spokes/root_password.py#L76
... well, you'll find out and fix up what I've started.

Comment 8 Vladimír Slávik 2020-07-16 14:00:08 UTC
Fix candidate PR: https://github.com/rhinstaller/anaconda/pull/2739

Comment 9 Vladimír Slávik 2020-07-16 14:33:56 UTC
Created attachment 1701407 [details]
Updates image for the Github PR

Comment 16 errata-xmlrpc 2020-11-04 03:23:52 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 (anaconda bug fix and enhancement update), 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://access.redhat.com/errata/RHBA-2020:4729