RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 2024629 - dnf copr plugin doesn't work on CentOS Stream 8
Summary: dnf copr plugin doesn't work on CentOS Stream 8
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: dnf-plugins-core
Version: CentOS Stream
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: rc
: ---
Assignee: Copr Team
QA Contact: swm-qe
Mariya Pershina
URL:
Whiteboard:
Depends On: 1994154
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-11-18 14:22 UTC by Sandro Bonazzola
Modified: 2022-11-08 12:46 UTC (History)
6 users (show)

Fixed In Version: dnf-plugins-core-4.0.21-14.el8
Doc Type: No Doc Update
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-11-08 10:53:15 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker RHELPLAN-103169 0 None None None 2022-11-08 01:19:56 UTC
Red Hat Product Errata RHBA-2022:7759 0 None None None 2022-11-08 10:53:23 UTC

Description Sandro Bonazzola 2021-11-18 14:22:43 UTC
Trying:
```
dnf copr enable ovirt/ovirt-master-snapshot
```
on CentOS Stream 8.

It's currently failing reporting:
```
Error: This repository does not have any builds yet so you cannot enable it now.

```

The issue is that copr plugin is not recognizing "CentOS Stream" and assign the repo with:

```
chroot = ("epel-%s-x86_64" % dist[1].split(".", 1)[0])
```

with dist being ('CentOS Stream', '8', '')

so trying to match epel-8-x86_64.

But builds in copr pointing to CentOS Stream have roots like `centos-stream-8-x86_64` so it fails.

Please add CentOS Stream to dnf copr for CentOS 8.

It seems to work fine on CentOS Stream 9.

Comment 1 Silvie Chlupova 2021-11-29 10:28:47 UTC
Hi Sandro, the reason it works on centos stream 9 (but not on centos stream 8) is that my commit https://github.com/rpm-software-management/dnf-plugins-core/commit/9a00b1e405b421ae6c33c62f0442770fa6ba590e is in release 4.0.24 of the dnf-plugins-core package which has only build for centos stream 9.

@jmracek Do you want to backport it to RHEL8?

Comment 2 Carl George 🤠 2022-02-25 05:07:59 UTC
Please do not backport this to EL8.  The behavior there is currently correct.  `dnf copr enable` should pick the epel-8 chroot on c8s.  The problem we have is that it does not pick the epel-9 chroot for c9s, see bug 2058471.

Comment 5 Martin Banas 2022-06-27 09:12:48 UTC
Could QE get the list of missing patches / specification of what would be changed so that we can construct the AC and know the scope of the change?
Thanks.

Comment 6 Lukáš Hrázký 2022-06-29 12:20:48 UTC
Martin, this is the list of commits for the copr plugin in RHEL 9.1:
$ git log --oneline 4.0.21..4.1.0 -- plugins/copr.py 
10e010c copr: allow specifying protocol as part of --hub
1a4dbdb Better error message for dnf copr enable
75d55ac Shorter verification that the project exists
3c56690 copr: migrate all calls to APIv3
fd8f0e2 copr: don't traceback on empty lines in /etc/os-release
37fd98a Silence a deprecation warning in plugins/copr.py
9a00b1e Fix baseurl for centos stream chroot
810a1ca Disable dnf playground command
841b00a Fix 'dnf copr enable' on Fedora 35

And this is the list of commits in RHEL 8.7:
$ git log --oneline 4.0.21..rhel-8.7 -- plugins/copr.py
54b7c5f copr: migrate all calls to APIv3
ebacba8 copr: don't traceback on empty lines in /etc/os-release

So all the commits from RHEL 9.1 besides the two in 8.7 would need to be backported, quite a sizeable amount.

Comment 13 Jaroslav Mracek 2022-07-19 06:41:53 UTC
Because additional patch is already in upstream - moving to POST

Comment 20 errata-xmlrpc 2022-11-08 10:53:15 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (dnf-plugins-core bug fix and enhancement update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2022:7759


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