Bug 1165061

Summary: update to mock-1.2.1-1.fc21 breaks existing mock profiles
Product: [Fedora] Fedora Reporter: Kamil Dudka <kdudka>
Component: mockAssignee: Miroslav Suchý <msuchy>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: high    
Version: 21CC: jdisnard, mebrown, msimacek, msuchy, praiskup, williams
Target Milestone: ---Keywords: Regression
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: mock-1.2.3-1.el7 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-12-12 04:07:35 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Kamil Dudka 2014-11-18 09:04:56 UTC
Description of problem:
mock (and consequently csmock) stopped working after update.


Version-Release number of selected component (if applicable):
mock-1.2.1-1.fc21.noarch


Steps to Reproduce:
1. echo "config_opts['use_host_resolv'] = False" >> /etc/mock/default.cfg
2. mock --init


Actual results:
ERROR: global name 'dedent' is not defined
Traceback (most recent call last):
  File "/usr/sbin/mock", line 798, in <module>
    main()
  File "/usr/lib/python2.7/site-packages/mockbuild/trace_decorator.py", line 84, in trace
    result = func(*args, **kw)
  File "/usr/sbin/mock", line 566, in main
    config_opts = util.load_config(config_path, options.chroot, uidManager, __VERSION__, PKGPYTHONDIR)
  File "/usr/lib/python2.7/site-packages/mockbuild/trace_decorator.py", line 84, in trace
    result = func(*args, **kw)
  File "/usr/lib/python2.7/site-packages/mockbuild/util.py", line 987, in load_config
    config_opts['files']['etc/hosts'] = dedent('''\
NameError: global name 'dedent' is not defined



Additional info:
Downgrade to mock-1.1.41-3.fc21.noarch fixes the bug.

Comment 1 Miroslav Suchý 2014-11-18 09:25:09 UTC
Fixed in commit 971e391

Comment 2 Fedora Update System 2014-11-18 09:48:30 UTC
mock-1.2.2-1.el7 has been submitted as an update for Fedora EPEL 7.
https://admin.fedoraproject.org/updates/FEDORA-EPEL-2014-4123/mock-1.2.2-1.el7

Comment 3 Fedora Update System 2014-11-18 09:48:41 UTC
mock-1.2.1-1.el6 has been submitted as an update for Fedora EPEL 6.
https://admin.fedoraproject.org/updates/FEDORA-EPEL-2014-4101/mock-1.2.1-1.el6

Comment 4 Fedora Update System 2014-11-18 09:50:54 UTC
mock-1.2.2-1.fc20 has been submitted as an update for Fedora 20.
https://admin.fedoraproject.org/updates/FEDORA-2014-15217/mock-1.2.2-1.fc20

Comment 5 Fedora Update System 2014-11-18 09:53:42 UTC
mock-1.2.2-1.fc21 has been submitted as an update for Fedora 21.
https://admin.fedoraproject.org/updates/FEDORA-2014-15224/mock-1.2.2-1.fc21

Comment 6 Fedora Update System 2014-11-19 03:08:26 UTC
Package mock-1.2.2-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 mock-1.2.2-1.fc21'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2014-15224/mock-1.2.2-1.fc21
then log in and leave karma (feedback).

Comment 7 Fedora Update System 2014-12-04 12:06:40 UTC
mock-1.2.3-1.fc21 has been submitted as an update for Fedora 21.
https://admin.fedoraproject.org/updates/mock-1.2.3-1.fc21

Comment 8 Fedora Update System 2014-12-04 12:10:11 UTC
mock-1.2.3-1.fc20 has been submitted as an update for Fedora 20.
https://admin.fedoraproject.org/updates/mock-1.2.3-1.fc20

Comment 9 Fedora Update System 2014-12-04 12:11:07 UTC
mock-1.2.3-1.el7 has been submitted as an update for Fedora EPEL 7.
https://admin.fedoraproject.org/updates/mock-1.2.3-1.el7

Comment 10 Fedora Update System 2014-12-12 04:07:35 UTC
mock-1.2.3-1.fc21 has been pushed to the Fedora 21 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 11 Fedora Update System 2014-12-17 04:42:38 UTC
mock-1.2.3-1.fc20 has been pushed to the Fedora 20 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 12 Fedora Update System 2015-01-06 02:06:21 UTC
mock-1.2.3-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.