Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.
Bug 1899852
Summary: | repomanage is broken, reports not existing packages | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Remi Collet <fedora> |
Component: | dnf-plugins-core | Assignee: | amatej |
Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | low | Docs Contact: | |
Priority: | unspecified | ||
Version: | 33 | CC: | amatej, dmach, jmracek, mblaha, packaging-team-maint, pkratoch, praiskup, rpm-software-management, vmukhame |
Target Milestone: | --- | Keywords: | Triaged |
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | dnf-plugins-core-4.0.21-1.fc33 | Doc Type: | If docs needed, set a value |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2021-05-03 01:48:14 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
Remi Collet
2020-11-20 09:01:09 UTC
Side effects, some packages are not reported so are not removed... thus more than 8 versions exist in the repo In order to support modular repositories repomanage now has to use the present repodata, but I made an error while adding this functionality which causes repomanage to use old (cached) repodata when running it multiple times. So in your case its possible it keeps using some old version of the metadata that still has the deleted packages. Can you please try running repomanage with option --setopt=metadata_expire=1 as a workaround to see if this fixes your problem? $ dnf repomanage --keep 8 --old . --setopt=metadata_expire=1 Ajout du dépôt repomanage_repo depuis le . ./ImageMagick6-6.9.11.31-1.remi.src.rpm ./ImageMagick7-7.0.10.31-1.remi.src.rpm ./php-pecl-swoole4-4.5.3-1.remi.src.rpm So, yes, this seems to work as expected. > In order to support modular repositories repomanage now has to use the present repodata
Does that mean, repomanage have to be run "after" a createrepo ?
Old process was
- repomanage
- createrepo
Do I have to
- createrepo
- repomanage
- createrepo
From a new test it seems that process have change as described in my previous comment... Here is a PR to fix the mentioned bug with caching: https://github.com/rpm-software-management/dnf-plugins-core/pull/414 and a test: https://github.com/rpm-software-management/ci-dnf-stack/pull/913 > Does that mean, repomanage have to be run "after" a createrepo ? It depends, but if you have old out of date repodata present (meaning you added/removed rpms since last run of createrepo) then yes, you have to either update the repodata (running createrepo) or remove them (modules won't work). Thanks for your effort, but looks like this command doesn't suit my needs anymore. Switching to a small PHP script doing the work instead 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. |