Bug 2265291

Summary: CRIT Error messages in Anaconda installer causing test failures: CRIT groupadd:shadow: unknown configuration item
Product: [Fedora] Fedora Reporter: Radek Vykydal <rvykydal>
Component: shadow-utilsAssignee: Iker Pedrosa <ipedrosa>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: rawhideCC: ipedrosa, tm
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: shadow-utils-4.15.1-2.fc40 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2024-04-19 21:27:05 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Radek Vykydal 2024-02-21 10:15:51 UTC
Since yesterday we are seeing error messages like this:

23:48:42,466 CRIT groupadd:shadow: unknown configuration item 'PASS_CHANGE_TRIES' in '/etc/login.defs'
23:48:42,466 CRIT groupadd:shadow: unknown configuration item 'PASS_ALWAYS_WARN' in '/etc/login.defs'
23:48:42,466 CRIT groupadd:shadow: unknown configuration item 'HMAC_CRYPTO_ALGO' in '/etc/login.defs'

making our installer functional kickstart tests failing.

For more details see https://github.com/rhinstaller/kickstart-tests/issues/1061



Reproducible: Always

Steps to Reproduce:
1.Run installation with rawhide boot.iso (https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/images/boot.iso)
2.At the end of the installation look at the journal log in a terminal or at the /var/log/anaconda/journal.log on the installed system.
Actual Results:  
CRIT error messages in the log

Expected Results:  
No error messages in the log

The issue started to appear with this change in the shadow-utils version:
733,734c733,734
< shadow-utils-2:4.14.0-6.fc40.x86_64
< shadow-utils-subid-2:4.14.0-6.fc40.x86_64
---
> shadow-utils-2:4.15.0rc2-1.fc41.x86_64
> shadow-utils-subid-2:4.15.0rc2-1.fc41.x86_64

The installation seems to finish successfully in spite of the messages, not sure if the installed system has any issues related to the messages.

We need more a guidance about what to do with the tests now: are the messages going to disappear, should we ignore it, ...?

Thank you

Comment 2 Iker Pedrosa 2024-02-21 12:03:20 UTC
You can ignore these messages. Due to https://fedoraproject.org/wiki/Changes/LibuserDeprecation several configuration flags were changed and some unintended effects are happening. I will try to remove the messages, but that's going to take some time because the code complex in this area.

Comment 3 Radek Vykydal 2024-02-22 07:33:16 UTC
Thank you, works for me, we updated our tests to ignore the messages for now.

Comment 4 Fedora Update System 2024-04-02 10:37:51 UTC
FEDORA-2024-6935bd61f4 (shadow-utils-4.15.1-2.fc40) has been submitted as an update to Fedora 40.
https://bodhi.fedoraproject.org/updates/FEDORA-2024-6935bd61f4

Comment 5 Fedora Update System 2024-04-03 01:22:26 UTC
FEDORA-2024-6935bd61f4 has been pushed to the Fedora 40 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2024-6935bd61f4`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2024-6935bd61f4

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 6 Fedora Update System 2024-04-19 21:27:05 UTC
FEDORA-2024-6935bd61f4 (shadow-utils-4.15.1-2.fc40) has been pushed to the Fedora 40 stable repository.
If problem still persists, please make note of it in this bug report.