Bug 1581157
| Summary: | [modularity] Updating a module does not remove obsolete packages | |||
|---|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Rafael Fonseca <rdossant> | |
| Component: | dnf | Assignee: | rpm-software-management | |
| Status: | CLOSED NOTABUG | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | |
| Severity: | unspecified | Docs Contact: | ||
| Priority: | unspecified | |||
| Version: | rawhide | CC: | dmach, mhatina, packaging-team-maint, rpm-software-management, vmukhame | |
| Target Milestone: | --- | Keywords: | Triaged | |
| Target Release: | --- | |||
| Hardware: | Unspecified | |||
| OS: | Linux | |||
| Whiteboard: | ||||
| Fixed In Version: | Doc Type: | If docs needed, set a value | ||
| Doc Text: | Story Points: | --- | ||
| Clone Of: | ||||
| : | 1581235 (view as bug list) | Environment: | ||
| Last Closed: | 2018-05-28 11:25:21 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: | ||||
| Bug Blocks: | 1478068, 1581235 | |||
Module version doesn't obsolete older module versions. DNF merges NEVRAs from all existing module versions within a stream and let depsolver to pick the best versions. If an RPM is supposed to be obsoleted, another RPM has to obsolete as usual. |
Description of problem: Let's say you installed version 1 of ModuleB with rpms: TestG and TestH. Then you update it to version 2 which has rpms TestG and TestI. TestH is not removed. Version-Release number of selected component (if applicable): 0:2.7.5-13 How reproducible: always Steps to Reproduce: 1. --- document: modulemd version: 2 data: artifacts: rpms: ["TestG-0:1-1.modB.noarch", "TestH-0:1-1.modB.noarch"] components: rpms: TestG: {rationale: 'rationale for TestG'} TestH: {rationale: 'rationale for TestH'} description: Module ModuleB description license: module: [MIT] name: ModuleB profiles: default: rpms: [TestG, TestH] stream: f26 summary: Module ModuleB summary version: 1 --- data: artifacts: rpms: ["TestG-0:1-2.modB.noarch", "TestI-0:1-1.modB.noarch"] components: rpms: TestG: {rationale: 'rationale for TestG'} TestI: {rationale: 'rationale for TestI'} description: Module ModuleB description license: module: [MIT] name: ModuleB profiles: default: rpms: [TestG, TestI] stream: f26 summary: Module ModuleB summary version: 2 document: modulemd version: 2 2. Install ModuleB:f26:1 3. Update ModuleB Actual results: TestH is kept in the system Expected results: TestH is removed rpmdb changes are | State | Packages | | upgraded | TestG/1-2.modB | | removed | TestH/1-1.modB | | installed | TestI/1-1.modB | Additional info: