Issue #1366
closedAdvisory package list doesn't match packages in the repository
Description
We have following situation, which is quite common in our releasing process:
Async errata contains multiple products and set of all packages for these products. Advisory is pushed into repositories related to the products and selected subset of packages from advisory is uploaded to the repository. However after after yum publish, generated updateinfo contains advisory with all packages even with those that are not in the repository. Therefore we need filter out packages of advisory that are not in the repository.
Related issues
Updated by mhrivnak about 9 years ago
- Priority changed from Normal to High
- Triaged changed from No to Yes
Updated by jluza almost 9 years ago
- Version changed from 2.5 to 2.7.1
suggested change at
https://github.com/release-engineering/pulp_rpm/commits/2.7-dev-%231366
Few notes:
- it would be definitely better to have some rewindable generator than have as_generator=False
- it would be better to query packages just for filename field, however I'm not sure if it's possible.
Updated by mhrivnak almost 9 years ago
There is a bit of similar functionality in the yum profiler. See pulp_rpm.plugins.profilers.yum.YumProfiler. Specifically the _get_rpms_from_errata and _translate_erratum functions.
Updated by mhrivnak almost 9 years ago
- Status changed from NEW to ASSIGNED
- Assignee set to semyers
This looks like a duplicate of #1548. I'll let semyers confirm and decide which to close.
Updated by semyers almost 9 years ago
- Has duplicate Issue #1548: published errata contain packages not in repo added
Updated by semyers almost 9 years ago
Each issue is related to a different downstream bugzilla issue, so I'm keeping them both open and will ref them both in my commit message. I've linked the issues in Redmine, marking this one as the duplicate. My comments and progress can be followed over on #1548.
Updated by semyers almost 9 years ago
- Status changed from ASSIGNED to POST
Added by semyers almost 9 years ago
Updated by semyers almost 9 years ago
- Status changed from POST to MODIFIED
- % Done changed from 0 to 100
Applied in changeset 73d67dd4ac855b6311a5622f7eb211f2e65d0f35.
Updated by pthomas@redhat.com over 8 years ago
- Status changed from 5 to 6
verified
[root@ibm-x3550m3-10 ~]# rpm -qa |grep pulp-server
pulp-server-2.8.1-0.1.beta.el7.noarch
Updated by semyers over 8 years ago
- Status changed from 6 to CLOSED - CURRENTRELEASE
published updateinfo only contains units in repo
Errata units in Pulp contain all units in all repos that are linked to errata with the same id, which was resulting in published errata referencing packages that weren't actually available in the published repo. This limits packages in published errata updateinfo XML to only the packages that are contained in the published repo.
fixes #1366 https://pulp.plan.io/issues/1366
fixes #1548 https://pulp.plan.io/issues/1548