Bug 1580451

Summary: `yum copr enable` fails for any epel-7 repo
Product: [Fedora] Fedora Reporter: Michael Mráka <mmraka>
Component: yum-utilsAssignee: Packaging Maintenance Team <packaging-team-maint>
Status: CLOSED WONTFIX QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: urgent Docs Contact:
Priority: urgent    
Version: rawhideCC: clime, dbranchini, packaging-team-maint, praiskup
Target Milestone: ---Keywords: Regression
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-07-18 21:30:50 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 Michael Mráka 2018-05-21 13:46:56 UTC
Description of problem:
yum copr enable XXX 

Version-Release number of selected component (if applicable):
yum-plugin-copr-1.1.31-45.el7.noarch

How reproducible:
always

Steps to Reproduce:
1. yum -y install yum-plugin-copr
2. yum -y copr enable  @realtime/testing 
3.

Actual results:
# yum -y copr enable  @realtime/testing 
Loaded plugins: copr, fastestmirror, ovl
Error: [Errno 14] HTTPS Error 404 - Not Found


Expected results:
# yum -y copr enable  @realtime/testing 
Loaded plugins: copr, fastestmirror, ovl
Repository successfully enabled.

...and repository should be really enabled.

Additional info:
Works for Fedora, does not on RHEL/CentOS.. 
Yum plugin tries to fetch repo from 
https://copr.fedoraproject.org/coprs/@realtime/testing/repo/epel-7-x86_64/
while dnf plugin from
https://copr.fedoraproject.org/coprs/@realtime/testing/repo/fedora-28/
i.e. without arch.
Manual fetch of https://copr.fedoraproject.org/coprs/@realtime/testing/repo/epel-7/ works as expected.
 
Did you removed some compatibility code from infrastructure recently?

Comment 1 Miroslav Suchý 2018-05-21 15:36:52 UTC
Yes. As the repofile use $basearch copr use the url without arch. For some time.
This need to be changed in yum-plugin-copr.

Comment 2 Miroslav Suchý 2018-05-24 11:04:47 UTC
*** Bug 1581675 has been marked as a duplicate of this bug. ***

Comment 3 clime 2018-06-11 13:21:18 UTC
I temporarily fixed it: https://infrastructure.fedoraproject.org/cgit/ansible.git/commit/?id=8bea5c3bda391f2c2982447284e4132af6e863e4

We will really need to update yum-plugin-copr for a proper fix though.

Comment 4 clime 2018-06-11 13:22:08 UTC
Related: Bug 1582294 - yum-plugin-copr doesn't work

Comment 5 Daniel Mach 2018-07-18 21:30:50 UTC
yum and related packages are no longer actively developed.
They are being replaced with dnf, dnf-utils, etc.

I'm closing this bug because it's most likely never going to be fixed.
If you still consider your bug report important, reopen it, please.

Comment 6 Daniel Mach 2018-07-18 21:33:45 UTC
yum and related packages are no longer actively developed.
They are being replaced with dnf, dnf-utils, etc.

I'm closing this bug because it's most likely never going to be fixed.
If you still consider your bug report important, reopen it, please.