Moved from bug #1050218. Using mock-1.1.32-1 on rhel7, yum-utils-1.1.31-19, I get a repeat of bug #98204. result/root.log: DEBUG util.py:314: Executing command: /usr/bin/repoquery -c /tmp/tmpvWkMW6 --installed -a --qf '%{nevra} %{buildtime} %{size} %{pkgid} %{yumdb_info.from_repo}' > /var/lib/mock/rhel7-beta1-i686/result/installed_pkgs with env {'LANG': 'en_US.utf8', 'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOSTNAME': 'mock', 'HOME': '/builddir', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin'} DEBUG util.py:264: error: cannot open Packages index using db5 - Permission denied (13) DEBUG util.py:264: error: cannot open Packages database in /var/lib/mock/rhel7-beta1-i686/root/var/lib/rpm # ls -l /var/lib/mock/rhel7-beta1-i686/root/var/lib/rpm/ total 24996 -rw------- 1 root mock 1544192 Jan 8 21:55 Basenames -rw------- 1 root mock 8192 Jan 8 21:55 Conflictname -rw------- 1 root mock 233472 Jan 8 21:55 Dirnames -rw------- 1 root mock 8192 Jan 8 21:55 Group -rw------- 1 root mock 16384 Jan 8 21:55 Installtid -rw------- 1 root mock 20480 Jan 8 21:55 Name -rw------- 1 root mock 8192 Jan 8 21:55 Obsoletename -rw------- 1 root mock 23400448 Jan 8 21:55 Packages -rw------- 1 root mock 147456 Jan 8 21:55 Providename -rw------- 1 root mock 139264 Jan 8 21:55 Requirename -rw------- 1 root mock 32768 Jan 8 21:55 Sha1header -rw------- 1 root mock 24576 Jan 8 21:55 Sigmd5 -rw------- 1 root mock 8192 Jan 8 21:54 Triggername # rpm -q yum-utils yum-utils-1.1.31-19.el7.noarch Changing the permissions doesn't help; they go back to 600 when mock does chroot init. Workaround: initialise the chroot, change the rpm db permissions manually to 660 and then run mock with --no-clean --disable-plugin=package_state.
> ...I get a repeat of bug #98204. Sorry, that should be bug #982043.
In order to build RHEL7.i686 I bootstrapped with necessary binary packages from fc19, built the packages for the build environment and their build dependencies, then rebuilt them by pulling my newly created el7 dependencies instead of fc19, then created the mock environment with that. I assumed there was no fedoraness left in there by then, and I assumed wrong. After yet another rebuild, this problem has gone away by itself. Clossing.
Created attachment 866114 [details] package_state: raise privs when accessing chroot rpmdb Please try this patch to see if it fixes your permissions problem
mock-1.1.37-1.fc19 has been submitted as an update for Fedora 19. https://admin.fedoraproject.org/updates/mock-1.1.37-1.fc19
mock-1.1.37-1.fc20 has been submitted as an update for Fedora 20. https://admin.fedoraproject.org/updates/mock-1.1.37-1.fc20
mock-1.1.37-1.el6 has been submitted as an update for Fedora EPEL 6. https://admin.fedoraproject.org/updates/mock-1.1.37-1.el6
mock-1.1.37-2.fc20 has been submitted as an update for Fedora 20. https://admin.fedoraproject.org/updates/mock-1.1.37-2.fc20
mock-1.1.37-2.fc19 has been submitted as an update for Fedora 19. https://admin.fedoraproject.org/updates/mock-1.1.37-2.fc19
mock-1.1.37-2.el6 has been submitted as an update for Fedora EPEL 6. https://admin.fedoraproject.org/updates/mock-1.1.37-2.el6
mock-1.1.38-1.fc19 has been submitted as an update for Fedora 19. https://admin.fedoraproject.org/updates/mock-1.1.38-1.fc19
mock-1.1.38-1.el6 has been submitted as an update for Fedora EPEL 6. https://admin.fedoraproject.org/updates/mock-1.1.38-1.el6
mock-1.1.38-1.fc20 has been submitted as an update for Fedora 20. https://admin.fedoraproject.org/updates/mock-1.1.38-1.fc20
mock-1.1.38-1.fc20 has been pushed to the Fedora 20 stable repository. If problems still persist, please make note of it in this bug report.
mock-1.1.38-1.fc19 has been pushed to the Fedora 19 stable repository. If problems still persist, please make note of it in this bug report.
mock-1.1.38-1.el6 has been pushed to the Fedora EPEL 6 stable repository. If problems still persist, please make note of it in this bug report.