-
Bug
-
Resolution: Done-Errata
-
Critical
-
4.14.0
-
None
-
No
-
2
-
uShift Sprint 244
-
1
-
Rejected
-
False
-
-
Adjust rpm post install scripts so selinux labeling for microshift executable files is only applied after they have been installed.
-
Bug Fix
Description of problem:
microshift-selinux rpm post scriptlet fails
Version-Release number of selected component (if applicable):
microshift-selinux-4.14.1-202310271350.p0.g1586504
How reproducible:
100%
Steps to Reproduce:
1. Starting from a RHEL 9.2 hosts 2. Download ART 4.14.1 rpms brew download-build --latestfrom=RHBA-2023:6155-pending microshift 3. Setup a local repo with "createrepo ." 4. Point the host at the repo [root@microshift-dev yum.repos.d]# cat microshift-local.repo [microshift-local] name=MicroShift ART 4.14.1 baseurl=http://10.1.235.15:8086/ART/ enabled=1 gpgcheck=0 5. Check that the repo is available [root@microshift-dev yum.repos.d]# yum info microshift Updating Subscription Management repositories. Last metadata expiration check: 0:00:21 ago on Wed 01 Nov 2023 03:10:34 PM UTC. Available Packages Name : microshift Version : 4.14.1 Release : 202310271350.p0.g1586504.assembly.4.14.1.el9 Architecture : src Size : 32 M Source : None Repository : microshift-local Summary : MicroShift service URL : https://github.com/openshift/microshift License : ASL 2.0 Description : [Maintainer] project: OCPBUGS, component: MicroShift : The microshift package provides an OpenShift Kubernetes distribution optimized for small form factor and edge computing. Name : microshift Version : 4.14.1 Release : 202310271350.p0.g1586504.assembly.4.14.1.el9 Architecture : x86_64 Size : 49 M Source : microshift-4.14.1-202310271350.p0.g1586504.assembly.4.14.1.el9.src.rpm Repository : microshift-local Summary : MicroShift service URL : https://github.com/openshift/microshift License : ASL 2.0 Description : [Maintainer] project: OCPBUGS, component: MicroShift : The microshift package provides an OpenShift Kubernetes distribution optimized for small form factor and edge computing. 6. Install MicroShift
Actual results:
[root@microshift-dev yum.repos.d]# dnf install microshift Updating Subscription Management repositories. Last metadata expiration check: 0:00:44 ago on Wed 01 Nov 2023 03:10:34 PM UTC. Dependencies resolved. ==================================================================================================================================================================================================================$ Package Architecture Version Repository Size ==================================================================================================================================================================================================================$Installing: microshift x86_64 4.14.1-202310271350.p0.g1586504.assembly.4.14.1.el9 microshift-local 49 M Installing dependencies: NetworkManager-ovs x86_64 1:1.42.2-8.el9_2 rhel-9-for-x86_64-appstream-rpms 60 k conntrack-tools x86_64 1.4.7-2.el9 rhel-9-for-x86_64-appstream-rpms 239 k cri-o x86_64 1.26.4-4.1.rhaos4.13.git92b763a.el9 rhocp-4.13-for-rhel-9-x86_64-rpms 37 M cri-tools x86_64 1.26.0-3.1.el9 rhocp-4.13-for-rhel-9-x86_64-rpms 8.6 M greenboot x86_64 0.15.4-1.el9 rhel-9-for-x86_64-appstream-rpms 41 k libnetfilter_cthelper x86_64 1.0.0-22.el9 rhel-9-for-x86_64-appstream-rpms 26 k libnetfilter_cttimeout x86_64 1.0.0-19.el9 rhel-9-for-x86_64-appstream-rpms 25 k libnetfilter_queue x86_64 1.0.5-1.el9 rhel-9-for-x86_64-appstream-rpms 31 k microshift-greenboot noarch 4.14.1-202310271350.p0.g1586504.assembly.4.14.1.el9 microshift-local 18 k microshift-networking x86_64 4.14.1-202310271350.p0.g1586504.assembly.4.14.1.el9 microshift-local 18 k microshift-selinux noarch 4.14.1-202310271350.p0.g1586504.assembly.4.14.1.el9 microshift-local 24 k openvswitch-selinux-extra-policy noarch 1.0-34.el9fdp fast-datapath-for-rhel-9-x86_64-rpms 14 k openvswitch3.1 x86_64 3.1.0-54.el9fdp fast-datapath-for-rhel-9-x86_64-rpms 6.8 M unbound-libs x86_64 1.16.2-3.el9 rhel-9-for-x86_64-appstream-rpms 553 k Transaction Summary===================================================================================================================================================================================================================Install 15 Packages Total download size: 102 MInstalled size: 421 MIs this ok [y/N]: yDownloading Packages:(1/15): microshift-greenboot-4.14.1-202310271350.p0.g1586504.assembly.4.14.1.el9.noarch.rpm 2.2 MB/s | 18 kB 00:00(2/15): microshift-networking-4.14.1-202310271350.p0.g1586504.assembly.4.14.1.el9.x86_64.rpm 1.7 MB/s | 18 kB 00:00(3/15): microshift-selinux-4.14.1-202310271350.p0.g1586504.assembly.4.14.1.el9.noarch.rpm 5.1 MB/s | 24 kB 00:00(4/15): libnetfilter_cthelper-1.0.0-22.el9.x86_64.rpm 174 kB/s | 26 kB 00:00(5/15): libnetfilter_queue-1.0.5-1.el9.x86_64.rpm 212 kB/s | 31 kB 00:00(6/15): microshift-4.14.1-202310271350.p0.g1586504.assembly.4.14.1.el9.x86_64.rpm 131 MB/s | 49 MB 00:00(7/15): libnetfilter_cttimeout-1.0.0-19.el9.x86_64.rpm 118 kB/s | 25 kB 00:00(8/15): conntrack-tools-1.4.7-2.el9.x86_64.rpm 933 kB/s | 239 kB 00:00(9/15): greenboot-0.15.4-1.el9.x86_64.rpm 581 kB/s | 41 kB 00:00(10/15): NetworkManager-ovs-1.42.2-8.el9_2.x86_64.rpm 980 kB/s | 60 kB 00:00(11/15): unbound-libs-1.16.2-3.el9.x86_64.rpm 4.0 MB/s | 553 kB 00:00(12/15): openvswitch-selinux-extra-policy-1.0-34.el9fdp.noarch.rpm 34 kB/s | 14 kB 00:00(13/15): cri-tools-1.26.0-3.1.el9.x86_64.rpm 12 MB/s | 8.6 MB 00:00(14/15): openvswitch3.1-3.1.0-54.el9fdp.x86_64.rpm 11 MB/s | 6.8 MB 00:00(15/15): cri-o-1.26.4-4.1.rhaos4.13.git92b763a.el9.x86_64.rpm 26 MB/s | 37 MB 00:01-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------Total 54 MB/s | 102 MB 00:01Running transaction checkTransaction check succeeded.Running transaction testTransaction test succeeded.Running transaction Preparing : 1/1 Running scriptlet: openvswitch-selinux-extra-policy-1.0-34.el9fdp.noarch 1/15 Installing : openvswitch-selinux-extra-policy-1.0-34.el9fdp.noarch 1/15 Running scriptlet: openvswitch-selinux-extra-policy-1.0-34.el9fdp.noarch 1/15 Installing : cri-tools-1.26.0-3.1.el9.x86_64 2/15 Installing : cri-o-1.26.4-4.1.rhaos4.13.git92b763a.el9.x86_64 3/15 Running scriptlet: cri-o-1.26.4-4.1.rhaos4.13.git92b763a.el9.x86_64 3/15Created symlink /etc/systemd/system/multi-user.target.wants/crio-subid.service → /usr/lib/systemd/system/crio-subid.service.Created symlink /etc/systemd/system/crio.service.wants/crio-subid.service → /usr/lib/systemd/system/crio-subid.service. Installing : NetworkManager-ovs-1:1.42.2-8.el9_2.x86_64 4/15 Installing : greenboot-0.15.4-1.el9.x86_64 [============ Installing : greenboot-0.15.4-1.el9.x86_64 [=============== Installing : greenboot-0.15.4-1.el9.x86_64 [================ Installing : greenboot-0.15.4-1.el9.x86_64 [===================Installing : greenboot-0.15.4-1.el9.x86_64 [===================== Installing : greenboot-0.15.4-1.el9.x86_64 [======================== Installing : greenboot-0.15.4-1.el9.x86_64 [========================= Installing : greenboot-0.15.4-1.el9.x86_64 [=========================== Installing : greenboot-0.15.4-1.el9.x86_64 [============================ Installing : greenboot-0.15.4-1.el9.x86_64 [============================== Installing : greenboot-0.15.4-1.el9.x86_64 [================================== Installing : greenboot-0.15.4-1.el9.x86_64 [===================================== Installing : greenboot-0.15.4-1.el9.x86_64 [======================================= Installing : greenboot-0.15.4-1.el9.x86_64 [======================================== Installing : greenboot-0.15.4-1.el9.x86_64 [============================================== Installing : greenboot-0.15.4-1.el9.x86_64 [================================================= Installing : greenboot-0.15.4-1.el9.x86_64 [===================================================== Installing : greenboot-0.15.4-1.el9.x86_64 [===================================================== Installing : greenboot-0.15.4-1.el9.x86_64 5/15 Running scriptlet: greenboot-0.15.4-1.el9.x86_64 5/15Created symlink /etc/systemd/system/multi-user.target.wants/greenboot-healthcheck.service → /usr/lib/systemd/system/greenboot-healthcheck.service.Created symlink /etc/systemd/system/boot-complete.target.requires/greenboot-healthcheck.service → /usr/lib/systemd/system/greenboot-healthcheck.service.Created symlink /etc/systemd/system/multi-user.target.wants/greenboot-task-runner.service → /usr/lib/systemd/system/greenboot-task-runner.service.Created symlink /etc/systemd/system/redboot.target.requires/redboot-task-runner.service → /usr/lib/systemd/system/redboot-task-runner.service.Created symlink /etc/systemd/system/multi-user.target.wants/greenboot-status.service → /usr/lib/systemd/system/greenboot-status.service.Created symlink /etc/systemd/system/ostree-finalize-staged.service.requires/greenboot-grub2-set-counter.service → /usr/lib/systemd/system/greenboot-grub2-set-counter.service.Created symlink /etc/systemd/system/multi-user.target.wants/greenboot-grub2-set-success.service → /usr/lib/systemd/system/greenboot-grub2-set-success.service.Created symlink /etc/systemd/system/greenboot-healthcheck.service.requires/greenboot-rpm-ostree-grub2-check-fallback.service → /usr/lib/systemd/system/greenboot-rpm-ostree-grub2-check-fallback.service.Created symlink /etc/systemd/system/redboot.target.wants/redboot-auto-reboot.service → /usr/lib/systemd/system/redboot-auto-reboot.service. Running scriptlet: unbound-libs-1.16.2-3.el9.x86_64 6/15 Installing : unbound-libs-1.16.2-3.el9.x86_64 6/15 Running scriptlet: unbound-libs-1.16.2-3.el9.x86_64 6/15Created symlink /etc/systemd/system/timers.target.wants/unbound-anchor.timer → /usr/lib/systemd/system/unbound-anchor.timer. Running scriptlet: openvswitch3.1-3.1.0-54.el9fdp.x86_64 7/15 Installing : openvswitch3.1-3.1.0-54.el9fdp.x86_64 7/15 Running scriptlet: openvswitch3.1-3.1.0-54.el9fdp.x86_64 7/15 Installing : libnetfilter_cttimeout-1.0.0-19.el9.x86_64 8/15 Installing : libnetfilter_queue-1.0.5-1.el9.x86_64 9/15 Installing : libnetfilter_cthelper-1.0.0-22.el9.x86_64 10/15 Installing : conntrack-tools-1.4.7-2.el9.x86_64 11/15 Running scriptlet: conntrack-tools-1.4.7-2.el9.x86_64 11/15 Installing : microshift-greenboot-4.14.1-202310271350.p0.g1586504.assembly.4.14.1.el9.no 12/15 Running scriptlet: microshift-networking-4.14.1-202310271350.p0.g1586504.assembly.4.14.1.el9.x 13/15 Installing : microshift-networking-4.14.1-202310271350.p0.g1586504.assembly.4.14.1.el9.x 13/15 Running scriptlet: microshift-networking-4.14.1-202310271350.p0.g1586504.assembly.4.14.1.el9.x 13/15Warning: The unit file, source configuration file or drop-ins of NetworkManager.service changed on disk. Run 'systemctl daemon-reload' to reload units. Running scriptlet: microshift-selinux-4.14.1-202310271350.p0.g1586504.assembly.4.14.1.el9.noar 14/15 Installing : microshift-selinux-4.14.1-202310271350.p0.g1586504.assembly.4.14.1.el9.noar 14/15 Running scriptlet: microshift-selinux-4.14.1-202310271350.p0.g1586504.assembly.4.14.1.el9.noar 14/15restorecon: lstat(/usr/bin/microshift) failed: No such file or directoryrestorecon: lstat(/usr/bin/microshift-etcd) failed: No such file or directorywarning: %post(microshift-selinux-4.14.1-202310271350.p0.g1586504.assembly.4.14.1.el9.noarch) scriptlet failed, exit status 255 Error in POSTIN scriptlet in rpm package microshift-selinux Installing : microshift-4.14.1-202310271350.p0.g1586504.assembly.4.14.1.el9.x86_64 15/15 Running scriptlet: microshift-4.14.1-202310271350.p0.g1586504.assembly.4.14.1.el9.x86_64 15/15 Running scriptlet: openvswitch-selinux-extra-policy-1.0-34.el9fdp.noarch 15/15 Running scriptlet: microshift-selinux-4.14.1-202310271350.p0.g1586504.assembly.4.14.1.el9.noar 15/15 Running scriptlet: microshift-4.14.1-202310271350.p0.g1586504.assembly.4.14.1.el9.x86_64 15/15 Verifying : microshift-4.14.1-202310271350.p0.g1586504.assembly.4.14.1.el9.x86_64 1/15 Verifying : microshift-greenboot-4.14.1-202310271350.p0.g1586504.assembly.4.14.1.el9.no 2/15 Verifying : microshift-networking-4.14.1-202310271350.p0.g1586504.assembly.4.14.1.el9.x 3/15 Verifying : microshift-selinux-4.14.1-202310271350.p0.g1586504.assembly.4.14.1.el9.noar 4/15 Verifying : libnetfilter_cthelper-1.0.0-22.el9.x86_64 5/15 Verifying : libnetfilter_queue-1.0.5-1.el9.x86_64 6/15 Verifying : libnetfilter_cttimeout-1.0.0-19.el9.x86_64 7/15 Verifying : conntrack-tools-1.4.7-2.el9.x86_64 8/15 Verifying : unbound-libs-1.16.2-3.el9.x86_64 9/15 Verifying : greenboot-0.15.4-1.el9.x86_64 10/15 Verifying : NetworkManager-ovs-1:1.42.2-8.el9_2.x86_64 11/15 Verifying : cri-o-1.26.4-4.1.rhaos4.13.git92b763a.el9.x86_64 12/15 Verifying : cri-tools-1.26.0-3.1.el9.x86_64 13/15 Verifying : openvswitch-selinux-extra-policy-1.0-34.el9fdp.noarch 14/15 Verifying : openvswitch3.1-3.1.0-54.el9fdp.x86_64 15/15Installed products updated. Installed: NetworkManager-ovs-1:1.42.2-8.el9_2.x86_64 conntrack-tools-1.4.7-2.el9.x86_64 cri-o-1.26.4-4.1.rhaos4.13.git92b763a.el9.x86_64 cri-tools-1.26.0-3.1.el9.x86_64 greenboot-0.15.4-1.el9.x86_64 libnetfilter_cthelper-1.0.0-22.el9.x86_64 libnetfilter_cttimeout-1.0.0-19.el9.x86_64 libnetfilter_queue-1.0.5-1.el9.x86_64 microshift-4.14.1-202310271350.p0.g1586504.assembly.4.14.1.el9.x86_64 microshift-greenboot-4.14.1-202310271350.p0.g1586504.assembly.4.14.1.el9.noarch microshift-networking-4.14.1-202310271350.p0.g1586504.assembly.4.14.1.el9.x86_64 microshift-selinux-4.14.1-202310271350.p0.g1586504.assembly.4.14.1.el9.noarch openvswitch-selinux-extra-policy-1.0-34.el9fdp.noarch openvswitch3.1-3.1.0-54.el9fdp.x86_64 unbound-libs-1.16.2-3.el9.x86_64 Complete!
Expected results:
Additional info:
- clones
-
OCPBUGS-22809 microshift-selinux rpm post scriptlet fails
- Closed
- is blocked by
-
OCPBUGS-22809 microshift-selinux rpm post scriptlet fails
- Closed
- is duplicated by
-
OCPBUGS-23040 microshift-selinux scriptlet fails on RHEL 9.3 ARM
- Closed
- links to
-
RHBA-2023:6839 Red Hat build of MicroShift 4.14.z bug fix and enhancement update