• change of exit code during transition from mockchain to mock --chain
  • support run in Fedora Toolbox (otaylor@fishsoup.net)
  • add cheat sheet
  • Adding tool for parsing build.log (sisi.chlupova@gmail.com)
  • load secondary groups [#1264005]
  • pass --allowerasing by default to DNF [GH#251]
  • make include() functional for --chain [GH#263]
  • Removing buildstderr from log - configurable via _mock_stderr_line_prefix (sisi.chlupova@gmail.com)
  • Fixup: Use rpm -qa --root instead of running rpm -qa in chroot (miro@hroncok.cz)
  • DynamicBuildrequires: Detect when no new packages were installed (miro@hroncok.cz)
  • Allow more loop devices (sisi.chlupova@gmail.com)
  • Fix binary locations in /bin for split-usr setups (bero@lindev.ch)
  • describe behaviour of resultdir together with --chain [GH#267]
  • repeat dynamic requires if needed [GH#276]
  • Fix compatibility with pre-4.15 RPM versions with DynamicBuildRequires (i.gnatenko.brain@gmail.com)
  • Enable dynamic BuildRequires by default (i.gnatenko.brain@gmail.com)
  • bootstrap: independent network configuration (praiskup@redhat.com)
  • Update the man page about ~/.config/mock/FOO.cfg (miro@hroncok.cz)
  • explicitely convert releasever to string [GH#270]
  • grant anyone access to bind-mounted /etc/resolv.conf (praiskup@redhat.com)
  • -r FOO will try to read first ~/.mock/FOO.cfg if exists
  • enhance man page of mock about --chain
  • bash completion for --chain
  • respect use_host_resolv config even with use_nspawn (praiskup@redhat.com)
  • Fix crash on non-ascii dnf log messages (bkorren@redhat.com)
  • add deprecation warning to mockchain
  • replace mockchain with mock --chain command (necas.marty@gmail.com)
  • switch to python3 on el7 (msuchy@redhat.com)

  • disable updates-modulare repos for now

  • buildrequire systemd-srpm-macros to get _sysusersdir
  • removed info about metadata expire (khoidinhtrinh@gmail.com)
  • added updates-modular to 29 and 30 (khoidinhtrinh@gmail.com)
  • replace groupadd using sysusers.d
  • core-configs: epel-7 profiles to use mirrorlists (praiskup@redhat.com)
  • EOL Fedora 28
  • do not protect packages in chroot [GH#286]
  • Fix value for dist for OpenMandriva 4.0 configs (ngompa13@gmail.com)
  • Add initial OpenMandriva distribution targets (ngompa13@gmail.com)

This update has been submitted for testing by msuchy.

2 years ago

This update's test gating status has been changed to 'waiting'.

2 years ago

This update's test gating status has been changed to 'ignored'.

2 years ago

This update has been pushed to testing.

2 years ago
User Icon robert commented & provided feedback 2 years ago
karma

Was this update ever tested? Mock poorly fails on RHEL 7.7 with SELinux errors when building a package:

type=AVC msg=audit(1565368068.535:11095): avc:  denied  { read } for  pid=46206 comm="groupadd" name="run" dev="dm-0" ino=800267 scontext=unconfined_u:unconfined_r:groupadd_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:mock_var_lib_t:s0 tclass=lnk_file permissive=0
type=SYSCALL msg=audit(1565368068.535:11095): arch=x86_64 syscall=connect success=no exit=EACCES a0=4 a1=7ffe52230040 a2=6e a3=40 items=0 ppid=46205 pid=46206 auid=3000051 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=1118 comm=groupadd exe=/usr/sbin/groupadd subj=unconfined_u:unconfined_r:groupadd_t:s0-s0:c0.c1023 key=(null)
type=AVC msg=audit(1565368069.966:11119): avc:  denied  { write } for  pid=46244 comm="groupadd" path="/dev/null" dev="dm-0" ino=800206 scontext=unconfined_u:unconfined_r:groupadd_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:mock_var_lib_t:s0 tclass=chr_file permissive=0
type=AVC msg=audit(1565368069.966:11119): avc:  denied  { write } for  pid=46244 comm="groupadd" path="/dev/null" dev="dm-0" ino=800206 scontext=unconfined_u:unconfined_r:groupadd_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:mock_var_lib_t:s0 tclass=chr_file permissive=0
type=SYSCALL msg=audit(1565368069.966:11119): arch=x86_64 syscall=execve success=yes exit=0 a0=1a327b0 a1=1a2fd30 a2=1a31be0 a3=7ffda2580a60 items=0 ppid=46238 pid=46244 auid=3000051 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=1118 comm=groupadd exe=/usr/sbin/groupadd subj=unconfined_u:unconfined_r:groupadd_t:s0-s0:c0.c1023 key=(null)
type=AVC msg=audit(1565368070.38:11132): avc:  denied  { write } for  pid=46260 comm="useradd" path="/dev/null" dev="dm-0" ino=800206 scontext=unconfined_u:unconfined_r:useradd_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:mock_var_lib_t:s0 tclass=chr_file permissive=0
type=AVC msg=audit(1565368070.38:11132): avc:  denied  { write } for  pid=46260 comm="useradd" path="/dev/null" dev="dm-0" ino=800206 scontext=unconfined_u:unconfined_r:useradd_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:mock_var_lib_t:s0 tclass=chr_file permissive=0
type=SYSCALL msg=audit(1565368070.38:11132): arch=x86_64 syscall=execve success=yes exit=0 a0=1a33270 a1=1a32d50 a2=1a31be0 a3=7ffda2580a60 items=0 ppid=46238 pid=46260 auid=3000051 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=1118 comm=useradd exe=/usr/sbin/useradd subj=unconfined_u:unconfined_r:useradd_t:s0-s0:c0.c1023 key=(null)
type=AVC msg=audit(1565368070.44:11133): avc:  denied  { read } for  pid=46260 comm="useradd" name="run" dev="dm-0" ino=800267 scontext=unconfined_u:unconfined_r:useradd_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:mock_var_lib_t:s0 tclass=lnk_file permissive=0
type=SYSCALL msg=audit(1565368070.44:11133): arch=x86_64 syscall=connect success=no exit=EACCES a0=5 a1=7ffd92b62af0 a2=6e a3=11 items=0 ppid=46238 pid=46260 auid=3000051 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=1118 comm=useradd exe=/usr/sbin/useradd subj=unconfined_u:unconfined_r:useradd_t:s0-s0:c0.c1023 key=(null)
type=AVC msg=audit(1565368096.180:11209): avc:  denied  { write } for  pid=46732 comm="groupadd" name="group" dev="dm-0" ino=806120 scontext=unconfined_u:unconfined_r:groupadd_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:etc_t:s0 tclass=file permissive=0
type=SYSCALL msg=audit(1565368096.180:11209): arch=x86_64 syscall=open success=no exit=EACCES a0=56463bb7f5a0 a1=20902 a2=0 a3=8 items=0 ppid=46730 pid=46732 auid=3000051 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=1118 comm=groupadd exe=/usr/sbin/groupadd subj=unconfined_u:unconfined_r:groupadd_t:s0-s0:c0.c1023 key=(null)
type=AVC msg=audit(1565368103.576:11285): avc:  denied  { write } for  pid=46804 comm="restorecon" path="/dev/null" dev="dm-0" ino=800206 scontext=unconfined_u:unconfined_r:setfiles_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:mock_var_lib_t:s0 tclass=chr_file permissive=0
type=AVC msg=audit(1565368103.576:11285): avc:  denied  { write } for  pid=46804 comm="restorecon" path="/dev/null" dev="dm-0" ino=800206 scontext=unconfined_u:unconfined_r:setfiles_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:mock_var_lib_t:s0 tclass=chr_file permissive=0
type=SYSCALL msg=audit(1565368103.576:11285): arch=x86_64 syscall=execve success=yes exit=0 a0=f64170 a1=f63b10 a2=f63920 a3=7ffd776df720 items=0 ppid=46799 pid=46804 auid=3000051 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=1118 comm=restorecon exe=/usr/sbin/setfiles subj=unconfined_u:unconfined_r:setfiles_t:s0-s0:c0.c1023 key=(null)

Downgrading mock-1.4.17-1.el7.noarch to mock-1.4.16-1.el7.noarch solves the issue, thus this is not a RHEL 7.7, but a mock issue.

Bodhi is disabling automatic push to stable due to negative karma. The maintainer may push manually if they determine that the issue is not severe.

2 years ago

This update's test gating status has been changed to 'greenwave_failed'.

2 years ago

This update's test gating status has been changed to 'ignored'.

2 years ago
User Icon lslebodn commented & provided feedback 2 years ago
karma

I was not able to install mock in centos7 container + epel

root@2f8fd853547a /]# yum install -y mock --enablerepo=epel-testing
Loaded plugins: fastestmirror, ovl
Loading mirror speeds from cached hostfile
 * base: mirror.karneval.cz
 * epel: download.eng.brq.redhat.com
 * epel-testing: mirrors.nic.cz
 * extras: mirror.usenet.farm
 * updates: mirror.karneval.cz
Resolving Dependencies
--> Running transaction check
---> Package mock.noarch 0:1.4.17-1.el7 will be installed
--> Processing Dependency: python(abi) = 3.6 for package: mock-1.4.17-1.el7.noarch
--> Processing Dependency: mock-core-configs >= 27.4 for package: mock-1.4.17-1.el7.noarch
--> Processing Dependency: python36-six >= 1.4.0 for package: mock-1.4.17-1.el7.noarch
--> Processing Dependency: /usr/bin/python3.6 for package: mock-1.4.17-1.el7.noarch
--> Processing Dependency: btrfs-progs for package: mock-1.4.17-1.el7.noarch
--> Processing Dependency: createrepo_c for package: mock-1.4.17-1.el7.noarch
--> Processing Dependency: pigz for package: mock-1.4.17-1.el7.noarch
--> Processing Dependency: python36-distro for package: mock-1.4.17-1.el7.noarch
--> Processing Dependency: python36-jinja2 for package: mock-1.4.17-1.el7.noarch
--> Processing Dependency: python36-pyroute2 for package: mock-1.4.17-1.el7.noarch
--> Processing Dependency: python36-requests for package: mock-1.4.17-1.el7.noarch
--> Processing Dependency: python36-rpm for package: mock-1.4.17-1.el7.noarch
--> Processing Dependency: usermode for package: mock-1.4.17-1.el7.noarch
--> Running transaction check
---> Package btrfs-progs.x86_64 0:4.9.1-1.el7 will be installed
--> Processing Dependency: liblzo2.so.2()(64bit) for package: btrfs-progs-4.9.1-1.el7.x86_64
--> Processing Dependency: libext2fs.so.2()(64bit) for package: btrfs-progs-4.9.1-1.el7.x86_64
---> Package createrepo_c.x86_64 0:0.10.0-18.el7 will be installed
--> Processing Dependency: createrepo_c-libs = 0.10.0-18.el7 for package: createrepo_c-0.10.0-18.el7.x86_64
--> Processing Dependency: libcreaterepo_c.so.0()(64bit) for package: createrepo_c-0.10.0-18.el7.x86_64
---> Package mock.noarch 0:1.4.17-1.el7 will be installed
--> Processing Dependency: python(abi) = 3.6 for package: mock-1.4.17-1.el7.noarch
--> Processing Dependency: /usr/bin/python3.6 for package: mock-1.4.17-1.el7.noarch
---> Package mock-core-configs.noarch 0:30.5-1.el7 will be installed
--> Processing Dependency: distribution-gpg-keys >= 1.29 for package: mock-core-configs-30.5-1.el7.noarch
---> Package pigz.x86_64 0:2.3.4-1.el7 will be installed
---> Package python36-distro.noarch 0:1.2.0-3.el7 will be installed
--> Processing Dependency: python(abi) = 3.6 for package: python36-distro-1.2.0-3.el7.noarch
--> Processing Dependency: /usr/bin/python3.6 for package: python36-distro-1.2.0-3.el7.noarch
---> Package python36-jinja2.noarch 0:2.8.1-2.el7 will be installed
--> Processing Dependency: python(abi) = 3.6 for package: python36-jinja2-2.8.1-2.el7.noarch
--> Processing Dependency: python36-markupsafe for package: python36-jinja2-2.8.1-2.el7.noarch
--> Processing Dependency: python36-setuptools for package: python36-jinja2-2.8.1-2.el7.noarch
---> Package python36-pyroute2.noarch 0:0.4.13-2.el7 will be installed
--> Processing Dependency: python(abi) = 3.6 for package: python36-pyroute2-0.4.13-2.el7.noarch
---> Package python36-requests.noarch 0:2.12.5-3.el7 will be installed
--> Processing Dependency: python(abi) = 3.6 for package: python36-requests-2.12.5-3.el7.noarch
--> Processing Dependency: python36-urllib3 = 1.19.1 for package: python36-requests-2.12.5-3.el7.noarch
--> Processing Dependency: python36-chardet for package: python36-requests-2.12.5-3.el7.noarch
--> Processing Dependency: python36-idna for package: python36-requests-2.12.5-3.el7.noarch
---> Package python36-rpm.x86_64 0:4.11.3-4.el7 will be installed
--> Processing Dependency: python(abi) = 3.6 for package: python36-rpm-4.11.3-4.el7.x86_64
--> Processing Dependency: libpython3.6m.so.1.0()(64bit) for package: python36-rpm-4.11.3-4.el7.x86_64
---> Package python36-six.noarch 0:1.11.0-3.el7 will be installed
--> Processing Dependency: python(abi) = 3.6 for package: python36-six-1.11.0-3.el7.noarch
---> Package usermode.x86_64 0:1.111-5.el7 will be installed
--> Running transaction check
---> Package createrepo_c-libs.x86_64 0:0.10.0-18.el7 will be installed
---> Package distribution-gpg-keys.noarch 0:1.32-1.el7 will be installed
---> Package e2fsprogs-libs.x86_64 0:1.42.9-13.el7 will be installed
---> Package lzo.x86_64 0:2.06-8.el7 will be installed
---> Package mock.noarch 0:1.4.17-1.el7 will be installed
--> Processing Dependency: python(abi) = 3.6 for package: mock-1.4.17-1.el7.noarch
--> Processing Dependency: /usr/bin/python3.6 for package: mock-1.4.17-1.el7.noarch
---> Package python36-chardet.noarch 0:2.3.0-6.el7 will be installed
--> Processing Dependency: python(abi) = 3.6 for package: python36-chardet-2.3.0-6.el7.noarch
--> Processing Dependency: /usr/bin/python3.6 for package: python36-chardet-2.3.0-6.el7.noarch
---> Package python36-distro.noarch 0:1.2.0-3.el7 will be installed
--> Processing Dependency: python(abi) = 3.6 for package: python36-distro-1.2.0-3.el7.noarch
--> Processing Dependency: /usr/bin/python3.6 for package: python36-distro-1.2.0-3.el7.noarch
---> Package python36-idna.noarch 0:2.7-2.el7 will be installed
--> Processing Dependency: python(abi) = 3.6 for package: python36-idna-2.7-2.el7.noarch
---> Package python36-jinja2.noarch 0:2.8.1-2.el7 will be installed
--> Processing Dependency: python(abi) = 3.6 for package: python36-jinja2-2.8.1-2.el7.noarch
---> Package python36-markupsafe.x86_64 0:0.23-3.el7 will be installed
--> Processing Dependency: python(abi) = 3.6 for package: python36-markupsafe-0.23-3.el7.x86_64
--> Processing Dependency: libpython3.6m.so.1.0()(64bit) for package: python36-markupsafe-0.23-3.el7.x86_64
---> Package python36-pyroute2.noarch 0:0.4.13-2.el7 will be installed
--> Processing Dependency: python(abi) = 3.6 for package: python36-pyroute2-0.4.13-2.el7.noarch
---> Package python36-requests.noarch 0:2.12.5-3.el7 will be installed
--> Processing Dependency: python(abi) = 3.6 for package: python36-requests-2.12.5-3.el7.noarch
---> Package python36-rpm.x86_64 0:4.11.3-4.el7 will be installed
--> Processing Dependency: python(abi) = 3.6 for package: python36-rpm-4.11.3-4.el7.x86_64
--> Processing Dependency: libpython3.6m.so.1.0()(64bit) for package: python36-rpm-4.11.3-4.el7.x86_64
---> Package python36-setuptools.noarch 0:39.2.0-3.el7 will be installed
--> Processing Dependency: python(abi) = 3.6 for package: python36-setuptools-39.2.0-3.el7.noarch
--> Processing Dependency: /usr/bin/python3.6 for package: python36-setuptools-39.2.0-3.el7.noarch
---> Package python36-six.noarch 0:1.11.0-3.el7 will be installed
--> Processing Dependency: python(abi) = 3.6 for package: python36-six-1.11.0-3.el7.noarch
---> Package python36-urllib3.noarch 0:1.19.1-5.el7 will be installed
--> Processing Dependency: python(abi) = 3.6 for package: python36-urllib3-1.19.1-5.el7.noarch
--> Processing Dependency: python36-pysocks for package: python36-urllib3-1.19.1-5.el7.noarch
--> Running transaction check
---> Package mock.noarch 0:1.4.17-1.el7 will be installed
--> Processing Dependency: python(abi) = 3.6 for package: mock-1.4.17-1.el7.noarch
--> Processing Dependency: /usr/bin/python3.6 for package: mock-1.4.17-1.el7.noarch
---> Package python36-chardet.noarch 0:2.3.0-6.el7 will be installed
--> Processing Dependency: python(abi) = 3.6 for package: python36-chardet-2.3.0-6.el7.noarch
--> Processing Dependency: /usr/bin/python3.6 for package: python36-chardet-2.3.0-6.el7.noarch
---> Package python36-distro.noarch 0:1.2.0-3.el7 will be installed
--> Processing Dependency: python(abi) = 3.6 for package: python36-distro-1.2.0-3.el7.noarch
--> Processing Dependency: /usr/bin/python3.6 for package: python36-distro-1.2.0-3.el7.noarch
---> Package python36-idna.noarch 0:2.7-2.el7 will be installed
--> Processing Dependency: python(abi) = 3.6 for package: python36-idna-2.7-2.el7.noarch
---> Package python36-jinja2.noarch 0:2.8.1-2.el7 will be installed
--> Processing Dependency: python(abi) = 3.6 for package: python36-jinja2-2.8.1-2.el7.noarch
---> Package python36-markupsafe.x86_64 0:0.23-3.el7 will be installed
--> Processing Dependency: python(abi) = 3.6 for package: python36-markupsafe-0.23-3.el7.x86_64
--> Processing Dependency: libpython3.6m.so.1.0()(64bit) for package: python36-markupsafe-0.23-3.el7.x86_64
---> Package python36-pyroute2.noarch 0:0.4.13-2.el7 will be installed
--> Processing Dependency: python(abi) = 3.6 for package: python36-pyroute2-0.4.13-2.el7.noarch
---> Package python36-pysocks.noarch 0:1.6.8-6.el7 will be installed
--> Processing Dependency: python(abi) = 3.6 for package: python36-pysocks-1.6.8-6.el7.noarch
---> Package python36-requests.noarch 0:2.12.5-3.el7 will be installed
--> Processing Dependency: python(abi) = 3.6 for package: python36-requests-2.12.5-3.el7.noarch
---> Package python36-rpm.x86_64 0:4.11.3-4.el7 will be installed
--> Processing Dependency: python(abi) = 3.6 for package: python36-rpm-4.11.3-4.el7.x86_64
--> Processing Dependency: libpython3.6m.so.1.0()(64bit) for package: python36-rpm-4.11.3-4.el7.x86_64
---> Package python36-setuptools.noarch 0:39.2.0-3.el7 will be installed
--> Processing Dependency: python(abi) = 3.6 for package: python36-setuptools-39.2.0-3.el7.noarch
--> Processing Dependency: /usr/bin/python3.6 for package: python36-setuptools-39.2.0-3.el7.noarch
---> Package python36-six.noarch 0:1.11.0-3.el7 will be installed
--> Processing Dependency: python(abi) = 3.6 for package: python36-six-1.11.0-3.el7.noarch
---> Package python36-urllib3.noarch 0:1.19.1-5.el7 will be installed
--> Processing Dependency: python(abi) = 3.6 for package: python36-urllib3-1.19.1-5.el7.noarch
--> Processing Dependency: /usr/bin/python3.6 for package: python36-chardet-2.3.0-6.el7.noarch
--> Processing Dependency: /usr/bin/python3.6 for package: mock-1.4.17-1.el7.noarch
--> Processing Dependency: /usr/bin/python3.6 for package: python36-setuptools-39.2.0-3.el7.noarch
--> Processing Dependency: /usr/bin/python3.6 for package: python36-distro-1.2.0-3.el7.noarch
--> Finished Dependency Resolution
Error: Package: python36-distro-1.2.0-3.el7.noarch (epel)
           Requires: /usr/bin/python3.6
Error: Package: python36-urllib3-1.19.1-5.el7.noarch (epel)
           Requires: python(abi) = 3.6
           Installed: python-2.7.5-80.el7_6.x86_64 (@updates)
               python(abi) = 2.7
               python(abi) = 2.7
           Available: python-2.7.5-76.el7.x86_64 (base)
               python(abi) = 2.7
               python(abi) = 2.7
           Available: python-2.7.5-77.el7_6.x86_64 (updates)
               python(abi) = 2.7
               python(abi) = 2.7
           Available: python34-3.4.10-2.el7.x86_64 (epel)
               python(abi) = 3.4
Error: Package: python36-distro-1.2.0-3.el7.noarch (epel)
           Requires: python(abi) = 3.6
           Installed: python-2.7.5-80.el7_6.x86_64 (@updates)
               python(abi) = 2.7
               python(abi) = 2.7
           Available: python-2.7.5-76.el7.x86_64 (base)
               python(abi) = 2.7
               python(abi) = 2.7
           Available: python-2.7.5-77.el7_6.x86_64 (updates)
               python(abi) = 2.7
               python(abi) = 2.7
           Available: python34-3.4.10-2.el7.x86_64 (epel)
               python(abi) = 3.4
Error: Package: python36-markupsafe-0.23-3.el7.x86_64 (epel)
           Requires: python(abi) = 3.6
           Installed: python-2.7.5-80.el7_6.x86_64 (@updates)
               python(abi) = 2.7
               python(abi) = 2.7
           Available: python-2.7.5-76.el7.x86_64 (base)
               python(abi) = 2.7
               python(abi) = 2.7
           Available: python-2.7.5-77.el7_6.x86_64 (updates)
               python(abi) = 2.7
               python(abi) = 2.7
           Available: python34-3.4.10-2.el7.x86_64 (epel)
               python(abi) = 3.4
Error: Package: python36-jinja2-2.8.1-2.el7.noarch (epel)
           Requires: python(abi) = 3.6
           Installed: python-2.7.5-80.el7_6.x86_64 (@updates)
               python(abi) = 2.7
               python(abi) = 2.7
           Available: python-2.7.5-76.el7.x86_64 (base)
               python(abi) = 2.7
               python(abi) = 2.7
           Available: python-2.7.5-77.el7_6.x86_64 (updates)
               python(abi) = 2.7
               python(abi) = 2.7
           Available: python34-3.4.10-2.el7.x86_64 (epel)
               python(abi) = 3.4
Error: Package: python36-six-1.11.0-3.el7.noarch (epel)
           Requires: python(abi) = 3.6
           Installed: python-2.7.5-80.el7_6.x86_64 (@updates)
               python(abi) = 2.7
               python(abi) = 2.7
           Available: python-2.7.5-76.el7.x86_64 (base)
               python(abi) = 2.7
               python(abi) = 2.7
           Available: python-2.7.5-77.el7_6.x86_64 (updates)
               python(abi) = 2.7
               python(abi) = 2.7
           Available: python34-3.4.10-2.el7.x86_64 (epel)
               python(abi) = 3.4
Error: Package: python36-rpm-4.11.3-4.el7.x86_64 (epel)
           Requires: python(abi) = 3.6
           Installed: python-2.7.5-80.el7_6.x86_64 (@updates)
               python(abi) = 2.7
               python(abi) = 2.7
           Available: python-2.7.5-76.el7.x86_64 (base)
               python(abi) = 2.7
               python(abi) = 2.7
           Available: python-2.7.5-77.el7_6.x86_64 (updates)
               python(abi) = 2.7
               python(abi) = 2.7
           Available: python34-3.4.10-2.el7.x86_64 (epel)
               python(abi) = 3.4
Error: Package: mock-1.4.17-1.el7.noarch (epel-testing)
           Requires: /usr/bin/python3.6
Error: Package: python36-pyroute2-0.4.13-2.el7.noarch (epel)
           Requires: python(abi) = 3.6
           Installed: python-2.7.5-80.el7_6.x86_64 (@updates)
               python(abi) = 2.7
               python(abi) = 2.7
           Available: python-2.7.5-76.el7.x86_64 (base)
               python(abi) = 2.7
               python(abi) = 2.7
           Available: python-2.7.5-77.el7_6.x86_64 (updates)
               python(abi) = 2.7
               python(abi) = 2.7
           Available: python34-3.4.10-2.el7.x86_64 (epel)
               python(abi) = 3.4
Error: Package: python36-chardet-2.3.0-6.el7.noarch (epel)
           Requires: /usr/bin/python3.6
Error: Package: python36-pysocks-1.6.8-6.el7.noarch (epel)
           Requires: python(abi) = 3.6
           Installed: python-2.7.5-80.el7_6.x86_64 (@updates)
               python(abi) = 2.7
               python(abi) = 2.7
           Available: python-2.7.5-76.el7.x86_64 (base)
               python(abi) = 2.7
               python(abi) = 2.7
           Available: python-2.7.5-77.el7_6.x86_64 (updates)
               python(abi) = 2.7
               python(abi) = 2.7
           Available: python34-3.4.10-2.el7.x86_64 (epel)
               python(abi) = 3.4
Error: Package: python36-idna-2.7-2.el7.noarch (epel)
           Requires: python(abi) = 3.6
           Installed: python-2.7.5-80.el7_6.x86_64 (@updates)
               python(abi) = 2.7
               python(abi) = 2.7
           Available: python-2.7.5-76.el7.x86_64 (base)
               python(abi) = 2.7
               python(abi) = 2.7
           Available: python-2.7.5-77.el7_6.x86_64 (updates)
               python(abi) = 2.7
               python(abi) = 2.7
           Available: python34-3.4.10-2.el7.x86_64 (epel)
               python(abi) = 3.4
Error: Package: python36-requests-2.12.5-3.el7.noarch (epel)
           Requires: python(abi) = 3.6
           Installed: python-2.7.5-80.el7_6.x86_64 (@updates)
               python(abi) = 2.7
               python(abi) = 2.7
           Available: python-2.7.5-76.el7.x86_64 (base)
               python(abi) = 2.7
               python(abi) = 2.7
           Available: python-2.7.5-77.el7_6.x86_64 (updates)
               python(abi) = 2.7
               python(abi) = 2.7
           Available: python34-3.4.10-2.el7.x86_64 (epel)
               python(abi) = 3.4
Error: Package: mock-1.4.17-1.el7.noarch (epel-testing)
           Requires: python(abi) = 3.6
           Installed: python-2.7.5-80.el7_6.x86_64 (@updates)
               python(abi) = 2.7
               python(abi) = 2.7
           Available: python-2.7.5-76.el7.x86_64 (base)
               python(abi) = 2.7
               python(abi) = 2.7
           Available: python-2.7.5-77.el7_6.x86_64 (updates)
               python(abi) = 2.7
               python(abi) = 2.7
           Available: python34-3.4.10-2.el7.x86_64 (epel)
               python(abi) = 3.4
Error: Package: python36-rpm-4.11.3-4.el7.x86_64 (epel)
           Requires: libpython3.6m.so.1.0()(64bit)
Error: Package: python36-setuptools-39.2.0-3.el7.noarch (epel)
           Requires: /usr/bin/python3.6
Error: Package: python36-setuptools-39.2.0-3.el7.noarch (epel)
           Requires: python(abi) = 3.6
           Installed: python-2.7.5-80.el7_6.x86_64 (@updates)
               python(abi) = 2.7
               python(abi) = 2.7
           Available: python-2.7.5-76.el7.x86_64 (base)
               python(abi) = 2.7
               python(abi) = 2.7
           Available: python-2.7.5-77.el7_6.x86_64 (updates)
               python(abi) = 2.7
               python(abi) = 2.7
           Available: python34-3.4.10-2.el7.x86_64 (epel)
               python(abi) = 3.4
Error: Package: python36-chardet-2.3.0-6.el7.noarch (epel)
           Requires: python(abi) = 3.6
           Installed: python-2.7.5-80.el7_6.x86_64 (@updates)
               python(abi) = 2.7
               python(abi) = 2.7
           Available: python-2.7.5-76.el7.x86_64 (base)
               python(abi) = 2.7
               python(abi) = 2.7
           Available: python-2.7.5-77.el7_6.x86_64 (updates)
               python(abi) = 2.7
               python(abi) = 2.7
           Available: python34-3.4.10-2.el7.x86_64 (epel)
               python(abi) = 3.4
Error: Package: python36-markupsafe-0.23-3.el7.x86_64 (epel)
           Requires: libpython3.6m.so.1.0()(64bit)
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest

```

User Icon msuchy commented & provided feedback 2 years ago

@lslebod it seems you are missing python3 package, which is in the base system. Are you sure you have your system subscribed?

User Icon lslebodn commented & provided feedback 2 years ago

I wrote CentOS7 which is still 7.6

sh# docker pull docker.io/centos:7
Trying to pull repository docker.io/library/centos ... 
sha256:a799dd8a2ded4a83484bbae769d97655392b3f86533ceb7dd96bbac929809f3c: Pulling from docker.io/library/centos
Digest: sha256:a799dd8a2ded4a83484bbae769d97655392b3f86533ceb7dd96bbac929809f3c
Status: Image is up to date for docker.io/centos:7

sh#  docker run --rm docker.io/centos:7 cat /etc/redhat-release
CentOS Linux release 7.6.1810 (Core)

I would say this updated was done a little bit too early.

User Icon lslebodn commented & provided feedback 2 years ago

BTW the issue with selinux-policy might be tricky to fix on el7.7. So you might use temporary workaround with scriptlet and cil https://github.com/SELinuxProject/cil

But I use mock in CentOS7 container and SELinux policy is not a problem for me there :-) But I can help you

User Icon churchyard commented & provided feedback 2 years ago

The Python 3.6 problem is not mock's fault and is tracked in https://bugzilla.redhat.com/show_bug.cgi?id=1739804 - but the selinux problem is a thing.

User Icon lslebodn commented & provided feedback 2 years ago

The Python 3.6 problem is not mock's fault and is tracked in https://bugzilla.redhat.com/show_bug.cgi?id=1739804 - but the selinux problem is a thing.

I should have tried without epel-testing :-( So I can confirm my comment is unrelated to this update and thank you very much for link to another BZ

User Icon lslebodn commented & provided feedback 2 years ago

@robert which command did you use ?

I saw a different AVC and here is a workaround

sh# cat mock-workaround.cil 
(roleattributeset cil_gen_require system_r)
(typeattributeset cil_gen_require mock_var_lib_t)
(typeattributeset cil_gen_require rpm_script_t)
(allow rpm_script_t mock_var_lib_t (file (entrypoint)))

sh# semodule -i mock-workaround.cil

But I was not able to reproduce issue with groupadd or useradd.

User Icon robert commented & provided feedback 2 years ago
mock -r epel-7-x86_64 rebuild <some-src.rpm>

The rebuild likely required a new cache, thus likely %post scriptlets with useradd/groupadd were performed.

This update has been obsoleted.

2 years ago
User Icon lslebodn commented & provided feedback 2 years ago

Just a note that AVC is not reproducible with old chroot or new-chroot + bootstrap. and everything works as expected.

mock --rebuild ./python36-3.6.8-1.el7.src.rpm --new-chroot --bootstrap-chroot
mock --rebuild ./python36-3.6.8-1.el7.src.rpm --old-chroot

Please login to add feedback.

Metadata
Type
bugfix
Severity
low
Karma
-3
Signed
Content Type
RPM
Test Gating
Settings
Unstable by Karma
-3
Stable by Karma
disabled
Stable by Time
14 days
Dates
submitted
2 years ago
in testing
2 years ago
BZ#1264005 when dropping privileges secondary user groups are not loaded
0
0

Automated Test Results