OCPBUGS-64841: passwd & group: Add containers user & group#224
OCPBUGS-64841: passwd & group: Add containers user & group#224dustymabe merged 2 commits intocoreos:mainfrom
Conversation
The openvswitch user and group have been part of the passwd & group files for, at least, as long as we've published RHCOS sources publicly: - https://github.com/openshift/os/blame/bdb5b8153ed68c88e2485d9e7bd66ea6eb54d6c1/passwd#L27 - https://github.com/openshift/os/blame/release-4.19/group#L47 We did not remove them when we re-visited our fixed UIDs/GID in the split between the RHEL boot image and the new OCP node image ([1], [2] & [3]). Thus they are now part of the base RHEL boot image, even though the openvswitch package is not included there. Although technically unnecessary, this is fine and simplify things a bit as we do not have to update the user & group entries during the node image build, which is currently a problematic topic (see [4]). Thus instead of adding openvswitch to hugetlbfs group in the node image build, we add it here directly to simplify the logic. [1] openshift/os#1661 [2] coreos#29 [3] coreos#31 [4] openshift/os#1917
Adding users and groups during a container image layered build is currently non-ergonomic with bootable containers. Thus instead of doing that in openshift/os for the node layer, we directly include the user & group here, which also guarentees us that the UID/GID remain stable. See openshift/os#1917 for the original version of this change and the full details about what makes adding user/group in the node layer non-ergonomic. Unfortunately we can not use the UID/GID that were used in the last "full" RHCOS image (4.18) as those are now used for dnsmasq (see [1]). Thus use the first UID & GID available for both user and group, going downward. [1] openshift/os#1917 (comment) Fixes: https://redhat.atlassian.net/browse/OCPBUGS-64841
|
@travier: This pull request references Jira Issue OCPBUGS-64841, which is invalid:
Comment The bug has been updated to refer to the pull request using the external bug tracker. DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository. |
There was a problem hiding this comment.
Code Review
This pull request introduces a new 'containers' user and group, both assigned ID 790, which are intended for rootless container operations. Additionally, the 'hugetlbfs' group entry has been updated to include 'openvswitch' as a member. There is no feedback to provide.
b687d93 to
5d3577a
Compare
We are moving the group inclusion directly to the RHEL base image instead of working around it here in the OCP node layer. See: openshift#1917 See: coreos/rhel-coreos-config#224 See: https://redhat.atlassian.net/browse/OCPBUGS-64841
|
Workaround removal for the node layer: openshift/os#1918 |
|
This looks good from my perspective but would love someone who knows more to review/approve too. I will note that I assume we want to apply this to the /approve |
|
Yes, we'll need it in RHEL 9.6 as well. |
Looks like coreos/fedora-coreos-tracker#2095 (also openshift/os#1916 (comment)) |
|
/retest |
|
The The problem here is that two tests failed: |
jlebon
left a comment
There was a problem hiding this comment.
Unfortunately we can not use the UID/GID that were used in the last "full" RHCOS image (4.18) as those are now used for dnsmasq (see [1]).
I think that's fine, but just the fact that it can happen is... 😢
We really need to get away from this setup.
|
/lgtm |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: dustymabe, jlebon, travier The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
/jira refresh |
1 similar comment
|
/jira refresh |
|
@dustymabe: This pull request references Jira Issue OCPBUGS-64841, which is valid. The bug has been moved to the POST state. 3 validation(s) were run on this bug
DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository. |
|
@travier: Jira Issue OCPBUGS-64841: Some pull requests linked via external trackers have merged: The following pull request, linked via external tracker, has not merged:
All associated pull requests must be merged or unlinked from the Jira bug in order for it to move to the next state. Once unlinked, request a bug refresh with Jira Issue OCPBUGS-64841 has not been moved to the MODIFIED state. DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository. |
We are moving the group inclusion directly to the RHEL base image instead of working around it here in the OCP node layer. See: openshift#1917 See: coreos/rhel-coreos-config#224 See: https://redhat.atlassian.net/browse/OCPBUGS-64841
We are moving the group inclusion directly to the RHEL base image instead of working around it here in the OCP node layer. See: openshift#1917 See: coreos/rhel-coreos-config#224 See: https://redhat.atlassian.net/browse/OCPBUGS-64841
We are moving the group inclusion directly to the RHEL base image instead of working around it here in the OCP node layer. See: openshift#1917 See: coreos/rhel-coreos-config#224 See: https://redhat.atlassian.net/browse/OCPBUGS-64841
|
Fix included in release 4.22.0-0.nightly-2026-04-11-163821 |
group: Add openvswitch to hugetlbfs group
The openvswitch user and group have been part of the passwd & group
files for, at least, as long as we've published RHCOS sources publicly:
We did not remove them when we re-visited our fixed UIDs/GID in the
split between the RHEL boot image and the new OCP node image ([1], [2] &
[3]). Thus they are now part of the base RHEL boot image, even though
the openvswitch package is not included there.
Although technically unnecessary, this is fine and simplify things a bit
as we do not have to update the user & group entries during the node
image build, which is currently a problematic topic (see [4]).
Thus instead of adding openvswitch to hugetlbfs group in the node image
build, we add it here directly to simplify the logic.
[1] openshift/os#1661
[2] #29
[3] #31
[4] openshift/os#1917
passwd & group: Add containers user & group
Adding users and groups during a container image layered build is
currently non-ergonomic with bootable containers. Thus instead of doing
that in openshift/os for the node layer, we directly include the user &
group here, which also guarentees us that the UID/GID remain stable.
See openshift/os#1917 for the original version
of this change and the full details about what makes adding user/group
in the node layer non-ergonomic.
Unfortunately we can not use the UID/GID that were used in the last
"full" RHCOS image (4.18) as those are now used for dnsmasq (see [1]).
Thus use the first UID & GID available for both user and group, going
downward.
[1] openshift/os#1917 (comment)
Fixes: https://redhat.atlassian.net/browse/OCPBUGS-64841