Maintenance: Planio will be observing a scheduled maintenance window this Sunday, November 10, 2024 from 20:00 UTC until 21:00 UTC to perform important network maintenance in our primary data center. Your Planio account will be unavailable for a few minutes during this maintenance window.
Test #5055
closed[EPIC] Ursine RPM Copy dependencies on modular RPMS from Default Modules needs to be added
Description
Ticket moved to GitHub: "pulp/pulp_rpm/2217":https://github.com/pulp/pulp_rpm/issues/2217
History¶
There is currently a 'policy decision' that modules in the base repo (of rhel) don't rely on modular rpms, but that it's not an engineering limitation, and that fedora and rhel will likely do so at some point in the future. This is already a consideration for fedora and fedora-updates repos.
At least in Fedora, you can expect that there will be content in the updates-testing repo depending on content in updates-modular and/or fedora-modular.
This means Pulp will eventually need to support multiple source repos for copy.
Problem¶
As pulp is delivered today, Ursine RPM deps on modular RPMs are NOT covered by test.
Normal, non-modular (ursine) [0] RPMs can depend on module packages.
As an example, the postgres language RPMs depend on the default stream of the postgresql module.
When this is the case, the default module and all artifacts related to that module and the URSINE RPM are ALL copied to the target repo.
At this time, to account for this scenario, a hybrid repo containing URSINE and MODULAR RPMs with modules will be required.
Example¶
Recursive¶
Before¶
- Copy Ursine RPM "zebra-1.0.rpm" from Repo A to B
- Zebra requires modular RPM bar-1.0.rpm and has no other dependencies
default module: module-FOO: [foo-1.0.rpm, bar-1.0.rpm, baz-1.0.rpm]
repo A
|
|---- chicken-1.1.rpm
|---- zebra-1.0.rpm
|----module-FOO
|----foo-1.0.rpm
|----bar-1.0.rpm
|----baz-1.0.rpm
repo B
|
|----bar-0.7.rpm
After Copy¶
Result of copying ursine RPM zebra-1.0.rpm from repo A to repo B:
repo B
|
|---- zebra-1.0.rpm
|----module-FOO
|----foo-1.0.rpm
|----bar-1.0.rpm
|----baz-1.0.rpm
|----bar-0.7.rpm
All available artifacts are copied, always. There is no way to copy just module on its own,
if any of its artifacts are present in a source repo (repo A).
Solution¶
- Add Ursine RPM permutations that exercise this case for recursive and non_recursive Ursine RPM copies in mixed repos with modular RPMs where default streams are and are not defined.
Note:¶
- the entire module should be treated as a single content unit to the greatest extent possible. it should copy the module that provides both A and B, all if its artifacts, and, the module default
- a module RPM should never be treated as just a normal RPM
- If module has multiple streams, ONLY the artifacts associated with the default module and the default module are copied, correct?
- only the artifacts associated with the default module stream should ever be considered in the first place. if there is no default stream for a module, then RPMs should not be able to depend on it
References¶
[0] - https://docs.fedoraproject.org/en-US/modularity/architecture/consuming/dnf-behavior/
[1] - https://docs.pulpproject.org/plugins/pulp_rpm/user-guide/features.html?highlight=modularity
Related issues
Updated by bherring over 5 years ago
- Related to Issue #5063: Module defaults need to be considered and copied automatically during recursive dependency solving added
Updated by bherring over 5 years ago
- Subject changed from Ursine RPM Copy dependencies on modular RPMS from Default Modules needs to be added to [EPIC] Ursine RPM Copy dependencies on modular RPMS from Default Modules needs to be added
Update¶
- Ensure that there is already a test for module copy that the module default is copied as well.
- If not, write a new test to cover this work with a linked ticket (considering this an EPIC ticket at this point).
14:06 <dalley> in this case I'm talking about, no ursine RPMs are involved at all -- if
you're doing a direct Pulp copy of a module and that module has a default,
the default should be automatically copied
Added by dalley over 5 years ago
Updated by bherring about 5 years ago
- Status changed from NEW to ASSIGNED
- Assignee set to bherring
Updated by bherring almost 5 years ago
- Status changed from ASSIGNED to NEW
- Assignee deleted (
bherring)
Updated by dalley almost 4 years ago
- Priority changed from High to Normal
- Tags deleted (
Pulp 2)
Updated by pulpbot almost 3 years ago
- Description updated (diff)
- Status changed from NEW to CLOSED - DUPLICATE
Take copied modulemd_defaults into consideration for module errata copy
re: #5055 https://pulp.plan.io/issues/5055