Note: This bug is displayed in read-only format because
the product is no longer active in Red Hat Bugzilla.
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.
DescriptionSandro 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.
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.
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.
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.
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
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.