-
Bug
-
Resolution: Duplicate
-
Undefined
-
None
-
rhel-9.6
-
None
-
No
-
None
-
rhel-image-mode
-
None
-
False
-
False
-
-
None
-
None
-
None
-
None
-
Unspecified
-
Unspecified
-
Unspecified
-
-
x86_64
-
None
What were you trying to do that didn't work?
using images.paas.redhat.com/bootc/rhel-bootc:latest-9.6 to build a local image. Try to add 'install openvswitch package' step on Containerfile and build it. Foud the openvswitch user id in image was different after run bootc switch.
What is the impact of this issue to you?
Even install openvswitch package on image, openvswitch id changed after bootc switch to host.
Please provide the package NVR for which the bug is seen:
podman-5.2.2-13.el9_5.x86_64
bootc-1.1.2-1.el9_5.x86_64
How reproducible is this bug?: 100%
Steps to reproduce
0. install a host and using ostreecontioner to specify a raw image
ostreecontainer --url quay.io/mhou/image_mode_rhel9.5
1.create Containerfile
FROM images.paas.redhat.com/bootc/rhel-bootc:RHEL-9.6.0-20250304.7 ADD http://lab-02.rhts.eng.rdu.redhat.com/beaker/anamon3 /usr/local/sbin/anamonRUN chmod 755 /usr/local/sbin/anamonADD https://certs.corp.redhat.com/certs/Current-IT-Root-CAs.pem /etc/pki/ca-trust/source/anchors/Current-IT-Root-CAs.pem RUN update-ca-trustADD ./resolv.conf /etc/resolv.confADD ./repo/*.repo /etc/yum.repos.d/# Install restraint, restraint-rhts RUN dnf -y install restraint restraint-rhts RUN dnf -y install http://download.devel.redhat.com/brewroot/packages/openvswitch-selinux-extra-policy/1.0/36.el9fdp/noarch/openvswitch-selinux-extra-policy-1.0-36.el9fdp.noarch.rpm http://download.devel.redhat.com/brewroot/packages/openvswitch3.4/3.4.0/48.el9fdp/x86_64/openvswitch3.4-3.4.0-48.el9fdp.x86_64.rpm
2.build target image
podman build --userns=host --security-opt seccomp=unconfined --cap-add=ALL -t localhost/bootc:beaker -f Containerfile .
3.check the userid and groupid in the image
[root@dell-per750-66 switch-to-rhel]# podman run -it --privileged -v /sys/fs/cgroup:/sys/fs/cgroup:ro --systemd=true --tmpfs /run --tmpfs /tmp --rm ae0fe9a24823 id openvswitch uid=986(openvswitch) gid=983(openvswitch) groups=983(openvswitch)
4.run bootc
[root@dell-per750-66 switch-to-rhel]# bootc switch --quiet --transport containers-storage localhost/bootc:beaker layers already present: 0; layers needed: 74 (1.9 GB) Deploying: done (3 seconds) Queued for next boot: ostree-unverified-image:containers-storage:localhost/bootc:beaker Version: 9.20250307.0 Digest: sha256:5ed74c900a1d4ba3e30c7a240e532331ecfad20e46caae60dd337ca45beedb46 [root@dell-per750-66 switch-to-rhel]# systemctl reboot [root@dell-per750-66 switch-to-rhel]# Connection to dell-per750-66.rhts.eng.pek2.redhat.com closed by remote host.
5.wait for system come back check the openvswitch id.
[root@dell-per750-66 ~]# id openvswitch
uid=981(openvswitch) gid=981(openvswitch) groups=981(openvswitch),983(hugetlbfs)
[root@dell-per750-66 ~]# ll /etc/openvswitch/
total 4
rw-rr-. 1 986 hugetlbfs 163 Mar 22 08:41 default.conf
Expected results
After run bootc and reboot system, openvswitch user id won't changed
Actual results
check the /etc/openvswitch, find the userid is 986, but current openvswitch id is 981.
- duplicates
-
RHEL-68655 Switch to DynamicUser=yes
-
- Planning
-