Created attachment 988833 [details] final output from csmock with tmpfs enabled in mock Description of problem: It looks like csmock tries to re-use chroots, which does not work with the tmpfs plugin enabled, see the attachment. With the tmpfs plugin disabled, it works better but is obviously slower. Version-Release number of selected component (if applicable): csmock-1.6.1-1.fc21 The setting to enable/disable tmpfs is: config_opts['plugin_conf']['tmpfs_enable'] = True in /etc/mock/site-defaults.cfg
Thank you for reporting the bug! I am afraid this is by design. The tmpfs plug-in as it is implemented makes sense mainly for "mock --rebuild". However, csmock excessively uses "mock --chroot" to run commands inside the chroot. I would expect the keep_mounted option of the tmpfs plug-in (bug #476837) to make it work, but does not: $ echo "config_opts['plugin_conf']['tmpfs_opts']['keep_mounted'] = True" \ | sudo tee -a /etc/mock/fedora-rawhide-x86_64.cfg config_opts['plugin_conf']['tmpfs_opts']['keep_mounted'] = True $ mock -r fedora-rawhide-x86_64 --install python 2>/dev/null && mount | grep /var/lib/mock mock_chroot_tmpfs on /var/lib/mock/fedora-rawhide-x86_64/root type tmpfs (rw,relatime,seclabel,mode=755) $ mock -r fedora-rawhide-x86_64 --chroot 'rpm -q python' 2>/dev/null package python is not installed A possible workaround would be to make csmock explicitly disable the tmpfs plug-in of mock as it did for the selinux plug-in when it was broken (bug #1002142).
upstream commit: https://git.fedorahosted.org/cgit/csmock.git/commit/?id=2046fe57 Note it will work only if bug #1193487 is fixed (or root_cache disabled).
csmock-1.8.1-1.fc22 has been submitted as an update for Fedora 22. https://admin.fedoraproject.org/updates/FEDORA-2015-8984/csmock-1.8.1-1.fc22
csmock-1.8.1-1.el6 has been submitted as an update for Fedora EPEL 6. https://admin.fedoraproject.org/updates/FEDORA-EPEL-2015-6409/csmock-1.8.1-1.el6
csmock-1.8.1-1.el7 has been submitted as an update for Fedora EPEL 7. https://admin.fedoraproject.org/updates/FEDORA-EPEL-2015-6433/csmock-1.8.1-1.el7
csmock-1.8.1-1.fc21 has been submitted as an update for Fedora 21. https://admin.fedoraproject.org/updates/FEDORA-2015-8837/csmock-1.8.1-1.fc21
csmock-1.8.1-1.fc20 has been submitted as an update for Fedora 20. https://admin.fedoraproject.org/updates/FEDORA-2015-8866/csmock-1.8.1-1.fc20
Package csmock-1.8.1-1.fc21: * should fix your issue, * was pushed to the Fedora 21 testing repository, * should be available at your local mirror within two days. Update it with: # su -c 'yum update --enablerepo=updates-testing csmock-1.8.1-1.fc21' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/FEDORA-2015-8837/csmock-1.8.1-1.fc21 then log in and leave karma (feedback).
csmock-1.8.1-1.fc22 has been pushed to the Fedora 22 stable repository. If problems still persist, please make note of it in this bug report.
csmock-1.8.1-1.fc20 has been pushed to the Fedora 20 stable repository. If problems still persist, please make note of it in this bug report.
csmock-1.8.1-1.fc21 has been pushed to the Fedora 21 stable repository. If problems still persist, please make note of it in this bug report.
csmock-1.8.1-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.
csmock-1.8.1-1.el7 has been pushed to the Fedora EPEL 7 stable repository. If problems still persist, please make note of it in this bug report.