Red Hat Bugzilla – Bug 1278816
mock does not log creation of root with tmpfs plugin
Last modified: 2016-03-08 09:34:19 EST
Description of problem:
If tmpfs plugin is enabled then it is harder to find issue with installation of basic packages in chroot. Because the root.log file does not contain any messages. So it is not clear what failed.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Enable tmpfs plugin in mock configuration
sh# cat >> /etc/mock/site-defaults.cfg <<EOF
config_opts['plugin_conf']['tmpfs_enable'] = True
config_opts['plugin_conf']['tmpfs_opts']['required_ram_mb'] = 1536
config_opts['plugin_conf']['tmpfs_opts']['max_fs_size'] = '1536m'
2. Try to rebuild some pacakge
mock --rebuild sssd-1.13.1-4.fc24.src.rpm --resultdir .
root.log does not contain details about installation of basic packages in chroot.
e.g. Executing command: ['/usr/bin/dnf', '--installroot' ...
The similar output as without enabled tmpfs plugin.
Created attachment 1090667 [details]
root.log without enabled tmpfs
Created attachment 1090668 [details]
root.log WITH enabled tmpfs plugin
You can try to see differences between attached file.
diff root.log root_tmpfs.log
Hmm I see:
in both files exactly 6 times.
The diff is hard to read and there are differencies in paths so it is quiet verbose.
Can you please clarify which lines exactly you are missing?
Note: we are using tmpfs plugin in Copr and I did not notice any missing part in logs.
I'm sorry for replying so late. It was not a big priority for me.
I could not find installation of "@buildsys-build" in root_tmpfs.log
But now I realized that it was caused by already created root cache log.
I agree it's not a bug.