New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix the condition for completing the root configuration (#1981807) #3701
Conversation
/kickstart-test --testtype smoke |
/kickstart-test --testtype users |
Looks good at a glance. However, make sure to check behavior on repeated changes from ui. The "caching" of values in the spokes and module sometimes interact weirdly. |
It looks simple, elegant and correct to me. However, we really need to check if we won't break something else. Could you please run appropriate KS tests on this (maybe all of them)? Probably a dumb question but did you tested the issue what RHEV is facing? If this will stop the installation in case the root password is not set? |
I have tested the changes. The good stuff that will be fixed with this pull request:
The questionable stuff that will change with this pull request:
@jkonecny12, @jstodola, are the changes acceptable? |
The installation guide answers the question:
We should not change this documented behavior. |
|
Are we somehow able to change #3701 (comment) without changing other behavior? Sounds to me that it should be possible to just detect that rootpw --locked was used? |
It is doable. I have a suspicion that the initial setup allows to enable a locked root account, so we might need a workaround for that. There is a new commit with suggested changes, but it needs to be tested. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, as far as I can tell. Untangling sensitive
from completed
is a huge win.
Don't allow to enter the spoke if the root account is already configured in the kickstart file in Anaconda. Just a note, the Initial Setup in the reconfiguration mode always allows to enter this spoke. Related: rhbz#1981807
d37bb77
to
6b5e8df
Compare
Retested with Anaconda and Initial Setup. The questionable stuff from #3701 (comment) are fixed. Initial Setup is not affected by these changes. |
/kickstart-test --testtype smoke |
/kickstart-test --testtype users |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me. Thank you!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me. Thanks!
If the root account is locked, show the "Root account is disabled" status. Without the fix, Anaconda shows "Disabled, set password to enable" if there is `firstboot --reconfig` in a kickstart file. The workaround for the Initial Setup can be removed. It was implemented in the commit 98d7b29 for the bug 1507940, but the bug didn't require to add a special status. Related: rhbz#1981807
/kickstart-test --testtype smoke |
/kickstart-test --testtype users |
I have found another bug. See the last commit, please. I planned to remove this code anyway, so let's do it now since it doesn't work properly. @jstodola, @jkonecny12, @M4rtinK |
Ack. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for this fix. Looks good to me.
Ported to upstream at #3775. |
Revert changes in the
completed
property of the root configuration spokethat were done in the commits e1dd6aa and 862eee2. They were never necessary.
Resolves: rhbz#1981807