Bug 1141506
Summary: | [abrt] mock: subprocess.py:1327:_execute_child:OSError: [Errno 2] No such file or directory | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Raphael Groner <projects.rg> | ||||||||
Component: | mock | Assignee: | Miroslav Suchý <msuchy> | ||||||||
Status: | CLOSED CURRENTRELEASE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||||||
Severity: | unspecified | Docs Contact: | |||||||||
Priority: | unspecified | ||||||||||
Version: | 20 | CC: | dwrobel, jdisnard, mebrown, morel.riquelme, msimacek, msuchy, praiskup, williams | ||||||||
Target Milestone: | --- | ||||||||||
Target Release: | --- | ||||||||||
Hardware: | x86_64 | ||||||||||
OS: | Unspecified | ||||||||||
URL: | https://retrace.fedoraproject.org/faf/reports/bthash/9b92e1203f430f99f6bcd0b48bdbc48cc346e78d | ||||||||||
Whiteboard: | abrt_hash:80c88b4c0c02997a84206e24c755ab6459f4be73 | ||||||||||
Fixed In Version: | Doc Type: | Bug Fix | |||||||||
Doc Text: | Story Points: | --- | |||||||||
Clone Of: | Environment: | ||||||||||
Last Closed: | 2014-10-21 09:57:59 UTC | Type: | --- | ||||||||
Regression: | --- | Mount Type: | --- | ||||||||
Documentation: | --- | CRM: | |||||||||
Verified Versions: | Category: | --- | |||||||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||||||
Cloudforms Team: | --- | Target Upstream Version: | |||||||||
Embargoed: | |||||||||||
Attachments: |
|
Description
Raphael Groner
2014-09-14 08:05:48 UTC
Created attachment 937291 [details]
File: backtrace
Created attachment 937292 [details]
File: environ
Created attachment 937293 [details]
fedora-review.log with mock crash
fedora-review -rn <package>.srpm
Can you reproduce it with mock-1.2 that's available in rawhide (installs fine on f20)? It has additional mechanisms to reinitialize incorrectly inited buildroot Here is repo for Fedora20 as well: https://copr.fedoraproject.org/coprs/msuchy/mock-dev/ I've faced the same issue. I installed mock-1.2 from the aforementioned copr and while running it produces the error as following: ERROR: Command failed. See logs for output. # /usr/bin/yum --installroot /var/lib/mock/fedora-20-x86_64/root --releasever 20 install @buildsys-build INFO: Re-initializing mock build root INFO: Init command returned error code 1 ERROR: Command failed. See logs for output. # /usr/bin/yum --installroot /var/lib/mock/fedora-20-x86_64/root --releasever 20 install @buildsys-build ERROR: Exception down the road...(logs in /home/D.Wrobel/.cache/fedora-review.log) excerpt from fedora-review.log: Invalid GPG Key from file:///etc/pki/mock/RPM-GPG-KEY-fedora-20-primary: No key found in given key data None Traceback (most recent call last): File "/usr/lib/python2.7/site-packages/FedoraReview/mock.py", line 491, in init self._rpm_eval('%{_libdir}') File "/usr/lib/python2.7/site-packages/FedoraReview/mock.py", line 259, in _rpm_eval return check_output(cmd).decode('utf-8').strip() File "/usr/lib64/python2.7/subprocess.py", line 575, in check_output raise CalledProcessError(retcode, cmd, output=output) CalledProcessError: Command '['mock', '--no-cleanup-after', '--no-clean', '--resultdir=/home/D.Wrobel/tmp/gnutls/gnutls/results', '--quiet', '--shell', 'rpm --eval \\"%{_libdir}\\"']' returned non-zero exit status 1 10-21 10:04 root INFO Init command returned error code 1 10-21 10:04 root DEBUG Url download completed: 13.581 10-21 10:04 root DEBUG Exception down the road... Traceback (most recent call last): File "/usr/lib/python2.7/site-packages/FedoraReview/review_helper.py", line 232, in run self._do_run(outfile) File "/usr/lib/python2.7/site-packages/FedoraReview/review_helper.py", line 222, in _do_run self._do_report(outfile) File "/usr/lib/python2.7/site-packages/FedoraReview/review_helper.py", line 96, in _do_report self._run_checks(self.bug.spec_file, self.bug.srpm_file, outfile) File "/usr/lib/python2.7/site-packages/FedoraReview/review_helper.py", line 105, in _run_checks self.checks = Checks(spec, srpm) File "/usr/lib/python2.7/site-packages/FedoraReview/checks.py", line 271, in __init__ self.spec = SpecFile(spec_file, self.flags) File "/usr/lib/python2.7/site-packages/FedoraReview/spec_file.py", line 91, in __init__ update_macros() File "/usr/lib/python2.7/site-packages/FedoraReview/spec_file.py", line 65, in update_macros expanded = Mock.get_macro(macro, self, flags) File "/usr/lib/python2.7/site-packages/FedoraReview/mock.py", line 346, in get_macro self._macros = self._get_default_macros() File "/usr/lib/python2.7/site-packages/FedoraReview/mock.py", line 134, in _get_default_macros values = self._rpm_eval(tags).split() File "/usr/lib/python2.7/site-packages/FedoraReview/mock.py", line 259, in _rpm_eval return check_output(cmd).decode('utf-8').strip() File "/usr/lib64/python2.7/subprocess.py", line 575, in check_output raise CalledProcessError(retcode, cmd, output=output) However using mock-1.2 directly seems to work properly. #6 looks to me as just some networking problem during initialization of chroot using yum. And yes, fedora-review should handle that more gracefully. (filed as bug 1155032) The reproducer from #0 mock -r fedora-20-x86_64 --no-cleanup-after --no-clean --resultdir=/tmp --quiet --shell 'rpm --eval \\\"%{_libdir}\\\"' works for me (with mock-1.2). Therefore I hope this is fixed in mock-1.2. If my hope is false, then feel free to reopen this bug. *** Bug 1152484 has been marked as a duplicate of this bug. *** |