Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
The FDP team is no longer accepting new bugs in Bugzilla. Please report your issues under FDP project in Jira. Thanks.

Bug 2196275

Summary: ovs prein script silently fails to add openvswitch to hugetlbfs group
Product: Red Hat Enterprise Linux Fast Datapath Reporter: Scott Dodson <sdodson>
Component: openvswitch3.1Assignee: Timothy Redaelli <tredaelli>
Status: CLOSED DUPLICATE QA Contact: ovs-qe
Severity: urgent Docs Contact:
Priority: unspecified    
Version: FDP 23.CCC: ctrautma, fleitner, jhsiao, ralongi, travier
Target Milestone: ---   
Target Release: ---   
Hardware: ppc64le   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-05-25 17:11:06 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 Scott Dodson 2023-05-08 14:37:05 UTC
Description of problem:
During RHCOS builds the prein script randomly fails to add the openvswitch user to hugetlbfs and as a result ovs cannot start. It'd be great if adding this user were made critical so the failure is not silent, this would ensure that RHCOS builds fail and we don't potentially ship a build where OVS is doomed to fail.

Version-Release number of selected component (if applicable):
openvswitch3.1	3.1.0	14.el9fdp

How reproducible:
Randomly, in RHCOS builds

Steps to Reproduce:
1. Build RHCOS w/ openvswitch3.1 on ppc64le
2.
3.

Actual results:
14:30:05  openvswitch3.1.prein: usermod.rpmostreesave: /etc/passwd.6: lock file already used
14:30:05  openvswitch3.1.prein: usermod.rpmostreesave: cannot lock /etc/passwd; try again later.


Expected results:
/usr/lib/group has 
hugetlbfs:x:801:openvswitch


Additional info:
https://issues.redhat.com/browse/OCPBUGS-13057

Comment 1 Timothée Ravier 2023-05-10 15:14:43 UTC
Packaging should be updated to use sysusers configs for user and group creation (https://docs.fedoraproject.org/en-US/packaging-guidelines/UsersAndGroups/#_allocation_strategies) as this should handle errors properly.

I've not looked at openvswitch specfile yet.

Comment 2 Timothy Redaelli 2023-05-25 17:11:06 UTC

*** This bug has been marked as a duplicate of bug 2193168 ***