Summary: | comps from the updates repo don't override comps from the fedora repo | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Kamil Páral <kparal> | ||||||||||||||||
Component: | dnf | Assignee: | Daniel Mach <dmach> | ||||||||||||||||
Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||||||||||||||
Severity: | unspecified | Docs Contact: | |||||||||||||||||
Priority: | medium | ||||||||||||||||||
Version: | 33 | CC: | anaconda-maint-list, dmach, jmracek, jonathan, jrohel, kellin, mblaha, mhatina, packaging-team-maint, pkratoch, rpm-software-management, vanmeeuwen+fedora, vmukhame, vponcova, wwoods | ||||||||||||||||
Target Milestone: | --- | Keywords: | Triaged | ||||||||||||||||
Target Release: | --- | ||||||||||||||||||
Hardware: | Unspecified | ||||||||||||||||||
OS: | Unspecified | ||||||||||||||||||
Whiteboard: | |||||||||||||||||||
Fixed In Version: | dnf-4.7.0-1.fc33 | Doc Type: | If docs needed, set a value | ||||||||||||||||
Doc Text: | Story Points: | --- | |||||||||||||||||
Clone Of: | Environment: | ||||||||||||||||||
Last Closed: | 2021-05-03 01:48:26 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: | |||||||||||||||||
Attachments: |
|
Description
Kamil Páral
2021-02-12 15:05:24 UTC
Created attachment 1756633 [details]
anaconda.log
Created attachment 1756634 [details]
dnf.librepo.log
Created attachment 1756635 [details]
packaging.log
Created attachment 1756636 [details]
program.log
Created attachment 1756637 [details]
syslog
Created attachment 1756638 [details]
dnf.cache (pruned large files)
I had some theories, but none of them seems to be related to this issue. I would guess that it depends on the priority of the repositories. Reassigning to DNF for further investigation. Comps merging depends on load order of the repositories.
It is the only option because the repo configuration has no other way to say what should come first.
There's the 'priority' option, but it is meant for packages and using it for comps would cause a lot of damage.
From the packaging log:
> 14:24:47,091 DBG packaging: repo updates: fall back enabled from default repos
> 14:24:47,091 DBG packaging: repo fedora: fall back enabled from default repos
That means load comps from 'updates' and override it with comps from 'fedora'.
Is Anaconda sorting or preserving order of the repos?
Does it load them in them in the order they were specified by the user?
These repositories are loaded from the configured directories with the DNF's read_all_repos method. I don't think that Anaconda changes their order after that. We only disable or enable them. Based on the implementation of the read_all_repos method, the .repo files are sorted by their path, so they are processed in the following order:
> find / -name *.repo | sort
/etc/anaconda.repos.d/fedora-cisco-openh264.repo
/etc/anaconda.repos.d/fedora-updates-testing.repo
/etc/anaconda.repos.d/fedora-updates.repo
/etc/anaconda.repos.d/fedora.repo
Could you try the following dnf change? https://github.com/rpm-software-management/dnf/pull/1734 Vendula, if you can build an updates.img containing the change, I'll be happy to test it 🍰 (In reply to Daniel Mach from comment #10) > Could you try the following dnf change? > https://github.com/rpm-software-management/dnf/pull/1734 The fix seems to work fine. Here is the updates image: https://vponcova.fedorapeople.org/kde_updates.img Created attachment 1759242 [details]
Screenshot of the fixed software selection
Great, it works for me too. Dan, a thumbs up from me :-) FEDORA-2021-447fb19490 has been submitted as an update to Fedora 33. https://bodhi.fedoraproject.org/updates/FEDORA-2021-447fb19490 FEDORA-2021-447fb19490 has been pushed to the Fedora 33 testing repository. Soon you'll be able to install the update with the following command: `sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2021-447fb19490` You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2021-447fb19490 See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates. FEDORA-2021-447fb19490 has been pushed to the Fedora 33 stable repository. If problem still persists, please make note of it in this bug report. |