Actions
Issue #5942
closedcentos 8 appstream non-modular rpms are marked as modular
Start date:
Due date:
Estimated time:
Severity:
2. Medium
Version:
Platform Release:
2.21.1
OS:
Triaged:
Yes
Groomed:
No
Sprint Candidate:
No
Tags:
Pulp 2
Sprint:
Sprint 63
Quarter:
Description
On my pulp 2 box running pulp-rpm-plugins-2.21.0-1.el7.noarch, i synced these two repos:
http://mirror.linux.duke.edu/pub/centos/8/AppStream/x86_64/os/
http://mirror.linux.duke.edu/pub/centos/8/BaseOS/x86_64/os/
and then examining the appstream repo, it seems that there are over 4000 rpms in it that are marked as modular but shouldn't be. Take git-2.18.1-3.el8.x86_64 as an example.
Pulp shows it as: "is_modular" : true
but examining the modules md file, that rpm does not show up as an artifact. I can't determine why pulp is marking it as modular. The rpm header itself also shows it as non-modular:
$ rpm -q --queryformat "%{MODULARITYLABEL}\n" -p git-2.18.1-3.el8.x86_64.rpm
warning: git-2.18.1-3.el8.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID 8483c65d: NOKEY
(none)
$ rpm -q --queryformat "%{DISTTAG}\n" -p git-2.18.1-3.el8.x86_64.rpm
warning: git-2.18.1-3.el8.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID 8483c65d: NOKEY
(none)
Actions
Set is_modular flag correctly if there is a module with no artifacts in a repo
Checking if a quesryset is empty because: Empty queryset Q() combined with raw query makes only the __raw_part applied (the root cause of the bug). Non-empty queryset combined with raw evaluates as AND expression, so both are applied (expected).
closes #5942 https://pulp.plan.io/issues/5942