Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.

Bug 1707657

Summary: Building for EL6 or EL7 fails with urlgrabber errors
Product: [Fedora] Fedora Reporter: Doran Barton <fozz>
Component: python-urlgrabberAssignee: Packaging Maintenance Team <packaging-team-maint>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: urgent Docs Contact:
Priority: unspecified    
Version: 30CC: dmach, jdisnard, jkeating, mdomonko, mebrown, msuchy, ngompa13, packaging-team-maint, praiskup, robinlee.sysu, sheltren, williams
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: python-urlgrabber-4.0.0-2.fc30 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-05-17 01:04:39 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 Doran Barton 2019-05-08 03:04:19 UTC
Description of problem:

When trying to build, or even initialize a mock root for epel-[67]-x86_64, package installation fails either because /usr/libexec/urlgrabber-ext-down does not exist or because of a python error in urlgrabber-ext-down. 

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

python2-urlgrabber-4.0.0-1.fc30.noarch
python3-urlgrabber-4.0.0-1.fc30.noarch
mock-1.4.15-1.fc30.noarch
yum-3.4.3-521.fc30.noarch
dnf-4.2.2-2.fc30.noarch
systemd-241-8.git9ef65cb.fc30.x86_64

How reproducible:

It's pretty consistent.

Steps to Reproduce:
1. mock -r epel-6-x86_64 init
2. If python3-urlgrabber is installed, a python error causes install to fail
3. If python4-urlgrabber is not installed, install fails because /usr/libexec/urlgrabber-ext-down does not exist

Actual results:

Traceback (most recent call last):
  File "/usr/libexec/urlgrabber-ext-down", line 75, in <module>
    main()
  File "/usr/libexec/urlgrabber-ext-down", line 52, in main
    for k in line.split(' '):
TypeError: a bytes-like object is required, not 'str


Expected results:


Additional info:

Comment 1 Doran Barton 2019-05-08 03:06:17 UTC
This is essentially the same as bug #1688173 (which is rawhide.)

Comment 2 Miroslav Suchý 2019-05-09 10:54:56 UTC
This traceback is clearly python3-urlgrabber bug (soft deps of mock).

The reproducer is:
dnf install mock python3-urlgrabber
mock -r epel-6-x86_64 init

Comment 3 Pavel Raiskup 2019-05-12 07:13:12 UTC
Proposing fix (work-around?)
https://github.com/rpm-software-management/urlgrabber/pull/11

Comment 4 Pavel Raiskup 2019-05-12 07:25:35 UTC
testable with $ sudo dnf copr enable praiskup/mock-fix-1688173

Comment 5 Fedora Update System 2019-05-12 11:04:17 UTC
python-urlgrabber-4.0.0-2.fc30 has been submitted as an update to Fedora 30. https://bodhi.fedoraproject.org/updates/FEDORA-2019-ef2f2050b6

Comment 6 Fedora Update System 2019-05-13 02:24:36 UTC
python-urlgrabber-4.0.0-2.fc30 has been pushed to the Fedora 30 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2019-ef2f2050b6

Comment 7 Pavel Raiskup 2019-05-13 12:57:05 UTC
For those who can do it, it's probably much better to remove yum
package from the system, and keep only `dnf-yum` package installed
on F30;  mock then uses `dnf-yum` which doesn't use urlgrabber
at all, more info here:
https://github.com/rpm-software-management/mock/issues/259

Comment 8 Fedora Update System 2019-05-17 01:04:39 UTC
python-urlgrabber-4.0.0-2.fc30 has been pushed to the Fedora 30 stable repository. If problems still persist, please make note of it in this bug report.

Comment 9 Michal Domonkos 2019-05-20 14:12:14 UTC
*** Bug 1706690 has been marked as a duplicate of this bug. ***