Bug 1705912
Summary: | dnf copr enable says the repo has no builds even when it has | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 8 | Reporter: | Tomas Tomecek <ttomecek> |
Component: | dnf-plugins-core | Assignee: | Jakub Kadlčík <jkadlcik> |
Status: | CLOSED NOTABUG | QA Contact: | BaseOS QE Security Team <qe-baseos-security> |
Severity: | unspecified | Docs Contact: | |
Priority: | low | ||
Version: | 8.0 | CC: | amatej, dmach, emrakova, james.antill, jkadlcik, mdomonko, msuchy |
Target Milestone: | rc | Keywords: | Triaged |
Target Release: | 8.0 | ||
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: | 2019-07-10 12:58:25 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: | |||
Bug Depends On: | 1681085 | ||
Bug Blocks: |
Description
Tomas Tomecek
2019-05-03 08:15:40 UTC
Thank you for the report Tomas, dnf copr enable packit/packit-service-hello-world fails on RHEL8 because when chroot is not explicitly specified, it is guessed based on `distro.linux_distribution()`, so basically based on `/etc/os-release`. This way, the chroot gets determined to be "epel-8-x86_64". The plugin then tries to get the repofile on following URL https://copr.fedorainfracloud.org/coprs/packit/packit-service-hello-world/repo/epel-8/ while the RHEL8 in Copr is (so far) known as "rhelbeta-8-*" and therefore the expected address is https://copr.fedorainfracloud.org/coprs/packit/packit-service-hello-world/repo/rhelbeta-8/ This can be easily fixed by explicitly specifying your chroot in `dnf copr` dnf copr enable packit/packit-service-hello-world rhelbeta-8-x86_64 Or even without architecture dnf copr enable packit/packit-service-hello-world rhelbeta-8 The problem is, that as a user you have no way to know this and moreover, you are not supposed to know it. I think, that we should update the suggested command in "Quick Enable" box to specify the chroot when it is needed. Modified in PR#763 > Flags: needinfo?(jkadlcik)
@dmach, what information is needed from me? :-)
> Modified in PR#763 There is a full URL to the PR https://pagure.io/copr/copr/pull-request/763 According to discussion the fix is not part of dnf copr plugin. Probably msuchy will know a detail The fix is part of copr-fronted, which has not been released (and deployed to production) yet. Since the code change was done in copr-frontend, I'm closing this bug. |