Bug 1185672 - upgrade to mock 1.2 breaks fedora-review: ERROR: Exception down the road...
Summary: upgrade to mock 1.2 breaks fedora-review: ERROR: Exception down the road...
Keywords:
Status: CLOSED DUPLICATE of bug 1151943
Alias: None
Product: Fedora
Classification: Fedora
Component: mock
Version: 21
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Clark Williams
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-01-25 19:26 UTC by Piotr Popieluch
Modified: 2015-01-26 08:02 UTC (History)
6 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2015-01-26 08:02:41 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Piotr Popieluch 2015-01-25 19:26:38 UTC
Description of problem:
After upgrade to mock 1.2.4 from 1.1.x fedora review errors with ERROR: Exception down the road...


Version-Release number of selected component (if applicable):
1.2.4


How reproducible:


upgrade mock, run fedora-review:



➜  rpmbuild  sudo dnf upgrade mock  
[sudo] password for piotr: 
Dependencies resolved.
=========================================================================================================
 Package              Arch                   Version                       Repository               Size
=========================================================================================================
Upgrading:
 mock                 noarch                 1.2.4-1.fc21                  updates                 288 k

Transaction Summary
=========================================================================================================
Upgrade  1 Package

Total download size: 288 k
Is this ok [y/N]: y
Downloading Packages:
mock-1.2.4-1.fc21.noarch.rpm                                             1.2 MB/s | 288 kB     00:00    
---------------------------------------------------------------------------------------------------------
Total                                                                     55 kB/s | 288 kB     00:05     
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
  Upgrading   : mock-1.2.4-1.fc21.noarch                                                             1/2 
warning: /etc/mock/fedora-rawhide-x86_64.cfg created as /etc/mock/fedora-rawhide-x86_64.cfg.rpmnew
  Cleanup     : mock-1.1.41-3.fc21.noarch                                                            2/2 
  Verifying   : mock-1.2.4-1.fc21.noarch                                                             1/2 
  Verifying   : mock-1.1.41-3.fc21.noarch                                                            2/2 

Upgraded:
  mock.noarch 1.2.4-1.fc21                                                                               

Complete!
➜  rpmbuild  fedora-review --rpm-spec -n /home/piotr/rpmbuild/SRPMS/nodejs-zip-stream-0.5.0-1.fc21.src.rpm
INFO: Processing local files: /home/piotr/rpmbuild/SRPMS/nodejs-zip-stream-0.5.0-1.fc21.src.rpm
INFO: Getting .spec and .srpm Urls from : Local files in /home/piotr/rpmbuild
INFO:   --> SRPM url: file:///home/piotr/rpmbuild/SRPMS/nodejs-zip-stream-0.5.0-1.fc21.src.rpm
INFO: Using review directory: /home/piotr/rpmbuild/nodejs-zip-stream
RPM version 4.12.0.1
Copyright (C) 1998-2002 - Red Hat, Inc.
This program may be freely redistributed under the terms of the GNU GPL

Usage: rpm [-afgpcdLlsiv?] [-a|--all] [-f|--file] [-g|--group] [-p|--package] [--pkgid] [--hdrid]
        [--triggeredby] [--whatrequires] [--whatprovides] [--nomanifest] [-c|--configfiles]
        [-d|--docfiles] [-L|--licensefiles] [--dump] [-l|--list] [--queryformat=QUERYFORMAT]
        [-s|--state] [--nofiledigest] [--nofiles] [--nodeps] [--noscript] [--allfiles]
        [--allmatches] [--badreloc] [-e|--erase=<package>+] [--excludedocs] [--excludepath=<path>]
        [--force] [-F|--freshen=<packagefile>+] [-h|--hash] [--ignorearch] [--ignoreos]
        [--ignoresize] [-i|--install] [--justdb] [--nodeps] [--nofiledigest] [--nocontexts]
        [--noorder] [--noscripts] [--notriggers] [--oldpackage] [--percent] [--prefix=<dir>]
        [--relocate=<old>=<new>] [--replacefiles] [--replacepkgs] [--test]
        [-U|--upgrade=<packagefile>+] [--reinstall=<packagefile>+] [-D|--define='MACRO EXPR']
        [--undefine=MACRO] [-E|--eval='EXPR'] [--macros=<FILE:...>] [--noplugins] [--nodigest]
        [--nosignature] [--rcfile=<FILE:...>] [-r|--root=ROOT] [--dbpath=DIRECTORY] [--querytags]
        [--showrc] [--quiet] [-v|--verbose] [--version] [-?|--help] [--usage] [--scripts]
        [--setperms] [--setugids] [--conflicts] [--obsoletes] [--provides] [--requires]
        [--recommends] [--suggests] [--supplements] [--enhances] [--info] [--changelog] [--xml]
        [--triggers] [--last] [--dupes] [--filesbypkg] [--fileclass] [--filecolor] [--fscontext]
        [--fileprovide] [--filerequire] [--filecaps]
ERROR: Exception down the road...(logs in /home/piotr/.cache/fedora-review.log)




Downgrade mock and fedora review works again:


➜  rpmbuild  sudo dnf downgrade mock
Dependencies resolved.
=========================================================================================================
 Package              Arch                   Version                        Repository              Size
=========================================================================================================
Downgrading:
 mock                 noarch                 1.1.41-3.fc21                  fedora                 266 k

Transaction Summary
=========================================================================================================
Downgrade  1 Package

Total download size: 266 k
Is this ok [y/N]: y
Downloading Packages:
mock-1.1.41-3.fc21.noarch.rpm                                            108 kB/s | 266 kB     00:02    
---------------------------------------------------------------------------------------------------------
Total                                                                     13 kB/s | 266 kB     00:20     
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
  Downgrading : mock-1.1.41-3.fc21.noarch                                                            1/2 
warning: /etc/mock/fedora-rawhide-x86_64.cfg created as /etc/mock/fedora-rawhide-x86_64.cfg.rpmnew
  Erasing     : mock-1.2.4-1.fc21.noarch                                                             2/2 
  Verifying   : mock-1.1.41-3.fc21.noarch                                                            1/2 
  Verifying   : mock-1.2.4-1.fc21.noarch                                                             2/2 

Downgraded:
  mock.noarch 1.1.41-3.fc21                                                                              

Complete!
➜  rpmbuild  fedora-review --rpm-spec -n /home/piotr/rpmbuild/SRPMS/nodejs-zip-stream-0.5.0-1.fc21.src.rpm                                  
INFO: Processing local files: /home/piotr/rpmbuild/SRPMS/nodejs-zip-stream-0.5.0-1.fc21.src.rpm
INFO: Getting .spec and .srpm Urls from : Local files in /home/piotr/rpmbuild
INFO:   --> SRPM url: file:///home/piotr/rpmbuild/SRPMS/nodejs-zip-stream-0.5.0-1.fc21.src.rpm
ERROR: 'The directory /home/piotr/rpmbuild/nodejs-zip-stream is in the way, please remove'
➜  rpmbuild  rm -rf /home/piotr/rpmbuild/nodejs-zip-stream
➜  rpmbuild  fedora-review --rpm-spec -n /home/piotr/rpmbuild/SRPMS/nodejs-zip-stream-0.5.0-1.fc21.src.rpm
INFO: Processing local files: /home/piotr/rpmbuild/SRPMS/nodejs-zip-stream-0.5.0-1.fc21.src.rpm
INFO: Getting .spec and .srpm Urls from : Local files in /home/piotr/rpmbuild
INFO:   --> SRPM url: file:///home/piotr/rpmbuild/SRPMS/nodejs-zip-stream-0.5.0-1.fc21.src.rpm
INFO: Using review directory: /home/piotr/rpmbuild/nodejs-zip-stream
INFO: Downloading (Source0): https://registry.npmjs.org/zip-stream/-/zip-stream-0.5.0.tgz
INFO: No upstream for (Source1): nodejs-zip-stream-tests-0.5.0.tar.bz2
INFO: No upstream for (Source10): nodejs-zip-stream-dl-tests.sh
INFO: Running checks and generating report
INFO: Results and/or logs in: /home/piotr/rpmbuild/nodejs-zip-stream/results
INFO: WARNING: Probably non-rawhide buildroot used. Rawhide should be used for most package reviews
INFO: Build completed
INFO: Installing built package(s)
INFO: Active plugins: Generic, Shell-api
INFO: Starting new HTTPS connection (1): admin.fedoraproject.org
INFO:  ExclusiveArch dependency checking disabled, enable with EXARCH flag

Review template in: /home/piotr/rpmbuild/nodejs-zip-stream/review.txt
fedora-review is automated tool, but *YOU* are responsible for manually
reviewing the results and finishing the review. Do not just copy-paste
the results without understanding them.




Additional info:



➜  rpmbuild  cat /home/piotr/.cache/fedora-review.log
01-25 20:06 root         DEBUG    fedora-review 0.5.2 63c24cb 2014-07-14 15:08:50 +0200 started
01-25 20:06 root         DEBUG    Command  line: /usr/bin/fedora-review --rpm-spec -n /home/piotr/rpmbuild/SRPMS/nodejs-zip-stream-0.5.0-1.fc21.src.rpm
01-25 20:06 root         INFO     Processing local files: /home/piotr/rpmbuild/SRPMS/nodejs-zip-stream-0.5.0-1.fc21.src.rpm
01-25 20:06 root         INFO     Getting .spec and .srpm Urls from : Local files in /home/piotr/rpmbuild
01-25 20:06 root         DEBUG    Active settings after processing options
01-25 20:06 root         DEBUG        resultdir: None
01-25 20:06 root         DEBUG        verbose: False
01-25 20:06 root         DEBUG        no_report: False
01-25 20:06 root         DEBUG        session_log: /home/piotr/.cache/fedora-review.log
01-25 20:06 root         DEBUG        list_flags: False
01-25 20:06 root         DEBUG        list_checks: False
01-25 20:06 root         DEBUG        single: None
01-25 20:06 root         DEBUG        rpm_spec: True
01-25 20:06 root         DEBUG        plugins: {}
01-25 20:06 root         DEBUG        exclude: None
01-25 20:06 root         DEBUG        configdir: None
01-25 20:06 root         DEBUG        log_level: 20
01-25 20:06 root         DEBUG        init_done: True
01-25 20:06 root         DEBUG        cache: False
01-25 20:06 root         DEBUG        mock_config: None
01-25 20:06 root         DEBUG        version: False
01-25 20:06 root         DEBUG        uniqueext: None
01-25 20:06 root         DEBUG        flags: []
01-25 20:06 root         DEBUG        bz_url: https://bugzilla.redhat.com
01-25 20:06 root         DEBUG        mock_options: --no-cleanup-after --no-clean
01-25 20:06 root         DEBUG        list_plugins: False
01-25 20:06 root         DEBUG        _log_config_done: True
01-25 20:06 root         DEBUG        other_bz: None
01-25 20:06 root         DEBUG        plugins_arg: None
01-25 20:06 root         DEBUG        repo: None
01-25 20:06 root         DEBUG        use_colors: True
01-25 20:06 root         DEBUG        bug: None
01-25 20:06 root         DEBUG        prebuilt: False
01-25 20:06 root         DEBUG        name: /home/piotr/rpmbuild/SRPMS/nodejs-zip-stream-0.5.0-1.fc21.src.rpm
01-25 20:06 root         DEBUG        url: None
01-25 20:06 root         DEBUG        checksum: sha256
01-25 20:06 root         DEBUG        nobuild: False
01-25 20:06 root         DEBUG        _con_handler: <logging.StreamHandler object at 0x7f6e4410be90>
01-25 20:06 root         INFO       --> SRPM url: file:///home/piotr/rpmbuild/SRPMS/nodejs-zip-stream-0.5.0-1.fc21.src.rpm
01-25 20:06 root         INFO     Using review directory: /home/piotr/rpmbuild/nodejs-zip-stream
01-25 20:06 root         DEBUG    find_urls completed: 0.018
01-25 20:06 root         DEBUG    Avoiding init of working mock root
01-25 20:06 root         DEBUG    Url download completed: 24.802
01-25 20:06 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 573, in check_output
    raise CalledProcessError(retcode, cmd, output=output)
CalledProcessError: Command '['mock', '--no-cleanup-after', '--no-clean', '--resultdir=/home/piotr/rpmbuild/nodejs-zip-stream/results', '--quiet', '--shell', 'rpm --eval \\"%dist %fedora %epel %buildarch %_libdir %_isa %arch\\"']' returned non-zero exit status 9
01-25 20:06 root         ERROR    Exception down the road...(logs in /home/piotr/.cache/fedora-review.log)
01-25 20:06 root         DEBUG    Report completed:  25.600 seconds

Comment 1 Miroslav Suchý 2015-01-26 08:02:41 UTC

*** This bug has been marked as a duplicate of bug 1151943 ***


Note You need to log in before you can comment on or make changes to this bug.