Bug 2046458

Summary: setroubleshoot-server update fails in preinstall script trying to `useradd` on a group that already exists
Product: [Fedora] Fedora Reporter: Nate Graham <nate>
Component: setroubleshootAssignee: Petr Lautrbach <plautrba>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 35CC: dwalsh, grepl.miroslav, mmalik, plautrba, vmojzis
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: setroubleshoot-3.3.28-3.fc35 Doc Type: ---
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-02-17 03:14:44 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:

Description Nate Graham 2022-01-26 18:00:47 UTC
$ sudo dnf upgrade

Dependencies resolved.
====================================================================================================
 Package                         Architecture     Version                   Repository         Size
====================================================================================================
Upgrading:
 setroubleshoot-server           x86_64           3.3.27-2.fc35             updates           317 k

Transaction Summary
====================================================================================================
Upgrade  1 Package

Total download size: 317 k
Is this ok [y/N]: y
Downloading Packages:
setroubleshoot-server-3.3.27-2.fc35.x86_64.rpm                      359 kB/s | 317 kB     00:00    
----------------------------------------------------------------------------------------------------
Total                                                               196 kB/s | 317 kB     00:01     
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
  Preparing        :                                                                            1/1 
  Running scriptlet: setroubleshoot-server-3.3.27-2.fc35.x86_64                                 1/2 
useradd: group setroubleshoot exists - if you want to add this user to that group, use -g.
error: %prein(setroubleshoot-server-3.3.27-2.fc35.x86_64) scriptlet failed, exit status 9

Error in PREIN scriptlet in rpm package setroubleshoot-server
  Verifying        : setroubleshoot-server-3.3.27-2.fc35.x86_64                                 1/2 
  Verifying        : setroubleshoot-server-3.3.26-5.fc35.x86_64                                 2/2 

Failed:
  setroubleshoot-server-3.3.26-5.fc35.x86_64       setroubleshoot-server-3.3.27-2.fc35.x86_64      

Error: Transaction failed

Comment 1 Fedora Update System 2022-02-09 12:00:22 UTC
FEDORA-2022-611d8856d5 has been submitted as an update to Fedora 35. https://bodhi.fedoraproject.org/updates/FEDORA-2022-611d8856d5

Comment 2 Fedora Update System 2022-02-10 02:56:46 UTC
FEDORA-2022-611d8856d5 has been pushed to the Fedora 35 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2022-611d8856d5`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2022-611d8856d5

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

Comment 3 Fedora Update System 2022-02-17 03:14:44 UTC
FEDORA-2022-611d8856d5 has been pushed to the Fedora 35 stable repository.
If problem still persists, please make note of it in this bug report.